mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
11 lines
460 B
Python
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
|
|
|