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 case
value corresponding to the shortcut switch . For example, ***dump SysUI heap*** corresponds to the following code block. Modify the return value null
to hide the shortcut switch
if (Build.IS_DEBUGGABLE) {
if (tileSpec.equals(GarbageMonitor.MemoryTile.TILE_SPEC)) {
return new GarbageMonitor.MemoryTile(mHost);
}
}