CMD command line for OTG in 3t - OnePlus 3T Questions & Answers

is there any cmd command line to enable otg in op3t? i have usb debugging enabled in my 3t. i just need a command line to enable the otg. My phone screen is broken and i want to connect a mouse to my phone via otg cable but the phone is not showing the mouse pointer. cause i didn't enable otg in settings>storage>enable otg. So I was looking for an adb command line to enable it.

Try
Code:
setprop persist.sys.oem.otg_support true

przemcio510 said:
Try
Code:
setprop persist.sys.oem.otg_support true
Click to expand...
Click to collapse
first i have to open cmd in the adb then should i directly input that command line and press enter?

fahim ibn awal said:
first i have to open cmd in the adb then should i directly input that command line and press enter?
Click to expand...
Click to collapse
Just do it while in adb shell, yes

Related

G1 (Modded RC30) will not telnet to PC? Help

Now the thing is when I am at the home screen on my G1 i push "Enter" on the keyboard and then type "telnetd" and then push enter again it doesnt do anything. When I open up telnet client on my PC it wont connect with wifi on.
So I go to Terminal Emulator on G1 and plug in"
cd system
cd bin
telnetd
And then try and connect to telnet on PC and nothing happens.
So I then go to Telnet client on my G1 and go to connect to "localhost:23" and it says "Error while connecting to server: localhost/127.0.0.1:23 - Connection refused" the thing is that my local host for my wifi is not 127.0.0.1:23
And when I "netstat" from inside Terminal Emulator there is no address with port "23"
Any help would be greatly appreciated.
Download the app called Terminal Emulator from the market and use that instead of pterminal.
use the "su" command before trying to start telnetd.
Also make sure your wifi is up before your start telned.
mrboyd said:
Download the app called Terminal Emulator from the market and use that instead of pterminal.
use the "su" command before trying to start telnetd.
Also make sure your wifi is up before your start telned.
Click to expand...
Click to collapse
Thats what I have been using is Terminal Emulator but I dont think I can install Debian through Terminal Emulator. I would rather do it through the PC anyways.
I geta syntax error when using "su" in Term. Emu. because I believe I have installed the "su" mod to always allow.
adb shell
Presuming you're already running the proper modded RC30, you should be able to run 'adb shell' with USB debugging enabled on the phone and it connected to your machine. This should just drop you to a root shell.
SplasPood said:
Presuming you're already running the proper modded RC30, you should be able to run 'adb shell' with USB debugging enabled on the phone and it connected to your machine. This should just drop you to a root shell.
Click to expand...
Click to collapse
adb being a utility included in the android sdk (in tools/)
SplasPood said:
Presuming you're already running the proper modded RC30, you should be able to run 'adb shell' with USB debugging enabled on the phone and it connected to your machine. This should just drop you to a root shell.
Click to expand...
Click to collapse
SplasPood said:
adb being a utility included in the android sdk (in tools/)
Click to expand...
Click to collapse
I got all that but how do I actually use it (adb)? Every time I click on it a command window pops up and then goes away.
Ok I got adb shell to work now thanks guys

USB UMS on JB ROMs

