yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] osm0sis:
Thanks! Yeah it seems that's only with the new devices. Everything should continue to work as before on the existing devices. :)
[Android Software/Hacking General [Developers Only]] codelover:
Congrats for the new project! I didn't know shell script can do these kind of things too.

About the applypatch, have you checked /system/bin/applypatch? Available in most (but not all) system.

# applypatch

usage: applypatch [-b <bonus-file>] <src-file> <tgt-file> <tgt-sha1> <tgt-size> [<src-sha1>:<patch> ...]
or applypatch -c <file> [<sha1> ...]
or applypatch -s <bytes>
or applypatch -l

Filenames may be of the form
MTD:<partition>:<len_1>:<sha1_1>:<len_2>:<sha1_2>:...
to specify reading from or writing to an MTD partition.

Tho, the -b switch might not be generic as some system does not support that, usually being used with MTD path to patch boot/recovery directly.
[Android Software/Hacking General [Developers Only]] osm0sis:
Haha oh derp. I knew I saw that damn binary somewhere! Thanks! I'll have to write something like Chainfire's new ch_con to run it from system if it exists. :good: :)

Shame it's not exposed in recovery when it's more of a recovery function; it's probably compiled into the recovery binary itself for the EDIFY calls..
[Android Software/Hacking General [Developers Only]] BastiZ:
Sry, I'm a beginner.

Framework is already odexed.

But how to odex the rest? Could you give me an example?

It's possible to odex all files in system/apps at once?
[Android Software/Hacking General [Developers Only]] osm0sis:
Install it. Command prompt. Type odex and the filename. I forget if it'll handle wildcards or not. You could give it a try with /system/app/*
[Android Software/Hacking General [Developers Only]] Lanchon:
hi,

i confirm cwm-Nexus.BootUnlocker.zip working under the nexus 5 lollipop bootloader hhz12d (from LRX21O).

thanks!
[Android Software/Hacking General [Developers Only]] 3lo0sh:
Will "Franco Team init.d pack" work in franco kernel v69? :p
[Android Software/Hacking General [Developers Only]] Sik-1:
Works for every rom bro, jus flash away lol
[Android Software/Hacking General [Developers Only]] osm0sis:
Merry Christmas and Happy Boxing Day everyone!

I've updated my Cygwin-Linux Cross-compiler Toolchain documentation since I have now built i686 and x86_64 using the latest crosstool-ng 1.20.0, gcc 4.9.1 and glibc 2.19. A few new patches/workarounds were required. Such headaches/fun! :p

As such, I've updated my AIK Build Farm to support Linux x86_64 builds and have released AIK-mobile + AIK-Linux v1.7 with a number of fixes, and of course Linux x86_64 support using compiles from the new toolchains! :cowboy: :D
[Android Software/Hacking General [Developers Only]] whatsgood:
You're a life saver! I couldn't save or delete any photos I took on my Galaxy S3 after restoring my internal SD using ADB push. Now it's back to normal after flashing the SD permissions fix!
[Android Software/Hacking General [Developers Only]] demlv:
[MENTION=4544860]osm0sis[/MENTION], I just ordered the N6, finally retiring the old GN. I suspect that the ADBsync sdcard Backup script will "work right out of the box" on the new Nexus. It should, right?
[Android Software/Hacking General [Developers Only]] osm0sis:
Should as long as the version of adb.exe I included cooperates with whatever they've got baked into the newer TWRP for it. :) :good:
[Android Software/Hacking General [Developers Only]] osm0sis:
UPDATES! New flashable zip up in the OP! :D :cowboy:

Kernel init.d Support Injector (many devices):

Following from great ideas by [MENTION=1162986]Captain_Throwback[/MENTION] in my AnyKernel2 thread and using script from my Flashify script, this AK2 zip will inject basic init.d bootscript support into any kernel ramdisk on any emmc device with normal partition naming and using the Android bootable image standard, without having to bloat a ramdisk using a busybox binary. This zip is also signed, so could potentially be used with stock recovery on a locked bootloader, but that depends on the stock recovery supporting grep, etc. for the zip script to perform the required file checks/changes.

