[solved] replicant 6 and orbot launching
Added by Fil Lupin over 7 years ago
Hello,
I tried several times to launch orbot but it keep writing I do not have root access.
I gave access when asked by replicant by choosing "remember this choice" option.
Did anyone succeed into launching orbot with replicant 6? If so, how do you do?
Replies (5)
RE: replicant 6 and orbot launching - Added by Fil Lupin over 7 years ago
I visit again the f-droid website to find another way to make it work.
I noticed that orbot was not foundable by search engine but a link was put into orweb to orbot. However, all links to orbot aPK are dead.
I then goes to website https://guardianproject.info/ and then found the releases directory (https://guardianproject.info/releases/). I installed the last stable versions of both app (RC and not beta) and it works.
RE: [solved] replicant 6 and orbot launching - Added by Jeremy Rand over 7 years ago
Last I checked, the current Orbot releases are from the Guardian Project F-Droid repository, which can be enabled in your F-Droid settings. Don't download APK's manually; doing so means you won't get security updates reliably.
RE: [solved] replicant 6 and orbot launching - Added by Xan VFR over 7 years ago
I have two Samsung Galaxy S3 (one rooted and one non-rooted) with the same Guardian Project's Orbot version and configuration, and I can't make Orbot to keep Request root access, Transparent poxying and Tor everything options to remain marked in the rooted one (I also have other issues with this phone). I have no problem with the non-rooted one.
Rooted phone was updated from Replicant 4.2 to Replicant 6.o, performing a full factory reset because I had the phone encrypted. I use mobile data and most of the times Orbot shows the message "Orbot is starting", although if I check if I'm using Tor with Orweb it says I am. Sometimes (a few) it shows Orbot is connected and I can see the nodes the traffic is going through. Don't remember if root access was enabled (I guess it was) when I selected not to torify all apps to make KDE Connect work and stopped working after that.
Non-rooted phone had stock Samsung ROM installed and I installed Replicant 6.0 in it. Don't have mobile data enabled in it, so I use WiFi (proprietary firmware) and it always starts Orbot properly and shows Orbot connected and all the nodes traffic goes through.
Debugging Orbot with adb logcat it seems to be a file permissions problem and it does seem to have administrative permission:
08-23 22:23:46.190 2343 3128 I ActivityManager: START u0 {cmp=org.torproject.android/.settings.SettingsPreferences} from uid 10081 on display 0 08-23 22:23:46.220 2343 3712 W InputMethodManagerService: Focus gain on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@2a74508 (uid=10081 pid=4428) 08-23 22:23:46.225 1963 2369 D AudioFlinger: mixer(0x425bb008) throttle end: throttle time(43) 08-23 22:23:46.285 4428 4874 E SharedPreferencesImpl: *Couldn't rename file /data/user/0/org.torproject.android/shared_prefs/org.torproject.android_preferences.xml to backup file /data/user/0/org.torproject.android/shared_prefs/org.torproject.android_preferences.xml.bak* 08-23 22:23:47.290 4428 4428 I Choreographer: Skipped 59 frames! The application may be doing too much work on its main thread. 08-23 22:23:47.345 2343 2365 I ActivityManager: Displayed org.torproject.android/.settings.SettingsPreferences: +1s132ms *08-23 22:23:47.705 9688 9688 D su : Finishing su operation for app [uid:10081, pkgName: org.torproject.android] 08-23 22:23:47.705 2471 2471 I SuControllerImpl: Got change 08-23 22:23:47.710 9686 9686 D su : sending code 08-23 22:23:47.710 9686 9686 D su : child exited 08-23 22:23:47.710 9684 9684 D su : client exited 0 08-23 22:23:50.070 4428 9725 W SharedPreferencesImpl: Attempt to read preferences file /data/user/0/org.torproject.android/shared_prefsorg.torproject.android_preferences.xml without permission *08-23 22:23:50.080 1963 2369 D audio_hw_primary: select_output_device: AUDIO_DEVICE_OUT_SPEAKER 08-23 22:23:50.090 4428 4874 E SharedPreferencesImpl: Couldn't rename file /data/user/0/org.torproject.android/shared_prefs/org.torproject.android_preferences.xml to backup file /data/user/0/org.torproject.android/shared_prefs/org.torproject.android_preferences.xml.bak 08-23 22:23:50.150 9727 9727 D su : su invoked. 08-23 22:23:50.150 9727 9727 D su : starting daemon client 10081 10081 08-23 22:23:50.160 9729 9729 D su : remote pid: 9727 08-23 22:23:50.160 9729 9729 D su : remote pts_slave: 08-23 22:23:50.160 9729 9729 D su : waiting for child exit 08-23 22:23:50.160 9731 9731 D su : su invoked. 08-23 22:23:50.160 9731 9731 E su : SU from: u0_a81 08-23 22:23:50.160 9731 9731 D su : Checking whether app [uid:10081, pkgName: org.torproject.android] is allowed to be root 08-23 22:23:50.175 9731 9731 D su : Privilege elevation allowed by appops 08-23 22:23:50.175 9731 9731 D su : Allowing via appops. 08-23 22:23:50.175 9731 9731 D su : 10081 /system/bin/app_process32 executing 0 /system/bin/sh using binary /system/bin/sh : sh 08-23 22:23:50.175 9731 9731 D su : Waiting for pid 9732. 08-23 22:23:50.175 2471 2471 I SuControllerImpl: Got change 08-23 22:23:51.005 4428 4874 E SharedPreferencesImpl: Couldn't rename file /data/user/0/org.torproject.android/shared_prefs/org.torproject.android_preferences.xml to backup file /data/user/0/org.torproject.android/shared_prefs/org.torproject.android_preferences.xml.bak 08-23 22:23:51.050 1963 2369 D AudioFlinger: mixer(0x425bb008) throttle end: throttle time(43) 08-23 22:23:51.815 4428 4874 E SharedPreferencesImpl: Couldn't rename file /data/user/0/org.torproject.android/shared_prefs/org.torproject.android_preferences.xml to backup file /data/user/0/org.torproject.android/shared_prefs/org.torproject.android_preferences.xml.bak 08-23 22:23:55.425 2343 2357 W ProcessCpuTracker: Skipping unknown process pid 9736 08-23 22:24:00.645 2892 2892 D EmojiAltPhysicalKeyDetector: onKeyUp() : KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x48, repeatCount=0, eventTime=9889907, downTime=9889776, deviceId=9, source=0x101 } 08-23 22:24:00.645 2892 2892 D EmojiAltPhysicalKeyDetector: onKeyUp() : Not Mapped: 4 08-23 22:24:00.670 4428 9738 W SharedPreferencesImpl: Attempt to read preferences file /data/user/0/org.torproject.android/shared_prefs/org.torproject.android_preferences.xml without permission
Comparing permissions:
ROOTED: root@i9300:/ # cd /data/user/0/org.torproject.android/ root@i9300:/data/user/0/org.torproject.android # ls -l total 120 drwx------ 2 u0_a81 u0_a81 4096 2017-08-23 22:40 app_bin drwx------ 3 u0_a81 u0_a81 4096 2017-08-23 22:46 app_data drwxrwx--x 2 u0_a81 u0_a81 4096 2017-06-11 11:15 cache drwxrwx--x 2 u0_a81 u0_a81 4096 2017-06-11 11:15 code_cache drwxrwx--x 2 u0_a81 u0_a81 4096 2017-07-12 11:05 databases drwxrwx--x 3 u0_a81 u0_a81 4096 2017-07-12 11:05 files lrwxrwxrwx 1 root root 42 2017-08-23 09:57 lib -> /data/app/org.torproject.android-2/lib/arm drwxrwx--x 2 u0_a81 u0_a81 4096 2017-07-24 12:36 shared_prefs root@i9300:/data/user/0/org.torproject.android # ls -l shared_prefs/ total 24 -rw------- 1 u0_a81 u0_a81 4663 2017-07-24 12:19 org.torproject.android_preferences.xml
NON-ROOTED:
root@i9300:/ # cd /data/user/0/org.torproject.android/ root@i9300:/data/user/0/org.torproject.android # ls -l total 56 drwx------ 2 u0_a71 u0_a71 4096 2017-08-23 22:34 app_bin drwx------ 2 u0_a71 u0_a71 4096 2017-08-23 22:53 app_data drwxrwx--x 2 u0_a71 u0_a71 4096 2017-08-09 22:45 cache drwxrwx--x 2 u0_a71 u0_a71 4096 2017-08-09 22:45 code_cache drwxrwx--x 2 u0_a71 u0_a71 4096 2017-08-09 22:45 databases drwxrwx--x 3 u0_a71 u0_a71 4096 2017-08-09 22:45 files lrwxrwxrwx 1 root root 42 2017-08-23 22:16 lib -> /data/app/org.torproject.android-1/lib/arm drwxrwx--x 2 u0_a71 u0_a71 4096 2017-08-23 22:17 shared_prefs root@i9300:/data/user/0/org.torproject.android # ls -l shared_prefs/ total 8 -rw-rw---- 1 u0_a71 u0_a71 1627 2017-08-23 22:17 org.torproject.android_preferences.xml
So, it seems to be a file permissions problem. I adb root && adb remount rw /data && adb shell, change permissions in the rooted phone and reboot: root@i9300:/data/user/0/org.torproject.android/shared_prefs # ls -l total 24 -rw------- 1 u0_a81 u0_a81 4663 2017-07-24 12:19 org.torproject.android_preferences.xml root@i9300:/data/user/0/org.torproject.android/shared_prefs # chmod 660 org.torproject.android_preferences.xml root@i9300:/data/user/0/org.torproject.android/shared_prefs # ls -l total 24 -rw-rw---- 1 u0_a81 u0_a81 4663 2017-07-24 12:19 org.torproject.android_preferences.xml
Now Orbot shows a successful connection on start but options remain unchecked.
Any ideas about what to try next?
RE: [solved] replicant 6 and orbot launching - Added by Fil Lupin over 7 years ago
I do not know if it is linkedto my issue, but in this case, I replaced my first installed version which was named "orbot-latest.apk" (I probably get it from https://guardianproject.info/apps/orbot/?src=tbb_download) by the last one I found on torproject website (see link in my first message).
Hope this will help you.
RE: [solved] replicant 6 and orbot launching - Added by Xan VFR over 7 years ago
I have installed last Orbot version available in Guardian Project Official Releases F-Droid repository (currently 15.4.2-RC1-1-multi-SDK23 (Tor 0.3.0.8-openssl1.0.2k-1), which is giving me problems with the options.
Uninstalled it, turned the phone off and on, and installed Orbot again same version from F-Droid. Requesting root access in options Replicant asked for my permission, which I gave, and set the other options (Tor everything transparently) and started Orbot successfully. Restarted the phone and Orbot started successfully and kept the check on the options.
I also have my problem solved.
Thx!