View Single Post
Old 03-22-2022, 01:37 PM   #19
bazookajoe
Connoisseur
bazookajoe invented the internet.bazookajoe invented the internet.bazookajoe invented the internet.bazookajoe invented the internet.bazookajoe invented the internet.bazookajoe invented the internet.bazookajoe invented the internet.bazookajoe invented the internet.bazookajoe invented the internet.bazookajoe invented the internet.bazookajoe invented the internet.
 
Posts: 81
Karma: 84358
Join Date: Mar 2022
Device: Onyx Leaf, excessive amount of Android devices
Here's the code from updater-script you wanted:

Code:
(!less_than_int(1638429894, getprop("ro.build.date.utc"))) || abort("E3003: Can't install this package (Thu Dec  2 15:24:54 CST 2021) over newer build (" + getprop("ro.build.date") + ").");
getprop("ro.product.device") == "Leaf" || abort("E3004: This package is for \"Leaf\" devices; this is a \"" + getprop("ro.product.device") + "\".");
ui_print("Target: ONYX/Leaf/Leaf:10/2021-12-02_15-24_3.2_a54499c/4177:user/dev-keys");
show_progress(0.650000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||
  abort("E1001: Failed to update system image.");
ui_print("Patching vendor image unconditionally...");
show_progress(0.100000, 0);
block_image_update("/dev/block/bootdevice/by-name/vendor", package_extract_file("vendor.transfer.list"), "vendor.new.dat.br", "vendor.patch.dat") ||
  abort("E2001: Failed to update vendor image.");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
package_extract_file("rpm.mbn","/dev/block/bootdevice/by-name/rpm");
package_extract_file("abl.elf","/dev/block/bootdevice/by-name/abl");
package_extract_file("xbl.elf","/dev/block/bootdevice/by-name/xbl");
package_extract_file("pmic.elf","/dev/block/bootdevice/by-name/pmic");
package_extract_file("persist.img","/dev/block/bootdevice/by-name/persist");
show_progress(0.200000, 10);
set_progress(1.000000);
Thanks Renate you've done amazing work.

Thought I'd ask as you're clearly a God amongst mere mortals, is it possible for me to make OTG SDs/USBs...work decently on Android 10/Onyx. ReadEra won't read from an OTG SD card if you try scan it for books (nor will Samsung Androi 11). Calibre Companion and Calibre Sync will download to a card via OTG and index covers, metadata etc but it will not open them, it gives a similar error that the files are not there (ditto 11). Some apps won't select the path properly. I know this can be an issue because it can change the number of the card on reinsertion but even if I have to manually change permissions/path in CC or CS each time I don't care. I chmodded media_rw to 777 (path is shown as /mnt/media_rw/sd card) also did the same for storage but it did nothing. Is it even possible to do something with root to open up that read/path situation?

Thanks again.
bazookajoe is offline   Reply With Quote