Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
0
votes
0
answers
102
views
In Android 12 on my Galaxy S10+, without PC, how to use "toybox"
I know that Android internally uses Toybox as its basics for Linux sh commands. And in Internet I can read about toybox the help doc. == Presumably since I do not want to have connection to a computer, there is no possibility in Samsung Galaxy S10+, Android 12, to use ADB. Am I right? == Thus, in my...
I know that Android internally uses Toybox as its basics for Linux sh commands. And in Internet I can read about toybox the help doc.
==
Presumably since I do not want to have connection to a computer, there is no possibility in Samsung Galaxy S10+, Android 12, to use ADB.
Am I right?
==
Thus, in my smartphone by itself, how can I invoke toybox and use toybox its shell commands.
This, please, as a general question.
==
Now especially, this I want to do while programming a Button in Total Commander.
E.g. as a first test, I wrote in the Button "toybox --version". This works.
==
Then ongoing I want how to use the sh copy command "cp" (exhausting all options).
==
Then how to use shell variables. In toybox there seems not to exist Parameter Expansion with "$variablename". How is the usage of variables in toybox, thus in Android?
I mean general shell variables, beside the parameters defined for the Buttons, e.g. %P, %T, %M, %N, ...
==
In Internet there is no article about these items.
If needfull, I am willing to learn Java, and have already bought a thick book. Is there a intraductory documentation regarding these itens.
==
For other purposes I use Termux. But Termux has no direct access to the files and variables as I need in in Total Commander Buttons.
Thanks, Regards
Anton Wessel
(71 rep)
Feb 18, 2024, 05:43 PM
• Last activity: Feb 18, 2024, 05:58 PM
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
234
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
1
votes
0
answers
791
views
How do I uninstall toybox (a busybox alternative)?
In my `/system/bin/` I have a executable named `toybox`, and various other directory entries in that directory symlinked to the `toybox`, eg `basename` and `[`. How do I uninstall toybox? Context: I believe it's messing with advanced root detection of Citi banking (my Revolut app is working just fin...
In my
/system/bin/
I have a executable named toybox
, and various other directory entries in that directory symlinked to the toybox
, eg basename
and [
.
How do I uninstall toybox?
Context: I believe it's messing with advanced root detection of Citi banking (my Revolut app is working just fine with Magisk's SafetyNet Fix)
Tom Hale
(457 rep)
Oct 20, 2022, 08:34 AM
Showing page 1 of 4 total questions