add android support using getprop ro.boot.vbmeta.digest and ro.build.display.id#53
Open
mooring wants to merge 5 commits intoautomation-stack:masterfrom
Open
add android support using getprop ro.boot.vbmeta.digest and ro.build.display.id#53mooring wants to merge 5 commits intoautomation-stack:masterfrom
mooring wants to merge 5 commits intoautomation-stack:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
why
Using Termux on Android, it acts the same as linux in most scenario, adding android support would be a must practice.
how
getpropcommand exists on every android device, so it would be most compatible on other android devices.ro.boot.vbmeta.digestexists on recent android devices with version 10, 11ro.boot.serialnoon early android devices with 4.x, 5.x, 6.x .egro.build.display.idworks on android 8.x , 9.x but return empty string withro.boot.serialnoro.build.display.idworks on 4.x to 9.x, so finally ...Tested on
Android 11Android 11Android 10Android 10Android 10Android 9.1Android 9.0Android 9.0Android 9.0Android 9.0Android 8.1Android 8.1Android 8.0Android 7.1Android 7.1Android 7.0Android 7.0Android 7.0Android 7.0Android 6.0Android 6.0Android 6.0Android 5.1Android 5.1Android 5.1Android 5.1