yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] RebelLion_:
Kinda sucks when people don't know how to ask politely for what they want instead of *****ing in a random thread post, too.
[Android Software/Hacking General [Developers Only]] nxb:
From what I can tell this is the thread for all of osm0sis' utilities, including said busy box. Now the dev can fix it when they feel like it.
[Android Software/Hacking General [Developers Only]] jcmm11:
Nothing to fix. basename is definitely included in his BusyBox.
[Android Software/Hacking General [Developers Only]] nxb:
I checked it returns usage in plain adb... I'll research more.
[Android Software/Hacking General [Developers Only]] martyfender:
[MENTION=4544860]osm0sis[/MENTION] Is there a changelog for your update to your Magisk Module: Busybox for Android NDK that was posted yesterday? I don't see a recent change on github, but it appears to be your original release of 1.29.3, there.

Thanks
[Android Software/Hacking General [Developers Only]] osm0sis:
https://github.com/Magisk-Modules-Repo/busybox-ndk/commits/master

Top commit. :good::)

I plan to do the thread release here probably tomorrow.
[Android Software/Hacking General [Developers Only]] ashyx:
Was there really any need to quote all that? :rolleyes:
[Android Software/Hacking General [Developers Only]] martyfender:
Nope, sorry, I realized that after I posted and should have went back and edited it . I went to bed, instead.

Now edited.
[Android Software/Hacking General [Developers Only]] rogela:
Dear developer,

Thank you for your continued support and great product!

Recently I had a rather interesting experience with your product. To put a long story short, the BusyBox Magisk package seems to break Magisk 17.1 on my system running Miui 8.10.11, while it has always been working fine before this operating system update.

Please kindly ignore if this wouldn't be of help to your development.

---------- Post added at 05:21 PM ---------- Previous post was at 05:21 PM ----------

Dear developer,

Thank you for your continued support and great product!

Recently I had a rather interesting experience with your product. To put a long story short, the BusyBox Magisk package seems to break Magisk 17.1 on my system running Miui 8.10.11, while it has always been working fine before this operating system update.

Please kindly ignore if this wouldn't be of help to your development.
[Android Software/Hacking General [Developers Only]] jcmm11:
It would probably be helpful if you at least explained what you mean by "break Magisk 17.1" (along with any other details)
[Android Software/Hacking General [Developers Only]] Goneham2:
?

Tons of great tools very much appreciated
[Android Software/Hacking General [Developers Only]] kgursu:
Usage and dangers

Hi,

I've sent this message to osm0sis and didn't get a reply yet. Can someone help me on this?

Also, might changing the kernel be a solution for this?

Thanks.
[Android Software/Hacking General [Developers Only]] alecxs:
Why do you think its GPU? May have other reasons. "Try and Error" i would say - your phone, your responsibility :)
[Android Software/Hacking General [Developers Only]] jcmm11:
Couple of points. First of all which of his modules are you referring to? Next, I agree with the question asking why do you think it's the GPU drivers? Personally I suspect it's something else. Have you tried getting a logcat and seeing what it tells you?

