Related
I'm in a recovery boot loop and need to be able to access adb from recovery. I'm running ubuntu and adb devices while in recovery shows ?????????????? no permissions. Can somebody please help me. I think it may be as simple as a rule change somewhere but thats just a guess. Thanks guys.
newellj79 said:
I'm in a recovery boot loop and need to be able to access adb from recovery. I'm running ubuntu and adb devices while in recovery shows ?????????????? no permissions. Can somebody please help me. I think it may be as simple as a rule change somewhere but thats just a guess. Thanks guys.
Click to expand...
Click to collapse
Try this:
sudo su
adb start-server (preceeded by adb kill-server if adb already running). NOTE: You may have to change the path to adb since you are using Superuser to start the server, it may not be in your .bashrc.
exit
Then, run adb devices and see what you get. Happened to me with the EVO 3D and the above worked for me. Starting the adb server with SU permissions works.
pinky059 said:
Try this:
sudo su
adb start-server (preceeded by adb kill-server if adb already running). NOTE: You may have to change the path to adb since you are using Superuser to start the server, it may not be in your .bashrc.
exit
Then, run adb devices and see what you get. Happened to me with the EVO 3D and the above worked for me. Starting the adb server with SU permissions works.
Click to expand...
Click to collapse
Thanks. That got it,
Sent from my T-Mobile myTouch 3G using XDA
The file to check would an udev rules file. See where ubuntu keeps it.
Sent from my i9250
Hello, I am using a Droid Razr Maxx CDMA (XT912). I have Android version 4.2.2. I am using Cyanogen mod 10.1.
I am having problems opening ADB. When I turn my USB Debugging on under my dev. options, connect my device in PTP mode using the terminal emulator commands:
su
setprop persist.sys.usb.config mass_storage
reboot
I run the ADB program and a window comes up for a brief moment then closes. I am unable to open ADB. I have Java.
Thank You!
ADB Troubles Cont'd.
nathanielhall929 said:
Hello, I am using a Droid Razr Maxx CDMA (XT912). I have Android version 4.2.2. I am using Cyanogen mod 10.1.
I am having problems opening ADB. When I turn my USB Debugging on under my dev. options, connect my device in PTP mode using the terminal emulator commands:
su
setprop persist.sys.usb.config mass_storage
reboot
I run the ADB program and a window comes up for a brief moment then closes. I am unable to open ADB. I have Java.
Thank You!
Click to expand...
Click to collapse
Did adb kill-server and adb start-server several times in cmd with no avail. The device serial number shows up under adb devices, but ADB Program will still not open. I've tried to open ADB up in cmd also.
I also tried typing in the terminal emulator:
su
setprop persist.sys.usb.config mass_storage, adb
reboot
Thanks again!
Can someone please help me with this?
I even tried installing the Universal naked drivers and that wouldn't go through.
nathanielhall929 said:
I even tried installing the Universal naked drivers and that wouldn't go through.
Click to expand...
Click to collapse
I copied your command and pasted here. setprop persist.sys.usb.config mass_storage, adb
And what I find is posted here. setprop persist.sys.usb.config mass_storage,adb
And reboot afterwards.
Notice the extra space in your command before adb?
I found this command structure several locations and only one that reports failed has the space.
For ICS it also shows adb shell as in
adb shell setprop persist.sys.usb.config mass_storage,adb
adb reboot
I hope this helps.
Tried it without the space and still not working
tobdaryl said:
I copied your command and pasted here. setprop persist.sys.usb.config mass_storage, adb
And what I find is posted here. setprop persist.sys.usb.config mass_storage,adb
And reboot afterwards.
Notice the extra space in your command before adb?
I found this command structure several locations and only one that reports failed has the space.
For ICS it also shows adb shell as in
adb shell setprop persist.sys.usb.config mass_storage,adb
adb reboot
I hope this helps.
Click to expand...
Click to collapse
I just tried it without the space, rebooted, and nothing
I don't get it
nathanielhall929 said:
I just tried it without the space, rebooted, and nothing
Click to expand...
Click to collapse
The ADB Program just won't open up on this computer. It opens for a second spewing command info then closes. Is it my Java program?
nathanielhall929 said:
I just tried it without the space, rebooted, and nothing
Click to expand...
Click to collapse
Are you getting an error?
This is the other method I see being used but I'll break the command as I believe it should be.
adb shell
su
setprop persist.sys.usb.config mtp,adb
exit
adb reboot
My problem is I know nothing about your unit and I don't know whether it should be mtp or mass_storage. I see people failing with mass_storage are being told to use mtp.
in terminal it shows
su
setprop persist.sys.usb.config mass_storage,adb
reboot
or
su
setprop persist.sys.usb.config mtp,adb
reboot
To retrieve this info I used the top search that says Search All Forums and typed in your command then hit search. You may need to do the same and only go to the threads that suit your situation.
---------- Post added at 12:38 AM ---------- Previous post was at 12:26 AM ----------
nathanielhall929 said:
The ADB Program just won't open up on this computer. It opens for a second spewing command info then closes. Is it my Java program?
Click to expand...
Click to collapse
Are you opening cmd and going to the directory with adb and issue your commands or are you trying to click on adb and use it that way?
I'm trying to run it in cmd
I've been trying to fix this for two days now. I'll be back tomorrow.
Figured out
Ok, now I feel like I'm a real noob. I just realized that I was thinking too hard about all of this. Adb doesn't open up in a new window as a regular program would. I thought it did. Oops. Maybe I should have been more thourough in my research. I should have realized that I already opened adb by using the cmd prompt.
This is why my device was recognized under adb devices.
Maybe not...
I still can't figure out how to get this:
http://tricktactoe.com/howto/how-to-record-android-screen-without-screencast/attachment/path-adb/
window to come up.
This is what I'm tring to do
nathanielhall929 said:
I still can't figure out how to get this:
http://tricktactoe.com/howto/how-to-record-android-screen-without-screencast/attachment/path-adb/
window to come up.
Click to expand...
Click to collapse
This is what I am trying to do:
http://tricktactoe.com/howto/how-to-record-android-screen-without-screencast/
Figured out finally!!!
nathanielhall929 said:
This is what I am trying to do:
http://tricktactoe.com/howto/how-to-record-android-screen-without-screencast/
Click to expand...
Click to collapse
I finally figured this out!!!
I want to thank tobdaryl for his time.
Thank you for your time tobdaryl
nathanielhall929 said:
I finally figured this out!!!
I want to thank tobdaryl for his time.
Thank you for your time tobdaryl
Click to expand...
Click to collapse
You are welcome.
Can you help me?
Can you check out this thread.. Maybe you can help me.
http://forum.xda-developers.com/showthread.php?t=2260208
I have a NEC Terrain NE-201A1A, use android 4.0.4 stock rom, I don't know how to root it, who can help me? Thanks so much
There is not any root method
zolahn said:
I have a NEC Terrain NE-201A1A, use android 4.0.4 stock rom, I don't know how to root it, who can help me? Thanks so much
Click to expand...
Click to collapse
At least for now, there is not any permanent root method. Only a temp shell root. NEC Terrain is NAND/bootloader locked, S-on and does not have fastboot support.
You should have used search. More about this:
Rooting NEC Terrain
NEC Terrain: ADB/CDC Serial Driver, 3e Recovery Password, and Root
NEC Terrain Rooting and Flashing Guide
Root method discovered for NEC Terrain?
Unlocking of NEC Terrain SIM/Root
FFDA said:
At least for now, there is not any permanent root method. Only a temp shell root. NEC Terrain is NAND/bootloader locked, S-on and does not have fastboot support.
You should have used search. More about this:
Rooting NEC Terrain
NEC Terrain: ADB/CDC Serial Driver, 3e Recovery Password, and Root
NEC Terrain Rooting and Flashing Guide
Root method discovered for NEC Terrain?
Unlocking of NEC Terrain SIM/Root
Click to expand...
Click to collapse
I read all thread but I can't install this driver in my computer, I think this driver is not correct for my phone, do u have other driver for nec terrain?
I'm using linux
zolahn said:
I read all thread but I can't install this driver in my computer, I think this driver is not correct for my phone, do u have other driver for nec terrain?
Click to expand...
Click to collapse
I am assuming that you are using Windows so try this ADB Driver Installer.
Hi
FFDA said:
I am assuming that you are using Windows so try this ADB Driver Installer.
Click to expand...
Click to collapse
Can u guide me how to root it? (tmp root). thanks
I can try
zolahn said:
Can u guide me how to root it? (tmp root). thanks
Click to expand...
Click to collapse
I have never tried getting temp shell root from windows, but it should pretty simple. First of all you have to set up adb (if you don't have it yet try this) and then just do this:
In windows cmd, go to folder where your run_root_shell file is.
Push run_root_shell to /datal/local/tmp folder using command: adb push run_root_shell /data/local/tmp/
Set permissions to run_root_shell: adb shell chmod 777 /data/local/tmp/run_root_shell
Go to adb shell using command: adb shell
Lastly get root temp using command: /data/local/tmp/run_root_shell
Good luck
zolahn said:
I read all thread but I can't install this driver in my computer, I think this driver is not correct for my phone, do u have other driver for nec terrain?
Click to expand...
Click to collapse
Here's a list of root apps you can try:
Framaroot
Vroot
For PC(plug your device into your PC and start rooting):
Kingo android root
These are really simple applications that helps you root your device with just a click.
---------- Post added at 09:46 PM ---------- Previous post was at 09:43 PM ----------
Before I forgot to mention this, after you've root your device with Kongo android root, the action can be reversed(unroot). You can't unroot with framaroot(in my memory), with vroot you can simply unroot your device by uninstalling this app.
FFDA said:
I have never tried getting temp shell root from windows, but it should pretty simple. First of all you have to set up adb (if you don't have it yet try this) and then just do this:
In windows cmd, go to folder where your run_root_shell file is.
Push run_root_shell to /datal/local/tmp folder using command: adb push run_root_shell /data/local/tmp/
Set permissions to run_root_shell: adb shell chmod 777 /data/local/tmp/run_root_shell
Go to adb shell using command: adb shell
Lastly get root temp using command: /data/local/tmp/run_root_shell
Good luck
Click to expand...
Click to collapse
So if i use ubuntu, how can root it?
Let's try Linux!
zolahn said:
So if i use ubuntu, how can root it?
Click to expand...
Click to collapse
You understand that this temp shell root does not let you debloat the phone, resize partition, ect? It basically lets you read more partitions through adb shell (Command line. NO graphical interface)?
If you still what to gain temp root:
Open terminal. Press
Code:
CTRL+ALT+T
at the same time.
In terminal paste:
Code:
sudo apt-get install android-tools-adb
and enter password. If you get an error that there isn't such application or similar paste this command:
Code:
sudo add-apt-repository ppa:phablet-team/tools && sudo apt-get update
and then the first one again.
Add the rule to 99-android.rules file. Open the file with this command:
Code:
sudo gedit /etc/udev/rules.d/99-android.rules
and paste in the window that just opened this line (Don't forget to add YOUR account name where it saids so in this line)
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", ATTR{idProduct}=="0358", MODE="0666", OWNER="[B]your Linux account name[/B]"
save and close the window.
At this point you may need to restart your PC for changes to take effect, so better do it. Also turn debugging mode in your NEC Terrain and connect it to you PC with USB cable.
Go to folder where your run_root_shell file is, right-click and choose "open in terminal".
Check if ADB is set up right. Type in terminal:
Code:
adb devices
Your should see text like this:
Code:
List of devices attached
ea1f2870 device
Tell me if you see this:
Code:
List of devices attached
???????????? no permissions
Push run_root_shell to /datal/local/tmp folder using command:
Code:
adb push run_root_shell /data/local/tmp/
Set permissions to run_root_shell:
Code:
adb shell chmod 777 /data/local/tmp/run_root_shell
Go to adb shell using command:
Code:
adb shell
Lastly get root temp using command:
Code:
/data/local/tmp/run_root_shell
If you see # instead of $ in terminal you have shell root privileges.
Lets continue discussion in one thread!
http://forum.xda-developers.com/showthread.php?p=59514154#post59514154
I created a GitHub repo to collect information, also on how to disable apps (since thats as good as it gets for now).
Device won't respond to "adb shell wm" even though "wm" exists in /system/bin
I'm trying to change the pixel density on my unrooted RN3P using the "adb shell wm density XXX" command.
I'm running Krexus-CAF ROM.
ADB is set up and working, and I can open a shell on the device.
The problem is that `wm` cannot be found, even though it exists on the device at `/system/bin/wm`. I cannot do this with the "adb shell wm density XXX" command, nor if I open a shell on the device and type "wm density"
The output is:
Code:
~/Library/Android/sdk/platform-tools $ adb shell wm density 400
/system/bin/sh: /system/bin/wm: /bin/sh: No such file or directory
Has anyone had success with this, or can tell me why the "wm" command cannot be found, even though it exists in the directory that the device looks in?
Cheers
DoubleDroz said:
I'm trying to change the pixel density on my unrooted RN3P using the "adb shell wm density XXX" command.
I'm running Krexus-CAF ROM.
ADB is set up and working, and I can open a shell on the device.
The problem is that `wm` cannot be found, even though it exists on the device at `/system/bin/wm`. I cannot do this with the "adb shell wm density XXX" command, nor if I open a shell on the device and type "wm density"
The output is:
Has anyone had success with this, or can tell me why the "wm" command cannot be found, even though it exists in the directory that the device looks in?
Cheers
Click to expand...
Click to collapse
First check for "adb devices". If it doesn't show then check for the drivers. After that set path of adb in windows to default. Try again with debugging enabled.
mehulchirania said:
First check for "adb devices". If it doesn't show then check for the drivers. After that set path of adb in windows to default. Try again with debugging enabled.
Click to expand...
Click to collapse
thank you for taking time out to try help.
i'd just say that your solution isn't what the OP is looking for.
mainly because if you read the post he tried adb shell wm.....
but also tried on the phone inside terminal app typing the command..
i personally don't have a solution but i thought i'd try help you try maybe another suggestion?
for example, i can now go and tell the OP to download and install angry bird or busybox etc but it won't make a difference.
mehulchirania said:
First check for "adb devices". If it doesn't show then check for the drivers. After that set path of adb in windows to default. Try again with debugging enabled.
Click to expand...
Click to collapse
As noted in the question, I can definitely find my device, as I was running the shell on the device with ADB. The problem was that I could not execute `wm`, even though it was listed in the directory.
I ended up switching ROMs, and could use `wm` without issue - I'm not sure what it was about the ROM I was using that meant I couldn't use the files listed.
Oh well.
Hi
First of all, sorry for my bad english.
It has been several hours that i'm trying to find a solution to my problem.
I want to wake my nvidia shield via adb command throught network.
I installed android tools on my raspberry pi, and when i connect to it via command line everything work, i can wake up the Shield.
But when i put my command line in a bash script
Code:
#!/bin/bash
adb kill-server
adb start-server
adb connect 192.168.1.38:5555
adb shell input keyevent KEYCODE_WAKEUP
adb kill-server
i have this error :
Code:
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
I dont know why, when i am execute the command line in a bash script it can't find the rsa key, who is there and should be used.
Any ideas
Thanks in advance.
darkouz said:
Hi
First of all, sorry for my bad english.
It has been several hours that i'm trying to find a solution to my problem.
I want to wake my nvidia shield via adb command throught network.
I installed android tools on my raspberry pi, and when i connect to it via command line everything work, i can wake up the Shield.
But when i put my command line in a bash script
Code:
#!/bin/bash
adb kill-server
adb start-server
adb connect 192.168.1.38:5555
adb shell input keyevent KEYCODE_WAKEUP
adb kill-server
i have this error :
Code:
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
I dont know why, when i am execute the command line in a bash script it can't find the rsa key, who is there and should be used.
Any ideas
Thanks in advance.
Click to expand...
Click to collapse
Normally on Windows the first time you turn on usb debugging it will pop up and ask you to accept the adb key. This is what is preventing you, I haven't had to resolve this in Linux, but essentially you need to go to C:\\Users\You\.android\ (in Windows, path will be different in Linux) and copy the file adbkey. Now you need to move it to data/misc/adb/
This will most likely require root or TWRP. Good luck, my friend.
Sent from my KYOCERA-C6745 using Tapatalk
Hi
Thanks for your quick response.
I couldn't make the connection via USB my adb tells me that there is no emulated device. But it work with network And yeah the first time I made the connection, the authorization pop up appeared on my shield. I checked, always authorized this device.
I have the key in /root/.android on my raspberry pi
I don't think I have the access to the /data/ folder in my shield.
But what I don't understand is why when I execute the command in a terminal like that, it work and when it's from the bash script it won't work anymore
darkouz said:
Hi
Thanks for your quick response.
I couldn't make the connection via USB my adb tells me that there is no emulated device. But it work with network And yeah the first time I made the connection, the authorization pop up appeared on my shield. I checked, always authorized this device.
I have the key in /root/.android on my raspberry pi
I don't think I have the access to the /data/ folder in my shield.
But what I don't understand is why when I execute the command in a terminal like that, it work and when it's from the bash script it won't work anymore
Click to expand...
Click to collapse
Option B would be to dump your boot.img and use Assayed's kitchen to add insecure kernel and adb direct root, then the adbkey doesn't need to be on the device.
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
Option B would be to dump your boot.img and use Assayed's kitchen to add insecure kernel and adb direct root, then the adbkey doesn't need to be on the device.
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
Yeah as you said in your previous post, i think the solution is to root the nvidia shield cause the rsa key doesny copy itself on the device.
But would you able to explain to me why if i execute those command individually in the terminal it works.
But if i put them all in a bash script that i execute it doesnt work anymore, what's the difference between those two procedure ?
darkouz said:
Yeah as you said in your previous post, i think the solution is to root the nvidia shield cause the rsa key doesny copy itself on the device.
But would you able to explain to me why if i execute those command individually in the terminal it works.
But if i put them all in a bash script that i execute it doesnt work anymore, what's the difference between those two procedure ?
Click to expand...
Click to collapse
How are you executing the script? There's some (hopefully) helpful info here.
https://community.spiceworks.com/topic/433656-command-not-running-in-batch-but-will-run-in-cmd
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
How are you executing the script? There's some (hopefully) helpful info here.
https://community.spiceworks.com/topic/433656-command-not-running-in-batch-but-will-run-in-cmd
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
i m doing : sh script.sh
i m gonna read that, thanks
I found the solution.
I don't really understand why, but adding
Code:
sleep 1
before
Code:
adb shell input keyevent KEYCODE_BACK
resolved the problem, maybe the script execution was to fast for adb to adjust, dont know.
All i know is, that works
darkouz said:
I found the solution.
I don't really understand why, but adding
Code:
sleep 1
before
Code:
adb shell input keyevent KEYCODE_BACK
resolved the problem, maybe the script execution was to fast for adb to adjust, dont know.
All i know is, that works
Click to expand...
Click to collapse
Glad you got it.
Sent from my KYOCERA-C6745 using Tapatalk
sudo rm -rf /home/(username)/.android
that worked with my kde neon machine