Android模拟器永久删除卸载系统APK(Windows & Linux平台)
2012-08-22 14:51
537 查看
蓝色内容表示在Linux平台上的操作。
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
On Linux,拷贝到/home/users/<User Name>/.android/avd/<Emulator's Name>.avd
2. Modify hardware-qemu.ini,change:
disk.systemPartition.initPath=C:\Users\Username\.android\avd\Emulator’sname.avd/system.img
disk.systemPartition.initPath=[b]/home/users/<Username>\.android\avd\Emulator’sname.avd/system.img[/b]
3. Type the following: emulator
–avd avd-name –partition-size 100and hit Enter(please
replace avd-name with
your emulator’s name). This command will launch youremulator. Please don’t try to launch it from SDK manager, otherwise, it won’twork.
不使用该命令,可能造成在拷贝apk文件到/system/app时,出现Out of memory的错误。
4. Launch another command prompt
window, switch to …….\android-sdk_r08-windows\android-sdk-windows\tools , type
in: adb -s emulator-5554 shell and
hit Enter
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 nextsession). In the second command prompt window, type: adb shell rm /system/app/SdkSetup.apk
,hit Enter.
7. Backup system.img, copylatesttemp
file from D:\Temp\AndroidEmulator\TMPxxx.tmp toC:\Users\Username\.android\avd\Emulator’s
name.avd/
On Linux,临时文件位于/tmp/android-<user name>/emulator-xxxx
8. Close your emulator.
9. Go to C:\Users\Username\.android\avd\Emulator’s
name.avdand delete these two files:userdata-qemu.img and cache.img.
and system.img.
10. Rename temp file to system.img
11. Launch your emulator inthe normal way.
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
On Linux,拷贝到/home/users/<User Name>/.android/avd/<Emulator's Name>.avd
2. Modify hardware-qemu.ini,change:
disk.systemPartition.initPath=C:\Users\Username\.android\avd\Emulator’sname.avd/system.img
disk.systemPartition.initPath=[b]/home/users/<Username>\.android\avd\Emulator’sname.avd/system.img[/b]
3. Type the following: emulator
–avd avd-name –partition-size 100and hit Enter(please
replace avd-name with
your emulator’s name). This command will launch youremulator. Please don’t try to launch it from SDK manager, otherwise, it won’twork.
不使用该命令,可能造成在拷贝apk文件到/system/app时,出现Out of memory的错误。
4. Launch another command prompt
window, switch to …….\android-sdk_r08-windows\android-sdk-windows\tools , type
in: adb -s emulator-5554 shell and
hit Enter
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 nextsession). In the second command prompt window, type: adb shell rm /system/app/SdkSetup.apk
,hit Enter.
7. Backup system.img, copylatesttemp
file from D:\Temp\AndroidEmulator\TMPxxx.tmp toC:\Users\Username\.android\avd\Emulator’s
name.avd/
On Linux,临时文件位于/tmp/android-<user name>/emulator-xxxx
8. Close your emulator.
9. Go to C:\Users\Username\.android\avd\Emulator’s
name.avdand delete these two files:userdata-qemu.img and cache.img.
and system.img.
10. Rename temp file to system.img
11. Launch your emulator inthe normal way.
相关文章推荐
- Android模拟器永久删除卸载系统APK(Windows & Linux平台)
- android模拟器重启防止恢复重置,永久删除系统应用apk
- windows和Linux双系统卸载Linux系统
- windows&linux设置系统自动退出时间(无操作超时设置)
- 【C/C++】【Linux&Windows】Windows系统下的文件夹扫描与Linux系统下的实现比较
- 双系统删除Linux进入Grub无法启动Windows的解决方案
- Linux学习笔记(二):关于windows,linux双系统删除grub后不能进入系统解决方案
- oracle10g/11g数据库安装与卸载(windows/linux平台)
- Win10更新后导致双系统(Linux&Windows)开机引导失败出现grub rescue的修复办法(已解决)
- 【详细】如何将Java源码打包成可执行的jar文件(windows&linux系统都是可以执行的)
- 双系统下删除Linux系统方法和Windows无法启动问题的解决方法
- 有效的在Windows和UNIX/Linux平台上完全卸载DB2
- 修改grub引导的Linux和Windows双系统的启动顺序和删除Linux系统的方法
- windows与linux双系统卸载linux
- windows系统卸载程序不彻底,系统服务中有残留如何删除
- Win10更新后导致双系统(Linux&Windows)开机引导失败出现grub rescue的修复办法(已解决)
- Linux的分区已经被你从Windows中删除,系统启动后停在“grub”提示符处的解决办法。
- Windows,linux双系统,删除linux.之后恢复损坏的MBR方法
- 双系统卸载Windows 7后删除XP系统盘主引导分区的残留文件详细步骤(适用于Vista/WS2008)
- 双系统删除Linux后修复MBR启动windows