su

Install Google Services, Superuser, Busybox in Android Emulator

Posted on

This post will help you to install the required Google Play Store, Superuser and Busybox binary in your Emulator.

Download the required files from the following URL
GOOGLE SERVICEShttp://www.mediafire.com/download/7cps3k7qgyjcpsp/Google%20Services.zip
SUPERUSER BINARYhttp://www.mediafire.com/download/bgy1et6e3vytge7/Superuser%2520binaries.zip
BUSYBOX BINARYhttp://www.mediafire.com/download/mye5qcejxk54e6v/Busybox%2520binary.zip

The following urls contains a zip file which after extracting would find “install.bat” file. This bat file contains the necessary scripts for installing the corresponding apps and binaries.

The commands present in script file are given below.

1:Installing Google Play Store

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
adb shell chmod 777 /system/app
adb push GoogleLoginService.apk /system/app/
adb push GoogleServicesFramework.apk /system/app/
adb push Vending.apk /system/app/
adb shell rm /system/app/SdkSetup*

2:Installing Superuser binary

adb shell mount -o rw, remount -t yaffs2 /dev/block/mtdblock0 /system
adb push su /system/bin/
adb push Superuser.apk /system/app/
adb shell chmod 06755 /system/bin/su
adb exit

3:Installing Busybox Binary

adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
adb push busybox /system/xbin/
adb shell chmod 06755 /system/xbin/busybox

Please note that once the emulator has been closed the the above files will be deleted. So again the process should be repeated when the emulator is started once again.

Accessing “data” folder in real devices with root access

Posted on Updated on

In this post I am going to demonstrate how to access system folder ie “data” folder in real android devices using DDMS. At times it is necessary to view the contents of  ‘data’ folder which contains all the files such as shared preferences, database or text file of a particular application. By default data folder is accessible while using an emulator but while using real devices the folder is private and it is not accessible by using DDMS. The hierarchy of data folder is shown 

(Image courtesy: Xplore File Explorer for Android)

So inorder to get access use the following steps

  • Connect your device. Make sure that device has ROOT access.
  • Open command prompt (For windows).
  • Set path for android platform tools ie set path=”C:\Program Files\Android\android-sdk\platform-tools” and type enter.
  • Type adb devices and make sure that the phone is listed after executing the command.
  • Type adb shell.
  • Type su.
  • Type chmod  777  /data  /data/data  /data/data/<packagename>/*
  • For example chmod  777  /data  /data/data  /data/data/com.sample.app/*
  • Now goto DDMS and check whether the data folder is accessible.