Deleting Packages/apps/gallery2/android.mk and PACKAGES/APPS/GALLERY2/JNI/ANDROID.MK will report an error similar to the following after compiling the entire project:
MAKE[3]: * * * No rule to do target ' Out/target/common/obj/apps/gallery2_intermediates/classes.jar ', needed by ' out/ Target/common/obj/apps/op02plugin_intermediates/classes-full-debug.jar '. Stop.
According to log can be seen and plugin related, because the plugin corresponding APK and gallery2.apk have a dependency.
The code to remove the dependencies of plugin and Gallery2 needs to be modified as follows:
1. The following changes are required for China Mobile (OP01):
(1) Locate the Alps/mediatek/operator/op01/packages/apps/plugins/android.mk file and delete the following three lines of code:
Local_src_files + = $ (call All-java-files-under,.. /.. /.. /.. /common/packages/apps/plugins/src/com/mediatek/gallery3d/plugin)
Local_java_libraries + = Com.mediatek.camera.ext
Local_apk_libraries + = Gallery2
(2) Delete the alps/mediatek/operator/op01/packages/apps/plugins/src/com/mediatek/directory:
camera/and gallery3d/two-folder code.
2. The following changes are required for China Unicom (OP02):
(1) Locate the Alps/mediatek/operator/op02/packages/apps/plugins/android.mk file and delete the following two lines of code:
Local_src_files + = $ (call All-java-files-under,.. /.. /.. /.. /common/packages/apps/plugins/src/com/mediatek/gallery3d/plugin)
Local_apk_libraries + = Gallery2
(2) Remove the code from the alps/mediatek/operator/op02/packages/apps/plugins/src/com/mediatek/gallery3d/directory.
Attention:
1. Some of the removed code is specifically for mobile/Unicom spec, which may affect mobile/Unicom inbound testing if the customer's own gallery is not supported.
2. This code modification is primarily for ALPS.KK2.MP13.TC9SP the branch, and other branches need to find and Gallery2 the process-related code for masking.
Android KK2 Mobile/China Unicom custom version removal gallery2.apk