Also Flashify has been updated to abort radio flashing on the Nexus 6, since it has a multi-partition modem and all need to be updated at once for the device to boot. Thanks to [MENTION=2719389]z31s1g[/MENTION] for all the help with testing. 1631 downloads of the previous version, and I'm sure many, many more via z31s1g's brilliant TWRP themes! :)

Another note, going forward my zips will be prefixed "UPDATE-" where appropriate since "cwm-" is now long-dead and it was still causing a lot of confusion for newer users.
[Android Software/Hacking General [Developers Only]] efrant:
Not sure if this would help in keeping that functionality in there or not. It may be more work than it's worth...
[Android Software/Hacking General [Developers Only]] modaifallah:
Many thanks 😃

Your sd card permission fix helped me a lot! I couldn't capture screenshots but now everything is awesome again. Thank you.
[Android Software/Hacking General [Developers Only]] osm0sis:
That's great news! Please edit your post to remove the quote of the entire OP though please since that's frowned upon. ;)
[Android Software/Hacking General [Developers Only]] beeshyams:
Thanks for a useful collection

Dear OP

Thanks again for the collection and thanks to [MENTION=2287484]TheByteSmasher[/MENTION] for pointing this out

"A little flashable zip script to fix ownership and permissions of files and directories on the sdcard to what they would be if Android OS had put them there itself, since some apps can't access pushed files that have root.root as owner/group."

This worked great for me , ES explorer decided it cannot copy from EXTERNAL to INTERNAL SD card on my rooted Note 2 despite giving requisite root permissions, trying to manually change permissions, fixing file permissions and in general doing tons of internet research

This worked like a charm

The second one sounds useful "Backs up the entire sdcard so that you can have a complete snapshot of your device when you make periodic backups, and be able to restore things exactly as they were"

but couldnt run it..it failed on flashing (using TWRP)...pretty much a non starter in Linux etc so would be nice if you can point the way out

EDIT:

Read the post of OP explaining this in detail and being a zero in all things Linux/ Android, can someone help me with a step by step way of doing it, the very first step stumps me, since i use TWRP and am not aware of how to connect adb in recovery . If this involves too much of hand holding, please dont bother..would do it the manual way periodically of copying my SD card contents to PC...thanks in advance

"Self-contained; unzip anywhere and run the batch file to have it create an initial backup of your sdcard while connected via adb to your custom recovery."
[Android Software/Hacking General [Developers Only]] osm0sis:
Note it says Win32, so it isn't a flashable zip, it's a batch script for Windows. :)

Edit: Like the part you bolded at the end of your edited post says, unzip it anywhere, ie. on your Windows desktop.
[Android Software/Hacking General [Developers Only]] beeshyams:
Thanks and i realised that later on reading OP again...sorry for my bad

Anyway, i am confused....first part is running the bat script in Zip file, and the second part being what are the commands i need to type in the platform tools. The second part is tricky for me since Note 2 (samsung) doesnt have an option to connect to adb in recovery mode from what i understand from the net and TWRP also doesnt show such an option...

Nice of you to promptly reply and point out the error i made but am not sure how much of work thi involves (especially given my noob status)

EDIT : That sounds negative on reading my post again...i would very ,uch like to learn to do this and hope someone will take the trouble of hand holding :)
[Android Software/Hacking General [Developers Only]] Valiante:
I must be a complete idiot or XDA's new website makes it impossible to find things.

Where is the ADB & Fastboot for Android NDK zip file?
[Android Software/Hacking General [Developers Only]] DiamondJohn:
XDA is a forum, not the original source of Android and tools to develop in Android. Look beyond XDA.

