[Android] 从模拟器永久删除系统apk
2014-06-11 17:50
309 查看
这里介绍的方法是无需重新打包system.img以及可以从system.img中永久删除系统apk。
1. Goto …….\android-sdk_r08-windows\android-sdk-windows\platforms\android-9\images (this
is the default folder for SDK Platform Android 2.3, API 9, revision 1), copy system.img and paste it
to C:\Users\Username\.android\avd\Emulator’s name.avd
2. Modify hardware-qemu.ini, change:
disk.systemPartition.initPath =
C:\Users\Username\.android\avd\Emulator’s name.avd/system.img
3. Type the following: emulator –avd avd-name –partition-size 100 and
hit Enter(please replace avd-name with
your emulator’s name). This command will launch your emulator. Please don’t try to launch it from SDK manager, otherwise, it won’t work.
4. Launch another command prompt window, switch to …….\android-sdk_r08-windows\android-sdk-windows\tools
, type in: adb -s emulator-5554 shell and
hitEnter
5. Now, type in: mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system and
hit Enter. This will remount the /system in
read-write mode. Because we will copy some files to /system/app later,
we must set read-write permission to that directory. To do it, type the following: chmod 777 /system/app ,
hit Enter. After that, you need to exit. Type exit,
hit Enter again.
6. Now, you need to remove SdkSetup.apk from /system/app (if
it is not removed, the SDK will be restore in next session). In the second command prompt window, type: adb shell rm /system/app/SdkSetup.apk
, hit Enter.
7. Backup system.img, copy temp file from
C:\Users\UserName\AppData\Local\Temp\AndroidEmulator\ to
C:\Users\Username\.android\avd\Emulator’s name.avd/
8. Close your emulator.
9. Go to C:\Users\Username\.android\avd\Emulator’s name.avd and
delete these two files: userdata-qemu.img and cache.img.
10. Rename temp file to system.img
11. Launch your emulator in the normal way.
http://blog.chinaunix.net/uid-15059847-id-2973301.html
1. Goto …….\android-sdk_r08-windows\android-sdk-windows\platforms\android-9\images (this
is the default folder for SDK Platform Android 2.3, API 9, revision 1), copy system.img and paste it
to C:\Users\Username\.android\avd\Emulator’s name.avd
2. Modify hardware-qemu.ini, change:
disk.systemPartition.initPath =
C:\Users\Username\.android\avd\Emulator’s name.avd/system.img
3. Type the following: emulator –avd avd-name –partition-size 100 and
hit Enter(please replace avd-name with
your emulator’s name). This command will launch your emulator. Please don’t try to launch it from SDK manager, otherwise, it won’t work.
4. Launch another command prompt window, switch to …….\android-sdk_r08-windows\android-sdk-windows\tools
, type in: adb -s emulator-5554 shell and
hitEnter
5. Now, type in: mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system and
hit Enter. This will remount the /system in
read-write mode. Because we will copy some files to /system/app later,
we must set read-write permission to that directory. To do it, type the following: chmod 777 /system/app ,
hit Enter. After that, you need to exit. Type exit,
hit Enter again.
6. Now, you need to remove SdkSetup.apk from /system/app (if
it is not removed, the SDK will be restore in next session). In the second command prompt window, type: adb shell rm /system/app/SdkSetup.apk
, hit Enter.
7. Backup system.img, copy temp file from
C:\Users\UserName\AppData\Local\Temp\AndroidEmulator\ to
C:\Users\Username\.android\avd\Emulator’s name.avd/
8. Close your emulator.
9. Go to C:\Users\Username\.android\avd\Emulator’s name.avd and
delete these two files: userdata-qemu.img and cache.img.
10. Rename temp file to system.img
11. Launch your emulator in the normal way.
http://blog.chinaunix.net/uid-15059847-id-2973301.html
相关文章推荐
- Android模拟器永久删除卸载系统APK(Windows & Linux平台)
- Android上去掉系统菜单栏,删除SystemUI.apk
- android删除系统 apk
- android不用root删除系统apk
- 工作android笔记 1:删除apk,2修改系统权限,3logcat打印出自己的信息,4mac用vi修改环境变量
- 编译Android时,添加或者删除system.img中第三方apk、更改Android系统默认语言 .
- 编译Android时,添加或者删除system.img中第三方apk、更改Android系统默认语言
- 编译Android时,添加或者删除system.img中第三方apk、更改Android系统默认语言
- Android模拟器永久删除卸载系统APK(Windows & Linux平台)
- 如何删除android系统只读权限的APK
- 编译Android时,添加或者删除system.img中第三方apk、更改Android系统默认语言
- android模拟器重启防止恢复重置,永久删除系统应用apk
- android删除系统内置apk(system/app目录下apk)
- 编译Android时,添加或者删除system.img中第三方apk、更改Android系统默认语言
- 编译Android时,添加或者删除system.img中第三方apk、更改Android系统默认语言 .
- 小白学习android(四): 如何在eclipse模拟器上运行下载好的apk程序+删除
- 编译Android时,添加或者删除system.img中第三方apk、更改Android系统默认语言
- windows下的android删除模拟器中的apk文件
- 编译Android时,添加或者删除system.img中第三方apk、更改Android系统默认语言