OTG always on - OnePlus 8 Questions & Answers

I don't understand the reason, but the OTG function is always enabled even if the OTG-storage system is disabled. I need to disable OTG because I have a device connected by usb and I don't want power to reach it.
The comands "setprop persist.sys.oem.otg_support true/false" don't work. I need to cut the usb power somehow.

nothing?

use sq database editor root or not it will let you add settings command should be settings put global (secure)

ecompton59 said:
use sq database editor root or not it will let you add settings command should be settings put global (secure)
Click to expand...
Click to collapse
What is sq database editor?
Regardless, the OTG storage function in the system settings does not work. Whether active or not, usb is always working.

Related

Considering Android 6.0 and MTP / Desktop PC File Manager

Hey,
I upgraded to 6.0 and found it very frustrating how Google handled the MTP and Desktop File Manager with the new OS.
Every time I hook up the phone to my PC or Laptop, I have to manually select MTP to get access to the Nexus 5's internal SD card, which I didn't have to do with KitKat or Lollipop.
This is so annoying....and yes, I set MTP in the Developers Options, but that didn't help.
Also, tons of folders simply won't show in the Windows File Explorer, like Titanium Backup, so I have to create a dummy folder manually, copy my back upped files in there and then move those files via ES File Explorer App to the actual Titanium Backup folder.
Same goes with almost everything I want to copy to the SD card. With Lollipop it was just copy and paste and you were good to go, in Marshmallow I constantly have to create dummy folders and then move the stuff to the directory I want it to be with ES File Explorer.
Is this done by purpose from Google or am I just doing something wrong??
I hope somebody knows the answer.
Cheers
same issue...
I noticed that too. my file explorer dont show any files (mixplorer )
Anyone?
I bet somebody is doing an Xposed module for setting MTP to default, yet the problem with the not properly working file explorer is bugging me. I don't want to spend 5 minutes for simply moving a file if copying it fails.
And since I am not at home alot, ONLY using a WiFi Transfer app is not an option
I would stop using MTP to transfer files all together. I use FTPserver and Filezilla and transfer files over WiFi. It's faster and I don't have to plug my phone in.
EDIT: I just read you said a WiFi transfer app is not an option. Sorry
jsgraphicart said:
I would stop using MTP to transfer files all together. I use FTPserver and Filezilla and transfer files over WiFi. It's faster and I don't have to plug my phone in.
EDIT: I just read you said a WiFi transfer app is not an option. Sorry
Click to expand...
Click to collapse
Yea no problem. I already have two Wifi transfer apps which work pretty fine, yet since I travel sometimes at work (military) I don't have Wifi all the time or it isn't that easy to connect everything i.e. when I am in an hotel.
Tbh, I didn't try if all the folders show up in one of those wifi file explorers. Via USB MTP a lot of folders don't show up which is impossible to work with because I get constant error messages like "that folder already excists" or the transfer fails.
sutobe said:
Yea no problem. I already have two Wifi transfer apps which work pretty fine, yet since I travel sometimes at work (military) I don't have Wifi all the time or it isn't that easy to connect everything i.e. when I am in an hotel.
Click to expand...
Click to collapse
You can maybe use the WiFi hotspot (if you have it), connect your laptop and transfer over your hotspot connection. I've done that on the Mac I use at work before.
I have the same problem with MTP.
On mac I found a solution (kind of). You have to go to "Developer options" -> "Select USB Configuration" -> switch from "MTP" to something else (e.g. "Charging only") and then switch back to "MTP". It will open Android File Transfer and it will work until you disconnect usb cable. After that you have to repeat that process
zokipirlo said:
On mac I found a solution (kind of). You have to go to "Developer options" -> "Select USB Configuration" -> switch from "MTP" to something else (e.g. "Charging only") and then switch back to "MTP". It will open Android File Transfer and it will work until you disconnect usb cable. After that you have to repeat that process
Click to expand...
Click to collapse
Thanks, I mentioned it in a shorter form in my initial post. This and the not properly working file transfer from Desktop to phone AND the not showing folders on the SD card are the reason I won't upgrad to Marshmallow for now.
sutobe said:
Thanks, I mentioned it in a shorter form in my initial post. This and the not properly working file transfer from Desktop to phone AND the not showing folders on the SD card are the reason I won't upgrad to Marshmallow for now.
Click to expand...
Click to collapse
I found a shortcut ... you can switch to mtp from notification center. I think that's a feature Because every time you put usb cable in phone, Android File Transfer won't start and jump on the middle of the screen .
Besides that, phone works much better now. At least my phone. Battery efficiency is much much better. From half a day to day and a half.
zokipirlo said:
I found a shortcut ... you can switch to mtp from notification center. I think that's a feature Because every time you put usb cable in phone, Android File Transfer won't start and jump on the middle of the screen .
Besides that, phone works much better now. At least my phone. Battery efficiency is much much better. From half a day to day and a half.
Click to expand...
Click to collapse
I know that, I still think this is pretty annoying as hell because you have to do it every time, the settings won't stick. Also no idea why they had to move USB Settings to the developers menu.
Too complicated and uncomfortable to use.
There is still the fear of the not working Files transfer from windows to the SD card which keeps me from upgrading.
I hope this gets fixed...or anyone makes an Xposed module (when Xposed is working), I don't care then.
sutobe said:
Anyone?
I bet somebody is doing an Xposed module for setting MTP to default, yet the problem with the not properly working file explorer is bugging me. I don't want to spend 5 minutes for simply moving a file if copying it fails.
And since I am not at home alot, ONLY using a WiFi Transfer app is not an option
Click to expand...
Click to collapse
But XPosed doesn't work on Android M, or am I wrong?
Usb Mode: Set Default to Mtp
sutobe said:
Hey,
I upgraded to 6.0 and found it very frustrating how Google handled the MTP and Desktop File Manager with the new OS.
Every time I hook up the phone to my PC or Laptop, I have to manually select MTP to get access to the Nexus 5's internal SD card, which I didn't have to do with KitKat or Lollipop.
This is so annoying....and yes, I set MTP in the Developers Options, but that didn't help.
Also, tons of folders simply won't show in the Windows File Explorer, like Titanium Backup, so I have to create a dummy folder manually, copy my back upped files in there and then move those files via ES File Explorer App to the actual Titanium Backup folder.
Same goes with almost everything I want to copy to the SD card. With Lollipop it was just copy and paste and you were good to go, in Marshmallow I constantly have to create dummy folders and then move the stuff to the directory I want it to be with ES File Explorer.
Is this done by purpose from Google or am I just doing something wrong??
I hope somebody knows the answer.
Cheers
Click to expand...
Click to collapse
USB Mode: Set Default to MTP (file transfer) Marshmallow/6.0
====================================================================
This worked on my Nexus 6 with 6.0
Default is set to Charge only mode, You can enable developer options and enable MTP feature by following below steps
1. Settings -> About phone -> Touch 5 times on Build Number to enable Developer options
2. Settings -> Developer Options -> Select USB Configuration -> MTP
lfg7000 said:
USB Mode: Set Default to MTP (file transfer) Marshmallow/6.0
====================================================================
This worked on my Nexus 6 with 6.0
Default is set to Charge only mode, You can enable developer options and enable MTP feature by following below steps
1. Settings -> About phone -> Touch 5 times on Build Number to enable Developer options
2. Settings -> Developer Options -> Select USB Configuration -> MTP
Click to expand...
Click to collapse
I already mentioned this a couple of times that this doesn't work.
The setting doesn't stick.
Did you copy that from here? --> http://androiding.how/set-mtp-default-usb-connection-marshmallow/
Also, is you file transfer via MTP working properly, can you copy folders with integrated subfolders? Do you see EVERY folder you can see in an File Explorer app also on your Windows PC Explorer?
I've also encountered something like this when i started out with MRA56K.
adb server would not see the device.
unplugged usb cable, went to dev options, selected MTP ("charging" was selected), plugged USB back in, been working ever since.
I have the same problem on my Mac too. I have to manually select 'MTP' from the notification shade despite setting it to MTP in developer options
lfg7000 said:
USB Mode: Set Default to MTP (file transfer) Marshmallow/6.0
====================================================================
This worked on my Nexus 6 with 6.0
Default is set to Charge only mode, You can enable developer options and enable MTP feature by following below steps
1. Settings -> About phone -> Touch 5 times on Build Number to enable Developer options
2. Settings -> Developer Options -> Select USB Configuration -> MTP
Click to expand...
Click to collapse
matze0611 said:
But XPosed doesn't work on Android M, or am I wrong?
Click to expand...
Click to collapse
zokipirlo said:
I found a shortcut ... you can switch to mtp from notification center. I think that's a feature Because every time you put usb cable in phone, Android File Transfer won't start and jump on the middle of the screen .
Besides that, phone works much better now. At least my phone. Battery efficiency is much much better. From half a day to day and a half.
Click to expand...
Click to collapse
beekay201 said:
I've also encountered something like this when i started out with MRA56K.
adb server would not see the device.
unplugged usb cable, went to dev options, selected MTP ("charging" was selected), plugged USB back in, been working ever since.
Click to expand...
Click to collapse
sutobe said:
I already mentioned this a couple of times that this doesn't work.
The setting doesn't stick.
Did you copy that from here? --> http://androiding.how/set-mtp-default-usb-connection-marshmallow/
Also, is you file transfer via MTP working properly, can you copy folders with integrated subfolders? Do you see EVERY folder you can see in an File Explorer app also on your Windows PC Explorer?
Click to expand...
Click to collapse
vaibhav.ravi said:
I have the same problem on my Mac too. I have to manually select 'MTP' from the notification shade despite setting it to MTP in developer options
Click to expand...
Click to collapse
This xposed app will do the trick, using this app user can set MTP as Default USB Connection on Marshmallow
http://forum.xda-developers.com/xposed/modules/mod-usb-marshmallow-1-0-t3272072
Why is nobody giving this guy some props? This is awesome news!

