1. Application installation directory
The directory where the system application is located: /system/app/*.apk
The directory where the user installs the application: /data /app/*.apk
Note: In the simulator, every time you restart, the applications under /system/app/ will be restored, and sometimes /data/app will also be cleared if it is in /system There are applications with the same name under /app and /data/app, which one will not necessarily be started. Especially when adb install kills the running program, sometimes the old one will be started.
2. The directory where user data is located: /data/data/application package name/shared_prefs configuration file;/data/data/application package name/databases/* directory where library files are located
3. The corresponding directory of the SD card: /sdcard/. What we need to deal with is the contents of two folders: data/app – all the files in this folder can be deleted, or you can freely add the application software you need to install. It can be deleted freely after installation.
system/app/17tab.com – The programs in this folder are the default components of the system. You can see that they are all files ending in APK format, but some self-made ROMs also have APKs in them. The odex file corresponding to the file name. We mainly streamline the files in this folder. If there is an odex file, when deleting the APK file name, we will also delete the corresponding odex file.
Simple customization process:
1. Download the corresponding ROM
2. Download the signature tool and unzip it.
3. Use WinZip or WinRAR to extract all the files in the ROM to a folder. To make the tutorial easier to understand, I will name this folder here "NewsROM". How do you like it? It doesn’t matter what the name is.
4. Enter the NewsROM folder, and then enter the dataapp directory to see if there are any programs you need. If you don’t need them, delete them. You can also add the default installation software you need. For example: Sogou input method, you only need to drag and drop the SogouIme.apk file directly into the dataapp directory of the compressed package.
5. Enter the NewsROM folder, then enter systemapp to delete the components you don’t want or add the components you need. Because some components are dependent on other components, please be careful when deleting them. But don’t be afraid. If you delete the wrong components, you may not be able to enter the system when flashing. You can just flash it again with the complete ROM. Generally it won't turn into bricks.
6. After deleting and adding the software, drag the ROM folder (NewsROM) to anzhi.name,APKMake/APKMake.bat (repackage and automatically sign). NewsROM.zip will be automatically generated after packaging and signing in the APKMake directory (the folder name was different just now, so the file name generated here is also different). This is our streamlined ROM.
Flash ROM
Please check if Recovery is ready. Please strictly follow the following steps to flash the ROM:
1. Copy the ROM file to the SD card.
2. Turn off the phone, then press and hold Home (small house) to start the phone and enter Recovery mode.
3. WIPE.
4. Select the correct ROM file (ZIP) in Recovery to flash.
5. Just restart.
Customization Precautions
1. Careful, careful, careful
2. For security reasons, it is recommended to only customize the data/app and system/app Delete and add files in the folder.
3. If you don’t know or don’t know what the file you want to delete is used for, please keep it and don’t delete it.
4. The Android system folder structure in this article may be relatively old. If you don’t know what the file does, it is recommended to search for the answer.
5. Follow this tutorial to customize the ROM. If you accidentally delete the corresponding software during the customization process, the consequence will be that you cannot enter the system at most. Reflashing a complete ROM will generally solve the problem. Still the same sentence: flashing is risky, if something goes wrong, you are responsible for it.