Android 4.3 system cropping-remove unused apps and add apps

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 (Install digital signature in Android, called)
| |–contacts (dial (call), Contacts, call logs)
| |–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, while providing storage logging)
| |–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, can calculate the 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 corresponding apk,
To/packages/apps find the corresponding source code, modify. mk
and then recompile.

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 masking unwanted resources and classes
Google Service
3d OpenGL, Rendscript

Add the custom apk with source 1 copy android.mk from/packages/app/calendar to your project and modify the content:

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

2 Modify/BUILD/TARGET/PRODUCT/GENERIC_NO_TELEPHONY.MK, add your own apk name:

(android2.2 version modified is generic.mk)

The source that contains the android.mk is stacked to

Android4.3/packages/apps

3 compiling

command line to the project root directory, execute:

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

There are also said direct so that I have no 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/sample Compile Contact
This generates
out/target/product/generic/data/app/contactstests.apk
out/target/product/generic/system/app/contacts.apk
Make Snod Regenerate system.img

Third-party APK compilation

Using YAFFS2
There is no time to do it today, next time to see the concrete way.

Android 4.3 system cropping-remove unused apps and add apps

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.