Can't Find PTP in usb settings

So on my Galaxy A8 I have developer options unlocked with USB debugging on and when I plug in USB to my computer it asks me if i want to allow access to phone data. Deny obviously makes it so its only charging but accept and I can access files (all well and good so far). However when I go to Tap for other USB options it has options for Use USB for: Transferring files, USB tethering, MIDI, Transferring images, and charging phone only... however I can't actually change any of these options.... So why can't I change the options, and is Transferring images ptp?
Hi I just did tried it in USB Default Settings and it works for me
I am able to chnage any kind of USB mode
try it with the phone unpluged from the computer maybe !
Pro Cal said:
Hi I just did tried it in USB Default Settings and it works for me
I am able to chnage any kind of USB mode
try it with the phone unpluged from the computer maybe !
Click to expand...
Click to collapse
Yeah I'm in usb settings but the actual settings are locked out from changing... does anyone know why this is?
A8 USB
I have this problem too. I can 't choose for other usb options. I haven't enable USB debugging.
Hi, if you enable developer options then you can choose under developer options - default USB configuration - which option you want.
Phil
i tried all of those options and none of them work, is there any other ideas?

Urgent: need backup of A8 2018 with broken/black screen for upcoming court case.

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

Samsung S7 Edge ADB Commands

Hi,
Basically I have a Samsung S7 Edge (SM-G935F) which the screen is completely smashed on (no display no touch). When I connect it to the PC it detects the phone but it doesn't show the folders inside (can only assume its got a prompt to accept PC or USB debugging isn't enabled).
After a lot of testing with OTG cables keyboards/mouse etc the furthest I got was putting the phone into Recovery Mode (PWR, VOL UP & HOME) then selected APPLY UPDATE ADB.
When I run the ADB in Powershell and run "adb devices" it finds the device ID and says "sideload".
Is there any command I can run to pull the files off my internal DCIM folder (thats all I really need)?
I did read up the only way this could be possible is to install a custom rom (TWP with ODIN?) and then pull files off.
Is this possible and would installing a custom rom delete my internal files as that would render this pointless.
Sorry im new to a lot of this so all my knowledge is just what ive read recently.
Thanks
1. To pull user data USB-debugging must got enabled. May be this method works for you to enable it:
2. To flash TWRP it's required device's bootloader got unlocked - what requires OEM unlock must got enabled . Note: Unlocking bootloader erases all user data.
jwoegerbauer said:
1. To pull user data USB-debugging must got enabled. May be this method works for you to enable it:
2. Once you unlock device's bootloader - what is required to flash TWRP - all user data get lost.
Click to expand...
Click to collapse
Thanks for the reply,
Ok so my only option is the "blind" method.
I have the app installed via Google Play Store on my PC to the device however when I hold down the home button to ask google I hear no reply from her, is there any hotkey to use for this device to ask google or any alternative methods to open this app?
I can see the S7 Edge is connected to my WIFI as it shows on the Sky Hub and IPScanner.
Also is there a way to tell what android interface version I have so I can follow someone on Youtube going into Settings or Apps etc to open the app.
I feel like I am so close to getting these photos off the phone but its just a blind guess at the moment.
I managed to get a hold of a friends S7 Edge, using this I mapped out some keyboard functions to turn on developers options then usb debuggings.
What I have noticed is now when I connect the phone via USB to the PC and run ADB DEVICES it shows up the ID then unauthorised as the status, so I can only assume this means I have USB DEBUGGING ENABLED.
Is this correct?
If so why when I open the Samsung Galaxy in Windows does it still not show the folders, is there another setting I need to turn on/off?
Rowan88 said:
I managed to get a hold of a friends S7 Edge, using this I mapped out some keyboard functions to turn on developers options then usb debuggings.
What I have noticed is now when I connect the phone via USB to the PC and run ADB DEVICES it shows up the ID then unauthorised as the status, so I can only assume this means I have USB DEBUGGING ENABLED.
Is this correct?
If so why when I open the Samsung Galaxy in Windows does it still not show the folders, is there another setting I need to turn on/off?
Click to expand...
Click to collapse
you are confuse you want to view phone content and sd card? you need to change from charging to MTP connection from drop-down notification bar of your device
ineedroot69 said:
you are confuse you want to view phone content and sd card? you need to change from charging to MTP connection from drop-down notification bar of your device
Click to expand...
Click to collapse
I want the internal storage contents of DCIM on the phone.
I followed the steps on my "donor" phone to go into Developer Options > USB Configuration > MTP but all that happens is the phone detects on Windows but wont show me the contents of it.
I also tried changing to PTP but same issue.
I know there is a pop-up that shows on the phone asking to ALLOW THE PC TO ACCESS FILES but I cannot have the USB DATA CABLE and OTG/KEYBOARD plugged in at the same time (and I also tried two OTG adapters both came up MOISTURE DETECTED when using).
So unless anyone knows of a OTG SPLITTER that 100% works with S7 EDGE then I need to find a way to either bypass the ALLOW MESSAGE or manually add my PC to its allow list.
Rowan88 said:
I want the internal storage contents of DCIM on the phone.
I followed the steps on my "donor" phone to go into Developer Options > USB Configuration > MTP but all that happens is the phone detects on Windows but wont show me the contents of it.
I also tried changing to PTP but same issue.
I know there is a pop-up that shows on the phone asking to ALLOW THE PC TO ACCESS FILES but I cannot have the USB DATA CABLE and OTG/KEYBOARD plugged in at the same time (and I also tried two OTG adapters both came up MOISTURE DETECTED when using).
So unless anyone knows of a OTG SPLITTER that 100% works with S7 EDGE then I need to find a way to either bypass the ALLOW MESSAGE or manually add my PC to its allow list.
Click to expand...
Click to collapse
Followed steps again and changed to PTP and FILES ARE NOW SHOWING!!
Happy man!
Thanks for all the help
Rowan88 said:
I want the internal storage contents of DCIM on the phone.
I followed the steps on my "donor" phone to go into Developer Options > USB Configuration > MTP but all that happens is the phone detects on Windows but wont show me the contents of it.
I also tried changing to PTP but same issue.
I know there is a pop-up that shows on the phone asking to ALLOW THE PC TO ACCESS FILES but I cannot have the USB DATA CABLE and OTG/KEYBOARD plugged in at the same time (and I also tried two OTG adapters both came up MOISTURE DETECTED when using).
So unless anyone knows of a OTG SPLITTER that 100% works with S7 EDGE then I need to find a way to either bypass the ALLOW MESSAGE or manually add my PC to its allow list.
Click to expand...
Click to collapse
fully charge your phone and hopefully the heat generated from charging process remove the moisture detected warning or you can also use hair blower to heat your charging port area
also don't put your device on microwave oven unless you want to see some fireworks

(HELP!!!) Turn on usb debugging OR enable transfer file via usb blindly with otg keyboard with a broken screen

I have a poco x2 with screen completely broken and without any display. I just want to use scrcpy to backup the data on this phone, hence I need to tunr on usb debugging blindly via keyboard
roudra said:
I have a poco x2 with screen completely broken and without any display. I just want to use scrcpy to backup the data on this phone, hence I need to tunr on usb debugging blindly via keyboard
Click to expand...
Click to collapse
use this https://github.com/Genymobile/scrcpy
jons99 said:
use this https://github.com/Genymobile/scrcpy
Click to expand...
Click to collapse
I am trying to use this only but scrcpy requires to enable usb debugging which is currently disabled. I am looking to for ways to enable it blindly via keyboard navigation.
roudra said:
I am trying to use this only but scrcpy requires to enable usb debugging which is currently disabled. I am looking to for ways to enable it blindly via keyboard navigation.
Click to expand...
Click to collapse
ha yeah sorry I don't know how to enable it blindly but if you have twrp you can save your data
Try connecting hdmi to ur phone to an external monitor, idk whether it will share screen directly or there's any setting. But u can give a try

Categories

Resources