How to create android apps with root access?

前端 未结 5 1430
一个人的身影
一个人的身影 2020-12-07 21:10

I found out that there\'s so many apps out there which required root access.

How were they able to create those apps? Where did they found all the resource? Is ther

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 21:49

    Should work on most versions:

    try {
        Runtime.getRuntime().exec("su -c reboot");
    } catch (IOException e) {
    } 
    

提交回复
热议问题