Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
agge92's avatar
agge92
Honored Guest
4 years ago

ovr-platform-util create-pwa doesn't output the apk

Everything seems going smoothly up to the end with the following command:

ovr-platform-util.exe create-pwa -o "collanon.apk" --android-sdk "C:\Users\VOID\Downloads\build-tools_r29.0.2-windows\sdk" --manifest-content-file "manifest.json" --web-manifest-url "https://collanon.app/manifest.json"

Then it ends with:

Signed APK written to collanon.apk

but this apk is nowhere to be found, how is that possible?

1 Reply

  • 2WA_leon's avatar
    2WA_leon
    Honored Guest

    I'd second this, and did everything as described in https://developer.oculus.com/documentation/web/pwa-packaging

    The ovr-platform-util.exe seems to report a false positive (writing an apk-file which is not written).

    Some context:

     

     

    [powershell]
    
    $ ovr-platform-util.exe create ...... ... ... .
    Signed APK written to myapk.apk
    $ dir *.apk
    $ cd ..\..\
    $ gci -r -fi *.apk
    Directory: C:\GitLab-Runner\builds\searxr\aframe-searxr\ovr-platform-util-pwa
    Mode LastWriteTime Length Name
    ---- ------------- ------ ----
    -a---- 10/26/2021 5:14 PM 1309760 pwa-template.apk
    $ cd $env:APPDATA # this equals %AppData%
    $ gci -r -fi *.apk
    ...nothing
    $ cd C:\Users\GITLAB~1\AppData\Local\Temp\
    $ dir *.apk
    Directory: C:\Users\gitlab_runner\AppData\Local\Temp
    Mode LastWriteTime Length Name
    ---- ------------- ------ ----
    -a---- 8/4/2022 8:22 AM 1310039 tmp-16887V3g5LbSPVD1.apk

     

     

     

    I tried loading the temporary apk, but that failed:

     

    db: failed to install searxr.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1926285066.tmp/base.apk: Attempt to get length of null array]

     
    any thoughts?