"com.android.systemui.demo" sendBroadcast - 不工作?

"com.android.systemui.demo" sendBroadcast - Not working?

如何以编程方式成功激活 android 中状态栏的演示模式?我已经尝试过这种方法但没有成功:

Link to an example

// Enable demo mode
Intent intent = new Intent("com.android.systemui.demo");
intent.putExtra("command", "enter");
sendBroadcast(intent);

有没有人让它成功运行? adb 命令运行正常。

非常感谢!

我发现系统应用程序不可能以编程方式执行此操作。需要仅授予系统应用程序的 "android.permission.DUMP" 权限。我会寻找替代品。