简体   繁体   English

android SU消息弹出多次

[英]android SU message popping up many times

I have a root application that I am trying to make. 我有一个我要制作的根应用程序。 I have it so that the Launcher activity contains a ListView and when you press on an item it opens an AlertDialog and asks for confirmation. 我拥有它,以便Launcher活动包含一个ListView,并且当您按一个项目时,它会打开AlertDialog并要求确认。 Its main feature is rebooting the device. 它的主要功能是重新启动设备。 I need to know how I can run "su" once on the startup and then when I click the other items it doesn't have to ask for su again 我需要知道如何在启动时运行一次“ su”,然后在单击其他项目时不必再次询问su

Thanks 谢谢

If you have a SU manager application (like super su) installed in your device, you can disable prompting by selecting option "do not prompt" in the settings. 如果您的设备中安装了SU Manager应用程序(例如super su),则可以通过在设置中选择“不提示”选项来禁用提示。 But keep in mind, that you are allowing su command without prompting, it can be quite dangerous 但是请记住,您在没有提示的情况下允许使用su命令,可能非常危险

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM