Android 9 hides the shortcut switch in the drop-down status bar

When you need to hide the shortcut switch in the drop-down status bar, you need to find the following Java source files

vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tileimpl/QSFactoryImpl.java

Find the createTileInternal method and find the casevalue corresponding to the shortcut switch . For example, ***dump SysUI heap*** corresponds to the following code block. Modify the return value nullto hide the shortcut switch

if (Build.IS_DEBUGGABLE) {
    
    
    if (tileSpec.equals(GarbageMonitor.MemoryTile.TILE_SPEC)) {
    
    
        return new GarbageMonitor.MemoryTile(mHost);    
    }
}

Guess you like

Origin blog.csdn.net/weixin_41388144/article/details/109369098