ADB isn't working - Atrix 4G Q&A, Help & Troubleshooting

So I downloaded ubuntu 12.10 and am running it in VMWare, only so I could untar a package to get GenTop2 set up... Anyways I tried setting up ADB in VMWare using this tut https://help.ubuntu.com/community/AndroidSDK the command adb shell works but NO commands like devices or anything else work... Any tips? example: [email protected]:~/android-sdk-linux/platform-tools$ adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
~ # adb devices
/sbin/sh: adb: not found

Read up on UNIX command line stuff. The adb binary must be in your $PATH. This...
jeffreygtab said:
~ # adb devices
/sbin/sh: adb: not found
Click to expand...
Click to collapse
...tells me it is not.
On a side note, I recommend using VirtualBox instead of VMware. IMO it has better open-source community support and unlike VMware it is free. Better yet, be a real man and install Linux natively.

Other solution is to cd into the platform-tools dir and do ./adb (note the dot slash at the beginning)
Virtualbox (at least on debian) has some problems with the usb subsystem... is better to use unetbootin and make a live ubuntu on a pendrive, with persistence enabled so what you do on thah session remains across boots

Yeah I figured that running it essentially emulated would give me problem. I only did this because im out of discs and my desktop can't boot from USB drive.

jeffreygtab said:
Yeah I figured that running it essentially emulated would give me problem. I only did this because im out of discs and my desktop can't boot from USB drive.
Click to expand...
Click to collapse
So does anyone have a solution? Beyond installing Ubuntu, because that's not really an option...

jeffreygtab said:
So does anyone have a solution? Beyond installing Ubuntu, because that's not really an option...
Click to expand...
Click to collapse
Huh? I already gave you a solution, as did andresrivas...
Read the posts again.

According to the phantom expert at the bottom of this forum you must have AdActivity declared in AndroidManifest.xml with ConfigChanges. I would go with that.
Sent from my PG86100 using xda app-developers app

planb234 said:
According to the phantom expert at the bottom of this forum you must have AdActivity declared in AndroidManifest.xml with ConfigChanges. I would go with that.
Click to expand...
Click to collapse
...What?
I think you missed your intended thread entirley.

I use virtualbox and it works perfectly, cd into the platform-tools as was said, do the ./adb but make sure you mount your phone to virtualbox (there is an icon at the bottom where you can right click and mount it, see screen)

Related

[Q] how to get adb running on my vibrant

i downloaded the sdk and i downloaded a samsung galaxy driver and when i look for my phone in the command line it just doesnt show up. theunlockt just isnt helping. anybody got a good link for dummies?
antonio91282 said:
i downloaded the sdk and i downloaded a samsung galaxy driver and when i look for my phone in the command line it just doesnt show up. theunlockt just isnt helping. anybody got a good link for dummies?
Click to expand...
Click to collapse
Did you put your phone in debug? Settings>Applications>Development
yes. and i been going over the directions repeatedly on theunlockr. im running xp 32 i believe
ADB for Dummies: Download http://de.codeplex.com/
- Once installed... open command prompt:
cd C:\Program Files\Droid Explorer\SDK\tools
Click to expand...
Click to collapse
- <type your ADB command here> e.g.
adb shell
Click to expand...
Click to collapse
^ yeah...
adb devices
Click to expand...
Click to collapse
should show your device...
To the OP, I don't know if this is the case for you but I changed my path on my Windows PC like the guides said to and that didnt completely work. (Maybe neede a restart). But in any case if you go to the command prompt, change directories to were you have adb and run your commands from there, it works like a charm.
For example if you unzip the the SDK in your download directory, open up the command line and type:
cd C:\Documents and Settings\<your user name>\Downloads\<whatever-you-named-the-unzipped-folder>\tools
ADB is in the tools directory you just went to. From here you can run the adb command without having to set up the system paths. This is a quick and dirty explanantion and might not even work for you. I was running this on Windows XP when I had this problem. Same thing had to be done on my Ubuntu Linux box b/c I'm to lazy to set up paths on that one, lol.
zephiK said:
ADB for Dummies: Download http://de.codeplex.com/
- Once installed... open command prompt:
- <type your ADB command here> e.g.
Click to expand...
Click to collapse
Oops, didnt see that you allready posted this. Yea do what zephiK says and it should work.
i have not been able to get adb to work no matter what i did (i am using xp) and i have been trying since i had the htc magic last year. here is how i recently got it working.
i downloaded the one-click root zip file and unzipped it. inside there is a adb.exe file. i clicked it and then then made sure my phone was in debugging mode and connected to my pc and used the command prompt to point to where adb is in my android sdk which for me is cd\androidsdk\tools
adb devices
i hit enter after tools and enter after devices and now it works. not sure why but it does. i couldnt get my magic, my nexus one or even the galaxy to work until i did this.
i got everything done. i think? only problem is im getting $ sign instead of # sign. any ideas?
i got adb working. thanks everyone.
A thread success story without any casualties. Almost makes me weep.

