Android 4.3 system cropping-delete unused apps and add your own app

Source: Internet
Author: User

Remove Unused APK

The system comes with the app location in/android4.3/packages/apps
Here are some app action analysis:

| |–basicsmsreceiver
| |–bluetooth (bluetooth)
| |–browser (browser)
| |–calculator (Calculator)
| |–calendar (Calendar) br>| |–camera (camera)
| |–cellbroadcastreceiver
| |–certinstaller (installs digital signatures in Android. called)
| |–contacts (dial (call), contact, call history)
| |–contactscommon
| |–deskclock (Desktop clock)
| |–dialer
| |–email (Email)
| |–exchange
| |–gallery (Photo album). Similar to camera, more lists)
| |–gallery2
| |–htmlviewer (browser-attached interface. Called by the browser app. Provide storage logging function at the same time)
| |–keychain
| |–launcher2 (Login startup entry, responsible for application invocation)
| |–legacycamera
| |–MMS (? MMS Service)
| |–music (music player)
| |–MUSICFX
| |–NFC
| |–onetimeinitializer
| |–packageinstaller (Install, uninstall program Response)
| |–phone (Phone dialer)
| |–phonecommon
| |–protips
| |–quicksearchbox
| |–settings (Power on, Bluetooth, Device information, interface, WIFI, etc.)
| |–smartcardservice
| |–soundrecorder (recorder. Compute space and time required for storage)
| |–speechrecorder
| |–STK
| |–tag
| |–videoeditor
| |–voicedialer (voice recognition call)

For apps you don't need,

/out/target/product/m801/system/app Delete the appropriate apk.
Go to/packages/apps to find the corresponding source code. Change. mk
And then compile it again.

Next time take a moment to ponder:
Systemserver.java removing unwanted system services
INIT.RC removal of programs that do not need to be relied upon
Preload shielding resources and classes that are not required
Google Service
3d OpenGL, Rendscript

Add your own definition of apk with source code of 1 copy android.mk from/packages/app/calendar to your own project. and change the content:

Local_package_name: = AutoRun
Autorun is the name of his app.

2 Change/build/target/product/generic_no_telephony.mk, add your own apk name:

(android2.2 version number was changed by GENERIC.MK)

Put the source code that includes the ANDROID.MK

Android4.3/packages/apps

3 compiling

command line to the project root folder, run:

SOURCE build/envsetup.sh
Choosecombo (select default Direct carriage return)
Make-j2

There are also those who say this directly. I don't have a test:

Make clean
Make
When the compilation is complete, start the virtual machine:
./EMULATOR-AVD Androidname-system Out/target/product/generic/system.img

Methods for compiling individual modules

$.build/envsetup.sh
MMM packages/apps/contacts/Demo sample compile Contact
This generates
out/target/product/generic/data/app/contactstests.apk
out/target/product/generic/system/app/contacts.apk
Make Snod generates SYSTEM.IMG again

Third-party APK compilation

Using YAFFS2
There is no time for this today. See the detailed procedure again next time.

Android 4.3 system cropping-delete unused apps and add your own app

Related Article

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.