-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandroid.txt
94 lines (73 loc) · 3.09 KB
/
android.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#make/emulator source
make -j4
emulator-arm -avd em_2.3 -data out/target/product/generic/userdata.img -system out/target/product/generic/system.img -ramdisk out/target/product/generic/ramdisk.img -kernel prebuilt/android-arm/kernel/kernel-qemu -no-boot-anim -partition-size 512 -cpu-delay 0 -logcat '*:e' -qemu -m 512
#-------------------
adb remount
adb shell
rm /system/app/filename.apk
pm uninstall `awk -F \" '/'filename'/ { print $2 }' /data/system/packages.xml`
adb shell rm system/app/YouTube.apk
adb uninstall com.google.android.youtube
#-------------------
adb shell cat /proc/mtd # info about part..
adb shell df # free esource
adb logcat -b radio # radio logcat.
adb logcat -b events
zip -d Contacts.apk META-INF/* #Remove existing signature
jarsigner -verbose -keystore cipcon-contacts-key.keystore Contacts.apk shared #add new sign
#unpack apk file.
#-------------------
#http://code.google.com/p/android-apktool/
apktool d Application.apk AppDir
sudo update-java-alternatives -s java-6-sun #if error
#-------------------
# get adnroid config file
#-------------------
adb pull /proc/config.gz .
gunzip config.gz
mv config .config #move to kernal source
#or together
adb pull /proc/config.gz . && gunzip config.gz && mv config .config
#-------------------
# LOG
#-------------------
adb shell cat /proc/kmsg
# or simple
adb shell dmesg
#-------------------
# MULCA SIGN APK
#-------------------
mkdir META-INF
echo "163abca4ababbf867ac7129078e195c1432bfca8407215950649cfac70479214795754a3c8" > META-INF/ROMOS_SIGN.SF
zip -r -q scheduler_st2.apk META-INF
rm -r META-INF/
# or together
mkdir META-INF && echo "163abca4ababbf867ac7129078e195c1432bfca8407215950649cfac70479214795754a3c8" > META-INF/ROMOS_SIGN.SF && zip -r -q scheduler_st.apk META-INF && rm -r META-INF/
#-------------------
# MULCA SIGN APK
#-------------------
zip -d -q scheduler_st.apk META-INF/ROMOS_SIGN.SF
#-------------------
# for nook color adb
#-------------------
sudo sh -c 'mkdir -p ~/.android; echo 0x2080 > ~/.android/adb_usb.ini';
#-------------------
#intall system apk
#-------------------
adb shell
mount /system
exit
adb push c:\Gmail.apk /system/app/Gmail.apk
#or
adb install c:\Gmail.apk /system/app/Gmail.apk
ls /system/app
#-------------------
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system # remount system
adb shell dumpsys iphonesubinfo # get imei
294A215E7639C2C4 # sony ericsson xperia ray unlock bootloader IMEI: 359590041369007
adb logcat -d | ndk-stack -sym obj/local/armeabi # Show normal Stack trace of NDK crash
adb reboot bootloader
sudo ./fastboot flash boot ./path_to_boot_img/boot.img # flash bootimg
adb shell am start -W -a android.intent.action.MAIN -c android.intent.category.HOME # Press to Home
# Flash htc
sudo $adbpath/adb -s HT0CKP800186 reboot && sudo $adbpath/fastboot erase cache && sudo $adbpath/fastboot erase userdata && sudo $adbpath/fastboot flash system out/target/product/passion/system.img && sudo $adbpath/fastboot flash boot out/target/product/passion/boot.img && sudo $adbpath/fastboot reboot