Finally even if it is the GPU drivers I suspect (but don't know for sure) that replacing them systemlessly may not work. They may be pulled in too early in the boot process, in which case you'd have to physically replace them.

Or you could try replacing them earlier by using magisk-simple ( /data/adb/magisk_simple/system/<file to be replaced>) but even that has a (short) delay which may occur too late. (If you need to replace vendor files use the /system/vendor/ path)
[Android Software/Hacking General [Developers Only]] kgursu:
Ok, I don't have the knowledge for properly understanding logcats. Do you have that?

Or could you simply point me to such informative sites that contain this info?

Anyway, I would try to post you a logcat, which would contain these crashes, which are in most of the cases not right after the boot, maybe after unlocking sim card or after bypassing the security stage. Mostly, right in the middle of writing something. This requires a bigger logcat file, I think.

Thanks...

Edit: I'm referring to this module: Adreno_GPU_Developer_Preview_Drivers

Note: f.lux is not working properly on my device/rom, after systemizing it, the app no longer shows its effect. Before systemizing it, the effect was there, but the device was much more instable.
[Android Software/Hacking General [Developers Only]] OldMid:
MidnightCore offers the MidnightMisc package, which let's you easily take logcats, dumpsys's and filter by a certain word or term. Humbleplug:p
[Android Software/Hacking General [Developers Only]] kgursu:
Good to know, thanks.

Anyway, the ROM I used has become dead. Now, I'm trying Slimroms. Thanks for listening...

I'll always try to learn more about logcats, if there is info available...
[Android Software/Hacking General [Developers Only]] Paschfire:
Remember Google search is your friend when look for guidance or information on something.
[Android Software/Hacking General [Developers Only]] jcmm11:
Note that the thread is old but you should be able to find some useful info https://xdaforums.com/showthread.php?t=2274119

Assuming you're rooted an app like matlog (available in Play store) is useful.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
I have made available an app (no moneytisation) here on XDA at https://xdaforums.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260

This app has around 17 variations on calling Logcat, and then you can filter (include/exclude) the results, using a touch interface (ie no entering or remembering code), All commands are also available to be viewed/output/saved, as well as the results themselves. Within the app, you can find logcats under: Logcat>Logcats

The app above also does a lot of different dumpsys options (Dynamic Lists>Dumpsys), and at last count has over 280 different shell commands, which are run through the app interface; again, all commands/scripts are view-able.

I see we are going a *little* outside the scope of the actual scripts posted here by [MENTION=1143630]osmosis[/MENTION]. Is it OK to post questions regarding shell commands/scripts not within one of the published scripts in the OP?
[Android Software/Hacking General [Developers Only]] dgunn:
Is there a reason that BusyBox will not stay installed after a reboot with Android Pie? It seems that every time I do a reboot BusyBox disappears and must be reinstalled but along with The Disappearance of the BusyBox installation Comes The Disappearance of my lucky patcher mods.

The strange occurrence only happens to about 3/4 of the apps that I have modified with Lucky Patcher none of which are system apps. About 1/4 of the apps still have their modifications after reboot even after BusyBox has been uninstalled and reinstalled. Does anyone have any information about this because it's a little confusing as to why it's happening?
[Android Software/Hacking General [Developers Only]] Ibuprophen:
Assistance regarding anything to do with "l**** p******" is deemed as Warez on the XDA Forum and, though i can't speak for him but, I doubt that [MENTION=4544860]osm0sis[/MENTION] will provide assistance with this.

I'm not a Moderator nor Administrator but, I'm just providing a friendly heads up regarding this in case you weren't aware of it.

In addition, if you keep asking for assistance with that Warez app as located on the following thread (for example)...

https://xdaforums.com/showthread.php?t=3859780

... You take a chance at some negative introductions to a Moderator/Administrator that you really don't want to happen.

Good Luck! :)

~~~~~~~~~~~~~~~

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.
[Android Software/Hacking General [Developers Only]] dgunn:
No I was not aware and thank you for your assistance
[Android Software/Hacking General [Developers Only]] kgursu:
I know that thread, it gives beginner info about logcats, I think. I have little knowledge about the words written after the error code "e" on logcats. When you search for them one by one, it is a time consuming process. Also, what they reffering is also out of my knowledge boundaries. So, I need a guide explaining every word after the error code "e" or maybe even after other codes. Didn't find such a guide yet.

Thanks.
[Android Software/Hacking General [Developers Only]] Ibuprophen:
I believe that one or more of the following links has what you're looking for involving a more definitive look into Logs & Logcats.

https://developer.android.com/studio/debug/am-logcat

https://developer.android.com/studio/command-line/logcat

https://developer.android.com/reference/android/util/Log

https://developer.android.com/studio/debug/bug-report

https://developer.android.com/studio/debug/

https://developer.android.com/studio/debug/stacktraces

I don't believe that the forum has that kind of definitive/in-depth view (that I'm aware of personally).

Good Luck! :)

~~~~~~~~~~~~~~~

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
Ignoring the elephant, and talking to your specific problem. I found on my Oreo ROM's BusyBox (Stericson) wasn't "Sticking". All I did was change the install location from /sbin to /system/xbin, and it stays installed.,
[Android Software/Hacking General [Developers Only]] dgunn:
I'm using Android Pie on the Oneplus 6 and on Pie we have to use the Magisk module, not the actual BusyBox applet.
[Android Software/Hacking General [Developers Only]] osm0sis:
It's installed on my OP6 without any issues; it works from root (#) and user ($) command prompts and persists fully-functional through a reboot.

