[tor-bugs] #6988 [Orbot]: [orbot] Orbot relies on "which" to find the "su" binary.

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Sep 28 02:34:55 UTC 2012


#6988: [orbot] Orbot relies on "which" to find the "su" binary.
-----------------------------------+----------------------------------------
 Reporter:  MSal                   |          Owner:  n8fr8
     Type:  defect                 |         Status:  new  
 Priority:  normal                 |      Milestone:       
Component:  Orbot                  |        Version:       
 Keywords:  su root busybox which  |         Parent:       
   Points:                         |   Actualpoints:       
-----------------------------------+----------------------------------------
 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 at android:/ $ which which
 /system/bin/sh: which: not found
 127|shell at android:/ $su
 shell at android:/ # echo -e '#!/system/bin/sh\necho /system/xbin/su' >
 /system/xbin/which
 shell at android:/ # chmod 755 /system/xbin/which
 shell at android:/ # which
 /system/xbin/su
 ############

 After that. It works.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6988>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list