[Q] Setting up Android SDK on Ubuntu 10.4 x64

Alrighty, I am new to the linux world and I am trying to setup my beloved adb on my Ubuntu. Java is there, SDK in in /opt/androidsdk. Do I need something more? I read that people install Eclipse also but since I am not a developer I don't need it, do I? I only need to execute very simple adb commands like push.
With Windows I needed the HTC Hero drivers and then it worked like a charm. Do I need something similar here?
I tried to run adb devices while my phone was connected and I get a phone with ?????????? as a name.
Is adb going to work or do I miss something?
Thanks in advance!
Adb works fine on x64 Ubuntu. I know there is a guide for it on www.villainrom.co.uk/wiki, but then search "adb" and it should bring up the entry.
I'm installing Ubuntu again today anyway, so I can check it works (which it does btw)
theodore80 said:
Alrighty, I am new to the linux world and I am trying to setup my beloved adb on my Ubuntu. Java is there, SDK in in /opt/androidsdk. Do I need something more? I read that people install Eclipse also but since I am not a developer I don't need it, do I? I only need to execute very simple adb commands like push.
With Windows I needed the HTC Hero drivers and then it worked like a charm. Do I need something similar here?
I tried to run adb devices while my phone was connected and I get a phone with ?????????? as a name.
Is adb going to work or do I miss something?
Thanks in advance!
Click to expand...
Click to collapse
Try doing this.
sudo adb kill-server
sudo adb root
then do w/e you need to do. This worked for me.
Not sure if you need to sudo kill-server, if it doesnt kill it, try without
ante0 said:
Try doing this.
sudo adb kill-server
sudo adb root
then do w/e you need to do. This worked for me.
Not sure if you need to sudo kill-server, if it doesnt kill it, try without
Click to expand...
Click to collapse
I did this followed by adb devices and I now get the correct device name.
I guess that it works though I didn't try to push any app
Another question: how do I add adb to the path? I currently need to type in the full adb path. It is linux related but I am new into this exciting world!!
Thanks for helping me out!
Google "Ubuntu add to path" and it will tell you

[Solved] n00b needs help with adb and Ubuntu

