minadbd: More allowed properties.
Most of these properties are already part of the fingerprint. This CL allows querying them directly, instead of encouraging users to decode from fingerprints. Bug: 134027350 Test: Boot into rescue mode on taimen. Run `adb rescue getprop` with new props. Change-Id: Id4667fcaf0e908c391085b22e22c957acd01d9c4
This commit is contained in:
parent
f3dd821f76
commit
3b9ef341be
1 changed files with 8 additions and 1 deletions
|
@ -158,8 +158,15 @@ static void RescueInstallHostService(unique_fd sfd, const std::string& args) {
|
|||
|
||||
static void RescueGetpropHostService(unique_fd sfd, const std::string& prop) {
|
||||
static const std::unordered_set<std::string> kGetpropAllowedProps = {
|
||||
"ro.build.fingerprint",
|
||||
"ro.build.date.utc",
|
||||
"ro.build.fingerprint",
|
||||
"ro.build.flavor",
|
||||
"ro.build.id",
|
||||
"ro.build.product",
|
||||
"ro.build.tags",
|
||||
"ro.build.version.incremental",
|
||||
"ro.product.device",
|
||||
"ro.product.vendor.device",
|
||||
};
|
||||
auto allowed = kGetpropAllowedProps.find(prop) != kGetpropAllowedProps.end();
|
||||
if (!allowed) {
|
||||
|
|
Loading…
Reference in a new issue