Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d33c75b4 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

make: Catch exception for no certdigest

- Fixes build for non-trichrome browser apks
parent a13f3c34
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -21,7 +21,10 @@ def patch_trichrome(infilename, sign_key):
            data = zin.read(info.filename)
            if info.filename == 'AndroidManifest.xml':
                # Make sure we can find the certdigest
                try:
                    data.rindex(orig_certdigest.encode('utf-16-le'))
                except:
                    pass
                # Replace it
                data = data.replace(orig_certdigest.encode('utf-16-le'), new_certdigest.encode('utf-16-le'))
            zout.writestr(info, data)