I'm wondering if there is a code to get usb debugging turned on through the dialler? likke when you type *#0*# into the dialler you get to function test but one to do usb debugging.
standingbird said:
I'm wondering if there is a code to get usb debugging turned on through the dialler? likke when you type *#0*# into the dialler you get to function test but one to do usb debugging.
Click to expand...
Click to collapse
Not to my knowledge, no.
However, you can easily turn it on from Development Options. Use this command to launch it from the terminal:
Code:
su
am start -n com.android.settings/.DevelopmentSettings
Thanks anyway but I know about that lol. Just was wondering if it was possible so could do it if Couldn't get past lock screen and needed to flash, root etc or adb
Related
Anyone knows any method to set USB host mode (OTG mode) when not having a ID/Sense pin on the cable?
Be it with some sort of "echo 1 > /sys/something" command
Or a ADB command
Or a ready made app?
Or anything?
I did find this app, which seems to do this, but it is just stuck on my tablet.
https://play.google.com/store/apps/details?id=org.psypeople.OTG_patch&hl=en
The reason for this request is that I cannot find any of those "magnet cables" that connect all 5 pins. Always only 4.
And I want my car-tablet to be connected with a magnet cable.
Many thanks
have same problem, is there any way activate USB HOST mode on android 7.1.1 if no SENSE/ID PIN but hardware/kernel support USB OTG?
cybermaus said:
Anyone knows any method to set USB host mode (OTG mode) when not having a ID/Sense pin on the cable?
Be it with some sort of "echo 1 > /sys/something" command
Or a ADB command
Or a ready made app?
Or anything?
I did find this app, which seems to do this, but it is just stuck on my tablet.
https://play.google.com/store/apps/details?id=org.psypeople.OTG_patch&hl=en
The reason for this request is that I cannot find any of those "magnet cables" that connect all 5 pins. Always only 4.
And I want my car-tablet to be connected with a magnet cable.
Many thanks
Click to expand...
Click to collapse
Bumerangas said:
have same problem, is there any way activate USB HOST mode on android 7.1.1 if no SENSE/ID PIN but hardware/kernel support USB OTG?
Click to expand...
Click to collapse
If the device does not have the hardware to support OTG, it won't work no matter what you try.
If it has the hardware but does not have the software, it will require building a new kernel with OTG support implemented in the kernel, or if the device is rooted, you can try something like the Stickmount app to force enable OTG support(the app still requires the device to have the hardware to support OTG, otherwise, it won't work).
Sent from my SM-S767VL using Tapatalk
Greetings.
I have a Samsung Galaxy Note 4 with a completely broken screen (no display, no touch response).
Android version is 4.2.2.
The phone is working, as pressing the power button lights up the bottom bar.
The phone is rooted, however, USB debugging is disabled. The phone is also pattern locked.
I am aiming to gain remote access to the phone through my PC, ideally mirroring the screen so I can manually backup everything from my phone. In the worst case, backup through ADB is also acceptable.
Initially, I attempted to mirror the screen using:
https://forum.xda-developers.com/showthread.php?t=2786395
However, it requires ADB, which in turn requires USB debugging to be enabled.
To enable USB debugging, I attempted to modify the build.prop through ADB shell in recovery mode:
https://forum.xda-developers.com/showthread.php?t=2335799
However, it is done so using custom recovery (TWRP) which I assume cannot be done in stock recovery (not confirmed, please respond if untrue).
I attempted to edit the build.prop manually:
https://forum.xda-developers.com/sprint-g4/themes-apps/tool-edit-build-prop-pc-t3312517
But It requires USB debugging to be enabled as well, and I assume it to be true for most such tools.
I also attempted to install a custom recovery (TWRP):
https://www.xda-developers.com/how-to-install-twrp/
However, out of the 3 installation methods listed, 2 require USB debugging and 1 requires application installation on the phone.
Using a USB OTG mouse to enable USB debugging would be difficult, since display is broken.
Since 4.2+ also shows a prompt to allow access to USB debugging to PCs, I assume I could use this:
https://forum.xda-developers.com/galaxy-s2/help/bypass-secure-usb-debugging-prompt-t2965462
However, I would need ADB first, which also comes back to USB debugging.
I would prefer not repairing the phone or getting a new screen, the phone is old, i'm trying to change phones.
Data in the phone must be preserved, as much as possible. I am willing to compromise, somewhat.
ADB seems powerful enough that I could achieve my goals if only I could access my phone through it.
Is it possible to enable USB debugging remotely through some other method to allow me to use ADB?
Is it possible to flash a custom rom with an edited build.prop without screen input and while preserving phone data?
Please suggest options.
I have problem while doing development an application. For this case i develop with android studio.
I need the option of usb debuggin is always on, just because i dont need to recongfigure of the network.
I need usb
And i always debug / compile with through wireless connection , usb just for trait the connecting.
For example
adb tcpip 5555
adb connect 192.168.43.1:5555
At this moment my device ( realme 5 pro ) has connect. Then i have doing something on coding after 10 minute , my device auto disconnected. This make me bad on development apps with this phone.
I NEED KNOW , HOW TO ALWAYS ON USB DEBUGGING WHAT EVER I DIDNT DEBUG/COMPILE ABOVE 10 MINUTE.
thanks in advance.
Copy file /system/build_default.prop and /system/build.prop to internal or external and edit, just add this on bottom line.
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
Click to expand...
Click to collapse
Better using twrp to replace thats file, path on /system-root/system/
How exactly do you enable this on the Note 20 Ultra or any android for that matter? I'm in developers area and I only see an option for USB debugging. I went ahead and attempted to enable it via windows powershell (Instructions from Google sources) but when I go to .\adb connect <IP address> 5555 like instructed it doesn't work. Maybe someone can provide me with assistance. Thanks
https://stackoverflow.com/questions/4893953/run-install-debug-android-applications-over-wi-fi
This is the instruction I'm following.
And I'm trying to grant macrodroid permissions
Nvm I was inputting it incorrectly. Was able to connect wirelessly
I have the PIN and Pattern, but can't use either without the screen. I was pretty sure that I enabled ADB on the phone, but typing ADB devices in terminal lists nothing.... Please help! Thanks all!
VikingHighKing said:
I have the PIN and Pattern, but can't use either without the screen. I was pretty sure that I enabled ADB on the phone, but typing ADB devices in terminal lists nothing.... Please help! Thanks all!
Click to expand...
Click to collapse
All I can say us check whether you installed the Samsung ADB driver so that your phone is recognised if you are sure you enabled USB Debugging. Other than that if touch isn't working and you can't use the phone I don't know what you can do.
Does it "bong" when you plug it in?
Use UsbView.exe to see if there is something there (it will show devices even if they don't have a driver).
https://www.ftdichip.com/Support/Utilities.htm#MicrosoftUSBView