add android support using getprop ro.boot.vbmeta.digest and ro.build.display.id #53
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
getprop
command exists on every android device, so it would be most compatible on other android devices.ro.boot.vbmeta.digest
exists on recent android devices with version 10, 11ro.boot.serialno
on early android devices with 4.x, 5.x, 6.x .egro.build.display.id
works on android 8.x , 9.x but return empty string withro.boot.serialno
ro.build.display.id
works on 4.x to 9.x, so finally ...Tested on
Android 11
Android 11
Android 10
Android 10
Android 10
Android 9.1
Android 9.0
Android 9.0
Android 9.0
Android 9.0
Android 8.1
Android 8.1
Android 8.0
Android 7.1
Android 7.1
Android 7.0
Android 7.0
Android 7.0
Android 7.0
Android 6.0
Android 6.0
Android 6.0
Android 5.1
Android 5.1
Android 5.1
Android 5.1