Skip Navigation

Use a Python Script to Verify the Signature

Dear MicroG

The instructions https://lineage.microg.org/ say

Before installing the ZIP you should check that it has the correct signature. You have to use a Python script to verify the signature, available here. Install Python 3 (if not already done) and the required packages (as explained in the README), then run:

python3 update_verifier.py lineageos4microg_pubkey lineage-microG.zip

I have no experience of verifying signatures.

I have no experience of python.

I think I have downloaded and installed Python 3 correctly.

I have downloaded the microG zip.

Could you talk me through the steps to check the signature please ?

In case it's important - I am using macOS 10.13

Yours sincerely ROMMMELLL

18
18 comments
  • As already mentioned in your former post, this is just to verify the integrity of the files. It's not a neccessary step, but could safe you from a bricked phone.

    I think I have downloaded and installed Python 3 correctly.

    To find out just open the App Terminal and type python3 and hit return. Your should see something like this

    Python 3.11.3 (main, Apr  5 2023, 15:52:25) [GCC 12.2.1 20230201] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    

    Download the python script from the mentioned location: Green "<> Code" button > Download Zip. Unzip that stuff.

    Open the Terminal again and cd into that folder. Then type

    python3 update_verifier.py lineageos4microg_pubkey /path/on/your/machine/lineage-18.1-20230614-microG-jfltexx.zip

    and see

    verified successfully

    • Dear K

      I opened the Terminal and typed python3 and hit return and saw something like what you have written above, so it seems I have successfully installed Python3, thankyou.

      I went to https://github.com/lineageos4microg/update_verifier and clicked the green code button. I clicked on Download Zip. update_verifier-master.zip appeared in my Downloads. I double clicked on this and a blue folder titled update_verifier-master appeared.

      I think the next step is to Open the Terminal again and cd into that folder.

      BUT I am stuck at this point because I don't know what "cd into that folder" means, or how to do it.

      Could you elucidate ?

      Yours sincerely ROMMMELLL

      • cd means change directory. Its a CLI (Terminal) tool to - as the names suggests - change the directory you want to work in. It our case the folder with the unzipped files.

        Assuming your Mac username is "rommmelll" and that zip file is in your downloads folder, the path should be something like "/Users/rommmelll/Downloads/update_verifier-master". So the command cd /Users/rommmelll/Downloads/update_verifier-master should work.

        Hint: you can use the tab key to auto-complete here. Type cd /Users/r and press tab and it should fill in to cd /Users/rommmelll. Terminal app will try to autocomplete everything after the last /, in this case r. If there is more than one option with r it will list them and you can specify it more with rom and press tab again. See this video for example, for a few more details.

        Once you've cd'd into that folder you can continue with the python3 command from above.

        Note: If you don't specify a full path, something like /Users/rommmelll/some/file.zip, the Terminal app will always expect the files you're referencing in the current directory. So either use cd as mentions above, or use full qualified paths. Use pwd (print working directory) to find out which path you're currently in.

        Also have a look at some tutorials regarding the Mac Terminal.

18 comments