-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supply APK file for verification #2
Comments
Might be useful to hook up an Installer prompt right away if verification is successful. If #5 is implemented it might be especially nice to first pass the APK through AppVerifier and if successful prompt to install (obviously its better to implement this at OS level, but 🤷). |
I wouldn't want AppVerifier to be responsbile for installing apps, personally. |
Could be an optional setting? |
I don't think it should install the app either. |
It seems https://android.googlesource.com/platform/tools/apksig/ should be able to be used for parsing the APK file to get the SHA-256 hash of the signing certificate.
|
Hmm but then what to use for getting the package name? |
Right, we can parse the manifest manually I think |
apksig would work, but there's actually an OS API for this: https://developer.android.com/reference/android/content/pm/PackageManager#getPackageArchiveInfo(java.lang.String,%20android.content.pm.PackageManager.PackageInfoFlags). |
Hmm but that won't be able to be used with SAF since it accepts a path |
Oh wait never mind can just copy the file to cache directory temporarily. Thanks! |
The way AppVerifier currently works, an app has to first be installed before the app can find it and verify it.
Ideally, AppVerifier should be able to accept an APK file and allow the user to verify it before needing to install it.
The text was updated successfully, but these errors were encountered: