How to enable USB debugging option programmatically?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to enable USB debugging option programmatically?

Jaymin D
Hello All,

Are there any ways to enable USB debugging from AOSP source code?
Currently, using AOSP 6.0.1 version and compiled "perf" image.

As I haven't any GUI/Display, so I should need to enable the USB debugging from AOSP source code only.

Please let me know.

Regards,
Jaymin

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to enable USB debugging option programmatically?

Elmer Palacios
You can compile the image like target_user-debug build.

El vie., 14 jun. 2019 a las 15:17, Jaymin D (<[hidden email]>) escribió:
Hello All,

Are there any ways to enable USB debugging from AOSP source code?
Currently, using AOSP 6.0.1 version and compiled "perf" image.

As I haven't any GUI/Display, so I should need to enable the USB debugging from AOSP source code only.

Please let me know.

Regards,
Jaymin

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/CADPgZNchdmRDnuFEjXQaaAmPvVKgUcW7oODqYf6fOxXobtsO_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to enable USB debugging option programmatically?

Jaymin D
Hi Elmer,

Thanks for your response.
But, as I mentioned that my requirement is to compile image in "perf" build only.
How can I enable the USB debugging in "perf" build.

Regards,
Jaymin

On Monday, June 17, 2019 at 1:37:22 AM UTC+5:30, Elmer Palacios wrote:
You can compile the image like target_user-debug build.

El vie., 14 jun. 2019 a las 15:17, Jaymin D (<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="sgLJhQpkBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jaymi...@...>) escribió:
Hello All,

Are there any ways to enable USB debugging from AOSP source code?
Currently, using AOSP 6.0.1 version and compiled "perf" image.

As I haven't any GUI/Display, so I should need to enable the USB debugging from AOSP source code only.

Please let me know.

Regards,
Jaymin

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="sgLJhQpkBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">android-...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="sgLJhQpkBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">android-...@googlegroups.com.
Visit this group at <a href="https://groups.google.com/group/android-platform" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/android-platform&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/android-platform&#39;;return true;">https://groups.google.com/group/android-platform.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/df17c8c1-4bcf-4118-8f12-aae8478df9b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to enable USB debugging option programmatically?

Larry Bourque
Thanks for the info trying to find out who made an account on my phone that says account can't be identified.they spoofed my phone and controlling my activities.need feedback to identify the spoofer,thank's and God bless.

On Mon, Jun 17, 2019, 9:11 AM Jaymin D <[hidden email]> wrote:
Hi Elmer,

Thanks for your response.
But, as I mentioned that my requirement is to compile image in "perf" build only.
How can I enable the USB debugging in "perf" build.

Regards,
Jaymin

On Monday, June 17, 2019 at 1:37:22 AM UTC+5:30, Elmer Palacios wrote:
You can compile the image like target_user-debug build.

El vie., 14 jun. 2019 a las 15:17, Jaymin D (<[hidden email]>) escribió:
Hello All,

Are there any ways to enable USB debugging from AOSP source code?
Currently, using AOSP 6.0.1 version and compiled "perf" image.

As I haven't any GUI/Display, so I should need to enable the USB debugging from AOSP source code only.

Please let me know.

Regards,
Jaymin

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/df17c8c1-4bcf-4118-8f12-aae8478df9b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/CALtFJLvOu21rr2j1om2DUO8A3PmDpQbPrGJOjRP1x7sq0GYpRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to enable USB debugging option programmatically?

Ashwin MJ
In reply to this post by Elmer Palacios
Hi guys,

if you have a complete access to AOSP code. Search for TARGET_BUILD_VARIANT  flag. This should be set to TARGET_BUILD_VARIANT=userdebug , not "user" . If the value is user you will not be able to print all logs or do the any kind of debugging stuffs.

Thanks,
Ashwin


On Monday, June 17, 2019 at 1:37:22 AM UTC+5:30, eapo wrote:
You can compile the image like target_user-debug build.

El vie., 14 jun. 2019 a las 15:17, Jaymin D (<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="sgLJhQpkBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jaymi...@...>) escribió:
Hello All,

Are there any ways to enable USB debugging from AOSP source code?
Currently, using AOSP 6.0.1 version and compiled "perf" image.

As I haven't any GUI/Display, so I should need to enable the USB debugging from AOSP source code only.

Please let me know.

Regards,
Jaymin

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="sgLJhQpkBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">android-...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="sgLJhQpkBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">android-...@googlegroups.com.
Visit this group at <a href="https://groups.google.com/group/android-platform" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/android-platform&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/android-platform&#39;;return true;">https://groups.google.com/group/android-platform.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/android-platform/30c109d4-d160-4cec-8026-5b5f50ce08c0%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/6772cef2-6973-464f-85ac-7ee63b60e409%40googlegroups.com.