remove code for default.prop

default.prop files are gone. Remove the code in post_process_prop.py
that handles the file.

Bug: 1313599
Test: m

Change-Id: I3b4ff4adac57a406b70300d34ece7028cb52eb2d
This commit is contained in:
Jiyong Park 2020-05-20 17:55:36 +09:00
parent f2b944ccea
commit 58dd353a07

View file

@ -27,17 +27,6 @@ PROP_VALUE_MAX = 91
# Put the modifications that you need to make into the /system/build.prop into this # Put the modifications that you need to make into the /system/build.prop into this
# function. The prop object has get(name) and put(name,value) methods. # function. The prop object has get(name) and put(name,value) methods.
def mangle_build_prop(prop): def mangle_build_prop(prop):
pass
# Put the modifications that you need to make into /vendor/default.prop and
# /odm/default.prop into this function. The prop object has get(name) and
# put(name,value) methods.
def mangle_default_prop_override(prop):
pass
# Put the modifications that you need to make into the /system/etc/prop.default into this
# function. The prop object has get(name) and put(name,value) methods.
def mangle_default_prop(prop):
# If ro.debuggable is 1, then enable adb on USB by default # If ro.debuggable is 1, then enable adb on USB by default
# (this is for userdebug builds) # (this is for userdebug builds)
if prop.get("ro.debuggable") == "1": if prop.get("ro.debuggable") == "1":
@ -119,12 +108,6 @@ def main(argv):
if filename.endswith("/build.prop"): if filename.endswith("/build.prop"):
mangle_build_prop(properties) mangle_build_prop(properties)
elif (filename.endswith("/vendor/default.prop") or
filename.endswith("/odm/default.prop")):
mangle_default_prop_override(properties)
elif (filename.endswith("/default.prop") or # legacy
filename.endswith("/prop.default")):
mangle_default_prop(properties)
else: else:
sys.stderr.write("bad command line: " + str(argv) + "\n") sys.stderr.write("bad command line: " + str(argv) + "\n")
sys.exit(1) sys.exit(1)