Hi all,
I searched quite a lot, but seems to me not nearly enough. I've been using adb on my Windows 7 machine for a while now, but would like to have adb at work on my Ubuntu 11.04 machine where I am going to start some boring development.
I have installed the sdk and eclipse and and and (if it is important WHAT I installed more than this, I will elaborate)
lsusb returns
Code:
Bus 002 Device 009: ID 04e8:689e Samsung Electronics Co., Ltd
so I have set my
/etc/udev/rules.d/51-android.rules
to reflect like this:
Code:
SUBSYSTEM=="usb",ATTRS{idVendor}=="04e8",ATTRS{idProduct}=="689e",SYMLINK+="android_adb",MODE="0666
I'm kinda hoping this is wrong and there is an easy fix that I can laugh about.
When I have the emulator running and my phone plugged in
Code:
$sudo adb devices
returns a blank line and something about an emulator, only emulator running yields no blank line and only phone plugged in yields a nice and quiet blank line.
I had this on Windows as well when I struggled with drivers, but the CD sorted it out. I read that the necessary drivers comes with the SDK, but I might be wrong.
I have tried different tutorials and different values for the idProduct and idVendor as some tutorials claim they should be kept constant and not vary per phone... I restarted adb each time I made a change with
Code:
$sudo adb kill-server; sudo adb start-server; sudo adb devices
I'm currently running FirstUA v1.2 if that changes anything.
If you need more info, don't hesitate to ask, I know it's easier to solve problems with the right info (coming from an IT helpdesk).
Digi.Gram said:
Hi all,
I searched quite a lot, but seems to me not nearly enough. I've been using adb on my Windows 7 machine for a while now, but would like to have adb at work on my Ubuntu 11.04 machine where I am going to start some boring development.
I have installed the sdk and eclipse and and and (if it is important WHAT I installed more than this, I will elaborate)
lsusb returns
Code:
Bus 002 Device 009: ID 04e8:689e Samsung Electronics Co., Ltd
so I have set my
/etc/udev/rules.d/51-android.rules
to reflect like this:
Code:
SUBSYSTEM=="usb",ATTRS{idVendor}=="04e8",ATTRS{idProduct}=="689e",SYMLINK+="android_adb",MODE="0666
I'm kinda hoping this is wrong and there is an easy fix that I can laugh about.
When I have the emulator running and my phone plugged in
Code:
$sudo adb devices
returns a blank line and something about an emulator, only emulator running yields no blank line and only phone plugged in yields a nice and quiet blank line.
I had this on Windows as well when I struggled with drivers, but the CD sorted it out. I read that the necessary drivers comes with the SDK, but I might be wrong.
I have tried different tutorials and different values for the idProduct and idVendor as some tutorials claim they should be kept constant and not vary per phone... I restarted adb each time I made a change with
Code:
$sudo adb kill-server; sudo adb start-server; sudo adb devices
I'm currently running FirstUA v1.2 if that changes anything.
If you need more info, don't hesitate to ask, I know it's easier to solve problems with the right info (coming from an IT helpdesk).
Click to expand...
Click to collapse
The SDK Drivers are not for Galaxy Ace , Google for the drivers , they should be easy to find
Sent from my Ultma Weapon using XDA App
It seems that my problem begins with our Proxy server.... As the SDK manager and I had a quarrel about authentication, I downloaded some of the packages directly and forced the manger to use them instead of those on Google. With this, I accidentally downloaded an outdated adb, which had problems specifically with the Galaxy line of phones.... Downloading the correct package now, will see if it works better
Maybe I must just stop before I think of continuing I installed the newer r06 version, and my device is picked up, but now adb shell gives me this:
Code:
:~$ adb devices
List of devices attached
S58300c017faf device
:~$ adb shell
sh: applet not found
Any ideas where to look for the applet? Maybe I must continue tomorrow, new day new ideas.
Do you have Debugging turned on? And is the device rooted with Busybox? I assume yes since you're running a custom ROM but double checking.
If you're having trouble, I'd either: a) run a VM with XP SP3; b) head to the Android Q&A board here.
mmm, I never though of looking at that, since I figured they do say busybox is installed on this ROM, but thanx for nudging me into that direction, I found this post from ketut.kumajaya so I'm looking into that. Had some issues with not abling to get rw access, but my only problem there was a spelling error in the terminal.
I still get the error with the sh: applet not found, even after I tried the advice on that link. I tried installing all 3 versions shipped with BusyBox Installer on all 3 locations, still nothing. Just had an idea I'll try, if you invoke sh in linux you get a new shell, when I invoke sh I get the applet not found error. Maybe I should upgrade my sh or something. Worth a try
I am running a VM for the VB programming I do at work, but that doesn't have USB support (to much trouble to reinstall Virtual Box now just for USB support). Last night I tested on Windows 7 (first time since I started using this ROM) and it failed with the same error. I'm sure it's the sh that's broken or something. Will test on my wife's phone tonight (running the same ROM).
Thanx for your ideas so far. That's what I love about an online community, even if you don't exactly know what's wrong, people sling ideas around that nudge you in the right direction. One error message at a time
Solved thanx to Ketut
Thanx for all your help guys.

[Q] Moonshine & Revone Questions For New Members That Cant Post In The Dev Forums

