2 Commits

Author SHA1 Message Date
Anton Hansson
ff172bbbc7 Add an init service for setting sdk props
Add a oneshot init service, to be triggered early in the boot.
This is unlikely to be the permanent solution, but allows us
to get off the ground by at least getting the prop set.

Bug: 137191822
Test: m com.android.sdkext
Test: boot && adb shell getprop | grep sdk_info
Change-Id: I253c56961289d1226f3a9a471e7b6ca047c52a4e
2019-12-05 18:27:53 +00:00
Anton Hansson
a82f161d33 Add derive_sdk binary for reading sdk protos
Put the lowest seen number in a persist sysprop.

Bug: 137191822
Test: manual ran derive_sdk on device with fake protos installed
Change-Id: Ic73d615d9d60769d237aa5a72dae2dfe56463007
2019-12-05 11:05:17 +00:00