Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -48,21 +48,21 @@ public void updateData(Context context) {
addItem(ManageAppsViewHolder.CREATOR, mAppsModel.getData() != null ? mAppsModel.getData().size() : 0, 1);

if (Process.myUid() / 100000 == 0) {
boolean adb = ShizukuManagerSettings.getLastLaunchMode() == LaunchMethod.ADB;
boolean rootRestart = vm.getServiceStatus().getV2Status().isRoot();
boolean root = ShizukuManagerSettings.getLastLaunchMode() == LaunchMethod.ROOT;
boolean rootRestart = vm.getServiceStatus().getUid() == 0;
if (v3) {
try {
rootRestart |= ShizukuService.getUid() == 0;
} catch (Throwable ignored) {
}
}

if (adb) {
addItem(StartAdbViewHolder.CREATOR, null, 2);
if (root) {
addItem(StartRootViewHolder.CREATOR, rootRestart, 3);
addItem(StartAdbViewHolder.CREATOR, null, 2);
} else {
addItem(StartRootViewHolder.CREATOR, rootRestart, 3);
addItem(StartAdbViewHolder.CREATOR, null, 2);
addItem(StartRootViewHolder.CREATOR, rootRestart, 3);
}
} else {

0 comments on commit 324b2ab

Please sign in to comment.