yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] cvsomm:
"No Busybox found"

[MENTION=4544860]osm0sis[/MENTION] Thanks for all your brilliant work! :good:

With Magisk (20.4, Manager: 7.5.1, OnePlus 3T, LOS 16 / Android 9) I installed the busybox-ndk module (Magisk repository) and the MagiskHide Props Config module. Running "props" from a Terminal yields the error ""No Busybox found".

I then manually installed the Busybox_for_Android_NDK-1.31.1(13114) via Magisk and tried again - same error.

Could you please help me? What could be the reason for this? :confused:

(I had installed BusyBox Pro via GooglePlay beforehand but uninstalled it and tried again - same error.)

Thanks a lot for your help!
[Android Software/Hacking General [Developers Only]] osm0sis:
You had an old app and my module? Don't try to use more than one busybox at once. Then show us an install log from my busybox module or nobody can help you.
[Android Software/Hacking General [Developers Only]] cvsomm:
Log attached.

(It was BusyBox Pro from Stericson. normally installed via GooglePlay. But I have uninstalled it and uninstalled and then re-installed your Magisk-module. But it still does not seem to be found :( )

Thanks again!
[Android Software/Hacking General [Developers Only]] osm0sis:
"Using path: /dev/tmp/su/xbin"

So delete /data/su.img and /cache/su.img then it'll work fine. It's what you get for switching root solutions without cleaning up the old one properly first.
[Android Software/Hacking General [Developers Only]] cvsomm:
Yes Sir - you are absolutely right. This did the trick!

I admit I was messy (well, I didn't know that swapping from SU to Magisk I would have to delete this manually ...)

Thanks again for your help - very much appreciated!

:)
[Android Software/Hacking General [Developers Only]] osm0sis:
Welllll here's a Fla**** update so there must be an AIK release coming soon. ;)

Just writing myself a formal regression tester to use with my boot-img-collection first. :cowboy:

I work on these projects in my limited time off, so if you like the progress I'm making, or enjoy anything else I've done on xda, please consider sponsoring my ongoing work using my GitHub Sponsors profile. For a one-time donation you can hit the donate link from my profile. Thanks for your support!

999-flashafterupdate.sh:

- add logical partition block mapper rw support

UPDATE-Fla****.Installer.v3.7-signed.zip:

- fix truncated recovery.log with redirected Recovery Zip output

- rewrite installer using new unified backend/core with config

- update busybox binary (1.31.1) with the latest patches and fixes from my repo

- use Fla**** busybox for Recovery Zip when possible to keep expected behavior

- allow Recovery Zip into FLASHAFTERUPDATEV2 whitelist since that could possibly be handy for some

Happy hacking!
[Android Software/Hacking General [Developers Only]] osm0sis:
Welllll here's a Fla**** update so there must be an AIK release coming soon. ;)

Just writing myself a formal regression tester to use with my boot-img-collection first. :cowboy:

I work on these projects in my limited time off, so if you like the progress I'm making, or enjoy anything else I've done on xda, please consider sponsoring my ongoing work using my GitHub Sponsors profile. For a one-time donation you can hit the donate link from my profile. Thanks for your support!

999-flashafterupdate.sh:

- add logical partition block mapper rw support

UPDATE-Fla****.Installer.v3.7-signed.zip:

- fix truncated recovery.log with redirected Recovery Zip output

- rewrite installer using new unified backend/core with config

- update busybox binary (1.31.1) with the latest patches and fixes from my repo

- use Fla**** busybox for Recovery Zip when possible to keep expected behavior

- allow Recovery Zip into FLASHAFTERUPDATEV2 whitelist since that could possibly be handy for some
[Android Software/Hacking General [Developers Only]] bagbyte:
Busybox_for_Android_NDK-1.31.1(13114).zip fails to install

I have a Galaxy A51 (SM-A515F) ONE UI 2.0 rooted with Magisk, I've tried to download and install the package directly from Magisk but the installation fails, it seems due to make_ext4fs.

Here the log:

- Copying zip to temp directory
- Installing Busybox_for_Android_NDK-1.31.1(13114).zip
- Device is system-as-root
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: module.prop
*************************
Busybox for Android NDK
*************************
*******************
Powered by Magisk
*******************
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: customize.sh
update-binary: /data/adb/modules_update/busybox-ndk/customize.sh: line 36: /system/bin/make_ext4fs: not found
mke2fs 1.44.4 (18-Aug-2018)
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: diffusion_config.sh
inflating: module.prop

Mounting...

Extracting files...
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: README.md
inflating: busybox-arm
inflating: busybox-arm-selinux
inflating: busybox-arm64
inflating: busybox-arm64-selinux
inflating: busybox-mips
inflating: busybox-mips64
inflating: busybox-x86
inflating: busybox-x86-selinux
inflating: busybox-x86_64
inflating: busybox-x86_64-selinux
inflating: customize.sh
inflating: diffusion_config.sh
inflating: module.prop

Installing...
update-binary: /data/adb/modules_update/busybox-ndk/customize.sh: line 292: make_ext4fs: not found
mke2fs: invalid option -- t
BusyBox v1.31.1-Magisk (2020-01-20 20:36:54 CST) multi-call binary.

Usage: mke2fs [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]

-b BLK_SIZE	Block size, bytes
-F	Force
-i RATIO	Max number of files is filesystem_size / RATIO
-I BYTES	Inode size (min 128)
-L LBL	Volume label
-m PERCENT	Percent of blocks to reserve for admin
-n	Dry run
umount: can't unmount /dev/tmp/magisk_merge: No such file or directory
mount: can't setup loop device: No such file or directory
Using architecture: arm64-selinux
Using path: /dev/tmp/magisk_merge/busybox-ndk/system/bin

Cleaning...

Creating symlinks...
grep: bad regex '^[$': brackets ([ ]) not balanced
grep: bad regex '^[[$': brackets ([ ]) not balanced

Unmounting...

Done!
progress: applet not found
! Installation failed
[Android Software/Hacking General [Developers Only]] osm0sis:
You need to clean up your Magisk installation, it's still got magisk.img and/or magisk_merge.img, probably in /data or /cache. Go delete them then try again.
[Android Software/Hacking General [Developers Only]] bagbyte:
I'm still having the same issue, I hope I'm not doing anything wrong:

# ls /data/adb/
magisk magisk.db magisk_merge.img modules_update

# rm -rf /data/adb/modules_update /data/adb/magisk_merge.img

# ls /data/adb/
magisk magisk.db

# ls /cache
backup backup_stage lost+found lsb magisk.log recovery

# ls /data/cache
backup backup_stage recovery

After removing the files in the /data/adb I've rebooted, check the /data/adb still look the same, then retrying to install the package, but the log looks exactly the same
[Android Software/Hacking General [Developers Only]] osm0sis:
You missed /data/magisk.img which is probably where the culprit is hiding. ;)
[Android Software/Hacking General [Developers Only]] bagbyte:
I've re-flashed/rooted and wiped the phone to have a fresh installation, and now this is the log of the module installation:

