Extract source code from APK file
APK file is a zip file containing all program resource file, we can now get complete source code from APK file with ease. Following are steps to get java code and xml files from an APK.
Upgrade Aakash tablet from ICS to Jelly Bean
Table of Contents
Prerequisite
- Windows XP/Vista/7 system.
- GNU/Linux system.
- Make sure your tablet battery is at least 70% charged.
- Minimum 2GB Micro-SD card
Install CyanogenMod-10 on Aakash tablet
Table of Contents
Prerequisite
- Make sure your tablet is at least 70% charged.
Flash custom ROM on Micromax A45(Superfone Punk)
Custom ROM Xtreme mod-2 is based on Android 2.3.6(Gingerbread) but it is better than Micromax’s stock ROM. No Google apps need to be installed. Make sure you satisfy below requirements and download essential files from Download section.
Android Holo Colors Generator
Swap internal and external memory on Android
Table of Contents
Why increase the internal memory?
Android device comes with limited internal memory. This internal memory may soon get consumed by installed application and other media. Soon there is no space left for new applications and you are out of your phone’s memory.
Give write permissions to external memory(/mnt/extsd) on Android
On a rooted Android device, you can modify your /system/etc/permissions/platform.xml
to fix the permissions issue.
- On the terminal, enter:
adb pull /system/etc/permissions/platform.xml
- Modify
platform.xml
such that media_rw is included in WRITE_EXTERNAL_STORAGE permission:<permission name="android.permission.WRITE_EXTERNAL_STORAGE" > <group gid="sdcard_rw" /> <group gid="media_rw" /> </permission>
- Push your changes
adb push platform.xml /system/etc/permissions/platform.xml
- Finally restart your device.
Change default application install location on Android
To change default install location using adb
- Get the default installation location using (optional)
adb shell pm getInstallLocation
- Set install path to internal memory(
/mnt/sdcard
)adb shell pm setInstallLocation 1
- Set install path to external memory(
/mnt/extsd
)adb shell pm setInstallLocation 2
Extract an APK from Android
Follow the steps to pull or extract an installed apk from android device. This works on ‘rooted’ as well as un-rooted device.
- Determine the package name of the application. The naming convention is “com.organization-name.app-name”, for example com.android.gtalk. Type:
adb shell pm list packages
Look through the list of package names and try to find a match between the app name and the package name. This should be simple in most cases, but sometimes the package name can be completely unrelated to the app name. In such case visit the app on play.google.com and scan the URL. For example, in the URL https://play.google.com/store/apps/details?id=com.kiloo.subwaysurf&hl=en, the package name is com.kiloo.subwaysurf.
- Now get the full path of the APK file using:
adb shell pm path com.example.someapp
The output will look something like this:
package:/data/app/com.example.someapp-2.apk
- Pull the APK file from the Android device using:
adb pull /data/app/com.example.someapp-2.apk