Opened 5 years ago

Last modified 12 days ago

#6988 new defect

[orbot] Orbot relies on "which" to find the "su" binary.

Reported by: MSal Owned by: n8fr8
Priority: Medium Milestone:
Component: Applications/Orbot Version:
Severity: Normal Keywords: su root busybox which
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

On a stock system without busybox, requesting root access fails because "which"(a part of busybox) is not available.

D/Orbot (12049): executing shell cmds: which su; runAsRoot=false;waitFor=true
D/Orbot (12049): Could not acquire root permissions

############
% adb shell
shell@android:/ $ which which
/system/bin/sh: which: not found
127|shell@android:/ $su
shell@android:/ # echo -e '#!/system/bin/sh\necho /system/xbin/su' > /system/xbin/which
shell@android:/ # chmod 755 /system/xbin/which
shell@android:/ # which
/system/xbin/su
############

After that. It works.

Child Tickets

Change History (1)

comment:1 Changed 12 days ago by teor

Severity: Normal

Set all open tickets without a severity to "Normal"

Note: See TracTickets for help on using tickets.