mobile-nixos / autoport

GNU General Public License v3.0
13 stars 0 forks source link

Implement proper detection for A/B and boot as recovery #1

Closed samueldr closed 3 years ago

samueldr commented 3 years ago
[23:28:01] <drakonis> re: missing data points
[23:28:08] <drakonis> you can get a/b partition without fastboot
[23:28:12] <drakonis> there's a prop for that
[23:28:15] <samueldr> drakonis: which?
[23:28:23] <samueldr> I tried to look into it but couldn't find it in the data
[23:28:34] <samueldr> (I'm glad to be wrong though, if there really is)
[23:28:36] <drakonis> magisk detects it
[23:28:42] <samueldr> magisk might be looking at the partitions
[23:28:46] <drakonis> https://topjohnwu.github.io/Magisk/install.html
[23:28:50] <drakonis> getprop ro.build.ab_update
[23:28:58] -*- samueldr looks
[23:29:11] <drakonis> then there's system-as-root, which my phone is such
[23:29:24] <drakonis> but it isnt a/b sadly
[23:29:25] <samueldr> yeah, that one is a bit more complex
[23:29:37] <drakonis> getprop ro.build.system_root_image
[23:29:39] <drakonis> also exists it seems
[23:29:53] <samueldr> oh, thanks
[23:30:04] <samueldr> those two will really help
[23:30:18] <samueldr> from my data set it looks like I have everything needed with those two
[23:30:30] <drakonis> there's also the prop for android 11's new partition scheme prop
[23:30:41] <samueldr> that shouldn't be an issue for the project AFAIK
[23:30:46] <drakonis> sysprop ro.boot.super_partition

https://logs.nix.samueldr.com/nixos-chat/2020-09-28#1601263846-1601263681;