Here I'm introducing a small library project that allows developers of root apps to toggle USB debug settings easily. Enabling/disabling the USB debug settings properly is only possible for system apps, and since not everyone wants to have his app installed in the system partition it's probably more reasonable if you just can call on another app to do the job...
What? Why?
Usually you have the USB debug settings enabled when you are developing on your phone, or otherwise love to play around with Custom ROMs, and well... use other root apps that are only working if this setting is enabled.
The USB debug settings are rather dangerous when enabled as everyone can access your phone no matter if you have locked it or not. That's why I have developed ADB Toggle.
In the free version you can toggle the settings from a home screen widget. But third party apps are also able to use ADB Toggle and enable/disable as they need.
In the paid version there's also an automatic mode that enables USB debug settings if you have your phone unlocked and connect it to your PC, and turns it off when you leave.
Check out ADB Toggle from Google Play:
https://play.google.com/store/apps/details?id=com.ramdroid.adbtoggle
The developer library
I'm already using the library in my other project App Quarantine. However I'd love to see it implemented in more root apps!
Here's the Github page for full details:
https://github.com/ramdroid/AdbToggleAccessLib
You can place a widget of 'MTP enabler' onto the Home Screen and tap it after you connect the USB-cable to PC. So can initiate a refresh on the PC-File-Transfer-Window without disconnect, reconnect USB-cable.
The MTP mode will be enable automatically by this actions...
And you can place a shortcut to 'MTP enabler's Action onto the Home Screen for quick Access now.
(Widget or shortcut - your decision)
The widget changes it backgroundcolor to orange, if usb-cable is connected.
MTP enabler doesn't touch any system-file (no init component is touched or needed)! - But it needs a rooted device!
And Google's security intent by User-Action for USB-connection remains preserved!
In the App-window (MTP enabler setup ) you can checkmark one option 'ask me for action', if you want to be able to select the connection type manually.
If you leave the checkbox unchecked the app will (try) to do the automatically taping MTP-option.
Note: If have enabled MTP enabler, it will start automatically after every reboot!
NEW(!):
You can activate notifications(with or without sound, with or without Android Wear notification) optinal.
See builtin interactive tutorial(showcase)
MTP enabler should work now stable on all Devices / all Marshmallow ROMs!
#Root is required!
Downloads Link:good:
https://uploadex.com/gvoexbhh779w
Credits>http://forum.xda-developers.com/member.php?u=2981094
I'm helping a friend who needs backup of her broken phone for an upcoming court case.
I need to extract all photos (camera, snapchat etc) and text messages (sms/mms).
The phone seems to be working other than the screen and touch controls.
Replacing/repairing the screen isn't an option as we both have minimal funds, and my friend has a new phone already)
i have "access" to the phone, but neither USB Debughing nor MTP is enabled so i cannot access any files.
I'm able to unlock it with a keyboard connected (i hear the little unlock click after entering the pin, and the "turn off screen" click when i press the power button.) But i have to navigate blindly, and any guide i find seems arbitrary how to get to settings, it says to press win+n (same as pulling down the quick settings menu from home) and press tab an arbitrary number of times to get to the settings gear in the corner. i tried doing this on my own working note 10 plus with the external keyboard, but i see it scrolls through every notification, so unless you know the number of notifications, hitting the gear is just pure luck.
I have also tried hooking up a usb-c to hdmi dongle (which works and starts dex on my n10+) but it says no signal on the A80, so external monitor seems out of the question.
Is there a consistent way to enter settings, or any way to enable the following settings:
* enable voice assistant (accessibility settings so i can hear where i am and navigate using voice/sound)
* enable USB MTP (or similar so i atleast can access files from a computer)
* enable USB debugging (to use ADB to screenmirror and/or etc)
* alternatively clear notifications so entering settings should become consistant with number of keypresses
I have tried some apps like dr fone but it doesnt support backup from this model, and any other settings wants to wipe the phone.
I have tried holding both volume buttons to enable google voice assist, but also unsure if this ever worked
The phone is not on wifi and i am not 100% sure if wifi is enabled at the moment, nor if it has the current wifi password my friend uses, but i can try do do things from there if internet access will help.
I dont think google now nor bixby (if this phone has that) is enabled as i dont get any reply or voice ding while pressing the win key (home button normally on working android)
I think i can enter recovery and download modes, i got COM5 on odin, but I'm unsure if i ever get into recovery menu.. but even then, is there any custom recovery firmware that will enable usb mtp access at all for this device?
Also, I'm not able to have a computer connected at the same time as a keyboard as I'm using a wired keyboard with OTG adapter.
Tl;dr:
Have:
* A80 with broken unresponsive screen.
* Have access blindly through otg keyboard
Need:
* Need to enable mtp and/or usb debug (alt. Voice assist)
* Need consistent way to access settings
Both MUST be done using only wired otg keyboard.
Tried:
* Hdmi out (no signal)
* computer recovery software (no dice)
* having computer and keyboard connected simultaneously (keyboard works, pc doesnt recognize, could be dongle)
Hope someone can help me (us) fast.
enter adb
almeria53 said:
enter adb
Click to expand...
Click to collapse
please read the post.
Changis said:
Tl;dr:
Have:
* A80 with broken unresponsive screen.
* Have access blindly through otg keyboard
Need:
* Need to enable mtp and/or usb debug (alt. Voice assist)
* Need consistent way to access settings
Both MUST be done using only wired otg keyboard.
Tried:
* Hdmi out (no signal)
* computer recovery software (no dice)
* having computer and keyboard connected simultaneously (keyboard works, pc doesnt recognize, could be dongle)
Hope someone can help me (us) fast.
Click to expand...
Click to collapse
have you been able to verify that the MTP device actually works with other phones?
those things can be picky
youdoofus said:
have you been able to verify that the MTP device actually works with other phones?
those things can be picky
Click to expand...
Click to collapse
USB MTP is just file tranfer?
F.ex. if i use smartswitch on pc, it first tells me to unlock the phone, if i unlock the phone with the otg keyboard and reconnect it it says i cannot tranfer files because MTP is not enabled in settings.
Changis said:
USB MTP is just file tranfer?
F.ex. if i use smartswitch on pc, it first tells me to unlock the phone, if i unlock the phone with the otg keyboard and reconnect it it says i cannot tranfer files because MTP is not enabled in settings.
Click to expand...
Click to collapse
sorry man, i meant MHL adapter.
As far as i found out, A8 does not support MHL/HDMI out..
guess ill spend the weekend to try to get voice assist working by blind trail and error :/
If anyone could provide screenshots of the settings menu and/or recovery menu (and if its possible to enter without touching the screen, and if so how) that would be greatly appreciated.
The phone should be mostly completely stock set up, but home icons might have moved and menu icons might not be in the same place, but i think the pull down menu should be the same as any stock setup, so a screenshot of that would be nice too
Hi
As far as Android goes, by unlocking the phone and plugging it into a computer then you should be able to view the files on the phone from the PC like any USB drive. What you can also do is use Samsung Smart Switch and do a backup of the phone on a PC as this will be able to pull all text messages, photos, etc into a backup folder. Then you can restore any part of that backup on another Samsung phone, including messages.
There may be a few things that will not transfer over. As far as viewing the photos and other files, you can navigate to the backup folder on the PC and check everything there. This is all provided that the phone actually works and is unlocked.
Havok_2k said:
Hi
As far as Android goes, by unlocking the phone and plugging it into a computer then you should be able to view the files on the phone from the PC like any USB drive. What you can also do is use Samsung Smart Switch and do a backup of the phone on a PC as this will be able to pull all text messages, photos, etc into a backup folder. Then you can restore any part of that backup on another Samsung phone, including messages.
There may be a few things that will not transfer over. As far as viewing the photos and other files, you can navigate to the backup folder on the PC and check everything there. This is all provided that the phone actually works and is unlocked.
Click to expand...
Click to collapse
As stated in my original post, usb-MTP (file transfer) is not enabled by default, and my friend never connected the phone to a computer, so i have to enable it to be able to access anything.
The phone connects and seems to work fine except the display, smart switch says to enable mtp pn the phone to transfer files after i unlock it, so my problem is activating talkback so i have aural navigation help so i can turn on usb/mtp for file transfer(and hopefully adb) or to turn on usb directly, but i think talckback is the highest priority as it will help me navigate the phone and be sure of where i am, an accidental keypress on can ruin a long sequence and i would have to start again from scratch as i cannot know if im in the same location.
Hi.
Any update on this? I have exactly the same problem and no solution so far...
Thanks
The amazon fire devices are a little weird. I currently have them integrated with home assistant through ADB. The problem I am running into is that if the ADB connection is lost from my computer to the firetv, then either the ADB debugging needs to be toggled in developer options, or I can restart the firetv itself. If the ADB connection is lost then some of my automations and controls do not work on home assistant.
Couple things:
I am willing to root the device
If I cannot toggle adb debugging, I could just reboot the device. I have considered using a smart plug to do this, but I would rather let the fire handle it.
Would tasker or termux be an option? I've considered moving ADB from the computer server to termux with https://github.com/MasterDevX/Termux-ADB, but I am not sure that would be more reliable.
Basically I want to toggle ADB debugging or a reboot on a set schedule (eg. every night @ 4am).
Hi Moosefist
Parhaps this might help you toggling the ADB based on a schedule:
App: Automate playstore link
The app Automate let you create a schema flow where you can specify what your device should do. For example, turn off bluetooth when connected to wifi network XYZ if time is greater than 10pm.
I think even that it doesn't require root, but I am not sure since mine it rooted anyway...
Just as a FYI, ive been playing with GMS + Icebox to play around and see if i can get notifications working.
Whilst i have had limited sucess with notifications - even though the push notification tester says all is well, what i have found is that the app Tasker allows you to issue adb commands over wifi.
This means that if you set up ADB via a pc initially to listen on tcp port 5555 (or whatever provided you update tasker adb wifi settings) you can start icebox on the local phone while you are on the go without having to connect to your pc.
This means that you can start and stop gsf on the go without having to be tied to a pc.
It adb does need restarting every device reboot however, so you will need your laptop for that, but if like me you rarely restart your handset, this is loads easier than having to connec to the laptop to update apps via the app store, if you are so inclined.
Let me know what you think!