Translate

Everything About Android !

Monday, 31 August 2015

UseFull Codes Of Terminal Emulator From My sight Must Try

="text-align: left;" trbidi="on">

Hi guys!

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!

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)

Code:

su



Turning device off (Turns your device off very fast!! ):
Code:

poweroff


Rebooting code

reboot

Rebooting to Recovery


reboot recovery


Rebooting to download mode:
Code:
reboot download

Forcing Most Apps to install to SDcard(Root needed with Terminal Emulator, no need root with ADB):

Code:
pm setInstallLocation 2

Alternatively, you can type 0 at the end instead of 2 for Auto location install mode or 1 for Internal memory install mode

To check what the current install location is:
Code:
pm getInstallLocation

Mounting R/W in system(Use with caution)

Code:
mount -o rw,remount -t /system

If above one doesnt work, try this.
Code:
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system

Unmounting R/W in system.
Code:
mount -o ro,remount -t /system

If above code doesn't work, try this
Code:
mount -o ro,remount -t ext3 

Moving files from sdcard to system (Use after mounting R/W):
Code:
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):
Code:
chmod 644 <path>
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:
Code:
cd <path>
Example: cd /sdcard

Listing all the files and folders under the current directory:
Code:
ls
If you want to view all the files and folders in your sdcard, type:
cd /sdcard
ls

Making a new folder:
Code:
mkdir <path>
Example: mkdir /sdcard/newfolder

Removing files (For System files, Use after mounting R/W)
Code:
rm <path>
Example: rm /system/app/demoapp.apk

Removing Folders:
Code:
rmdir <path>
Get info of your build.prop values
Code:
getprop

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.




0 comments:

Post a Comment