• android 系统裁剪 ​


      有时候编译android镜像会用到一些不需要的app和系统服务,咱们测验将其裁剪出去。
      ####1、源码目录
      build/target/product/*
      在此下面有不少*.mk文件,这一找到相应的app进行规避修改:android
      diff–gita/target/product/core.mkb/target/product/core.mk
      indexafae7c0..7b1dae7100644
      —a/target/product/core.mk
      +++b/target/product/core.mk
      @@-27,17+27,12@@PRODUCT_PACKAGES+=
      org.simalliance.openmobileapi.xml
      BasicDreams
      BlockedNumberProvider
      -BookmarkProvider
      -Browser2
      -Calendar
      CalendarProvider
      CaptivePortalLogin
      CertInstaller
      -Contacts
      DeskClock
      DocumentsUI
      DownloadProviderUi
      -Email
      ExactCalculator
      ExternalStorageProvider
      FusedLocation
      @@-54,7+49,6@@PRODUCT_PACKAGES+=
      PrintSpooler
      PrintRecommendationService
      ProxyHandler
      -QuickSearchBox
      Settings
      SharedStorageBackup
      Telecom
      diff–gita/target/product/full_base.mkb/target/product/full_base.mk
      index65bdf0f..da6eb4f100644
      —a/target/product/full_base.mk
      +++b/target/product/full_base.mk
      @@-29,10+29,6@@PRODUCT_PACKAGES:=
      PRODUCT_PACKAGES+=
      Galaxy4
      -HoloSpiralWallpaper
      -LiveWallpapers
      -LiveWallpapersPicker
      -MagicSmokeWallpapers
      NoiseField
      PhaseBeam
      PhotoTable
      diff–gita/target/product/generic_no_telephony.mkb/target/product/generic_no_telephony.mk
      index5c48358..4f9b27a100644
      —a/target/product/generic_no_telephony.mk
      +++b/target/product/generic_no_telephony.mk
      @@-20,10+20,6@@
      PRODUCT_PACKAGES:=
      Bluetooth
      BluetoothMidiService
      -Camera2
      -Gallery2
      -Music
      -MusicFX
      OneTimeInitializer
      Provision
      SystemUI
      diff–gita/target/product/sdk_base.mkb/target/product/sdk_base.mk
      indexfa257ae..13997ad100644
      —a/target/product/sdk_base.mk
      +++b/target/product/sdk_base.mk
      @@-18,23+18,16@@PRODUCT_PROPERTY_OVERRIDES:=
      PRODUCT_PACKAGES:=
      ApiDemos
      -CubeLiveWallpapers
      CustomLocale
      Development
      -Dialer
      EmulatorSmokeTests
      Fallback
      -Gallery
      GestureBuilder
      Launcher3
      -LegacyCamera
      librs_jni
      libwnndict
      libWnnEngDic
      libWnnJpnDic
      -LiveWallpapersPicker
      -Mms
      -Music
      OpenWnn
      Protips
      rild
      diff–gita/target/product/telephony.mkb/target/product/telephony.mk
      indexe840ba1..5c05fa1100644
      —a/target/product/telephony.mk
      +++b/target/product/telephony.mk
      @@-19,7+19,6@@
      PRODUCT_PACKAGES:=
      CarrierConfig
      -Dialer
      CallLogBackup
      CellBroadcastReceiver
      EmergencyInfo
      关于一些服务能够修改frameworks/base/services/java/com/android/server/SystemServer.java
      将里边的相关的systemserver.java去掉。
      例如:
      mContentResolver=context.getContentResolver();
      //Slog.i(TAG,”CameraService”);
      //mSystemServiceManager.startService(CameraService.class);
      来源:志在指尖

  • 相关阅读:
    扩展方法的定义及使用
    HTTP协议及POST与GET操作差异,C#中如何使用POST、GET等
    C#多线程学习(三) 生产者和消费者
    .NET设计模式(18):迭代器模式(Iterator Pattern)
    Net设计模式实例之备忘录模式(Memento Pattern)
    安装中文VS2008 SP1 和.NETFRAMEWORK 3.5SP1后智能提示是英文的解决办法
    ASP.NET MVC 入门系列教程
    在ASP.NET MVC中使用DropDownList
    .NET设计模式(2):单件模式(Singleton Pattern)
    想要成功,请记住!
  • 原文地址:https://www.cnblogs.com/hite/p/13225248.html
Copyright © 2020-2023  润新知