android KK2的中國移動/中國聯通定製版本移除Gallery2.apk

來源:互聯網
上載者:User

標籤:android   ar   sp   java   檔案   on   log   bs   代碼   

刪除packages/apps/Gallery2/Android.mk以及packages/apps/Gallery2/jni/Android.mk後編譯整個工程後會報類似如下錯誤:
make[3]: *** No rule to make target `out/target/common/obj/APPS/Gallery2_intermediates/classes.jar‘, needed by `out/target/common/obj/APPS/OP02Plugin_intermediates/classes-full-debug.jar‘.  Stop.
根據log可以看出和Plugin相關,因為該Plugin對應的apk與Gallery2.apk有依賴關係。


 
去除Plugin中和Gallery2的依賴關係的代碼,需要修改如下:
 
    1. 針對中國移動(OP01)需要做如下修改:
    (1)找到 alps/mediatek/operator/OP01/packages/apps/Plugins/Android.mk檔案,刪除如下三行代碼:
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)刪除 alps/mediatek/operator/OP01/packages/apps/Plugins/src/com/mediatek/目錄下:
camera/ 及 gallery3d/ 兩個folder下的代碼。
 
    2. 針對中國聯通(OP02)需要做如下修改:
    (1)找到 alps/mediatek/operator/OP02/packages/apps/Plugins/Android.mk檔案,刪除如下兩行代碼:
LOCAL_SRC_FILES += $(call all-java-files-under, ../../../../common/packages/apps/Plugins/src/com/mediatek/gallery3d/plugin)
LOCAL_APK_LIBRARIES += Gallery2
    (2)刪除 alps/mediatek/operator/OP02/packages/apps/Plugins/src/com/mediatek/gallery3d/目錄下的代碼。
 
注意:
  1. 刪除的這些代碼中有些是專門為了移動/聯通的spec做的,如果客戶自己的gallery不支援的話可能會影響移動/聯通入庫測試。
  2. 該代碼修改主要針對ALPS.KK2.MP13.TC9SP該分支,其他分支需要尋找和Gallery2進程相關的代碼進行屏蔽。

android KK2的中國移動/中國聯通定製版本移除Gallery2.apk

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.