Like me I'm sure many of you were very surprised to log in today, as most have been doing everyday for the past month or so to find that not one, but two methods for obtaining s-off on the DNA were released within minutes of each other. First Revone and then, coincidentally enough, Moonshine was released minutes later. Somebody didn't want somebody else stealing their thunder I'm guessing. I'm just kidding...I'm sure both sides worked extremely hard on their respective methods and deserve mad props for the time spent on this and for waving a middle finger in the face of Verizon. Having said that I have tried both methods and have been unsuccessful so far at each one. I have to pose my questions here because I'm a new member and the development threads are off limits to me.
I tried the Revone Method first and like many were saying in the actual thread, my phone kept auto rebooting after the ./revone.dna -P step. I tried everything I could think of including all of the suggestions from the other users who finally got it to work by trying different things. Has anyone figured out what is causing the auto reboot? There has to be something specific causing this. One thing I have noticed with my phone is that USB Debugging has been very unreliable as of late. It turns itself off and on at random times and a lot of times the box is checked to enable it but it's not on. I don't know if this is playing a role in the process not working for me. I got the "success" message after every step several times but never actually achieved s-off.
I finally gave up on Revone to try Moonshine. I really didn't want to have to fo this route since I don't know a thing about Linux. I decided to go the boot from flash drive route so I downloaded 32 bit Ubuntu 13.04 iso and used universal USB installer to put it on my drive. I am using an external hard drive that is already formatted to fat32. I did NOT format the drive because I didn't think I had to since it was already fat32. Universal USB Installer was successful in putting Ubuntu on the external drive. I then went into my bios and changed the boot sequence to boot from the external drive first but when I rebooted it just loaded up Windows like normal. What am I doing wrong here? I'm running Windows 7 64bit but it was my understanding that this should not be a problem. Do I have to format and/or partition the external hard drive even though it is already fat32 before putting Ubuntu on it?
I'm dying to get one of these methods working but I'm currently stuck. Any newbies like me that can't post in the Development forums have any ideas as to what is going wrong here or would anyone else like to chime in with their own issues? Thanks in advance. I'm sure I'll get there eventually. :good:
Follow this guide for using an external USB device.
Modify the boot sequence like you were doing before, hopefully you'll get in to Ubuntu.
You say you don't have Linux experience, so I'll simplify the process for you:
Once at the desktop, press Control + Shift + T. This will open the Terminal, which is basically the Linux version of Windows' cmd.exe. Once inside, open up Mozilla Firefox (included) by using the side bar, the icon should be there. Download the version of Moonshine for the DNA, and then switch back to the terminal.
Type in these commands:
cd /home/Downloads
tar -zxf moonshine_dlx_2.06.605.1.tgz
sudo ./distiller
Click to expand...
Click to collapse
And then let Moonshine do its thing.
Modify the boot sequence like you were doing before said:
Thank you for the response. I saw in the instructions it says to put the moonshine file in the ~Downloads directory. How do I do that? Also, I think I am going to try the disc method instead. Does it matter if its a cd or dvd? And I never did ask if the version of Ubuntu I had downloaded was compatible with this method. I downloaded Ubuntu 13.04 32bit for use on Windows 7 64bit. Will I have any problems? Thanks again!!
Click to expand...
Click to collapse
Oh and one other thing I forgot to mention regarding the revone method...the directory \data\local\temp did not exist on my device prior to me creating it when I pushed the revone.dna to my phone. Should I have had that directory on my phone already?
Sent from my HTC6435LVW using xda premium
I am in a similar boat. I am trying to use revone as I can't get ahold of linux. I downloaded the sdk and revone, moved adb to my C: with the revone file. Everything goes smoothly until i reach the -P step. Every single time it reboots after saying success. If I try to run the -s 0 -u command after that I get failed to map memory, success, revone failed = -1. If I try the -P command again, I get the same message with error code 2. If I try to reboot the bootloader, I get error device not found. I've been at this for hours, and Jerry from Android central even walked me through it, everything ended up successful ans when the bootloader rebooted, it was still locked and s on. Help please?
I dont even know what command to type into CMD for Revone. how do i push the file I have revone on my desktop downloaded and SDK installed..
Next step is?
Gorilla* said:
I dont even know what command to type into CMD for Revone. how do i push the file I have revone on my desktop downloaded and SDK installed..
Next step is?
Click to expand...
Click to collapse
I moved adb and its two counterparts in a folder named ADB_WIN, in my C: drive. From there, I typed cmd.exe in the search bar, it opened the command box. I typed in adb push revone.dna /data/local/tmp/ ENTER adb shell ENTER cd /data/local/tmp ENTER chmod 755 revone.dna ENTER ./revone.dna -P and that's where my error started coming in. You can try this, not sure if this right, but if its not, hopefully someone will correct me.
Krispenwah said:
Thank you for the response. I saw in the instructions it says to put the moonshine file in the ~Downloads directory. How do I do that? Also, I think I am going to try the disc method instead. Does it matter if its a cd or dvd? And I never did ask if the version of Ubuntu I had downloaded was compatible with this method. I downloaded Ubuntu 13.04 32bit for use on Windows 7 64bit. Will I have any problems? Thanks again!!
Click to expand...
Click to collapse
32 bit should work fine. You need a DVD because a CD is too small. ~/Downloads directory is just the current user's downloads folder. So most likely it would get downloaded to there anyway.
Sent from my DNA using Tapatalk 2
"1. Download revone (above) and push it to your device: adb push revone.dna /data/local/tmp/"
How is this done? I have no idea how to push to the DNA. Anybody help? Thanks
michaelrager said:
"1. Download revone (above) and push it to your device: adb push revone.dna /data/local/tmp/"
How is this done? I have no idea how to push to the DNA. Anybody help? Thanks
Click to expand...
Click to collapse
That's the command you use, adb push. Use it in a terminal. So..assuming windows use explorer to go yo where you downloaded the files and have revone.dna then hold shift and right click, choose open prompt here then type
adb push revone.dna /data/local/tmp
If it complains about command not found for adb add the adb.exe and its libraries to the same folder then try again.
Tapatalked from my HTC DNA - Carbon
pio_masaki said:
That's the command you use, adb push. Use it in a terminal. So..assuming windows use explorer to go yo where you downloaded the files and have revone.dna then hold shift and right click, choose open prompt here then type
adb push revone.dna /data/local/tmp
If it complains about command not found for adb add the adb.exe and its libraries to the same folder then try again.
Tapatalked from my HTC DNA - Carbon
Click to expand...
Click to collapse
Thanks for the quick response. I don't have that option when i shift and right click, I only have "open with" Any Ideas?
michaelrager said:
Thanks for the quick response. I don't have that option when i shift and right click, I only have "open with" Any Ideas?
Click to expand...
Click to collapse
Hold shift while you right click, can't be on a file, just someplace in the explorer, no folders, etc clicked on, someplace blank.
Tapatalked from my HTC DNA - Carbon
pio_masaki said:
Hold shift while you right click, can't be on a file, just someplace in the explorer, no folders, etc clicked on, someplace blank.
Tapatalked from my HTC DNA - Carbon
Click to expand...
Click to collapse
Got it. I misunderstood what you meant thanks! However, I am getting that error.
I got the error 'adb' is not recognized as an internal or external command, operable program or batch file. Can you elaborate on what to fix? Thanks Again!
michaelrager said:
Got it. I misunderstood what you meant thanks! However, I am getting that error.
I got the error 'adb' is not recognized as an internal or external command, operable program or batch file. Can you elaborate on what to fix? Thanks Again!
Click to expand...
Click to collapse
add adb.exe to your command, instead of just adb
Gorilla* said:
add adb.exe to your command, instead of just adb
Click to expand...
Click to collapse
Thanks, but the same type of error came up.
michaelrager said:
Thanks, but the same type of error came up.
Click to expand...
Click to collapse
Put revone.dna in the same folder that has fastboot and adb then try
Sent from my HTC6435LVW using xda premium
Krispenwah said:
Put revone.dna in the same folder that has fastboot and adb then try
Sent from my HTC6435LVW using xda premium
Click to expand...
Click to collapse
That worked I got daemon started successfully. Then it says error: device not found
I am in debugging mode.
Any help is much obliged. Thanks!
michaelrager said:
That worked I got daemon started successfully. Then it says error: device not found
I am in debugging mode.
Any help is much obliged. Thanks!
Click to expand...
Click to collapse
Try 'adb devices' and see if it recognizes your phone. Do you have usb debugging enabled? If so toggle it off and then back on while the phone is plugged in then wait about 10-15 seconds and try 'adb devices' again to see if its recognized now
Krispenwah said:
Try 'adb devices' and see if it recognizes your phone. Do you have usb debugging enabled? If so toggle it off and then back on while the phone is plugged in then wait about 10-15 seconds and try 'adb devices' again to see if its recognized now
Click to expand...
Click to collapse
Got it!
* daemon started successfully *
3372 KB/s (645920 bytes in 0.187s)
Is it all set so I can move on to the next step?
michaelrager said:
Got it!
* daemon started successfully *
3372 KB/s (645920 bytes in 0.187s)
Is it all set so I can move on to the next step?
Click to expand...
Click to collapse
Yeah looks like the file pushed successfully. Now u do "adb shell" then "cd data/local/tmp" then "chmod 755 revone.dna" ....and so forth. Make sure ur adding the extension ".dna" to revone (revone.dna) each time u type it. If u just put revone it won't work ull just get an error

ADB + Linux error: device unauthorized

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

Categories

Resources