"adb shell" command gives very inconsistent results

by Justin Anderson » Fri, 09 Jul 2010 22:52:40 GMT


Sponsored Links
 Get the latest SDK:  http://developer.android.com/sdk/index.html 
Get the latest tools:  http://developer.android.com/sdk/tools-notes.html 

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------






>



"adb shell" command gives very inconsistent results

by ca44 » Sun, 11 Jul 2010 00:41:51 GMT


 Thanks Justin. 

Once I get them is there anything additional I need to do to install and make 
them current? 



-Chris 


----- Original Message ----- 
From: "Justin Anderson" <janderson....@gmail.com> 
To: android-beginners@googlegroups.com 
Sent: Friday, July 9, 2010 7:52:11 AM 
Subject: Re: [android-beginners] Re: "adb shell" command gives very 
inconsistent results 

Get the latest SDK:  http://developer.android.com/sdk/index.html  
Get the latest tools:  http://developer.android.com/sdk/tools-notes.html  
 
---------------------------------------------------------------------- 
There are only 10 types of people in the world... 
Those who know binary and those who don't. 
---------------------------------------------------------------------- 











Thank you very much for your response. 

I will try your suggestions. 



Making sure I have an up-to-date version of adb and all of the other tools is a 
good idea. 

Can you please tell me how to go about doing that? 



-Chris 





----- Original Message ----- 
From: "Indicator Veritatis" < mej1...@yahoo.com > 
To: "Android Beginners" < android-beginners@googlegroups.com > 
Sent: Thursday, July 8, 2010 5:48:42 PM 
Subject: [android-beginners] Re: "adb shell" command gives very inconsistent 
results 

This sounds somewhat different from the problems I have seen with adb. 
So I am not sure how helpful my advice will be, but what I would do 
is: before ever even entering the shell of adb, make sure that adb can 
see the emulator with "adb devices". 

Yes, unlike the distinction between emulator and device for the -e and 
-d options, "adb devices" will list both real hardware devices (of 
which you have none) and emulator instances (all of them). 

If you don't see the emulator instance even after launching the 
emulator and seeing the home screen, then try "adb kill-server" 
followed by "adb restart". If that gets adb to see the emulator 
instance, then go on to "adb shell". 

The one other suggestion I have is to make sure that you are using an 
uptodate version of adb -- and for that matter, of all the tools. 




--


Sponsored Links


Other Threads

1. Class Cast Exception after classLoader.loadClass() and newInstance!

Have you implemented the Parcelable interface?

2009/3/27  <xinyu...@gmail.com>



-- 
Sincerely!

--~--~---------~--~----~------------~-------~--~----~

2. Running Scripts from an Application

Hi,
I'm wanting to run a script called toggle.sh on Android. Should I be
able to run this code?

String command = "su -c \"/toggle.sh\" root";
Process pr = Runtime.getRuntime().exec(command);

At the moment I can run the command from the terminal and it works but
when I try to run it from the application it fails (and I don't know
why - there is no USB on my Android phone to plug in the de{*filter*}).

Any help out there?

toggle.sh opens an internet connection or closes it and the
permissions.

I've given it these permissions.
<uses-permission android:name="android.permission.NETWORK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />

The Emulators don't have this command to run - and they are running on
Windows anyway.

I can't think of anything else to add to this.

Cheers
--~--~---------~--~----~------------~-------~--~----~

3. If you are interrested in LINUX

4. on the status ba

5. SlideME: Looking for Volunteers to Write

6. Class Cast Exception after classLoader.loadClass() and newInstance!

7. Dynamic Forms UI