-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Improve app signature check #10618
Improve app signature check #10618
Conversation
9c9341a
to
d9c0b2d
Compare
app/src/main/java/org/schabi/newpipe/util/ReleaseVersionUtil.kt
Outdated
Show resolved
Hide resolved
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test your changes by using your own singing key? I tried to do so and it did not work for me.
What I did:
- Replace
RELEASE_CERT_PUBLIC_KEY_SHA256
with the fingerprint of my key - build release APK and sign it
- install signed APK
- no "Updates" option in the settings, thus
ReleaseVersionUtil.INSTANCE.isReleaseApk()
yieldsfalse
in SettingsActivity.
Thanks, I'll recheck. Update: I fixed the issue. |
901a383
to
4ae9376
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What is it?
Description of the changes in your PR
PackageInfoCompat.hasSignatures
.APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.
Due diligence