- Copying zip to temp directory
- Installing Busybox_for_Android_NDK-1.31.1(13114).zip
- Device is system-as-root
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: module.prop
*************************
Busybox for Android NDK
*************************
*******************
Powered by Magisk
*******************
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: customize.sh
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: diffusion_config.sh
inflating: module.prop

Mounting...

Extracting files...
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: README.md
inflating: busybox-arm
inflating: busybox-arm-selinux
inflating: busybox-arm64
inflating: busybox-arm64-selinux
inflating: busybox-mips
inflating: busybox-mips64
inflating: busybox-x86
inflating: busybox-x86-selinux
inflating: busybox-x86_64
inflating: busybox-x86_64-selinux
inflating: customize.sh
inflating: diffusion_config.sh
inflating: module.prop

Installing...
Using architecture: arm64-selinux
Using path: /data/adb/modules_update/busybox-ndk/system/bin

Cleaning...

Creating symlinks...
grep: bad regex '^[$': brackets ([ ]) not balanced
grep: bad regex '^[[$': brackets ([ ]) not balanced

Unmounting...

Done!
progress: applet not found
! Installation failed
[Android Software/Hacking General [Developers Only]] osm0sis:
If you look at the main errors you got in your log:

update-binary: /data/adb/modules_update/busybox-ndk/customize.sh: line 36: /system/bin/make_ext4fs: not found
update-binary: /data/adb/modules_update/busybox-ndk/customize.sh: line 292: make_ext4fs: not found

It shows the script lines where it'll only attempt to make a magisk_merge.img when there IS a /data/adb/magisk but NOT /data/adb/modules or /data/adb/magisk_merge.img, which suggest a Magisk version from before /data/adb/modules was a thing.

