Android 2.3.3 compile and install the settings Application

Source: Internet
Author: User

References
Http://blog.csdn.net/stonecao/article/details/6460116

Http://fanwei51880.blog.163.com/blog/static/3240674020115201252504/

Http://www.coderanch.com/t/478455/Android/Mobile/Failure-INSTALL-FAILED-ALREADY-EXISTS

Sometimes what others give you is not necessarily the correct answer, but it can provide you with the direction to the truth.


1. First import the source code (see my previous blog ).

2. Run the installation, but this error persists due to the existence of settings. I wiped it.

[16:15:57-settings] re-installation failed due to different application signatures.
[16:15:57-settings] You must perform a full uninstall of the application. Warning: This will remove the Application Data!
[16:15:57-settings] Please execute 'adb uninstall com. Android. settings' in a shell.
[16:15:57-settings] Launch canceled!

Run ADB uninstall
Com. Android. settings does not work, and it does not work when you enter system/appdelete settings.apk. The file system is read-only and the methods on the Internet cannot be used.

Then I will change my mind. I changed the signature. As long as the signature is consistent, it should be overwritten. We do not need to unmount it to install it. (The self-compiled app and the android signature must be different)

We need to fix the signature. This requires the following steps.


3. F: \ workspace \ Settings> JAVA
-Jar signapk. jar platform. x509.pem platform. pk8 .. /settings/bin/settings.apk output/settings.apk)

(However, these files need to be obtained by compiling the source code (which is not found in the SDK). The specific location is as follows)

File Location: You can find signature files such as platform. pk8 platform. x509.pem in platform/build/target/product/security/, corresponding to different permissions.

Signapk. jar: compiled by/platform/build/tools/signapk/, which can be found in/out/host/linux-x86/framework.


4. ADB install settings.apk tells me failure [install_failed_already_exists], and it cannot be hurt... Later, I checked the information and found that ADB install-r settings.apk (-r indicates reinstall). However, if he fails, he will succeed to me ..

This is the general procedure. Try more and check more information. Good luck!

In fact, this step is definitely not correct. Although I cheated Android by using a signature, I uninstalled it when I installed it, but it was not included in the system.

The most appropriate method is to delete the APK corresponding to the application to be developed and then run the imgfile when creating system. IMG.

See http://source.android.com/source/using-eclipse.html

Blog has moved to http://marspring.mobi


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.