android 9.0 设置 应用应用信息 隐藏 app

   vendor\mediatek\proprietary\packages\apps\MtkSettings\src\com\android\settings\applications\manageapplications
   
   public void onRebuildComplete(ArrayList entries) {
        final int filterType = mAppFilter.getFilterType();
        if (filterType == FILTER_APPS_POWER_WHITELIST ||
                filterType == FILTER_APPS_POWER_WHITELIST_ALL) {
            entries = removeDuplicateIgnoringUser(entries);
        }
        //hide app in settings-appInfo start
		for (int i = 0; i < entries.size(); i++) {
            AppEntry appEntry = entries.get(i);
            if (appEntry.info.packageName.equals("com.android.dialer") || appEntry.info.packageName.equals("com.android.contacts") || appEntry.info.packageName.equals("com.android.stk") ) {
                entries.remove(i);
				i--;
            }
        }
        //end

你可能感兴趣的:(android,9.0)