Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
1
votes
0
answers
125
views
How to move/delete Toybox executable and its symlinks properly?
Have a Chainfire-rooted Samsung Galaxy J5 with Android 7.1. Busybox 1.34.1 in `/system/xbin`, and Toybox (unfortunately) in `/system/bin` (installed by: "`toybox | toybox sed 's/\ /\n/g'| toybox sed '$d'| while read line; do toybox ln -sf /system/bin/toybox /system/bin/$line; done)`". How to move (o...
Have a Chainfire-rooted Samsung Galaxy J5 with Android 7.1.
Busybox 1.34.1 in
/system/xbin
, and Toybox (unfortunately) in /system/bin
(installed by: "toybox | toybox sed 's/\ /\n/g'| toybox sed '$d'| while read line; do toybox ln -sf /system/bin/toybox /system/bin/$line; done)
".
How to move (or delete) them properly?
I did it with Total Commander 'search' for 'toybox' string (as it should be in symlinks?) and then move them (just like in Windows). But I think it was bad, as I run into fs problems. Symlinks were not "really" deleted and the "moved" ones were "converted" into files (of same size, ~273k).
martinist
(21 rep)
Aug 21, 2023, 11:18 AM
• Last activity: Aug 21, 2023, 09:09 PM
2
votes
1
answers
235
views
whoami: bad uid 0 / Magisk vs. Toybox
I replaced old `/system/bin/toybox` with a new binary from [http://landley.net/toybox/bin](http://landley.net/toybox/bin) then I created symlinks with `for i in $(./toybox); do ln -s toybox $i`. There is `su` in symlinks. Now I cannot open Magisk anymore, stuck at splash screen mask. Also MiXplorer...
I replaced old
/system/bin/toybox
with a new binary from [http://landley.net/toybox/bin](http://landley.net/toybox/bin) then I created symlinks with for i in $(./toybox); do ln -s toybox $i
. There is su
in symlinks.
Now I cannot open Magisk anymore, stuck at splash screen mask.
Also MiXplorer cannot browse root dirs.
With Terminal Emulator I can still browse root dirs.
If I type which su
I get /sbin/su
which is a symlink to /sbin/magisk
.
I have not yet tried to reboot because I fear to get stuck, maybe it would repair by itself but who knows?
If I type whoami
I get bad uid 0
, after su shell
I get bad uid 2000
and so on.
How can I restore root? I can access TWRP recovery.
Ju Tutt
(524 rep)
Jan 29, 2023, 09:11 PM
• Last activity: Jan 30, 2023, 07:40 PM
Showing page 1 of 2 total questions