Enable USB host API support 
I wondered why
mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE);
was empty on an 7" cmx rapax LE 070-0508 tablet.

Also USB Device Info showed an empty Android page, but not an empty Linux page.

The solution was a combination of The USB-HOST API Solution and To enable USB host API support:

create two files

<?xml version="1.0" encoding="utf-8"?>
<feature name="android.hardware.usb.host" />

<?xml version="1.0" encoding="utf-8"?>
<feature name="android.hardware.usb.accessory" />
<library name="com.android.future.usb.accessory"
file="/system/framework/com.android.future.usb.accessory.jar" />
Get /system/etc/permissions/tablet_core_hardware.xml file
#> adb pull /system/etc/permissions/tablet_core_hardware.xml
and add
<feature name="android.hardware.usb.host">
into <permissions> section of tablet_core_hardware.xml

At last remount, upload the files and reboot
#> adb remount
#> adb push android.hardware.usb.host.xml /system/etc/permissions
#> adb push android.hardware.usb.accessory.xml /system/etc/permissions
#> adb push tablet_core_hardware.xml /system/etc/permissions
#> adb reboot

[ view entry ] ( 1187 views )   |  print article
extract an android apk package file and decompile it 
Download APK-Multi-Tool-Linux

Extract AndroidManifest.xml, assets, res Folder and smali (disassembly from Java virtual machine) from an apk
$ cd APK-Multi-Tool-Linux
$ java -jar other/apktool.jar d pace-apk-here-for-modding/ANDROID.apk out

Extract jar from apk with dex2jar to get an .jar file
$ d2j-dex2jar.sh ANDROID.apk

Now you can have a look at the java files with jdgui (found a description at reverse-engineer-an-android-app-apk)

or decompile the class files with jad (found a description at stackoverflow)
./jad -o -r -sjava -dDESTDIR path/to/*/.class

[ view entry ] ( 1011 views )   |  print article
extract .img files from samsung images 
Download Android-Kitchen

Download an image and extract it to ~/image.

compile sim2img
$ cd Android-Kitchen
$ scripts/compile_simg2img
extract ext4 image
$ tools/samsung_files/simg2img_files/simg2img ~/image/cache.img ext4_cache.img
loopmount ext4 image
$ mkdir cache
$ sudo mount -o loop,ro,noexec,noload ext4_cache.img cache

[ view entry ] ( 688 views )   |  print article
Download apk from playstore with a google chrome extension 
apk-downloader is a google chrome extension to easily download apk files from google play store.

start chrome with
#> chromium-browser --ignore-certificate-errors --allow-running-insecure-content

[ view entry ] ( 588 views )   |  print article
Galaxy S3 flash with VD2 taken cache.img and hidden.img from ATO 
According to samsung udate the Galaxy S3 firmware with the highest Changelist at the moment is csc (salescode) VD2 919627 build date 01.02.2013 (Germany Vodafone branded) and my csc image is ATO (Austria unbranded) 566833 build date 10.12.2012 (got this by OTA).

To have the newest firmware but with ATO csc i devided to take cache.img and hidden.img from ATO and boot.img, modem.bin, recovery.img, sboot.bin, system.img and tz.img from VD2.

First I downloaded VD2 and ATO, extracted the X.tar.md5 files, discarded ".md5" from the filenames, untared the ".img" files and compressed a new VD2 archive with cache.img and hidden.img from ATO.

[ view entry ] ( 617 views )   |  print article

<<First <Back | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Next> Last>>