android firmware and application of separation

        Recently the need for reform of the existing upgrade project, the existing firmware upgrade firmware upgrade package for the package separation and application upgrade package, and if necessary, add a resource upgrade package, the benefits of such a design is possible in the late version upgrade, only need to upgrade the corresponding resources can reduce download time, reduce traffic.

        Due to the separation firmware and application, apk before separation as a system application, after the separation as a third party application is installed, it is necessary to note the following:

    1, apk as third-party applications, there is no system privileges, the need to give the system a signature (to minimize the number of system privileges signature apk have, the less the more secure)

    2, apk as third-party applications, in general, is unable to send system broadcast, switched broadcast for some other restrictions if the firmware has to do, is not received.

        Specific design scheme is as follows:

    1, first of all has a launcher application, this application in my project is to hit the firmware package, the application is responsible for the upgrade function and start the main application. At the same time, any required operating system privileges of the application has system privileges, soft shutdown, copy the underlying logs, etc., so that the application can be operated by sending a broadcast.

    2, has a main application, the application launcher application is to be awakened in the original program, the application is started after receiving the broadcast power, but in the conventional mode, the main application is a launcher application received broadcast start transmitted by the broadcast custom application launcher to startactivity main application.

    Above separation is based on firmware does not need to be updated frequently, each time just to update the design premise of the application.

Published 11 original articles · won praise 7 · views 10000 +

Guess you like

Origin blog.csdn.net/LQ753799168/article/details/79316453