修改SD卡被移除时的提醒:
frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
修改运行时权限的获得:
frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java
private void grantPermissionsLPw(PackageParser.Package pkg, boolean replace,
String packageOfInterest) {在这个方法里
if (DEBUG_INSTALL) {
Log.i(TAG, “Package ” + pkg.packageName + ” granting ” + perm+” grant “+grant);
}
//sprd modify for com.chiranject.aebas_launcher,com.aponline.sims,com.aebas.aebas_client
if (pkg.packageName.equals("com.aponline.sims")) {
Log.w(TAG, "Package " + pkg.packageName + " is granting " + perm+":GRANT_INSTALL");
grant = GRANT_INSTALL;
}
//中间部分为添加的代码
去除Google的应用:
vendor/sprd/partner/google/products/gms.mk
客户软件的命名规则:
\192.168.1.55\Zedshare\Sprd\Customer\客户软件\客户名称\项目名订单号客户名客户module名工程师名称缩写日期发布版本
adb命令用不了: 重启下adb ,adb kill-server adb start-server
获得root权限:
adb shell am broadcast -a “zed.adb.root”
Launcher里名隐藏某个Apk:
+++ b/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
@@ -2882,7 +2882,11 @@ public class LauncherModel extends BroadcastReceiver
for (int i = 0; i < apps.size(); i++) {
LauncherActivityInfoCompat app = apps.get(i);
// This builds the icon bitmaps.
+ //Filter the specified package
+ if(“com.google.android.gms”.equals(apps.get(i).getApplicationInfo().packageName))
+ continue;
mBgAllAppsList.add(new AppInfo(mContext, app, user, mIconCache, mLabelCache));
+
}
if (ADD_MANAGED_PROFILE_SHORTCUTS && !user.equals(UserHandleCompat.myUserHandle())) {
方法二可行:
diff –git a/src/com/android/launcher3/AllAppsList.java b/src/com/android/launcher3/AllAppsList.java
index 3b25dca..7759e5b 100644
— a/src/com/android/launcher3/AllAppsList.java
+++ b/src/com/android/launcher3/AllAppsList.java
@@ -48,14 +48,25 @@ class AllAppsList {
private IconCache mIconCache;
private AppFilter mAppFilter;
-
- private List hideappList = new ArrayList();
/**
- Boring constructor.
*/
public AllAppsList(IconCache iconCache, AppFilter appFilter) {
mIconCache = iconCache;
mAppFilter = appFilter;
- Boring constructor.
- private List hideappList = new ArrayList();
- addHideappList();
} -
- public void addHideappList()
- {
- hideappList.add(“com.google.android.settings”);//添加需要隐藏的包名,可以是多个
}
/**
- Add the supplied ApplicationInfo objects to the list, and enqueue it into the
@@ -70,10 +81,13 @@ class AllAppsList {
if (findActivity(data, info.componentName, info.user)) {
return;
}
- Add the supplied ApplicationInfo objects to the list, and enqueue it into the
- if(hideappList.contains(info.componentName.getPackageName())==false)//
- {
+
data.add(info);
added.add(info);
}
- }
public void clear() {
data.clear();
// TODO: do we clear these too?
编译某个应用的命令:source/build.envsetup.sh ;choosecombo;release;项目名;user;mmm package/apps/Launcher3 -B(强制编译)
编译某个应用之前先改下.mk文件
packages/apps/Launcher3/Android.mk
LOCAL_DEX_PREOPT := false
使用展讯自带的抓取log:
拨号界面##83781##进入抓log界面