android调试网桥(adb)本身具有root访问权限(在执行adb根命令后)。可以用来为设备上的应用提供与应用程序相同的权限吗?是否有一个文件在系统中的某处,可以跟踪哪个用户(应用程序)具有root访问权限,并且可以修改它?如果它有助于我已经将应用程序放在系统文件夹中,因此它立即被视为系统应用程序。
android调试网桥(adb)本身具有root访问权限(在执行adb根命令后)。可以用来为设备上的应用提供与应用程序相同的权限吗?是否有一个文件在系统中的某处,可以跟踪哪个用户(应用程序)具有root访问权限,并且可以修改它?如果它有助于我已经将应用程序放在系统文件夹中,因此它立即被视为系统应用程序。
The Android Debug Bridge (ADB) itself has root access (after executing the adb root command). Can that be used to give the same privileges to apps on the device? Is there a file somewhere in the system that keeps track of which user (app) has root access and can it be modified? If it helps I've already put the app in the system folder so it's regarded as a system app now.
nope。虽然你可以使用。 pm grant
并授予它 SUPERUSER
,但如果该应用程序没有声明在其清单中,则不会影响。如果它,如果有,则没有必要手动授予它。
app必须主动请求超级用户权限才能获得它 - 即使它只适用于超级用户应用程序(充当"门Keeper" ),然后弹出用户确认消息。
Nope. Though you could use e.g. pm grant
and grant it SUPERUSER
, but that would have no effect if the app hadn't declared that in its manifest. And if it had, it wouldn't be necessary to grant it manually.
An app must actively request superuser privileges in order to gain it xe2x80x93 and even then it only works with a superuser app in place (acting as "gate keeper") that then pops up a message for the user to confirm.
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有