If you provide any kind of logs it might be helpful.
[Android Software/Hacking General [Developers Only]] dgunn:
Thank you for the reply it seems that I have now got the issue ironed out. For some reason BusyBox Pro was reinstalling after every boot even though I had unchecked the Box to do so. I had reinstalled the app three times and this last time I went through the phone and deleted every folder that was associated with BusyBox. After I reinstalled the app this time and unchecked the box NOT to reinstall after boot it is now working correctly. Some sort of minor glitch I guess. Like I said I have been using BusyBox for years and this is the only problem I've ever had out of it. The module seemed to not be working for me so I actually switched to the applet now. I do have quite a few mods installed through magisk and quite a few other mods including LP so there could be some sort of conflict
[Android Software/Hacking General [Developers Only]] osm0sis:
Yeah, never smart to have an app and module installed which do competing things. :eek::rolleyes:

My advice is to uninstall all Busybox apps. Just use Magisk and my module. Anything that doesn't play nice with that is itself broken.
[Android Software/Hacking General [Developers Only]] kgursu:
Thanks a ton for pointing me to these reference sites. I'm sure they would be in some way useful in the near future... :fingers-crossed:
[Android Software/Hacking General [Developers Only]] martyfender:
Where do I find changelogs for your Busybox for Android NDK? everytime I click on it it only redirects me to this page and on github I don't see any updates unless I am looking in the wrong place, maybe I am. It shows the last commit a month ago.

Never mind, I found it in the Magisk Module repository. Why not provide that link in the module description in MM, instead of a link to your thread thread?

I will know from now on.

Thanks

Thanks
[Android Software/Hacking General [Developers Only]] TotallyAnxious:
Check magisk module repo GitHub.
[Android Software/Hacking General [Developers Only]] GAURAV THAKKAR:
Can someone explain how to use the A/B TWRP retention script

Currently using the OnePlus 6 and it's troublesome to always do the fastboot thing
[Android Software/Hacking General [Developers Only]] osm0sis:
The README on the repo explains it about as well as can be explained:

https://github.com/Magisk-Modules-Repo/twrp-keep/blob/master/README.md

I used it just yesterday while updating to Open Beta 6. :good:
[Android Software/Hacking General [Developers Only]] osm0sis:
...And another thing!

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 do hit the donate link from my profile. Thanks for your support!

UPDATE-Busybox.Installer.v1.29.3-ALL-signed.zip:

- fix weird recovery install edge case where device is arm64, and recovery is arm64, but ROM is arm, so only arm binary will work

See the related commits here: https://github.com/Magisk-Modules-Repo/busybox-ndk

I also released Android Image Kitchen v3.4 and corresponding AnyKernel2 updates to support Pixel 3 and OnePlus 6 Pie images correctly, made a little update to my standalone zipalign repo and pushed a final BootUnlocker app alpha for posterity. :good:
[Android Software/Hacking General [Developers Only]] GAURAV THAKKAR:
Also [MENTION=4544860]osm0sis[/MENTION] Can you do something with the "The bootloader is unlocked and software integrity" something something on the OnePlus 6 ?

It's not a big issue to be honest but it's annoying at times xD

Will a custom boots animation work successfully in hiding or doing away with it?

---------- Post added at 08:19 AM ---------- Previous post was at 08:16 AM ----------

I read the README.md as suggested by you but

My confusion is whenever I try to flash Magisk along with an Oxygen OS update it gives Error 1

And as you said the script needs the Magisk environment

What should I do in that case?
[Android Software/Hacking General [Developers Only]] ngshixuan:
Oh that intro when you boot your phone that's nothing much you can do but to live with it. The only way to get rid of it is the unroot your phone.
[Android Software/Hacking General [Developers Only]] osm0sis:
.. you need to read how to apply Magisk after an OTA on the Magisk github.io site: https://topjohnwu.github.io/Magisk/tutorials.html#devices-with-ab-partitions

My script needs to be flashed just before the step where you install Magisk to Inactive slot.

Root has nothing to do with it, the only way to get rid of it is to relock the bootloader, which you shouldn't do with a modded anything since it'll fail verity and keep you from booting. No way to hide the message on OnePlus since it's basically MSDOS printing text and you can't modify the bootloader.
[Android Software/Hacking General [Developers Only]] ngshixuan:
Oops I should have said unlocking the bootloader
[Android Software/Hacking General [Developers Only]] DaRdamnDoG:
Hi, i wish to get the init.d scripts. The link is dead. Thanks.
[Android Software/Hacking General [Developers Only]] osm0sis:
Good news is starting with the NDK Unified headers coreutils/date.c compiles with CONFIG_FEATURE_DATE_NANO=y; bad news is the Unified headers break some other stuff so the busybox build won't complete :silly::

