
Try the key in the original Android to sign, the program runs on the emulator OK, but the installation on G3 directly prompts "Package. If the Android made by another company cannot even be installed. However, the program generated in this way can only be used in the original Android system or a system compiled by yourself, because such a system can get the two files platform.pk8 and.

Other APPS applications can also run normally according to this method, The file name is best to use an absolute path to prevent it from being found, or you can modify the source code and use it directly.Ĥ. Usage is "java -jar signapk.jar platform.pk8 input.apk output.apk", Then use the Signapk tool provided by Android to sign. Is "build\target\product\security", the following This step is more troublesome,įirst find the key file, the location in my Android source code directory Use the platform key of the target system to re-sign the apk file. Check the Android.mk file, add the line LOCAL_CERTIFICATE :=, and select the corresponding signature based on the content of this line. Use eclipse to compile the apk file, but this apk file cannot be used.Ģ.

The second method is a bit more troublesome, but you don't need to open the virtual machine to run to the source environment and use make to compile:ġ. Use the mm command to compile, and the generated apk can be run in the emulator. Modify the Android.mk file and add the line LOCAL_CERTIFICATE := platformĢ. The first method is simpler, but you need to use make to compile in the Android system source code environment:ġ. Since the uninstallation is not complete, you can use the settings to uninstall the corresponding application, or adb uninstall com.android.***

Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLEġ. Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE When compiling android source code through eclipse on windows platform, if the shared user id in compiling Settings or android manifest XML contains system permissions such as, the following error will be reported.
