Useful Commands in Terminal Emulator
I created this thread mainly because many useful things can be done in Terminal emulator. I will show you some simple commands which are useful.
Very useful if you don't have Root explorer when you need it.
Make sure you take a Nandroid backup before you try out just in case you can restore when you do something wrong!
You can get terminal Emulator from here: https://play.google.com/store/apps/d...roidterm&hl=en
Note: Most commands need root. So type su and press enter and grant superuser permissions to Terminal Emulator!
First type this command before using any of the commands below just in case(needs root)
Some useful commands:
Turning device off (Turns your device off very fast!!
Rebooting to Recovery
Rebooting to download mode:
Forcing Most Apps to install to SDcard(Root needed with Terminal Emulator, no need root with ADB):
Alternatively, you can type 0 at the end instead of 2 for Auto location install mode or 1 for Internal memory install mode
pm setInstallLocation 2
To check what the current install location is:
Mounting R/W in system(Use with caution)
mount -o rw,remount -t /system
If above one doesnt work, try this.
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
Unmounting R/W in system.
mount -o ro,remount -t /system
If above code doesn't work, try this
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
Moving files from sdcard to system (Use after mounting R/W):
busybox cp /sdcard/<path> /system/<path>
Example: busybox cp /sdcard/demo/framework-res.apk /system/framework/
Changing file permissions to rw-r--r-- (Use after mounting R/W):
Example 1: chmod 644 /system/app/mms.apk
Example 2: chmod 644 /system/app/*.apk (This command changes the file permission of all apps in the folder to rw-r--r--)
Changing the current directory:
Example: cd /sdcard
Listing all the files and folders under the current directory:
If you want to view all the files and folders in your sdcard, type:
Making a new folder:
Example: mkdir /sdcard/newfolder
Removing files (For System files, Use after mounting R/W)
Example: rm /system/app/demoapp.apk
Get info of your build.prop values
That's all for now. I will add a few more later!
If you have any more new commands or if I have given an improper command, feel free to post it in the thread
Thanks for reading.