Skip to content

Commit 109370c

Browse files
committed
Support additional ro props for Android 10
1 parent 1cd5582 commit 109370c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

security_policy.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,15 @@ def get_properties(self):
269269
props = self.properties
270270
android_version = props['ro.build.version.release']
271271
build_id = props['ro.build.id']
272-
brand = props['ro.product.brand']
272+
brand = props.get_multi_default(
273+
['ro.product.brand', 'ro.product.system.brand'], default="UNKNOWN")
273274

274275
# Some samsung/lineage prop files don't have a model listed...
275276
model = props.get_multi_default(
276-
['ro.product.model', 'ro.product.base_model'], default="UNKNOWN")
277+
['ro.product.model', 'ro.product.base_model', 'ro.product.system.brand'], default="UNKNOWN")
277278

278-
product_name = props.get_multi_default(['ro.product.name'], default="UNKNOWN")
279-
product_device = props.get_multi_default(['ro.product.device'],
279+
product_name = props.get_multi_default(['ro.product.name', 'ro.product.system.name'], default="UNKNOWN")
280+
product_device = props.get_multi_default(['ro.product.device', 'ro.product.system.device'],
280281
default="UNKNOWN")
281282

282283
interesting_properties = {

0 commit comments

Comments
 (0)