capntrips / KernelFlasher

Kernel Flasher is an Android app to flash, backup, and restore kernels.
https://forum.xda-developers.com/t/dev-kernel-flasher.4439887/
Other
899 stars 53 forks source link

Add a setting for usage of sha1 from ramdisk #27

Open RimuruChan opened 7 months ago

RimuruChan commented 7 months ago

Apologies for any inconvenience. I'm curious about why we prefer to perform a check and use the SHA1 of a CPIO file instead of simply calculating the SHA1 of the partition itself?

https://github.com/capntrips/KernelFlasher/blob/1cbbba497f42755d6459a83d9a7d8ee14f550572/app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot/SlotViewModel.kt#L115-L125

capntrips commented 7 months ago

The original idea was to keep up with the original boot image to avoid bootloops. The available backups are also tied to that value. A change to that functionality has been requested on XDA, as well. I plan to add toggles for both features on a settings screen, but I wouldn't expect it in the coming weeks.