Also, for me, I download Fastboot/ADB differently/independently to the NDK. Its not a single ZIP/Install. I use Fastboot/ADB (connect/bridge to devices) on my windows desktop, and the NDK to compile on a linux box, for ARM .
[Android Software/Hacking General [Developers Only]] osm0sis:
It's attached to the first post...
[Android Software/Hacking General [Developers Only]] Valiante:
Tbh they're all named pretty awfully, the Github project is called "ADB & Fastboot for Android NDK", to be looking for a zip file named something else is very unintuitive.
[Android Software/Hacking General [Developers Only]] osm0sis:
You can also click the link in the first post's description of the zip. If you can't figure out the thing with "adb installer" in the name is the adb installer, that's on you.
[Android Software/Hacking General [Developers Only]] Extreme_Ninja2099:
Does the busybox installer work on Android 13? I use busybox for titanium backup and it is a outdated app backup but it work fine even on A12.1, but I'm not sure about A13
[Android Software/Hacking General [Developers Only]] AnonVendetta:
It will probably only work when flashing from within android as a Magisk module. I tried flashing it from TWRP but it failed, IIRC I got some error about not being able to determine the CPU architecture. My CPU is a standard ARMv8 (64 bit), so it's very common and should have been recognized.
[Android Software/Hacking General [Developers Only]] Extreme_Ninja2099:
Would it work if u flashed busybox magisk module with magisk manager on Android 13?
[Android Software/Hacking General [Developers Only]] xxTECRAxx:
yes busybox module installed on Android 13 through magisk works for me on Pixel 7 Pro
[Android Software/Hacking General [Developers Only]] Extreme_Ninja2099:
Thanks! Much appreciated
[Android Software/Hacking General [Developers Only]] AnonVendetta:
It worked for me when I flashed it as a module. That's what I was trying to tell you. Flash as a module from the Magisk manager app, not from within TWRP.

It might work for you if you flashed it from TWRP, but it didn't work for me.
[Android Software/Hacking General [Developers Only]] osm0sis:
Log from TWRP please? And this is a TWRP on the twrp-12.1 branch, with working decryption, etc.?
[Android Software/Hacking General [Developers Only]] AnonVendetta:
It's been over a month, so I don't have a log. Was just recalling from memory only.

My TWRP is for Android 12, Galaxy Tab S7+, by @ianmacd.

In my case, encryption is irrelevant, my data partition isn't encrypted. I also used his Multi Disabler zip mod to disable forced encryption.

I also have no issues deleting/editing/adding files located within the partitions in super.img. I checked them, they don't have the shared blocks attribute. So there should be no issue for your BusyBox zip to mount system root and install BusyBox directly (without Magisk).
[Android Software/Hacking General [Developers Only]] osm0sis:
Oh so you were trying to install to system partition, not as module? Yeah, see, without a proper bug report I'm not going to be able to do anything here just guessing at your setup. Next time you want to try it out, please give me a log.

I've nearly, finally, got my laptop setup again, just need to generate some new signing keys since I lost mine in the SSD failure, then I can make some commits again, and I'll have some module updates. Maybe try again after that and give a log if it doesn't work still. 👍
[Android Software/Hacking General [Developers Only]] AnonVendetta:
I was trying to install it however it wanted to install. System mode install preferred, I've never much cared for the systemless philosophy. I much prefer to do things the old way, by direct editing. But anyways, I got that error.

Maybe I'll try to run the zip installer later, after I've upgraded my stock firmware.
[Android Software/Hacking General [Developers Only]] AnonVendetta:
I had meant to capture the TWRP log then, but totally forgot to copy it to Microsd.

I'm the type of person that can lose something that is sitting 1ft away, or think of something and then forget it in the next moment. Very scatterbrained, I'm kind of surprised I've managed to live independently to 39. It's a real effort to force myself to remember anything.
[Android Software/Hacking General [Developers Only]] Extreme_Ninja2099:
Sadly there's no TWRP on A12 for my device. I always used magisk manager to install magisk modules anyways
[Android Software/Hacking General [Developers Only]] AnonVendetta:
@osm0sis: here is a recovery log from my latest install attempt from TWRP. Again, same error, unknown arch. I was trying to do a system mode install, by adding -system to end of zip filename.
[Android Software/Hacking General [Developers Only]] m0han:
looks like something went wrong? please attach the log (once again) so @osm0sis can take a look.
[Android Software/Hacking General [Developers Only]] AnonVendetta:
Don't know how tf that happened. I can swear I attached the log before posting. Unfortunately I don't have the file anymore.
[Android Software/Hacking General [Developers Only]] Oswald Boelcke:
Please be aware that it occasionally happens if you intend to attach a txt-file to a post the upload initially looks normal but the attachments doesn't "stick". Reasons are not known, I just have my personally suspicion. What always works is to first zip the txt-file and then to attach the zip.
[Android Software/Hacking General [Developers Only]] AnonVendetta:
Ignore this recovery.log, it is a nearly empty log file that only contains the text "test', and uses UTF-8 encoding. Just wanted to test @Oswald Boelcke's statement that uploading as a text log won't work.
[Android Software/Hacking General [Developers Only]] AnonVendetta:
And...it works. Zip file NOT needed.
[Android Software/Hacking General [Developers Only]] Lughnasadh:
To be fair, he said it "occasionally happens" that uploading a txt-file initially looks normal but doesn't stick, not that it won't work at all.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
OT: FWIW I have always thought that it may even sometimes scan the contents in some way, maybe even the encoding. Either way, for me, txt files sometimes work & sometimes fail, zip files have always worked.
[Android Software/Hacking General [Developers Only]] AnonVendetta:
Then perhaps XDA should revise their rules to say something like:

