General :: Use SU From Within Shell Script?
Jul 20, 2012
i want to run su -c "chroot some/folder /some/script" from within a shellscript but it just does nothing for a moment and fails then. it works if i run it directly from the shell or if i am already root.
View 2 Replies
May 15, 2013
if there is an folder app or a way to get the cool folders from TSF SHell with their nice animation or feature to pull out the apps with a wipig gesture?
View 1 Replies
View Related
Sep 13, 2012
Some directory of the Wallpapers of TSF Shell?
I want set one as my lookscreen.
View 3 Replies
View Related
Jan 29, 2013
Is there any method to install a modding zip, like SystemUI mod, via adb shell instead of CWM?
View 3 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
Jun 25, 2013
i have created a TSF Shell theme and is working perfectly on my device. However, the same is not the case when installed from Play Store. The theme refuses to show up in TSF Shell themes.
View 2 Replies
View Related
Feb 11, 2012
Cyanogenmod 7.2 has vim (and nano) installed, but when i use vim, the full size of my terminal is unused, and the cursor position and what is displayed become asynchronous. I have tried setting TERM=linux and TERM=xterm (I'm using OS X terminal which emulates an xterm), but neither get me a working vim. vi, which is part of busybox works fine. nano also fails to use the height of my terminal window, and additionally the enter key is broken.
Any way config to get a working vim using android?
View 1 Replies
View Related
Nov 8, 2012
I have an Amazon Kindle and the SGS2 which I take out and about with me.
I want to be able to transfer documents to and from the phone and Kindle (already got SSH access to the Kindle over WiFi) while out and about.
My phone is rooted and I've installed dropbear SSH. I can use connectbot to SSH into the phone locally but the shell I'm presented with doesn't see `scp`. I believe this is supposed to be included with dropbear? How do I get scp from this shell?
The reason I'm looking to do it all from a root shell on the phone is becuase I believe this is the only way to get access to the clients connected to the virtual access point. Hence I'll be able to:
be in the middle of the desert, create a WiFi tethering hotspot with the phone (though it has no signal), connect the Kindle to the phone via this access point, get a root shell on the phone and scp documents from the phone to the Kindle.
I believe I am as far as this final step but need an extra kick to get me there. Perhaps I need to install another shell?
View 3 Replies
View Related
Feb 8, 2012
i am using spb for a long time.but there are many other cool, clean launchers which do not need as much cpu/ram.so i do not need most of the spb thinks. i do not use most of the spb widgets.but i really really love the 3d sms and 3d birthday widget.
It is not possible to get widgets running outside there own launcher.i searched the web for a really long time to find widgets which are looking as cool as this 2 widgets.tell me such widgets so that i can drop spb and use it in an other launcher?
View 4 Replies
View Related
Mar 29, 2012
is there any tool for creating TSF Shell theme ? (like go theme factory)
View 1 Replies
View Related
Nov 6, 2011
HTC sensation blackscreen, trying to flash a nand backup. ADB, fastboot and Shell working.
I got into shell, can #ls that directory ok ..#cd sdcard... try to #ls sdcard or any other folder and will not show content. Im not up with linux commands. I believe I am missing a mount command somewhere.
What Im after is the location of backup folder so I can see the filename of the nand backup to restore in fastboot. And the commands necessary to restore a nand backup via adb, shell or fastboot.
View 9 Replies
View Related
May 1, 2014
What does this mean? is it normal? i have it showing up quite a few times in my superuser logs. like, several times within a minute. today is the first day. been running this rom for about a week.
I read that disabling usb debugging will stop it, but thats already disabled...
I am running dmans stock ics for samsung captivate glide.
View 2 Replies
View Related
Nov 30, 2012
I have chinese tablet, probably it's a any product of MID, becouse on start appear MID logo, perhaps it's only firmware from MID devices. At the back I can see m70008 maybe it's version of tablet. That tablet was blocked by too much write bad pattern and don't know google e-mail. So I tried do wipe data via adb, and probably I do wipe all . Tablet stuck on bootscreen, and system don't start. If I try run shell via adb I get error "- exec '/system/bin/sh' failed: No such file or directory (2) -"what I have to do ?.
View 1 Replies
View Related
Jul 2, 2012
I'm using ICS (AOKP with some CM9 patches). I'd like "adb shell" to bring up bash instead of mksh. Is there any way to do this? I tried linking /bin/sh to `which bash`, but that caused system problems--I lost USB debugging completely and had to restore from nandroid backup.
View 2 Replies
View Related
Jan 14, 2014
I 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
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
Dec 31, 2012
Are there commands to switch the bluetooth adapter on and off from the shell? Googling has turned up nothing in particular.
(If it matters, I'm using a Galaxy Nexus, and trying to put together a script to cycle my bluetooth adapter on boot.)
View 1 Replies
View Related
Sep 18, 2013
I am having trouble finding the right command to copy a file from a device via adb shell to my pc. I tried -mv- but that just renamed it.
Code:
mv Camera c:/camera
renamed to c:camera
View 5 Replies
View Related
Feb 13, 2013
I am completely lost in trying to implement a silent install-from-apk-file and unistall-package-name by using the adb shell command 'pm'.
I'm doing the project in Eclipse, emulator 2.2, rooted (tested during runtime using RootTools.isRootAvailable()).
Here is the relevant code:
Code:
@Override
public void onClick(View v) {
switch (v.getId())
{
case R.id.btnInstall:
[Code] ......
In the code above I have hardcoded the command for the case 'R.id.btnInstall' to make sure there's no typo, but I get a return value of 9 from install.exitValue().
View 1 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
Oct 26, 2011
is it possible to send sms via adb shell from pc to android phone (via usb) ??
View 4 Replies
View Related
May 16, 2013
I decompile an apk (an ordinary TSF Shell theme) without any problem but when it comes to recompiling. Its always the same error. Trying this for a week with apktool, tickle my android and with apk multi tool. When I send my decompiled files to my friends they can compile it but on my computer at home or at work I get the same error forever. I have Windows 7 Ultimate 64 bit installed. You can see installed java version on the code.
Code:
|16.05.2013 -- 23:22:52,12|
--------------------------------------------------------------------------
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
[code]......
View 1 Replies
View Related
Sep 23, 2012
I recently awoke my Galaxy Nexus (takju) from the lockscreen; inadvertently pressing the key combo [vol-up + vol-down + power] initiating a 'Bug Report' (dumpstate) command
Upon entering the Homescreen I was seeing the infamous 'shell has been granted Superuser permissions' toast ~2 seconds apart which lasted ~2 minutes, subsequently vibrating and opening a new message in Gmail containing 2 files - bugreport-date-time.txt and Screenshot_date-time.png (Sent from BugMailer).
This 'toast' has been reported in various device forums/threads and I thought this may shed some light; whether it was a dumpstate command initiated by an inadvertent key combo (as in my case) or a system/app crash bugreport.
If you have experienced this 'toast', check your internal storage (sdcard) for the - /sdcard/bugreports/bugreport.txt and /sdcard/Pictures(in JB)/Screenshot/Screenshot.png - the timestamp of the dump should be in the filenames.
View 7 Replies
View Related
Apr 6, 2012
Shell script for compiling a kernel that i could use?
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
Apr 24, 2012
The DroidExplorer shell gives "adb: permission denied" cannot access properly into Coby Kyros MID7125 tablet.
I cannot see my root contents and folders with shell. I have rooted my MID7125 and it has ClockWork recovery too. I have made a backup successfully. I can connect to it with my PC using DroidExplorer. I go into shell and get my $ prompt. I enter adb devices and get the following: "adb: permission denied" Is there a password? If so, what is it and how do I enter it to access properly. How can I see the folders?
I used this method to root. [URL]
I originally used the SuperOneClick method and had the same outcome.
I followed this to get my PC ready for DroidExplorer. Howto: Install the Android SDK - CyanogenMod Wiki
View 1 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
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 25, 2012
i had a issue " not enough space" when i reinstalled tsf on my device , i had installed tsf shell several times before that , but when i used lucky patcher to remove it , then i coundnt reinstall it anymore , the " not enough space" kept appearing although there are plenty free space in my phone .i tried to find *odex titanium file to remove it due to some thread but i coundnt find that file.
View 2 Replies
View Related
Sep 9, 2012
I am wondering what terminal command I can use to check if a process has been cached. On my Sprint Galaxy Nexus, rooted, with the latest build of the Paranoid Android jelly bean rom, I can go to my settings, click on apps, swipe to the "Running Apps" list, and click on the button at the top of the screen that says "Show Cached Processes," and that displays the list that I am trying to access. My reasoning for doing this, is to use "Secure Settings" in conjunction with "Tasker" to check if my "Groove IP" application is running. Initially, I was trying to use "pgrep -l com.*" and check that list for "com.gvoip" too see if "Groove IP" is running in the tray (pull down menu), but if the process is cached, it still shows up in that list. How to get a list of cached processes from terminal.
View 4 Replies
View Related