libbb/semctl.c: In function 'semctl':
libbb/semctl.c:36:15: error: storage size of 'arg' isn't known
union semun arg;
^
make[1]: *** [scripts/Makefile.build:198: libbb/semctl.o] Error 1
make: *** [Makefile:744: libbb] Error 2

Since I'm updating everything, I'll see what I can work out. :fingers-crossed:

All links work fine for me.
[Android Software/Hacking General [Developers Only]] HemanthJabalpuri:
[MENTION=4544860]osm0sis[/MENTION]

sorry for newbie thing..

Your Kernel init.d injector is just adding the below lines to init.rc right?

# Execute files in /system/etc/init.d before booting
service run-parts /system/bin/sh -c "sleep 2; for i in /system/etc/init.d/*; do if [ ! -d $i ] && [ -x $i ]; then . $i > /dev/kmsg 2>&1; fi; done;"
class late_start
user root
group root
seclabel u:r:init:s0
oneshot

if yes...then if i want to execute to after boot, then the following is fine?

service run-parts /system/bin/sh -c "for i in /system/etc/init.d/*; do if [ ! -d $i ] && [ -x $i ]; then . $i > /dev/kmsg 2>&1; fi; done;"
class late_start
user root
group root
[Color="red"]disabled[/color]
seclabel u:r:init:s0
oneshot

[color="red"]on property:init.svc.bootanim=stopped
start run-parts[/color]

also another doubt is my device has a custom kernel...with following lines not working...

any thing missing to work..?

# Kernel customizations post initialization
exec /sbin/custom_init.sh

# Enable sysinit (init.d support)
on property:ro.config.sysinit=true
exec /sbin/run-parts /system/etc/init.d

