aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-06-03 12:10:54 -0700
committerTao Bao <tbao@google.com>2019-06-05 23:28:10 -0700
commit7a31ab675e30de858c690dcff8f1daf447358dae (patch)
tree5e479a70e63301137074c818c4a74e7487286a24
parentaf0a76d1c567fc4112ac6cc8112de3478a41dd2a (diff)
downloadrecovery-7a31ab675e30de858c690dcff8f1daf447358dae.tar.gz
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 Merged-In: Id4667fcaf0e908c391085b22e22c957acd01d9c4 (cherry picked from commit 3b9ef341be618885407bc302ffc235585bc01c5d)
-rw-r--r--minadbd/minadbd_services.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/minadbd/minadbd_services.cpp b/minadbd/minadbd_services.cpp
index 1c4c0f49..e271c36f 100644
--- a/minadbd/minadbd_services.cpp
+++ b/minadbd/minadbd_services.cpp
@@ -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) {