Android Shell - KathaBuzz

Useful Android Terminal (ADB Shell) Commands

To root your Android Device and install custom ROM on your device and install applications, you might requires some android terminal command or ADB (Android Debug Bridge) shell command knowledge. Here are some basic android commands that are being used on Android platform frequently and that every android user must know.

If you can’t find what you are looking for in this, Please post/ask in the comments. We will do our best to get back to you as soon as possible with a solution

Basic Android Terminal and ADB Shell Command List

1. How to open a cmd in Android Phone

Method 1: “Start” – “”Program”-” “Accessories” – “” Command Prompt ”
Method 2: “Start” – “” Run “, type cmd ENTER

adb shell

Android Shell - KathaBuzz
2. How to restart Android Phone
When the phone and Computer is connected to the data cable, you can enter the following
command

 adb shell reboot

3. Restart Android into Recovery Mode
With the data cable connected to your phone and computer, enter the following command

adb shell reboot recovery

4. Convert back to ext2 partition
Restart the phone into Recovery mode, press “Alt + X” into the console. Open cmd and
enter the following command

	adb shell <== ENTER
	tune2fs-O ^ has_journal / dev/block/mmcblk0p2 <== carriage return
	e2fsck / dev/block/mmcblk0p2 <==carriage return (optional, can be aproblem area in section 2, when used)

5. Pulling applications from Android phone to computer

	adb pull /system/sd/app app
	adb pull /system/sd/app-private appprivate

6. Pushing applications back to android phone from the computer

	adb push app /system/sd/app
	adb push app-private /system/sd/appprivate

7. Delete existing apps on Android SD

	adb shell rm -r /system/sd/app
	adb shell rm -r /system/sd/appprivate

8. Repair gravity System or switch to screen
Sometimes frequent brushing of phone can cause gravity system or switch to screen
failure. Just follow the steps belowRestart the phone into Recovery mode, press “Alt + X” into the console
Open cmd and enter the following command

mount / data

9. Ext2/ext3/ext4 formatted partition
Enter the following command in the cmd

adb remount

10. Remove/ system / app under the application
Under normal circumstances / system / app is not under an application. Use the following
methods to remove these applications.
Open cmd and enter the following command

adb remount

11. If the start Time is too Long
Just enter the following command in order to view the boot process.

adb logcat

12. Through Terminal Partition SD card
It will erase everything on your SD card

	$ su
	# cd /data
	# wget http://64.105.21.209/bin/lib/droid/sdsplit4
	# chmod 555 sdsplit
	# /data/sdsplit -fs *size* (add -nc to the end for JFv1.5ADP)

13. From the Recovery Screen, send an update file to your SD card.

	adb shell mount /sdcard
	adb shell rm /sdcard/update.zip
	adb push *filename* /sdcard/update.zip

14. Restoring a nandroid backup via Fastboot
Start command-prompt/terminal cd to the nandroid folder and enter following commands

	fastboot erase boot
	fastboot erase recovery
	fastboot flash system system.img
	fastboot flash boot boot.img
	fastboot flash userdata data.img
	fastboot flash recovery recovery.img
	fastboot reboot

15. Clear Search History in Android
Search History is accounted for Mobile Memory. It can also leak your privacy information as
well. Just follow the steps below to clear android history.
Steps are as follows:

Make sure your mobile phone has Root authority.
Open the super-terminal.
Enter the following command

	su
	rm / data / data /com.android.vending / databases /suggestions.db

Exit Hyper Terminal and restart the phone.

dab reboot oem-78
when permission denied
su
# mount -o remount,rw /system
mount -o remount,rw /system
# rm /system/app/com.wsandroid.apk
rm /system/app/com.wsandroid.apk
#

Changing Font

#su (wait for the superuser screen, and press "yes")
#mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
#chmod 4755 /system/fonts/DroidSansFallback.ttf
#dd if=/sdcard/DroidSansFallback.ttf of=/system/fonts/DroidSansFallback.ttf
#reboot

To exit the terminal on your android device:

#exit

just type exit and press enter.


Please tack few seconds from your valuable time to leave a feedback below to let us know if this was useful or any improvements to do.
If you have more good commands  to add please post in comment section.
Thanks you :D

– 14665 views


Related Posts Plugin for WordPress, Blogger...

People found this article was interesting about:

12 Comments

  • Lakshan de Almeida commented on December 30, 2013 Reply

    I managed to root the i43. Now I’m unable to access fastboot mode. I’m trying to unlock the bootloader using the Nexus method (OEM UNLOCK) but in order to do that, I need to get into fastboot mode. Any idea about the key combination? I tried my best but I just couldn’t get to fastboot. If I can get into it, I will try my best to unlock the bootloader and install a custom recovery. That way, we don’t have to worry about installing bad ROMs, because we can always restore Nandroid backups. Thanks in advance.

    With Regards,
    Lakshan De Almeida

    • Sameera commented on January 28, 2014 Reply

      Try “adb reboot bootloader” via USB debugging

  • Roshan commented on August 31, 2013 Reply

    hi Sameera,

    i need to connect dialog i43 via adb ? Is there a driver to do this? (Actually what i need to do is connect the device to ecplise so i can test apps directly on the phone without using the ecplise emulator)

    • Sameera commented on August 31, 2013 Reply

      Yes you can do it with default USB driver given in the SDK. I have tried and haven’t had any issue.

  • Ravindu commented on May 15, 2013 Reply

    Sameera,

    I had got some issue on my dialog i43 then I took to a dialog arcade and at that time a tech person booted it in to the recovery ( more like xrecovery) please reply if you know how to do that !

    • Sameera commented on May 20, 2013 Reply

      Switch off the device, the turn on while holding the volume up button.

  • Joe Sandy commented on November 21, 2012 Reply

    Do u know how to make device memory (Internal) accessible through adb as I am getting Insufficient-Storage error while downloading apps.

    thx

    • Sameera commented on November 21, 2012 Reply

      well best option you can try is setting default install location to external drive.

  • Myles commented on August 28, 2012 Reply

    sameera i dont understand what you mean by the word level in your sentence :cool:

    • Sameera commented on November 21, 2012 Reply

      Myles, which line you are referring to?

  • Sameera commented on May 14, 2012 Reply

    your feedback is very important to us… so please level them here…. ;)

  • Joy Power commented on April 18, 2012 Reply

    Thanks. I was looking for view partition but this was good also. Thanks for sharing. Peace. :twisted:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img src="" alt="" class="" width="" height="">

http://kathabuzz.com/wp-content/plugins/wp-monalisa/icons/wpml_bye.gif  http://kathabuzz.com/wp-content/plugins/wp-monalisa/icons/wpml_good.gif  http://kathabuzz.com/wp-content/plugins/wp-monalisa/icons/wpml_negative.gif  http://kathabuzz.com/wp-content/plugins/wp-monalisa/icons/wpml_scratch.gif  http://kathabuzz.com/wp-content/plugins/wp-monalisa/icons/wpml_wacko.gif  http://kathabuzz.com/wp-content/plugins/wp-monalisa/icons/wpml_yahoo.gif  http://kathabuzz.com/wp-content/plugins/wp-monalisa/icons/wpml_cool.gif 
more...
 
More in ADB, Android, Command, How to, Shell
android evolution
What is Android

Android is an open source mobile operating system base on Linux operating system and an open platform for developers can...

android_skype
How to install Skype on your Android phone

Skype has is on of the most used features in Android smart-phones. But for some people it has been difficult...

adb

C:\>adb -d - directs command to the only connected USB device returns an error if more than one USB device...

Close