So basically to avoid this issue you would likely just need to boot your new Magisk installation, or install a standard Magisk module first so that /data/adb/modules gets created. Then make sure you delete that magisk_merge.img you found and it'll work.
[Android Software/Hacking General [Developers Only]] bagbyte:
Sorry, bad copy/paste, I've edited my previous reply but I guess you were already replying, the log actually changed after the fresh re-rooting.

- Copying zip to temp directory
- Installing Busybox_for_Android_NDK-1.31.1(13114).zip
- Device is system-as-root
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: module.prop
*************************
Busybox for Android NDK
*************************
*******************
Powered by Magisk
*******************
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: customize.sh
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: diffusion_config.sh
inflating: module.prop

Mounting...

Extracting files...
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: README.md
inflating: busybox-arm
inflating: busybox-arm-selinux
inflating: busybox-arm64
inflating: busybox-arm64-selinux
inflating: busybox-mips
inflating: busybox-mips64
inflating: busybox-x86
inflating: busybox-x86-selinux
inflating: busybox-x86_64
inflating: busybox-x86_64-selinux
inflating: customize.sh
inflating: diffusion_config.sh
inflating: module.prop

Installing...
Using architecture: arm64-selinux
Using path: /data/adb/modules_update/busybox-ndk/system/bin

Cleaning...

Creating symlinks...
grep: bad regex '^[$': brackets ([ ]) not balanced
grep: bad regex '^[[$': brackets ([ ]) not balanced

Unmounting...

Done!
progress: applet not found
! Installation failed
[Android Software/Hacking General [Developers Only]] osm0sis:
That's weird.. I intentionally have it use its own busybox grep for the filtered /system/bin installation to avoid any weird compatibility issues and that seems to work for others... :confused:

