Android P 隐藏Setting主页面Suggestion菜单

  1. vendor\mediatek\proprietary\packages\apps\MtkSettings\src\com\android\settings\dashboard\suggestions\SuggestionFeatureProviderImpl.java
@Override
    public boolean isSuggestionEnabled(Context context) {
        final ActivityManager am =
                (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
       // return !am.isLowRamDevice(); 
       return false;          
    }

2.vendor\mediatek\proprietary\packages\apps\MtkSettings\src\com\android\settings\dashboard\DashboardData.java

 private DashboardData(Builder builder) {
        mCategory = builder.mCategory;  
       // mConditions = builder.mConditions;
       mConditions  = null;
        mSuggestions = builder.mSuggestions;
        mSuggestionConditionMode = builder.mSuggestionConditionMode;

        mItems = new ArrayList<>();

        buildItemsData();
    }

你可能感兴趣的:(Android P 隐藏Setting主页面Suggestion菜单)