android_device_samsung_a20/universal7885-common/vendor_detect/main.py
roynatech2544 98939cebce
vendor_detect: Remove redundant debug flag parse
* Verified it is working well for last 4 months
2022-04-29 22:24:10 +09:00

11 lines
460 B
Python

import os
blacklist = ["qcom", "nxp","pixel-framework", "lawnchair" ,"support", "overlay","samsung", "gapps", "google", "gms", "codeaurora", "addons", "overlays", "xtras", "themes"]
vendors = os.listdir("vendor")
for vendor in vendors:
common = "vendor/"+vendor+"/config/common.mk"
if os.path.isfile(common) and vendor not in blacklist:
f = open("device/samsung/universal7885-common/vendor_name", "a")
f.write(vendor)
f.close()
break