mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: add new condition for vendor_detect
This commit is contained in:
parent
1ed4b26046
commit
4afebb467d
1 changed files with 7 additions and 10 deletions
|
|
@ -8,18 +8,15 @@ DEBUG = var['d'] == 1
|
|||
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:
|
||||
if DEBUG:
|
||||
print("Found vendor " + vendor)
|
||||
if vendor in blacklist:
|
||||
common = "vendor/"+vendor+"/config/common.mk"
|
||||
if os.path.isfile(common) and vendor not in blacklist:
|
||||
if DEBUG:
|
||||
print("Vendor " + vendor + " in blacklist. Skipping...")
|
||||
else:
|
||||
if DEBUG:
|
||||
print("Vendor " + vendor + " not in blacklist. Writing...")
|
||||
print("Found vendor " + vendor)
|
||||
f = open("device/samsung/universal7885-common/vendor_name", "a")
|
||||
f.write(vendor)
|
||||
f.close()
|
||||
break
|
||||
|
||||
|
||||
|
||||
else:
|
||||
if DEBUG:
|
||||
print(vendor + " is on the blacklist or does not have common.mk. Skipping...")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue