Skip to main content
10 events
when toggle format what by license comment
Oct 15, 2016 at 3:11 comment added Schanche Thank you! This worked, I'm now able to update my phone without any hassle :D
Oct 14, 2016 at 2:59 comment added Andy Yan I uploaded what I've packaged onto my AndroidFileHost - try it out. If /system/xbin/su is a directory rather than a file, replace delete with delete_recursive in updater-script.
Oct 14, 2016 at 2:28 comment added Schanche I did what you said, but when I flash my zip, TWRP tells me that it could not find META-INF/com/google/android/update-binary. What should I do, edit the update-binary file in some way? I'm doing this using TextEdit on my mac, and when I try to edit the file it just shows a bunch of nonsense. May I ask for someone to make this zip for me, just a file to delete /system/xbin/su?
Oct 13, 2016 at 17:42 comment added Schanche Thanks everyone, the reason I would like a flashable zip is that i update my phone often, almost every day, and I would like to update everything by just pressing update in CyanDelta.
Oct 13, 2016 at 12:43 comment added Grimoire Ah, I don't know the procedure employed by a recovery. Still, if you don't believe me, you're free to unpack a CyanogenMod flashable ZIP and examine its update-binary. For instance, the one I analyzed began with the bytes 7F 45 4C 46, which stand for .ELF, identifying the file as a compiled binary.
Oct 13, 2016 at 12:37 comment added Andy Yan @DeathMaskSalesman How can a binary be replaced by a script? It sounds weird to me that this is even feasible.
Oct 13, 2016 at 11:38 comment added Grimoire In fact, the classical update-binary is a compiled binary, just like a sh. The workaround for those which want more flexibility is just to write the file as a simple shell script, and by doing so you can also ignore the updater-script.
Oct 13, 2016 at 11:22 comment added Andy Yan @DeathMaskSalesman Wow, I don't know you could actually write update-binary yourself (the ones I've seen are mostly in unreadable format, except for SuperSU's). Thanks for the info.
Oct 13, 2016 at 10:54 comment added Grimoire OP could also make their own flashable ZIP, with the structure META-INF/com/google/android, create an update-binary file inside the last directory and write #!/sbin/sh, followed by mount -o rw /partition_name and rm -rf /path/to/your/directory inside the file. Finally, just zip the META-INF folder and here's the flashable ZIP.
Oct 13, 2016 at 10:39 history answered Andy Yan CC BY-SA 3.0