With my busybox uninstalled (uninstall and reboot to make sure) what's in your /system/bin? I'm guessing [ and [[ applets, which may not be on others' /system/bin devices. :eek:

Edit: Though, on second look it doesn't even look like [ or [[ cause a fatal error.. it gets all the way to "Done!" and somehow fails on probably `set_progress 1.34;` which should run `echo "set_progress $1" >> $OUTFD;` not `progress` alone. And even then that shouldn't tank the installation because `exit 0` comes after. It's kind of baffling really since there's definitely no issue with that on my device.
[Android Software/Hacking General [Developers Only]] HippoMan:
FYI: I uninstalled Busybox on my OnePlus 7Pro (GM-1917) running OOS 10.3.2, and there is no [ nor [[ applet installed in /system/bin.

.​
[Android Software/Hacking General [Developers Only]] bagbyte:
/system/bin doesn't have the [ and [[, but /data/adb/modules_update/busybox-ndk/system/bin (which is the $XBIN/busybox) does!
[Android Software/Hacking General [Developers Only]] osm0sis:
Yeah, OnePlus devices still have an xbin, at least on stock, but [MENTION=1964481]bagbyte[/MENTION]'s Galaxy A51 (SM-A515F) with ONE UI 2.0 doesn't have xbin, and may have something interesting up with the /system/bin contents in addition to whatever craziness is happening at the end of the log.

Edit: Since it's Samsung, it reminds me of there currently being some Magisk install environment issues on some (mostly older) devices: https://github.com/topjohnwu/Magisk/issues/2609#issuecomment-625397630
[Android Software/Hacking General [Developers Only]] bagbyte:
I'm not sure if there could be any relationship with this failure, currently, after installing a module (i.e. Log Catcher), even if the installation succeeds, the module doesn't appear to be installed in Magisk, even tho after reboot its folder is present in /data/adb/modules and /data/adb/modules_update
[Android Software/Hacking General [Developers Only]] osm0sis:
Yeah, sounds like module installation might just be broken in general on your device. :eek:

Maybe try the latest Canary?
[Android Software/Hacking General [Developers Only]] sintoo:
Could you attach the latest busybox...magiskzip file here please. I'm having problem getting it from inside magisk. Thank you.
[Android Software/Hacking General [Developers Only]] osm0sis:
What? It's attached in the OP. :rolleyes:
[Android Software/Hacking General [Developers Only]] TotallyAnxious:
Feel free to buy some donairs with this donation! I feel like it's more of a dare, they sound disgusting! I just finished everything trailer park boys, and just got into Letterkenny, so I'll probably dare you to fight someone next. Though I feel like you have the unique skill set to make Fartbook.com a reality.
[Android Software/Hacking General [Developers Only]] osm0sis:
Haha actually as an East Coaster I love donairs, so challenge happily accepted. There's actually something crazy good about rotisseried garlic beef, raw onions and tomatoes, and a garlic condensed milk and vinegar based sauce on a fried pita. :silly:

Thanks so much for the donation! Big fan of Letterkenny also; a lot of great writing in those cold opens and chirping the hockey players, especially in the earlier seasons. :D
[Android Software/Hacking General [Developers Only]] TotallyAnxious:
Ah so donairs being so popular is why Canada has the only (like 99% sure of this) universal healthcare system in North America (i.e. gastrointestinal/cardiological disease). Lol

The hockey players and the bartender are my favorites. And the A-Z openings.
[Android Software/Hacking General [Developers Only]] gooberdude:
I running adb fastboot installer 1.039, on a Samsung Tab A6, android 5.0 fastboot functions adb is not found. Your info states xbin, files are located in bin. I have yet to test adb, and hope you will do more work with the installer package
[Android Software/Hacking General [Developers Only]] osm0sis:
They go in xbin for Systemless SuperSU, for every other scenario they go in bin. They work for many, but not all devices are the same. Search the thread for some troubleshooting you can do to possibly get it to work, but there's no guarantee.
[Android Software/Hacking General [Developers Only]] gooberdude:
What I did as a work around, was to copy the files into xbin and set proper permissions. Then set magisk to core only. It seems Magisk does not play well on Samsung devices. Once core mode was rebooted. Magisk removed the adb fastboot files from bin, but my copies stayed in xbin, and function well enough to do the same on my TV box. My TV box has 4 usb connections, so I can do 4 devices athat a time in adb fastboot modes.

Just letting you know there is a fully functional work around. THANKS!
[Android Software/Hacking General [Developers Only]] lucfig:
Hi,

I'm totally inexperienced in executing sh scripts. I'm not being able to change the default alarm on my OnePlus 7T. The alarm fine is located under sdvard/alarms. Can you give me some orientation please?

Best regards
[Android Software/Hacking General [Developers Only]] osm0sis:
Copy paste that script into a root prompt in Terminal Emulator app, then run it per my instructions in the quoted post.

To be careful of line endings I've found it's best to copy from the quoted text when you hit reply on a post.
[Android Software/Hacking General [Developers Only]] lucfig:
Thanks for the fast response.

I tried that and it did change the sound, but not to the one I was trying to.

I tried the following commands:

set_alarm Atlas.ogg
set_alarm /storage/emulated/0/Alarms/Atlas.ogg

Both of them return the following:

Alarm changed to "Atlas.ogg"; "content://media/internal/audio/media/18550".".

In the OnePlus clock app the default now is 18550, but this is a really annoying sound, and not the one called Atlas. It is like an old loud alarm clock.

Have I done something wrong? Must I change the off file location?

Best regards

Enviado de meu HD1903 usando o Tapatalk
[Android Software/Hacking General [Developers Only]] osm0sis:
Be certain of the case and name of the file, then simply `set_alarm Atlas` (or `set_alarm atlas` if it's actually lowercase) should work.

You can try testing using my example of `set_alarm interesting` to see if that works and it's just your sdcard file that is tripping things up somehow.
[Android Software/Hacking General [Developers Only]] lucfig:
Tried again, just in case, but the same thing happens (case is correct: Atlas).

Trying your example gives me a not found error.

And trying a built in system alarm sound (Carbon in this case) it worked without any issues.

So it must be something with my sdcard.

Enviado de meu HD1903 usando o Tapatalk
[Android Software/Hacking General [Developers Only]] DiamondJohn:
Have you tried using a Magisk module to change the actual sound file that is played for an event?

The settings command works fine on my phone, but I cant find the setting for the charger plugged/unplugged :mad: but even worse, the only sound that matches the tone played, does not change the plugged/unplugged sound:mad::mad:
[Android Software/Hacking General [Developers Only]] osm0sis:
Ah, yes, "interesting" is a stock OOS alarm, but if you're using Carbon that's why it wouldn't be there. I just presumed you were on OOS since you said you needed to use the script, more questions on that at the end here.

Sounds like there may be some issue with the script's content query for external files (external = /sdcard in this case). Not sure why that would happen if the internal one worked. Both worked last time I set up an OP device and needed to use that script.

I'm curious though, you're on Carbon, so as a custom ROM shouldn't it have the ability to change default alarm in the Settings or even the Alarm app? As far as I knew AOSP has that, and therefore so should Carbon. :confused:
[Android Software/Hacking General [Developers Only]] lucfig:
Sorry, I typed something wrong. Interesting is indeed working. Atlas that still not.

I'm in stock OOS, but running xXx NoLimits and after kernel over it.

The Carbon sound must have come from xXx if it is not in stock.

Enviado de meu HD1903 usando o Tapatalk
[Android Software/Hacking General [Developers Only]] osm0sis:
Thanks for clarifying. I'll investigate the sdcard sound issue and get back to you. :good:
[Android Software/Hacking General [Developers Only]] lucfig:
Thanks! And I meant arter kernel. Auto corrector...

Enviado de meu HD1903 usando o Tapatalk
[Android Software/Hacking General [Developers Only]] osm0sis:
Fixed it. Needed some better gating on the logic setting the uri. :)

https://xdaforums.com/showpost.php?p=75374306&postcount=1616
[Android Software/Hacking General [Developers Only]] lucfig:
Thank you very much! Worked perfectly!

I was scrolling through your scripts, what an overwhelming amount of scripts, no wonder you had to create this thread.

I've always seeing credits to you for the any kernel, but never checked your other works.

Congratulations man.

Any of those scripts you use frequently or that facilitate some aspect for regular users, such as this alarm script?

Best regards

Enviado de meu HD1903 usando o Tapatalk
[Android Software/Hacking General [Developers Only]] osm0sis:
Thanks! On custom ROMs with working addon.d I frequently use my FlashAfterUpdate addon.d script, and with working addon.d-v2 I use that and my TWRP A/B addon.d-v2 script.

Then it's my Fla**** and AIK-mobile packages on every device, my hacked git Magisk module, and my Busybox, adb, nano and zipsigner Magisk modules. All are listed in the OPs here. :)
[Android Software/Hacking General [Developers Only]] lucfig:
Thank you. I will take a look on those.

Just set up the alarm script in Tasker so it is always backed up and ready to use.

<TaskerData sr="" dvi="1" tv="5.9.3.beta.6">
<Task sr="task823">
<cdate>1591708188641</cdate>
<edate>1591709785366</edate>
<id>823</id>
<nme>Change Alarm Sound</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>595</code>
<Str sr="arg0" ve="3">Qual alarme?</Str>
<Str sr="arg1" ve="3">%alarm</Str>
<Int sr="arg2" val="0"/>
<Str sr="arg3" ve="3">Atlas</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3">Variable Query</Str>
<Int sr="arg6" val="40"/>
<Int sr="arg7" val="1"/>
</Action>
<Action sr="act1" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">set_alarm() {
local alarmid alarmuri rebootmsg curuser curalarm;
if [ "$1" ]; then
alarmid=$(echo "u:r:shell:s0" > /proc/self/attr/current; content query --uri "content://media/external/audio/media" | grep $1 | grep -oE " _id=([0-9]+)," | grep -oE "[0-9]+");
if [ "$alarmid" ]; then
alarmuri="content://media/external/audio/media/$alarmid";
else
alarmid=$(echo "u:r:shell:s0" > /proc/self/attr/current; content query --uri "content://media/internal/audio/media" | grep $1 | grep -oE " _id=([0-9]+)," | grep -oE "[0-9]+");
test "$alarmid" && alarmuri="content://media/internal/audio/media/$alarmid";
fi;
if [ "$alarmuri" ]; then
$(echo "u:r:shell:s0" > /proc/self/attr/current; settings put system alarm_alert $alarmuri >/dev/null);
if [ "$?" != 0 ]; then
rebootmsg=" Reboot for effect.";
curuser=$(dumpsys activity | grep CurrentUser | cut -d= -f2);
curalarm=$(grep 'name="alarm_alert"' /data/system/users/$curuser/settings_system.xml | grep -oE 'value=.*$' | cut -d\" -f2);
sed -i "s;alarm_alert\" value=\"${curalarm};alarm_alert\" value=\"${alarmuri};" /data/system/users/$curuser/settings_system.xml;
fi;
echo "Alarm changed to \"$1\"; \"$alarmuri\".$rebootmsg";
else
echo "Alarm \"$1\" not found!";
return 1;
fi;
else
curalarm=$(settings get system alarm_alert);
echo "Alarm currently \"$(echo "u:r:shell:s0" > /proc/self/attr/current; content query --uri "$curalarm" | grep -oE " _display_name=.*" | cut -d, -f1 | cut -d= -f2)\"; \"$curalarm\".";
fi;
return 0;
}

set_alarm %alarm</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3">%out</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act2" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">%out</Str>
<Int sr="arg1" val="0"/>
</Action>
</Task>
</TaskerData>

Enviado de meu HD1903 usando o Tapatalk