General :: Possible To Use Setprop Command In CWM?
May 13, 2012
I'm trying to make a patch for my phone and was wondering if it's possible to use the setprop command in CWM? I need to adjust some build.prop settings and was hoping to make it easy. XT860 running ICS
View 2 Replies
Mar 3, 2009
I have to execute the shell command
setprop net.dns1 xxx.xxx.xxx.xxx
from an android activity but i can't find a working way to do it. How can i execute this command from the application?
View 4 Replies
View Related
Sep 6, 2010
I have a rooted samsung captivate with sideloading enabled. After experimenting with different wifi tethering apps from the unofficial market, I began experiencing difficulties with my wifi connection. Even after uninstalling every app that I thought was changing the wifi state, the problem still persists. I can turn on the wifi and it will act normally for about 30 seconds before turning off without user intervention. In dmesg, the error is as follows: 'mmc1: Got command interrupt 0x00060001 even though no command operation was in progress.' Is this caused by an app or is this a more complicated problem?
View 15 Replies
View Related
Apr 6, 2013
I have milestone A853. I want to up cook ROM but it can't enter recovery menu because camera button have problem. Any enter menu of recovery with adb command?
View 2 Replies
View Related
Mar 20, 2013
How to take logs file with adb command
View 2 Replies
View Related
Sep 9, 2013
I'm having a problem with unlocking my phone. Some of my friends tried to unlock the pattern but after 20 failures the phone blocked. Now I have to submit my google login so I can get back on it. The problem with that was that I was on vacation abroad so my 3G and wifi were both turned off. I've read about other problems like this and came to a point where I was trying to turn on my wifi with adb. I found that I could use the command "svc wifi enable" and I tried this several times, every time with the same result: I think the command starts but then gets killed before it finishes.
View 9 Replies
View Related
Aug 23, 2013
I am new user in the area of Android, but have Linux knoweldge. I am trying to configure my android device LG Nexus 4 to act as Document Camera
For this purpose, I have to scp the files and then remove the files remotely. I have installed SSH server and my scp works, but my remote execution of commands using ssh not working, it throws error
with -v ssh gives the following messages
"Authenticated to 192.168.21.233 ([192.168.21.233]:57388).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: rm -rf /storage/emulated/0/DCIM/Camera/IMG_20130822_111706.jpg
exec request failed on channel 0 "
when I goggled it says that editing ssh_config file and uncomment: 'AddressFamily all' and changing it to 'AddressFamily inet' will work I checked in the android devices /etc directory, I did not find the ssh_config
View 1 Replies
View Related
May 22, 2014
My device only supports adb on recovery but its sideload. How to boot fastboot in recovery? Can't access fastboot without adb command. Volume keys not working.
View 5 Replies
View Related
Nov 8, 2012
The latest version of Google Now (2.1) doesn't like being flashed. If you flash it via CWM it seems to break voice search functionality, causing a force close.
Playing with the adb shell, I discovered that the pm install command works nicely:
Code:
pm install [APKNAME].apk
So, I thought this would be perfect to execute in a shell script via CWM/Edify.
So far I've tried all manner of commands. First I was trying the above command in a install.sh file, before I realised that "pm" wasn't present anywhere in /sbin/ (the header of my shell script is #!/sbin/sh").
So, I've tried this:
Code:
#!/sbin/sh
exec /system/bin/pm install data/media/install/Velvet.apk
Here is the update script:
Code:
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Mounting data...");
run_program("/sbin/busybox", "mount", "/data");
[Code] .....
Which, copies the files correctly. This also isn't my first time running scripts in my installer, but this is the first time I've attempted this. To no avail. This same command works in the adb shell, though.
Also, is there another way of flashing that may work? I heard about putting the original file ("Velvet.apk") in /system/app and then putting the updated version in /data/appcom.google.andorid.googlequicksearch-1.apk but this doesn't work either.
Running the above script in Busybox installer's script running function also works perfectly. The only thing it won't do is install from CWM.
View 2 Replies
View Related
Oct 24, 2012
How can i make a .sh file with more than 1 command in it?
for example:
echo "90" > /sys/devices/system/cpu/cpufreq/lulzactive/inc_cpu_load
echo "1" > /sys/devices/system/cpu/cpufreq/lulzactive/pump_up_step
echo "2" > /sys/devices/system/cpu/cpufreq/lulzactive/pump_down_step
echo "50000" > /sys/devices/system/cpu/cpufreq/lulzactive/up_sample_time
echo "40000" > /sys/devices/system/cpu/cpufreq/lulzactive/down_sample_time
echo "5" > /sys/devices/system/cpu/cpufreq/lulzactive/screen_off_min_step
Can I make a single .sh file and don't have to split it in 6 different file??? (this file should be executed with scriptmanager)
View 3 Replies
View Related
Feb 28, 2012
I'm currently working on a project which involves imaging Android phones - specifically, the program I've written is mean to automate identifying the memory block containing the userdata and then using the following sequence of commands (using Android Debug Bridge) to copy it to the computer that the phone is connected to:
Code:
adb forward tcp:5555 tcp:5555
adb shell
busybox nc –l –p 5555 –e dd if=/dev/mtd/mtd[mtd block number] bs=4096
This is done in command prompt and then you have to manually open another command prompt and type in:
Code:
adb forward tcp:5555 tcp:5555
nc 127.0.0.1 5555 | dd of=[chosen file name].bin bs=4096 -- progress
This copies the memory block over without any problems when done manually and even shows you in real time how much data has been transferred.The problem I have is with automating the process in C#. Specifically, I can get every stage of it to work through using a process to write the commands to standard input and using a tcp listening port to receive the data. Apart from this crucial element of the process:
Code:
adb shell "busybox nc –l –p 5555 –e dd if=/dev/mtd/mtd[mtd block number] bs=4096"
For some reason, no matter how I try to phrase it or do it, C# hates that command and won't execute it. I can manually type the exact same thing into the command prompt and it works fine but trying to do it in C# just leads to busybox acting as though I typed the command in incorrectly - this is what it gives me:
Code:
BusyBox v1.15.2 <2009-11-27 10:38:30 GMT> multi-call binary
Usage: nc [-in] [-wN] [-l] [-p Port] [-f FILENAME|PADDR PORT] [-e PROG]
Open a pipe to IP:port or file[code]....
At the moment I'm using a script to send the commands to the command prompt but that's a kludge that I'd really prefer not to have to use.
View 4 Replies
View Related
Feb 15, 2012
How do install a *.apk from adb command line?
First I tried to cp the *.apk from /sdcard/backups/apps to /system/app (after rw mounting the file system of course)
I did successfully move it to /system/app but the *apk was not "installed"
then I rm it and tried:
install /sdcard/backups/appa/<package>.apk /system/app
and it copied the *apk to /system/app but still was not "installed"
I also tried:
install /system/app/<package>*apk but got the error dialog:
Code:
BusyBox v1.19.0.git.adrynalyne (2010-12-21 22:03:30 MST) multi-call binary.
Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST
Copy files and set attributes
Options:
-cJust copy (default)
-dCreate directories
-DCreate leading target directories
-sStrip symbol table
-pPreserve date
-o USERSet ownership
-g GRPSet group ownership
-m MODESet permissions
My goal is to figure out how to use adb command line and also I want to install an app as if it were a pre-installed app. For example pre-installed apps don't show up as a removable app and stay installed after a factory reset.
View 9 Replies
View Related
May 8, 2014
I'm trying to see my phone's internal memory (total and free) via ADB. I have a broken screen, so I can't access the phone directly. I searched a lot both here at XDA and on the web.
I need to check via ADB how much storage is available and free. I need this to check if the phone has been successfully erased before selling it.
View 4 Replies
View Related
Sep 13, 2012
Is it possible to play sound on Android device from terminal command line? How to do it?
View 1 Replies
View Related
May 24, 2012
How to create a script to run a terminal command. I looked up google but didn't find any good results.
View 9 Replies
View Related
Jun 18, 2012
I want to pause terminal 'top' command. I tried using 'top -d 1000' but it makes it draw its output for the first time after 1000 seconds from launch, so first I would have to wait 1000 seconds to actually see its output.
How do I make 'top' stop refreshing itself?
View 1 Replies
View Related
Jun 17, 2013
I'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 Related
May 14, 2013
The backstory first:
I have a Nexus 10. I like to plug it into my TV via HDMI and watch videos or play games, or what have you. Since the aspect ratio doesn't match the TV I get black bars on the sides. In a command line, one can type
Code:
am display-size 2560x1440
to change the resolution of the screen and get rid of the black bars on the TV completely (at the cost of adding black bars on the top and bottom of the tablet.)
Code:
am display-size reset
Sets it back to normal.
Rather than typing this into a terminal /every time/ I want to do this, is there a simple widget or app that will let me set up a shortcut on the homescreen that I can just click on to toggle instead?
View 3 Replies
View Related
Jun 2, 2014
I pushed + and power the red triangle pops i went to adb devices it showed the devices on recovery mode. Is there a command that i can put to wipe data? Such as adb shell command.
View 1 Replies
View Related
Dec 11, 2013
I would like to "deploy" .apk files to a set of tablets for student use in the school. Every now and then I will be required to install new apps across a range of devices. I have sorted out the transfer of the apk files to the tablets using an app called "FolderSync" so that the files will be local on the SD Card. Hopefully this part should not be problematic. Due to the fact that the tablets will be used by students, I want to make the process of installing the apps as automated as possible. Using the command "pm install <app.apk>" command I have achieved this step also. My trouble is that I will require the script to improvise and find all apk files in a folder and install them. So far I have tried the following:
Code:
su
cd /sdcard/FolderSync/
find *.apk -exec "pm install {}" ;
However this returns "find: pm install app.apk: No such file or directory" This may be more of a Linux issue than android, or maybe even just me missing something obvious, however I have tried adjusting the syntax here and there and can't figure out how to successfully install a directory of .apk files.
View 2 Replies
View Related
Jun 7, 2012
What command is used to make a Nandroid backup? I did try the dd command from terminal. But it did not give me a image that i could open with the new yaffey? The tool is here: [URL] .....
View 3 Replies
View Related
Aug 14, 2013
Am I wrong in thinking that a dd based tool would be better than having to rely on a 3rd party recovery? If you used to dd, you wouldn't have to deal with any of that stuff right? Could you not just make images of all the partitions of your device and store them on your computer as backup? Then if you get bricked, could you not use those images again and just re-image the drive?
That's the problem I'm having with my device. My buttons will no longer function so I can't flash anything in the recovery and using Odin (Samsung) to flash works but no existing roms or kernels that I can find will fix the touchscreen.
However, I can access the device through ADB and I'm assuming I could get the device to show its partitions on Linux right? So then could I use someone else's existing partitions and re-image those on my device?
View 2 Replies
View Related
Apr 11, 2012
i have made a kinda theme installer (for stockrom)..
so.. first of all i extract needed file from assets to sdcard
n on button click i add this line of code..
the code is work n sometimes not...
when execute the code, my phone hang for several time
"here is the line of execution code :
Code:
Process ppush;
try {
ppush = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(ppush.getOutputStream());
os.writeBytes("mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
");
os.writeBytes("cp /mnt/sdcard/dys/SystemUI.apk /system/app
");
[code].....
View 4 Replies
View Related
Jun 8, 2012
When 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?
View 1 Replies
View Related
Jun 24, 2012
I have a new Galaxy Note running ICS, successfully rooted and with Titanium Backup installed.
TB opens fine and appears to be in order, but I have no "Batch" command. I've read support pages and watched YouTube videos; the option simply isn't in the menu as it should be.
View 9 Replies
View Related
May 21, 2013
Using Cron4Phone:
I want to shutdown the phone every night at a certain time via cron. Normally in Linux, you can use shutdown -h or Poweroff. Neither command works.
Their command in the program uses reboot -p which I understand to not be a good way to shutdown the phone as it is essentially the same as a battery pull.
I have busybox installed and have tried with full root permissions using busybox poweroff -f and nothing happens. Is there a simple command that I can push in there to safely shut down the phone?
View 1 Replies
View Related
Nov 14, 2012
I am looking for a way to send an email, preferably with an attachment, from a command line shell script (bourn/ash/whatever-it-is). No user interaction is a requirement.
It looks like an "am start" command might be able to do it via launching another app, and I've seen some examples out there, but nothing that I've had success with.
I have a big rsync backup script that I run to back up my device to my server, but I want to be able to email myself a notification if the backup fails, along with a copy of a log file. This script runs on a regular basis via a scheduler without any user interaction, but I have noticed that rsync has been failing recently and I've needed to re-run it manually later.
I am a pro Linux sysadmin but don't know jack about Java. I do bash, python, perl, and some C. My current script is just a sh shell script.
FYI my device is a Nexus One on Cyanogen 7.2. FYI I own the mail server here. I use k9mail as my primary mail app but the gmail app could be used as well.
If there was just a "mail" command.
View 3 Replies
View Related
Jun 27, 2011
I noticed in the newer releases of busybox there's no 'zip' command anymore. I'm running busybox 1.19 on my Incredible.
I have been using this command to create different bootanimation.zip files from my phone but am wondering if there is an alternative command I can use from within Android. I've tried tar -cvzf but I believe tar archives/compresses the files differently and renaming the extensions to .zip does not work.
View 8 Replies
View Related
Nov 6, 2011
I always had windows mobile devices in the past, and like you must know, the old good windows mobile no longer exist... Microsoft killed it.
So I switched to Android. I really like android, The way it works is pretty the same than windows mobile with file browser, files system(Not like the Iphone without any way to deal with a file at all), .APK install like the .CAB on WM...
One think that I loved on WM is how easy it was to make shortcut by yourself, even with parameters. As example, it was easy to create a shortcut to Coreplayer to play an HTTP stream when simply clicking on it.
Like: "coreplayer.exe my_teststreamDOTcom : portNumber"
View 5 Replies
View Related
Apr 26, 2011
I'm trying to add an application to the android source code in packages/apps. I have been following several tutorials and they all use the "mm" command to build their app they are adding. But I can't find the "mm" command in any of the android source code that I have downloaded and built.
-- mm: Builds all of the modules in the current directory.
Does mm have to be downloaded separately? When I build android source code, I get a folder containing lots of commands but mm is not there.
View 4 Replies
View Related