"Text files of any kind must be zipped before uploading, regardless of encoding, extension, or lack of extension"

It would be as simple as excluding certain file type extensions from being uploaded. They could just block common text extensions like txt, conf, log, sh, md, etc.

It makes sense to me to revise a rule to address an issue that is potentially problematic. Then it's no longer a problem.

I do believe xda's file uploader is analyzing every file being uploaded. If I try to upload a zero byte text file, it errors. So, it's "smart" enough to know that there's nothing to upload. I was initially trying to upload my dmesg.log and recovery.log from TWRP, when the uploader informed me that dmesg.log was empty. So I deleted it and only attached recovery.log. only to later be told that it didn't make it through.
[Android Software/Hacking General [Developers Only]] osm0sis:
Shell scripts still get filtered too, which I think is crazy on an Android developer forum.
[Android Software/Hacking General [Developers Only]] AnonVendetta:
I'm totally for blocking sh files, since they can be executed. And they may not do what you expect/intend. Some asshole might put a malicious command in it that say, wipes out your EFS/IMEI-related partitions. By the time this is noticed, several users may become a victim.
[Android Software/Hacking General [Developers Only]] osm0sis:
Right, but .sh needs to be set executable.. and/or someone needs to run it.. 🤔

The filter blocks by content on even .sh.txt uploads. Unzipping doesn't add some extra magic layer of protection for someone who's going to do all those other things and dumbly run something potentially unsafe.
[Android Software/Hacking General [Developers Only]] AnonVendetta:
Then maybe they should adopt the KISS philophy. Force all files to be zipped no matter what they are. It's a small barrier that won't really stop anymore that's determined, but it does help when dealing with ignorant people. I literally know alot of people that are otherwise smart, but technologically dumb. Mention a zip file and they're like "huh?...what's that?"
[Android Software/Hacking General [Developers Only]] DiamondJohn:
Images? Zipped?

Yeah, how many times I have seen a zip inside a zip inside a zip... and at the end an executable, to trick people into double clicking their way through, to get to a "surprise" ending.

I really dont see the issue, some files need to be zipped, while the majority don't. Its the exception, why make it the rule. Also, this forum software is probably off the shelf, pre-fab,

Spoiler content hidden.

edit: user corrected.
[Android Software/Hacking General [Developers Only]] AnonVendetta:
It's @osm0sis's thread, so that's his shot to call, not yours. And next time, reference the right user. @osm0sis and @osmosis are different people.
[Android Software/Hacking General [Developers Only]] ipdev:
Hi all. 🙂

About attachments..

[xda Thread] - XenForo 2.2 Upgrade! Post Bugs, Issues and Comments Here

Post #235 and the following posts.​

If you have issues, comments or concerns.

That would be a more appropriate thread to discuss it in. 🙃

Cheers all. :cowboy:

Spoiler content hidden.
[Android Software/Hacking General [Developers Only]] AnonVendetta:
I only use Samsung SSDs in my PCs, none have ever failed. And I write lots of data to them daily. They cost more, but they're worth the money for more reliability.
[Android Software/Hacking General [Developers Only]] osm0sis:
I mean, it was a WD_Black 1TB SSD that failed on me. Just bad tech luck I guess...

I have a Samsung 2TB portable SSD too but it's also a bit finicky with the Samsung SSD decryption app getting stuck on occasion despite me entering the correct password. No brand is perfect. *shrug*
[Android Software/Hacking General [Developers Only]] AnonVendetta:
I think Samsung has like a 5 yr warranty though, IIRC. No other manufacturer comes close. Even if it does fail, they'll send a replacement for free within that warranty period.

