Previously, the framework layer code of the Android system source code was modified to customize the ROM. After using make, three image files, userdata. img, system. img, and ramdisk. img, are generated. At this time, we need to replace the system in the simulator that comes with the SDK with our own.
The implementation steps are as follows:
1. Because I previously created a folder named myfileunder the system/datafile, a file named record.txt was created under the folder. Therefore, you need to create a new file before replacing framework. jar.
Mkdir/data/myfile cd/data/myfile touch record.txt
2. You can use the ADT that Eclipse knows to create a new simulator. Here we name it Android. Of course, you can use the command line. Replace the framework. jar file after starting the simulator.
Command: adb remount
Adb push /Framework. jar/system/framework
3. Replace the system. img Image
Emulator-avd Android-system /System. img &
The simulator I created is called Android, so here:
Emulator-avd Android-system /System. img &
At this time, you can replace the simulator image file with your own custom simulator image.
Of course, the premise is that your API level should be the same.
I accidentally deleted my brains yesterday. I can't stand my own pig-like hands.
Reprinted with the source: http://blog.csdn.net/chichoxian/article/details/9708671,thank you for your cooperation! ^