#https://www.reddit.com/r/LineageOS/comments/jqgbbk/cannot_sign_apks/
[david@david-laptop /mnt/1TB/Android/LineageOS/android/lineage]$ ./build/tools/releasetools/sign_target_files_apks -o -d /mnt/1TB/Android/LineageOS/android/android-certs $OUT/obj/PACKAGING/target_files_intermediates/*-target_files-*.zip signed-target_files.zip
2020-11-08 19:06:50 - common.py - WARNING : Failed to read VENDOR/build.prop
2020-11-08 19:06:50 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2020-11-08 19:06:50 - common.py - WARNING : Failed to read PRODUCT_SERVICES/build.prop
2020-11-08 19:06:50 - common.py - WARNING : Failed to read PRODUCT_SERVICES/etc/build.prop
2020-11-08 19:06:50 - common.py - WARNING : Failed to read ODM/build.prop
2020-11-08 19:06:50 - common.py - WARNING : Failed to read ODM/etc/build.prop
Traceback (most recent call last):
File "./build/tools/releasetools/sign_target_files_apks", line 1232, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/sign_target_files_apks", line 1189, in main
misc_info = common.LoadInfoDict(input_zip)
File "/mnt/1TB/Android/LineageOS/android/lineage/build/make/tools/releasetools/common.py", line 448, in LoadInfoDict
d["avb_salt"] = sha256(fp).hexdigest()
TypeError: Unicode-objects must be encoded before hashing
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}