Android :: Complete List Of Shell Commands Supported By Droid?
Apr 3, 2010Is there a complete list, or there is no guarantee the list won't change with every release?
View 4 RepliesIs there a complete list, or there is no guarantee the list won't change with every release?
View 4 RepliesIs there any way to run terminal commands on my application and then access the data on my UI? Specifically top.
View 4 Replies View RelatedCan't find information on how to print out documentation on android shell commands while in the shell. Something along the lines of.
View 4 Replies View RelatedI need to execute following command in my app.
command: echo "1" > /sys/manager0/enable
I tried this with following code in my app.
Process p = Runtime.getRuntime().exec("su");
DataOutputStream stdin = new DataOutputStream(p.getOutputStream());
String cmd = "echo "1" /sys/manager0/enable";
stdin.writeBytes(cmd+"
");
There is no error and app executed perfectly but there is no change in the /sys/manager0/enable
How do I use adb to perform some automated tasks on my android phone? I need to find commands that I can issue from the command line (ideally, using a .bat file) that will be capable of more than simply opening an application or sending an input keyevent (button press).
For instance, I want to toggle Airplane Mode on or off from the command line. Currently, the best I can do is launch the Wireless & network settings menu and then use input keyevents to click Airplane mode:
CODE:.................
There are quite a few drawbacks to this method, primarily that the screen has to be on and unlocked. Also, the tasks I want to do are much broader than this simple example. Other things I'd like to do if possible:
1.Play an mp3 and set it on repeat. Current solution:
CODE:..................
2.Play a video. (current solution: open MediaGallery, send keyevents, similar to above)
3.Change the volume (current solution: send volume-up button keyevents)
4.Change the display timeout (current solution: open sound & display settings, send keyevents)
As before, these all require the screen to be on and unlocked. The other major drawback to using keyevents is if the UI of the application is changed, the keyevents will no longer perform the correct function. If there is no easier way to do these sort of things, is there at least a way to turn the screen on (using adb) when it is off? Or to have keyevents still work when the screen is off?
I'm not very familiar with java. That said, I've seen code like the following (source: http://yenliangl.blogspot.com/2009/12/toggle-airplane-mode.html) to change a setting on the phone:
Settings.System.putInt(Settings.System.AIRPLANE_MODE_ON, 1 /* 1 or 0 */);
How do I translate something like the above into an adb shell command? Is this possible, or the wrong way to think about it?
I have a samsung moment that I seem to have inadverntantly disabled diagnostic usb access - if I have USB plugged in and then enable dial up networking in settings , USB disconnects - as soon as I disable DUN usb comes back up - I modified the setting in NV for scm from 3a to 2a and caused this, but I can't find a way to access non volatile memory any other way than through usb diagnostic mode
View 1 Replies View RelatedI am trying to create a tasker automated thing, which would show a scene which will have a button to execute a shell command (The command should be executed as root). how to do it?
Code:
reboot recovery
I'm doing an application of showing picture with ImageView.I want to know how many kinds of picture are supported in Android, and what are they.Could anyone give a list of these files?
View 4 Replies View RelatedDoes anyone has a complete list of native drawable listed on a webapage ? I don't want to do trial and error.
View 1 Replies View RelatedI found out that on Android contacts, at least HTC Sense stores Facebook ID with the following mimetype: vnd.android.cursor.item/vnd.facebook.profile this differs from their mimetype format such as com.htc.socialnetwork.facebook/smallavatar
I am wondering where do I find a list of officially supported mimetypes for Android?
Is there a list anywhere of what apps are on the unrooted phones?
If some one could run
adb shell
cd /system/app
ls
or something..
I (like a noob) uninstalled some of the bloatware apps from a list of safe to remove apps and now I have a fear of messing things up when froyo comes out.
Once I start up monkey from the shell like:
adb shell monkey --port 1080
Then, If I write normal java code to establish a connection to 127.0.0.1:1080 (on the device itself) and then issue monkey commands from there?
I have tried this and I am able to create a socket, but to get the response, I wait for an awfully long time and nothing happens. Why this behavior?
Is there any list which HTML5 features the WebView supports and which not? I am interested mainly in: 1) localStorage/sessionStorage 2) offline manifest 3) web sockets 4) web workers. Prior there was lack of those features (http://www.mail-archive.com/android-developers@googlegroups.com/msg60143.html), but in Android 2.1, first two should be supported, but I am not sure about 3 and 4. Is there any list of supported features or we have to test it on our own?
View 1 Replies View RelatedI want to translate my app into all available markets. code...
However, look at http://developer.android.com/reference/java/util/Locale.html
it lacks : polish pl_PL and nl_NL
Now what I'm doing is creating values-fr values-es directories. But my phone only has English and Spanish locales.
Here's two things that would help:
1. A definitive list of all locale suffixes that are allowable as the values-?? directory names 2. A way to add more locales to my phone.
Where can i get a complete list of content providers that Android offers out of the box? I'm looking for a content provider that list received SMS.
View 2 Replies View RelatedI am developing an application on the Android Platform for my music service (axcid.org). Haven't spent a huge amount of time in Java but could use a bit of help with this code: http://pastebin.com/m5300a4e6
Bit of bad practice in there I know but I haven't spent a ton of time developing Java apps. Anyways the problem:
if (!this.listLoaded) { //holdup this needs it's own thread
//Url load and parse time. // Now we can start a thread for the search
Thread thread = new Thread(this); thread.start();
I need update media list to be called when:
public void run() { // search
String URL = this.getIntent().getExtras().getString("searchurl");
sm.LoadResults(URL+"?android=1"); listLoaded = true; }
is done. However calling it from the thread will crash Android. Did many google searches but found nothing. How can I call updateMediaList when the thread is complete? (from the UI thread)
I have developed a program that will allow android users to navigate through the files. But the problem is that when I use the "ls" command it doesn't make always a new line after each file but it places it in one line. Here is a screenshot
So my question is: Is there a way to make it list each file in new line? (using adb commands)
I am trying to write an application with a list of items read in from a file. This item list and the fields that go with each item are fed into a DB. The item names are presented to the user as an auto- completing list. Once the list item is selected, I would like to get the value from the list and use it to query the database and display all the detail information.
The problem I am having is trapping the event using onItemSelectedListener and onItemSelected.
Below is what I am trying.
CODE:..............
This doesn't compile, but it has the fewest syntax errors.
How to get an OnItemSelectedListener to work? and how I grab the value selected?
I recently got the G1 and used my Gmail account online (via computer) to setup my contact list and then sync it to my G1. Now when I compose an SMS message, and begin typing the name of the person in my contact list, only some of the names that match will appear in the drop down auto-complete list but others that match don't show up at all. To compose SMS to them I have to use the Contacts>Scroll to contact>Select text to mobile method. Any ideas why some of the contacts do not show up in the auto-complete list when composing an SMS and typing in a partial name in the To field?
View 2 Replies View RelatedMy contacts are all sorted by first name. i cant seem to find how to change the sort order so the complete contact list is sorted by last name?
View 9 Replies View RelatedI'm trying to unzip an apk using the device shell. I need to see the package name of the app contained in the apk. I tried using unzip -l but I just get output that says "zip flags 1 and 8 not supported". How can I unzip an apk? For that matter, am I using the right tool for this job? I just want to view the manifest of the apk, really. I have busybox.
View 4 Replies View RelatedWhen I start the ADB shell from the Windows command line, and type the command "ls", the list of files I get is not sorted by name. Also, if I enter "ls -r" which should reverse sort, I get the error message "no such file". If I type "busybox ls -l", I get the expected sorted list. Also, other commands like "busybox ls -la" work.
My Phone is a Samsung Captivate i897, rooted from Gingerbread with Corn Kernel v7.06 with Superuser and BusyBox installed.
How can I get the Busybox version of the shell commands to run without having to type "busybox" all the time?
I am currently working on application in which I need to display lists in different languages, so, is there any API to get the supported language list for android? I am currently using SDK 1.5. And it is observed that Hindi and Hebrew are not supported. So, I need to avoid such languages to be displayed on UI.
View 4 Replies View RelatedI want to send AT commands in my Android application, but I could not find the right syntax. How can I do this?
View 1 Replies View RelatedI'm a little bit confused about supporting SPP by Android API(from level 5). As I understand it wasn't supported in versions before API level 5 what we can read in discussion below.(First Nick's post) http://groups.google.com/group/android-developers/browse_thread/threa. But it was in October and after that we have APi from 5 to 7 now released. And my question is do all these API's support SPP? As I read in other discussions some phones makes more difficulties than others. Which mobile phone you can recommend?
View 2 Replies View RelatedWhat are all the JSR s supported in Android? Is JSR 226 supported?
View 3 Replies View RelatedI am Graduating in Computing Science, and my final project is a complete research in Android's Platform, with a development of an application. I would like to know how can I get the complete documentation, beacause my research is very thorough, and I relly on books and documentation. The current site I am reading about methods and activities, etc is the Dev Guide on developer.android.com. I don't know if is it complete there. But if you know, could you please show me the link, or tell me how to get it?
View 3 Replies View RelatedAnyone know where I can find what Android APIs are supported in the latest Flex AIR SDK (Hero). In particular is the speech to Text API supported?
View 2 Replies View RelatedI am trying to write an android app for root users that runs a series of shell commands, or a shell script if that is preferable, and displays the output... can anyone point me in the right direction?
View 1 Replies View RelatedI use a headset with a microphone for Pandora. It has a media button on it that when pushed, will pause or play the Pandora app or accept a phone call in which case Pandora is paused. However, pushing the button with the X brings up the voice command window. Is there anyway to disable or remove this app altogether? If it can be removed, I want to be sure that this app is not associated with the talk to text feature, which I use and like. is there any way to disable or remove this application from the X?
View 2 Replies View Related