I added that ro.config.sysinit=true line in build.prop but init.d is not working...
[Android Software/Hacking General [Developers Only]] osm0sis:
No idea man, there are a lot of reasons it might not be working; like I've said a few times it all depends on how strict SELinux is and my init.d injector is only a proof of concept. If you want a robust init.d solution I linked to a zip by [MENTION=1844875]CosmicDan[/MENTION] in my AnyKernel2 thread.
[Android Software/Hacking General [Developers Only]] osm0sis:
No idea man, there are a lot of reasons it might not be working; like I've said a few times it all depends on how strict SELinux is and my init.d injector is only a proof of concept from the Lollipop era. If you want a robust init.d solution I linked to a zip by [MENTION=1844875]CosmicDan[/MENTION] in my AnyKernel2 thread. Pretty sure [MENTION=6037748]Zackptg5[/MENTION] has a pretty legit one cooked up now too.
[Android Software/Hacking General [Developers Only]] Ps24u:
[/COLOR [MENTION=4544860]osm0sis[/MENTION]

I'm on systemless twrp+supersu installation and want to install busybox systemless also.

When I use stericson apk installer, it detects su/bin but doesn't manage to install there, it always pop up a message saying it failed.

So i tried to flash your zip hoping it would detect and install in su/bin but it ended up going straight to system/xbin...?

How can i force a systemless installation of busybox then ?

Thanks for your help.
[Android Software/Hacking General [Developers Only]] osm0sis:
That should all still work. Install log from recovery please. /su/bin, so the deprecated su.img SuperSU?
[Android Software/Hacking General [Developers Only]] Ps24u:
Thaks for your reply.

My boot.img incorporates superSU 2.82, it was created with rootkernel app (xperia).

Here's the log enclosed.
[Android Software/Hacking General [Developers Only]] osm0sis:
Okay, now the output of `test -e /data/adb/magisk && adb=adb; ls /data/$adb/magisk_merge.img || ls /data/su.img || ls /cache/su.img || ls /data/$adb/magisk.img || ls /cache/magisk.img` and `find /data -name supersu_is_here`
[Android Software/Hacking General [Developers Only]] fattieboombattie:
Hmm, will this Box work well with my Kali Linux.img in my Android that I run from my ext4 SD card? I need all UNIX applets to be able to perform in the correct path..

Thanks.
[Android Software/Hacking General [Developers Only]] osm0sis:
Are you talking about busybox? They're all static binaries; they should work on any Android device with the corresponding architecture.
[Android Software/Hacking General [Developers Only]] fattieboombattie:
Yup, BusyBox, toybox etc... It's just that I run AEX 8.1 while running Kali Linux in a chroot on my /system/emulated/0/ (ext4). I guess I'm just a little confused about "static". I tend to need applets and symlink in UNiIX, Linux for proper proper communication between drive, bus, CPU and return the correct language. Does this make sense?
[Android Software/Hacking General [Developers Only]] Ps24u:
Hmm i'm not sure what you want me to do at this point,

please consider me as a a noob ^^;

I don't have magisk installed at all, too.
[Android Software/Hacking General [Developers Only]] marcdw:
I'm going to assume that that rootkernel app didn't give you a full SuperSU installation. Patching the boot.img but not much more me thinks. Have you considered flashing SuperSU itself? This will give you the full systemless installation.

Run the commands osm0sis posted, in a TWRP(?) terminal, to determine if you have the items that would normally be present in systemless installations. Do you have a /data/adb/su directory?

LG G3 D851, LiquidRemix v9.1.3 Oreo ROM, microG (NoGapps), MultiROM, XDA Legacy
[Android Software/Hacking General [Developers Only]] osm0sis:
https://www.google.com/search?q=static+linking
[Android Software/Hacking General [Developers Only]] Ps24u:
Thanks much for your reply, you were exactly right.

Patching the boot.img with rootkernel and embedding superSU was half broken, installed in su/bin instead of su/xbin and certainly other outdated parameters.

After I flashed SuperSU manually instead, everything works proper, including installing busybox binary systemless using the busybox installer on Play.

Mystery solved, thank you!
[Android Software/Hacking General [Developers Only]] gvmiguez:
Thanks for your great job with the Magisk module "TWRP A/B Retention Script" [MENTION=4544860]osm0sis[/MENTION] , tested on my OnePlus 6 and it works perfectly ??
[Android Software/Hacking General [Developers Only]] jaager:
I have a problem with "flashafterupdate" script and hope that you can help me. I'm using LineageOS 15.1 and placed the script under "/system/addon.d/". After an OTA update the script is executed but exits with the following error:

"No files found in '/sdcard/FlashAfterUpdate' to flash".

The folder exists and I placed three flashable ZIPs there. Also I created a file named "verbose". What could be the problem?

---------- Post added at 19:17 ---------- Previous post was at 19:17 ----------

I have a problem with "flashafterupdate" script and hope that you can help me. I'm using LineageOS 15.1 and placed the script under "/system/addon.d/". After an OTA update the script is executed but exits with the following error:

"No files found in '/sdcard/FlashAfterUpdate' to flash".

The folder exists and I placed three flashable ZIPs there. Also I created a file named "verbose". What could be the problem?
[Android Software/Hacking General [Developers Only]] osm0sis:
Encryption? Well known issue with Lineage not decrypting /data during OTAs anymore, so you might need to point the script somewhere else by editing the path at the top to somewhere that can be read during the update process.
[Android Software/Hacking General [Developers Only]] jaager:
Thanks a lot, I totally forgot this :(

I'll try it with "/data/FlashAfterUpdate".
[Android Software/Hacking General [Developers Only]] jaager:
Still the same error ""No files found in '/sdcard/FlashAfterUpdate' to flash!"".

Any hints?
[Android Software/Hacking General [Developers Only]] osm0sis:
Then you forgot to actually change the path at the top of the addon.d script.
[Android Software/Hacking General [Developers Only]] jaager:
No I didn't. Perhaps the ZIP files are not compatible?
[Android Software/Hacking General [Developers Only]] osm0sis:
It wouldn't have printed "No files found in '/sdcard/FlashAfterUpdate' to flash!" if it had been changed correctly at that point in time; it would have said /data/FlashAfterUpdate since it just prints that variable.
[Android Software/Hacking General [Developers Only]] jaager:
Sorry of course it did. Just a silly copy and paste mistake from my side ...
[Android Software/Hacking General [Developers Only]] osm0sis:
Ah, then that location must not be decrypted either then.
[Android Software/Hacking General [Developers Only]] jaager:
I guess my Redmi Note 5 is fully encrypted so I cannot use your script at all :crying:

Nevertheless thanks for your support!
[Android Software/Hacking General [Developers Only]] osm0sis:
https://github.com/TeamWin/android_device_xiaomi_whyred/blob/android-8.1/recovery.fstab

cache partition could be worth a try!
[Android Software/Hacking General [Developers Only]] DaRdamnDoG:
Hi sir, is there any guide to use AnyKernel2 plz? Many thanks.