Skip to content
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

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

Isira-Seneviratne
Copy link
Member

What is it?

  • Codebase improvement (dev facing)

Description of the changes in your PR

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

@AudricV AudricV added codequality Improvements to the codebase to improve the code quality size/medium PRs with less than 250 changed lines labels Dec 21, 2023
Copy link

sonarqubecloud bot commented Feb 5, 2024

Copy link
Contributor

@TobiGr TobiGr left a 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() yields false in SettingsActivity.

@Isira-Seneviratne
Copy link
Member Author

Isira-Seneviratne commented Mar 20, 2024

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() yields false in SettingsActivity.

Thanks, I'll recheck.

Update: I fixed the issue.

@Isira-Seneviratne Isira-Seneviratne force-pushed the Improve_signature_check branch from 901a383 to 4ae9376 Compare March 20, 2024 01:05
Copy link

Copy link
Contributor

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TobiGr TobiGr requested a review from AudricV March 20, 2024 08:29
@TobiGr TobiGr merged commit 5bdb6f1 into TeamNewPipe:dev Mar 20, 2024
6 of 8 checks passed
@Stypox Stypox mentioned this pull request Apr 1, 2024
8 tasks
@Isira-Seneviratne Isira-Seneviratne deleted the Improve_signature_check branch July 3, 2024 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codequality Improvements to the codebase to improve the code quality size/medium PRs with less than 250 changed lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants