-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ro.boot.vbmeta.device could not be found on many devices #7219
Comments
Same on OnePlus 9 Pro: #7216 (comment) |
Only A/B devices have this property, which is better than completely unusable path test. |
OnePlus 9 and 11 are A/B devices... |
Whoops, didn't necessarily mean to reopen. How about checking ro.product.ab_ota_partitions for vbmeta? Still prop-based. |
Well, it looks like it only works on some devices, at least the AOSP devices. This is more than enough to replace a path test that doesn't work at all. |
I think it's good, I chose the simpler prop, ignoring device compatibility. |
app does not have permission to access ota_prop |
I just did some experiments and something like this could work:
since grep properly parses , as a word separator (and not _). |
Really? Damn, accessing it worked fine from unrooted prompt in Terminal Emulator app on my device. |
Sorry, I only searched for allow rules and forgot to look at attribute, it is system_public_property_type |
Hey, that's great! So perhaps |
I think that's a good idea but you need to add the -o option here getprop ro.product.ab_ota_partitions | grep -w vbmeta |
-o just affects the output from grep, the internal matching still occurred and only matches ,vbmeta, because of -w. 🙂 We can just add -q and check the return value only. |
ok |
Device: OnePlus 11
Android version: 13
Magisk version name: 4000369
Magisk version code: 26105
ro.vbmeta.device prop
doesn't seem to be found on OnePlus 11 devices but there isro.boot.vbmeta.device_state
and it is indeed a device using vbmeta /dev/block/bootdevice-by-name/vbmeta_a
is existsgetprop_log.txt
The text was updated successfully, but these errors were encountered: