]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - tools/helpers/props.py
Set aidl version based on the android version
[waydroid.git] / tools / helpers / props.py
index 46ab268f0c455d78e875716859131344fb195cd9..de3c3a8dcef4cb96b69e82c9b3f1b16c5029fc03 100644 (file)
@@ -49,3 +49,14 @@ def set(args, prop, value):
                 session_cfg["session"]["state"]))
     else:
         logging.error("WayDroid session is stopped")
+
+def file_get(args, file, prop):
+    with open(file) as build_prop:
+        for line in build_prop:
+            line = line.strip()
+            if len(line) == 0 or line[0] == "#":
+                continue
+            k,v = line.partition("=")[::2]
+            if k == prop:
+                return v;
+    return ""