Hi,
Perhaps this subject was already discussed before but I can't find the right info:
Does anyone know how to change the USB mode to UMS instead of MTP on Jelly bean?
Why this mode is not enabled by default?
Thanks.
Bump!
i re-posted this workaround about 3 times in last 2 days
http://forum.xda-developers.com/showpost.php?p=36987841&postcount=335
Thanks, Sorry to be a noob but I was looking for this info but unable to find it.
You mean I have to type this line within terminal to set my usb as UMS:
Code:
su
setprop persist.sys.usb.config mass_storage,adb
And rebooting afterwards?
I never used terminal in android.
yes... you just open the app "Terminal Emulator" (if you don't have it, install it from market - but afaik - it comes with cm10/10.1 roms)
just type "su" (to enable SuperUser permissions), click enter for the next line - type the next line from my post and hit enter (watch for spaces and underscores)
exit terminal emulator and reboot...
now when you connect your phone via usb cable you should automatically have an option to "turn on usb storage"...
Many thanks for the tip.
chp2 said:
Many thanks for the tip.
Click to expand...
Click to collapse
you're welcome...

CWM recovery

what I have to do on windows 7 to make my adb and fastboot command work because when I open cmd and type adb reboot bootloader while my phone is connected into usb debugging mod, cmd say that adb is not an intern command. what to do I want to flash cwm recovery.
LeGenDz R3DeaDz said:
what I have to do on windows 7 to make my adb and fastboot command work because when I open cmd and type adb reboot bootloader while my phone is connected into usb debugging mod, cmd say that adb is not an intern command. what to do I want to flash cwm recovery.
Click to expand...
Click to collapse
put adb in windows folder or navigate to the folder which has adb. after that give the command.
hit thanks if I helped.

Stock ROM install without ADB commands

Hello all
Please is it possible to install stock ROM or stock OTA update without ADB commands?
Some other way for install?
Because my watch blocking ADB authorization!!!
Simply not show confirmation ADB dialog window
I tryed everything around ADB and nothing
I´m on stock recovery for info...
Thank you very much for help :good:
Have a nice day for all
Somebody help me?
Thank you very much
https://forum.xda-developers.com/zenwatch-3/how-to/guide-how-to-revert-to-android-wear-1-5-t3635196
No adb commands required. To enter fastboot press and hold Upper button+ Center button on turned off watch.
Here you can find more useful info https://forum.xda-developers.com/zenwatch-3/how-to/guide-reboot-recovery-fastboot-unlock-t3546743
djdarkrider said:
https://forum.xda-developers.com/zenwatch-3/how-to/guide-how-to-revert-to-android-wear-1-5-t3635196
No adb commands required. To enter fastboot press and hold Upper button+ Center button on turned off watch.
Here you can find more useful info https://forum.xda-developers.com/zenwatch-3/how-to/guide-reboot-recovery-fastboot-unlock-t3546743
Click to expand...
Click to collapse
Thank you for reply but in both links are adb commands...
those are fastboot commands. You don't need adb popup on watch to use them.
djdarkrider said:
those are fastboot commands. You don't need adb popup on watch to use them.
Click to expand...
Click to collapse
I can't use adb commands because my device is unauthorized for adb commands
I can't authorize my watch because not showing pop up window for allow adb.
Note: all my other Android devices works fine for adb commands and authorization...
This mean that problem is in the watch...
Hoffmanns said:
I can't use adb commands because my device is unauthorized for adb commands
I can't authorize my watch because not showing pop up window for allow adb.
Note: all my other Android devices works fine for adb commands and authorization...
This mean that problem is in the watch...
Click to expand...
Click to collapse
I get it.
Those commands are typed in adb command line, when your watch are in FASTBOOT mode. There will be no authorization for fastboot mode. Turn your watch off, then press and hold power+upper buttons, until you are in fastboot mode(it will be written on watch screen). Then connect watch to pc and type "fastboot devices" in adb window.
Just try it. NO AUTHORIZATION REQUIRED
djdarkrider said:
I get it.
Those commands are typed in adb command line, when your watch are in FASTBOOT mode. There will be no authorization for fastboot mode. Turn your watch off, then press and hold power+upper buttons, until you are in fastboot mode(it will be written on watch screen). Then connect watch to pc and type "fastboot devices" in adb window.
Just try it. NO AUTHORIZATION REQUIRED
Click to expand...
Click to collapse
God bless you :laugh::good:
It's working :laugh:
I tryed many many things but not this
Thank you very much for your help and time :good::good::good:

Howv to put the phone on fastboot mode? Any screenshots please?

Someone please.help...
tott2003 said:
Someone please.help...
Click to expand...
Click to collapse
1. Connect the USB cable from the side of the phone and make sure that developer mode and USB debugging is activated.
2. Connect your phone to the PC, make sure it's connected in data transfer mode.
3. Go to adb.exe and fastboot.exe folder, hold shift and right click to open CMD or PowerShell from there. If you open PowerShell use .\ before the command, if you are using CMD just type the command without it.
4. Type in CMD: "adb devices" without parenthesis, you should see your device serial number.
5. Type then in CMD: "adb reboot bootloader" without parenthesis, you will go to fastboot mode or the "Green Start Screen" after the phone boots.
6. Type "fastboot devices" you should see you device serial number. which means you can run fastboot commands without any issues.
P.S I am using PowerShell instead of CMD, so the pictures show the commands with .\ in the beginning.
Rashad83 said:
1. Connect the USB cable from the side of the phone and make sure that developer mode and USB debugging is activated.
2. Connect your phone to the PC, make sure it's connected in data transfer mode.
3. Go to adb.exe and fastboot.exe folder, hold shift and right click to open CMD or PowerShell from there. If you open PowerShell use . before the command, if you are using CMD just type the command without it.
4. Type in CMD: "adb devices" without parenthesis, you should see your device serial number.
5. Type then in CMD: "adb reboot bootloader" without parenthesis, you will go to fastboot mode or the "Green Start Screen" after the phone boots.
6. Type "fastboot devices" you should see you device serial number. which means you can run fastboot commands without any issues.
P.S I am using PowerShell instead of CMD, so the pictures show the commands with . in the beginning.
Click to expand...
Click to collapse
Cheers mate ?
Rashad83 said:
1. Connect the USB cable from the side of the phone and make sure that developer mode and USB debugging is activated.
2. Connect your phone to the PC, make sure it's connected in data transfer mode.
3. Go to adb.exe and fastboot.exe folder, hold shift and right click to open CMD or PowerShell from there. If you open PowerShell use .\ before the command, if you are using CMD just type the command without it.
4. Type in CMD: "adb devices" without parenthesis, you should see your device serial number.
5. Type then in CMD: "adb reboot bootloader" without parenthesis, you will go to fastboot mode or the "Green Start Screen" after the phone boots.
6. Type "fastboot devices" you should see you device serial number. which means you can run fastboot commands without any issues.
P.S I am using PowerShell instead of CMD, so the pictures show the commands with .\ in the beginning.
Click to expand...
Click to collapse
HOLY. ****ING. ****.
I have spent the past two days trying to figure this out. Not *one* other person on the internet, so much as I have seen, has mentioned using the side port. Seriously, you just made my day. Thank you so much! :good:
Created a new topic, disregard

Categories

Resources