question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Try to remove the requirement of signing the app with the platform key

See original GitHub issue

Currently, Seedvault needs to be signed with the platform key to work (the same key the OS is signed with). It could be possible to get rid of this requirement. For example, by providing an alternative UI path to select storage when the MANAGE_DOCUMENTS permission was not granted.

If that works, we can use a hidden-api-whitelist configuration instead of signing with platform cert to continue to access the hidden APIs we need for backup: https://github.com/LineageOS/android_vendor_lineage/commit/dab1569b810eb3e1185b1f6521fa159fce57095d example whitelist file

Tasks:

  • detect at runtime if permission was granted and choose backup/restore storage UI path accordingly
  • implement different UI storage choosing path for backup
  • implement different UI storage choosing path for restore
    • ensure the user can re-choose a storage location if no backups are found at chosen location
    • give option to install NextCloud (if needed)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
grotecommented, Jul 9, 2020

I made a first attempt at https://github.com/grote/backup/tree/no-platform-key please let me know if this still crashes due to access to MANAGE_DOCUMENTS.

1reaction
grotecommented, Jul 9, 2020

we could test with the publicly available R betas and see if it works.

@chirayudesai maybe just for this issue, we should test with Android 10 first, because the 11 betas might break other things we don’t know about, yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android APK signed with PLATFORM key not given system ...
Yes - it is not enough to be signed with the same key, I'd imagine it would need 3 things, 1) App in...
Read more >
Sign your app - Android Developers
To provide your own signing key for Google to use when signing your app, select Change app signing key > Use my own...
Read more >
Xamarin Android Debug apk not signed properly?
Using a platform key as a signing key ... Clean your app, build and deploy it to device, and then follow any steps...
Read more >
Answers to common questions about Play App Signing
Generate your signing key locally on your machine instead. Securely transfer your key to Google Play, and do not delete it from your...
Read more >
Signing the Android Application Package - Xamarin
In addition, be sure to back up the resulting keystore file and password in a safe place – it is not included in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found