App decryption? You mean full disk encryption? For that I'd recommend BestCrypt Volume (proprietary) or VeraCrypt (open source). Never a serious issues with either. I crypt all my disks because I'm paranoid. I don't trust 3 letter agencies not to snoop on me.
[Android Software/Hacking General [Developers Only]] osm0sis:
My Samsung X5 has its own encryption and Samsung app built-in, that's what's a bit finicky, but yeah, maybe unencrypting it and using something 3rd-party would behave better. I'll keep it in mind!
[Android Software/Hacking General [Developers Only]] Harlock1978:
Yesterday I update the modules adb & fastboot and Busybox, then I reboot my phone and since then it's blocked on the logo of the producer, before it was working without any problem.

My phone is rooted with latest magisk.

I can go in fastboot or recovery mode.

Does someone has any suggestion how to solve this problem?
[Android Software/Hacking General [Developers Only]] AnonVendetta:
Delete the modules from TWRP. They're located in /data/adb/modules. If you still can't boot, then your issue is elsewhere.
[Android Software/Hacking General [Developers Only]] Harlock1978:
I have an Ulefone Armor 11 5G and unfortunately the TWRP recovery that I found doesn't decrypt the data partition.

Can you suggest me how to add decryption to twrp?
[Android Software/Hacking General [Developers Only]] AnonVendetta:
Sorry, but I don't know how you can decrypt the data partition if your TWRP doesn't support it. I personally always have /data decrypted, so accessing files there isn't an issue for me.

Maybe someone else can advise, but I think you'll have to format /data and factory reset. In the future you might want to look into something like Magisk Bootloop Protector, if you want to stay encrypted. Or you can look into a solution that forcefully disables /data encryption.
[Android Software/Hacking General [Developers Only]] asripath:
Since you are encrypted without a compatible recovery, try safe mode and see if magisk disables the modules

https://www.hardreset.info/devices/ulefone/ulefone-armor-11t-5g/safe-mode/
[Android Software/Hacking General [Developers Only]] osm0sis:
I updated all those (and nano, and zipsigner) on my OnePlus 9 Pro as well (which has no /system/xbin, so installing to /system/bin, which has more potential for conflicts if installs aren't working as expected), and I had no issues.

Safe mode for sure, and then, yeah, if that doesn't work then likely issues elsewhere. If it does help then a log would be helpful, otherwise not able to figure out anything.
[Android Software/Hacking General [Developers Only]] Harlock1978:
Where can I find the log?
[Android Software/Hacking General [Developers Only]] osm0sis:
You would have to make/save one when you install the modules. A logcat and dmesg from during the failed boot would also be helpful.
[Android Software/Hacking General [Developers Only]] Harlock1978:
When I installed the module probably a log was created but I don't have access to the data partition.

I installed a TWRP recovery that unfortunately cannot decrypt the data, but I can save on an external USB-stick the log that I find in cache, I don't know if they help.

I was able to create a logcat, but for dmesg I receive an error message.
[Android Software/Hacking General [Developers Only]] osm0sis:
That's a logcat from you booting recovery, I need one from you trying to boot the device.

Did you try Safe Mode? If that doesn't work then you should just use the recovery or fastboot to install an unpatched boot.img to unroot.
[Android Software/Hacking General [Developers Only]] Harlock1978:
I tried to do a logcat while normal boot, but adb always show "- waiting for device -".

I also tried to reflash the original boot.img, but nothing happen the system stay stuck on Ulefone logo.

I suppose it's related to the update because the telephone was working without any problem and it stucked only after the reboot because the update.

Before updating I only had 600 Mbyte of free space.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @osmosis do you have a portable version of your AIK-mobile tool? How can I install it manually - not as a magisk module but rather the classic way? :unsure:

When I install it manually it always throws some weird errors (I'll show you the errors when I get to my computer). I guess it was designed to be installed as a magisk module? Do you have a non magisk , portable version of it that I can manually push onto my phone? Thanks. Please keep up the great work! :D(y)
[Android Software/Hacking General [Developers Only]] osm0sis:
It already is as portable as it can be, it installs to /data/local/AIK-mobile and needs to operate there as a scratch dir, the Magisk helper module is optional.