-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
feat: Add Check environment
patch
#3610
Conversation
src/main/kotlin/app/revanced/patches/shared/misc/checks/BaseCheckEnvironmentPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/shared/misc/checks/BaseCheckEnvironmentPatch.kt
Show resolved
Hide resolved
I don't think IP checking is needed. |
Both, the time and ip check will succeed the check. If Android allows, an installation of ReVanced Manager will also let it pass |
@LisoUseInAIKyrios There are a couple of todos left in the code and the PR body. One important test is if everything works on Android. The patch code, for example, uses the URL connection, but it is unclear if it also needs to run in a background thread. Some issues also regarding the dialog. Other than that almost ready. |
src/main/kotlin/app/revanced/patches/shared/misc/checks/BaseCheckEnvironmentPatch.kt
Outdated
Show resolved
Hide resolved
… this check isn't needed to validate a CLI install
…uld go and there's already a button for that
…atches to be specified
The last TODO is verify the device hardware check passes when installed from ReVanced Manager. Doing that will require someone to make a release on their cloned repo, change the source in ReVanced Manager to that repo, then build and install. The console logs will show |
To force the warning dialog to appear (even if the check passes), then open the import/export menu and add this as the first line of the settings: |
Co-authored-by: KobeW50 <[email protected]>
src/main/kotlin/app/revanced/patches/shared/misc/checks/BaseCheckEnvironmentPatch.kt
Show resolved
Hide resolved
Co-authored-by: oSumAtrIX <[email protected]>
…ialog message and the buttons
# [4.14.0-dev.7](v4.14.0-dev.6...v4.14.0-dev.7) (2024-09-06) ### Features * Add `Check environment` patch ([#3610](#3610)) ([fbcbdaf](fbcbdaf))
For future reference: This warning will never be shown, if the user patches and installs by any of the following:
|
Is this patch included by default? or inside universal patch? |
It is not universal and included for specific apps |
Can you specify which apps? |
revanced-patches/src/main/kotlin/app/revanced/patches/youtube/misc/check/CheckEnvironmentPatch.kt Line 12 in a7115d7
|
# [4.14.0-dev.1](v4.13.3...v4.14.0-dev.1) (2024-09-09) ### Bug Fixes * **Pixiv - Hide ads:** Fix for latest version ([ReVanced#3616](https://github.com/E85Addict/revanced-patches/issues/3616)) ([98956e8](98956e8)) * **SwissID:** Rename `Remove Google Play Integrity Integrity check` to `Remove Google Play Integrity check` ([ReVanced#3558](https://github.com/E85Addict/revanced-patches/issues/3558)) ([0f5a771](0f5a771)) * **YouTube - ReturnYouTubeDislike:** Show estimated like count for videos with hidden likes ([ReVanced#3601](https://github.com/E85Addict/revanced-patches/issues/3601)) ([005be82](005be82)) * **YouTube - SponsorBlock:** Handle if the user enters an invalid number into any SB settings ([37b3dd1](37b3dd1)) ### Features * Add `Change data directory location` patch ([ReVanced#3602](https://github.com/E85Addict/revanced-patches/issues/3602)) ([5998029](5998029)) * Add `Check environment` patch ([ReVanced#3610](https://github.com/E85Addict/revanced-patches/issues/3610)) ([fbcbdaf](fbcbdaf)) * **Duolingo:** Add `Disable ads` and `Enable debug menu` patch ([ReVanced#3422](https://github.com/E85Addict/revanced-patches/issues/3422)) ([d0a8599](d0a8599)) * **YouTube - Keyword filter:** Add syntax to match whole keywords and not substrings ([ReVanced#3592](https://github.com/E85Addict/revanced-patches/issues/3592)) ([f5fb351](f5fb351)) * **YouTube - Spoof client:** Allow forcing AVC codec with iOS ([ReVanced#3570](https://github.com/E85Addict/revanced-patches/issues/3570)) ([1a49d1f](1a49d1f)) * **YouTube:** Support versions 19.17 thru 19.30 ([a69c4f3](a69c4f3))
# [4.14.0](v4.13.3...v4.14.0) (2024-09-18) ### Bug Fixes * **Pixiv - Hide ads:** Fix for latest version ([#3616](#3616)) ([98956e8](98956e8)) * **Soundcloud - Hide ads:** Support latest version ([#3628](#3628)) ([66e7e33](66e7e33)) * **SwissID:** Rename `Remove Google Play Integrity Integrity check` to `Remove Google Play Integrity check` ([#3558](#3558)) ([0f5a771](0f5a771)) * **YouTube - ReturnYouTubeDislike:** Show estimated like count for videos with hidden likes ([#3601](#3601)) ([005be82](005be82)) * **YouTube - SponsorBlock:** Add summary text to 'view my segments' button ([df80b9f](df80b9f)) * **YouTube - SponsorBlock:** Handle if the user enters an invalid number into any SB settings ([37b3dd1](37b3dd1)) * **YouTube:** Fix issues related to playback by replace streaming data ([#3582](#3582)) ([dfa94d7](dfa94d7)) ### Features * Add `Change data directory location` patch ([#3602](#3602)) ([5998029](5998029)) * Add `Check environment` patch ([#3610](#3610)) ([fbcbdaf](fbcbdaf)) * **Duolingo:** Add `Disable ads` and `Enable debug menu` patch ([#3422](#3422)) ([d0a8599](d0a8599)) * **Sync for Reddit:** Add `Fix /user/ endpoint` patch ([46d11f3](46d11f3)) * **Sync for Reddit:** Rename patch to `Use /user/ endpoint` ([98ead49](98ead49)) * **YouTube - Hide Shorts components:** Hide 'Use this sound' button ([#3647](#3647)) ([33fc090](33fc090)) * **YouTube - Keyword filter:** Add syntax to match whole keywords and not substrings ([#3592](#3592)) ([f5fb351](f5fb351)) * **YouTube - Spoof client:** Allow forcing AVC codec with iOS ([#3570](#3570)) ([1a49d1f](1a49d1f)) * **YouTube Music:** Make working patches compatible with latest versions ([#3556](#3556)) ([12f6f19](12f6f19)) * **YouTube:** Add donation link to settings about screen ([#3626](#3626)) ([0684ab5](0684ab5))
# [4.14.0](v4.13.3...v4.14.0) (2024-09-18) ### Bug Fixes * **Pixiv - Hide ads:** Fix for latest version ([ReVanced#3616](https://github.com/E85Addict/revanced-patches/issues/3616)) ([98956e8](98956e8)) * **Soundcloud - Hide ads:** Support latest version ([ReVanced#3628](https://github.com/E85Addict/revanced-patches/issues/3628)) ([66e7e33](66e7e33)) * **SwissID:** Rename `Remove Google Play Integrity Integrity check` to `Remove Google Play Integrity check` ([ReVanced#3558](https://github.com/E85Addict/revanced-patches/issues/3558)) ([0f5a771](0f5a771)) * **YouTube - ReturnYouTubeDislike:** Show estimated like count for videos with hidden likes ([ReVanced#3601](https://github.com/E85Addict/revanced-patches/issues/3601)) ([005be82](005be82)) * **YouTube - SponsorBlock:** Add summary text to 'view my segments' button ([df80b9f](df80b9f)) * **YouTube - SponsorBlock:** Handle if the user enters an invalid number into any SB settings ([37b3dd1](37b3dd1)) * **YouTube:** Fix issues related to playback by replace streaming data ([ReVanced#3582](https://github.com/E85Addict/revanced-patches/issues/3582)) ([dfa94d7](dfa94d7)) ### Features * Add `Change data directory location` patch ([ReVanced#3602](https://github.com/E85Addict/revanced-patches/issues/3602)) ([5998029](5998029)) * Add `Check environment` patch ([ReVanced#3610](https://github.com/E85Addict/revanced-patches/issues/3610)) ([fbcbdaf](fbcbdaf)) * **Duolingo:** Add `Disable ads` and `Enable debug menu` patch ([ReVanced#3422](https://github.com/E85Addict/revanced-patches/issues/3422)) ([d0a8599](d0a8599)) * **Sync for Reddit:** Add `Fix /user/ endpoint` patch ([46d11f3](46d11f3)) * **Sync for Reddit:** Rename patch to `Use /user/ endpoint` ([98ead49](98ead49)) * **YouTube - Hide Shorts components:** Hide 'Use this sound' button ([ReVanced#3647](https://github.com/E85Addict/revanced-patches/issues/3647)) ([33fc090](33fc090)) * **YouTube - Keyword filter:** Add syntax to match whole keywords and not substrings ([ReVanced#3592](https://github.com/E85Addict/revanced-patches/issues/3592)) ([f5fb351](f5fb351)) * **YouTube - Spoof client:** Allow forcing AVC codec with iOS ([ReVanced#3570](https://github.com/E85Addict/revanced-patches/issues/3570)) ([1a49d1f](1a49d1f)) * **YouTube Music:** Make working patches compatible with latest versions ([ReVanced#3556](https://github.com/E85Addict/revanced-patches/issues/3556)) ([12f6f19](12f6f19)) * **YouTube:** Add donation link to settings about screen ([ReVanced#3626](https://github.com/E85Addict/revanced-patches/issues/3626)) ([0684ab5](0684ab5)) ### Performance Improvements * Personal Logo && Add upstream sync ([2e4ef0a](2e4ef0a))
# [4.14.0](v4.13.3...v4.14.0) (2024-09-18) ### Bug Fixes * **Pixiv - Hide ads:** Fix for latest version ([ReVanced#3616](https://github.com/E85Addict/revanced-patches/issues/3616)) ([98956e8](98956e8)) * **Soundcloud - Hide ads:** Support latest version ([ReVanced#3628](https://github.com/E85Addict/revanced-patches/issues/3628)) ([66e7e33](66e7e33)) * **SwissID:** Rename `Remove Google Play Integrity Integrity check` to `Remove Google Play Integrity check` ([ReVanced#3558](https://github.com/E85Addict/revanced-patches/issues/3558)) ([0f5a771](0f5a771)) * **YouTube - ReturnYouTubeDislike:** Show estimated like count for videos with hidden likes ([ReVanced#3601](https://github.com/E85Addict/revanced-patches/issues/3601)) ([005be82](005be82)) * **YouTube - SponsorBlock:** Add summary text to 'view my segments' button ([df80b9f](df80b9f)) * **YouTube - SponsorBlock:** Handle if the user enters an invalid number into any SB settings ([37b3dd1](37b3dd1)) * **YouTube:** Fix issues related to playback by replace streaming data ([ReVanced#3582](https://github.com/E85Addict/revanced-patches/issues/3582)) ([dfa94d7](dfa94d7)) ### Features * Add `Change data directory location` patch ([ReVanced#3602](https://github.com/E85Addict/revanced-patches/issues/3602)) ([5998029](5998029)) * Add `Check environment` patch ([ReVanced#3610](https://github.com/E85Addict/revanced-patches/issues/3610)) ([fbcbdaf](fbcbdaf)) * **Duolingo:** Add `Disable ads` and `Enable debug menu` patch ([ReVanced#3422](https://github.com/E85Addict/revanced-patches/issues/3422)) ([d0a8599](d0a8599)) * **Sync for Reddit:** Add `Fix /user/ endpoint` patch ([46d11f3](46d11f3)) * **Sync for Reddit:** Rename patch to `Use /user/ endpoint` ([98ead49](98ead49)) * **YouTube - Hide Shorts components:** Hide 'Use this sound' button ([ReVanced#3647](https://github.com/E85Addict/revanced-patches/issues/3647)) ([33fc090](33fc090)) * **YouTube - Keyword filter:** Add syntax to match whole keywords and not substrings ([ReVanced#3592](https://github.com/E85Addict/revanced-patches/issues/3592)) ([f5fb351](f5fb351)) * **YouTube - Spoof client:** Allow forcing AVC codec with iOS ([ReVanced#3570](https://github.com/E85Addict/revanced-patches/issues/3570)) ([1a49d1f](1a49d1f)) * **YouTube Music:** Make working patches compatible with latest versions ([ReVanced#3556](https://github.com/E85Addict/revanced-patches/issues/3556)) ([12f6f19](12f6f19)) * **YouTube:** Add donation link to settings about screen ([ReVanced#3626](https://github.com/E85Addict/revanced-patches/issues/3626)) ([0684ab5](0684ab5)) ### Performance Improvements * Personal Logo && Add upstream sync ([2e4ef0a](2e4ef0a))
# [4.14.0-dev.1](v4.13.3...v4.14.0-dev.1) (2024-10-04) ### Bug Fixes * **Pixiv - Hide ads:** Fix for latest version ([ReVanced#3616](https://github.com/zainarbani/revanced-patches/issues/3616)) ([98956e8](98956e8)) * **Soundcloud - Hide ads:** Support latest version ([ReVanced#3628](https://github.com/zainarbani/revanced-patches/issues/3628)) ([66e7e33](66e7e33)) * **Soundcloud:** Support latest versions ([ReVanced#3702](https://github.com/zainarbani/revanced-patches/issues/3702)) ([099ac5e](099ac5e)) * **SwissID:** Rename `Remove Google Play Integrity Integrity check` to `Remove Google Play Integrity check` ([ReVanced#3558](https://github.com/zainarbani/revanced-patches/issues/3558)) ([0f5a771](0f5a771)) * **TikTok - Playback speed:** Prevent crash by fixing invalid patch ([82d53cb](82d53cb)) * **TikTok - Settings:** Prevent crash by fixing invalid patch ([8074032](8074032)) * **Twitter - Open links with app chooser:** Constrain patch to last working version `10.48.0-release` ([b9955d5](b9955d5)) * **Twitter - Open links with app chooser:** Fix incorrect version in compatibility list ([ReVanced#3683](https://github.com/zainarbani/revanced-patches/issues/3683)) ([adafe85](adafe85)) * **YouTube - Check environment:** Only use fields available since Android 8 ([ReVanced#3655](https://github.com/zainarbani/revanced-patches/issues/3655)) ([4413533](4413533)) * **YouTube - ReturnYouTubeDislike:** Show estimated like count for videos with hidden likes ([ReVanced#3601](https://github.com/zainarbani/revanced-patches/issues/3601)) ([005be82](005be82)) * **YouTube - SponsorBlock:** Add summary text to 'view my segments' button ([df80b9f](df80b9f)) * **YouTube - SponsorBlock:** Fade out SB buttons without overlapping other buttons ([ReVanced#3719](https://github.com/zainarbani/revanced-patches/issues/3719)) ([bf96108](bf96108)) * **YouTube - SponsorBlock:** Handle if the user enters an invalid number into any SB settings ([37b3dd1](37b3dd1)) * **YouTube - Spoof video streams:** Change default client type to Android VR ([74c8637](74c8637)) * **YouTube - Spoof video streams:** Change default client type to Android VR ([ReVanced#3672](https://github.com/zainarbani/revanced-patches/issues/3672)) ([a3306f6](a3306f6)) * **YouTube:** Fix issues related to playback by replace streaming data ([ReVanced#3582](https://github.com/zainarbani/revanced-patches/issues/3582)) ([dfa94d7](dfa94d7)) * **YouTube:** Show video chapter titles without clipping when overlay buttons are enabled ([ReVanced#3674](https://github.com/zainarbani/revanced-patches/issues/3674)) ([4b88c31](4b88c31)) ### Features * Add `Change data directory location` patch ([ReVanced#3602](https://github.com/zainarbani/revanced-patches/issues/3602)) ([5998029](5998029)) * Add `Check environment` patch ([ReVanced#3610](https://github.com/zainarbani/revanced-patches/issues/3610)) ([fbcbdaf](fbcbdaf)) * **Duolingo:** Add `Disable ads` and `Enable debug menu` patch ([ReVanced#3422](https://github.com/zainarbani/revanced-patches/issues/3422)) ([d0a8599](d0a8599)) * **Google Photos:** Restore hidden 'Back up while charging' toggle ([ReVanced#3678](https://github.com/zainarbani/revanced-patches/issues/3678)) ([f9e19ce](f9e19ce)) * **Sync for Reddit:** Add `Fix /user/ endpoint` patch ([46d11f3](46d11f3)) * **Sync for Reddit:** Rename patch to `Use /user/ endpoint` ([98ead49](98ead49)) * **TikTok:** Bump patches to support the latest version 36.5.4 ([e5dcb72](e5dcb72)) * **YouTube - Disable precise seeking gesture:** Hide "pull up" label that shows up when swiping ([ReVanced#3668](https://github.com/zainarbani/revanced-patches/issues/3668)) ([3fa8af9](3fa8af9)) * **YouTube - Hide Shorts components:** Add `Hide save music`, `Hide stickers` ([ReVanced#3710](https://github.com/zainarbani/revanced-patches/issues/3710)) ([8c99321](8c99321)) * **YouTube - Hide Shorts components:** Add option to hide like fountain ([ReVanced#3731](https://github.com/zainarbani/revanced-patches/issues/3731)) ([00a99dd](00a99dd)) * **YouTube - Hide Shorts components:** Add patch option to hide Shorts app shortcut (long press app icon) ([ReVanced#3699](https://github.com/zainarbani/revanced-patches/issues/3699)) ([0d4e1f5](0d4e1f5)) * **YouTube - Hide Shorts components:** Add patch option to hide Shorts from app launcher widget Beta ([ReVanced#3707](https://github.com/zainarbani/revanced-patches/issues/3707)) ([838f183](838f183)) * **YouTube - Hide Shorts components:** Hide 'Use this sound' button ([ReVanced#3647](https://github.com/zainarbani/revanced-patches/issues/3647)) ([33fc090](33fc090)) * **YouTube - Keyword filter:** Add syntax to match whole keywords and not substrings ([ReVanced#3592](https://github.com/zainarbani/revanced-patches/issues/3592)) ([f5fb351](f5fb351)) * **YouTube - Spoof client:** Allow forcing AVC codec with iOS ([ReVanced#3570](https://github.com/zainarbani/revanced-patches/issues/3570)) ([1a49d1f](1a49d1f)) * **YouTube Music:** Make working patches compatible with latest versions ([ReVanced#3556](https://github.com/zainarbani/revanced-patches/issues/3556)) ([12f6f19](12f6f19)) * **YouTube:** Add donation link to settings about screen ([ReVanced#3626](https://github.com/zainarbani/revanced-patches/issues/3626)) ([0684ab5](0684ab5))
# [4.14.0-dev.1](v4.13.3...v4.14.0-dev.1) (2024-10-04) ### Bug Fixes * **Pixiv - Hide ads:** Fix for latest version ([ReVanced#3616](https://github.com/zainarbani/revanced-patches/issues/3616)) ([98956e8](98956e8)) * **Soundcloud - Hide ads:** Support latest version ([ReVanced#3628](https://github.com/zainarbani/revanced-patches/issues/3628)) ([66e7e33](66e7e33)) * **Soundcloud:** Support latest versions ([ReVanced#3702](https://github.com/zainarbani/revanced-patches/issues/3702)) ([099ac5e](099ac5e)) * **SwissID:** Rename `Remove Google Play Integrity Integrity check` to `Remove Google Play Integrity check` ([ReVanced#3558](https://github.com/zainarbani/revanced-patches/issues/3558)) ([0f5a771](0f5a771)) * **TikTok - Playback speed:** Prevent crash by fixing invalid patch ([82d53cb](82d53cb)) * **TikTok - Settings:** Prevent crash by fixing invalid patch ([8074032](8074032)) * **Twitter - Open links with app chooser:** Constrain patch to last working version `10.48.0-release` ([b9955d5](b9955d5)) * **Twitter - Open links with app chooser:** Fix incorrect version in compatibility list ([ReVanced#3683](https://github.com/zainarbani/revanced-patches/issues/3683)) ([adafe85](adafe85)) * **YouTube - Check environment:** Only use fields available since Android 8 ([ReVanced#3655](https://github.com/zainarbani/revanced-patches/issues/3655)) ([4413533](4413533)) * **YouTube - ReturnYouTubeDislike:** Show estimated like count for videos with hidden likes ([ReVanced#3601](https://github.com/zainarbani/revanced-patches/issues/3601)) ([005be82](005be82)) * **YouTube - SponsorBlock:** Add summary text to 'view my segments' button ([df80b9f](df80b9f)) * **YouTube - SponsorBlock:** Fade out SB buttons without overlapping other buttons ([ReVanced#3719](https://github.com/zainarbani/revanced-patches/issues/3719)) ([bf96108](bf96108)) * **YouTube - SponsorBlock:** Handle if the user enters an invalid number into any SB settings ([37b3dd1](37b3dd1)) * **YouTube - Spoof video streams:** Change default client type to Android VR ([74c8637](74c8637)) * **YouTube - Spoof video streams:** Change default client type to Android VR ([ReVanced#3672](https://github.com/zainarbani/revanced-patches/issues/3672)) ([a3306f6](a3306f6)) * **YouTube:** Fix issues related to playback by replace streaming data ([ReVanced#3582](https://github.com/zainarbani/revanced-patches/issues/3582)) ([dfa94d7](dfa94d7)) * **YouTube:** Show video chapter titles without clipping when overlay buttons are enabled ([ReVanced#3674](https://github.com/zainarbani/revanced-patches/issues/3674)) ([4b88c31](4b88c31)) ### Features * Add `Change data directory location` patch ([ReVanced#3602](https://github.com/zainarbani/revanced-patches/issues/3602)) ([5998029](5998029)) * Add `Check environment` patch ([ReVanced#3610](https://github.com/zainarbani/revanced-patches/issues/3610)) ([fbcbdaf](fbcbdaf)) * **Duolingo:** Add `Disable ads` and `Enable debug menu` patch ([ReVanced#3422](https://github.com/zainarbani/revanced-patches/issues/3422)) ([d0a8599](d0a8599)) * **Google Photos:** Restore hidden 'Back up while charging' toggle ([ReVanced#3678](https://github.com/zainarbani/revanced-patches/issues/3678)) ([f9e19ce](f9e19ce)) * **Sync for Reddit:** Add `Fix /user/ endpoint` patch ([46d11f3](46d11f3)) * **Sync for Reddit:** Rename patch to `Use /user/ endpoint` ([98ead49](98ead49)) * **TikTok:** Bump patches to support the latest version 36.5.4 ([e5dcb72](e5dcb72)) * **YouTube - Disable precise seeking gesture:** Hide "pull up" label that shows up when swiping ([ReVanced#3668](https://github.com/zainarbani/revanced-patches/issues/3668)) ([3fa8af9](3fa8af9)) * **YouTube - Hide Shorts components:** Add `Hide save music`, `Hide stickers` ([ReVanced#3710](https://github.com/zainarbani/revanced-patches/issues/3710)) ([8c99321](8c99321)) * **YouTube - Hide Shorts components:** Add option to hide like fountain ([ReVanced#3731](https://github.com/zainarbani/revanced-patches/issues/3731)) ([00a99dd](00a99dd)) * **YouTube - Hide Shorts components:** Add patch option to hide Shorts app shortcut (long press app icon) ([ReVanced#3699](https://github.com/zainarbani/revanced-patches/issues/3699)) ([0d4e1f5](0d4e1f5)) * **YouTube - Hide Shorts components:** Add patch option to hide Shorts from app launcher widget Beta ([ReVanced#3707](https://github.com/zainarbani/revanced-patches/issues/3707)) ([838f183](838f183)) * **YouTube - Hide Shorts components:** Hide 'Use this sound' button ([ReVanced#3647](https://github.com/zainarbani/revanced-patches/issues/3647)) ([33fc090](33fc090)) * **YouTube - Keyword filter:** Add syntax to match whole keywords and not substrings ([ReVanced#3592](https://github.com/zainarbani/revanced-patches/issues/3592)) ([f5fb351](f5fb351)) * **YouTube - Spoof client:** Allow forcing AVC codec with iOS ([ReVanced#3570](https://github.com/zainarbani/revanced-patches/issues/3570)) ([1a49d1f](1a49d1f)) * **YouTube Music:** Make working patches compatible with latest versions ([ReVanced#3556](https://github.com/zainarbani/revanced-patches/issues/3556)) ([12f6f19](12f6f19)) * **YouTube:** Add donation link to settings about screen ([ReVanced#3626](https://github.com/zainarbani/revanced-patches/issues/3626)) ([0684ab5](0684ab5))
# [4.18.0-dev.1](v4.17.1...v4.18.0-dev.1) (2024-10-04) ### Bug Fixes * **Pixiv - Hide ads:** Fix for latest version ([ReVanced#3616](https://github.com/zainarbani/revanced-patches/issues/3616)) ([98956e8](98956e8)) * **Soundcloud - Hide ads:** Support latest version ([ReVanced#3628](https://github.com/zainarbani/revanced-patches/issues/3628)) ([66e7e33](66e7e33)) * **Soundcloud:** Support latest versions ([ReVanced#3702](https://github.com/zainarbani/revanced-patches/issues/3702)) ([099ac5e](099ac5e)) * **SwissID:** Rename `Remove Google Play Integrity Integrity check` to `Remove Google Play Integrity check` ([ReVanced#3558](https://github.com/zainarbani/revanced-patches/issues/3558)) ([0f5a771](0f5a771)) * **TikTok - Playback speed:** Prevent crash by fixing invalid patch ([82d53cb](82d53cb)) * **TikTok - Settings:** Prevent crash by fixing invalid patch ([8074032](8074032)) * **Twitter - Open links with app chooser:** Constrain patch to last working version `10.48.0-release` ([b9955d5](b9955d5)) * **Twitter - Open links with app chooser:** Fix incorrect version in compatibility list ([ReVanced#3683](https://github.com/zainarbani/revanced-patches/issues/3683)) ([adafe85](adafe85)) * **YouTube - Check environment:** Only use fields available since Android 8 ([ReVanced#3655](https://github.com/zainarbani/revanced-patches/issues/3655)) ([4413533](4413533)) * **YouTube - ReturnYouTubeDislike:** Show estimated like count for videos with hidden likes ([ReVanced#3601](https://github.com/zainarbani/revanced-patches/issues/3601)) ([005be82](005be82)) * **YouTube - SponsorBlock:** Add summary text to 'view my segments' button ([df80b9f](df80b9f)) * **YouTube - SponsorBlock:** Fade out SB buttons without overlapping other buttons ([ReVanced#3719](https://github.com/zainarbani/revanced-patches/issues/3719)) ([bf96108](bf96108)) * **YouTube - SponsorBlock:** Handle if the user enters an invalid number into any SB settings ([37b3dd1](37b3dd1)) * **YouTube - Spoof video streams:** Change default client type to Android VR ([74c8637](74c8637)) * **YouTube - Spoof video streams:** Change default client type to Android VR ([ReVanced#3672](https://github.com/zainarbani/revanced-patches/issues/3672)) ([a3306f6](a3306f6)) * **YouTube:** Fix issues related to playback by replace streaming data ([ReVanced#3582](https://github.com/zainarbani/revanced-patches/issues/3582)) ([dfa94d7](dfa94d7)) * **YouTube:** Show video chapter titles without clipping when overlay buttons are enabled ([ReVanced#3674](https://github.com/zainarbani/revanced-patches/issues/3674)) ([4b88c31](4b88c31)) ### Features * Add `Change data directory location` patch ([ReVanced#3602](https://github.com/zainarbani/revanced-patches/issues/3602)) ([5998029](5998029)) * Add `Check environment` patch ([ReVanced#3610](https://github.com/zainarbani/revanced-patches/issues/3610)) ([fbcbdaf](fbcbdaf)) * **Duolingo:** Add `Disable ads` and `Enable debug menu` patch ([ReVanced#3422](https://github.com/zainarbani/revanced-patches/issues/3422)) ([d0a8599](d0a8599)) * **Google Photos:** Restore hidden 'Back up while charging' toggle ([ReVanced#3678](https://github.com/zainarbani/revanced-patches/issues/3678)) ([f9e19ce](f9e19ce)) * **Sync for Reddit:** Add `Fix /user/ endpoint` patch ([46d11f3](46d11f3)) * **Sync for Reddit:** Rename patch to `Use /user/ endpoint` ([98ead49](98ead49)) * **TikTok:** Bump patches to support the latest version 36.5.4 ([e5dcb72](e5dcb72)) * **YouTube - Disable precise seeking gesture:** Hide "pull up" label that shows up when swiping ([ReVanced#3668](https://github.com/zainarbani/revanced-patches/issues/3668)) ([3fa8af9](3fa8af9)) * **YouTube - Hide Shorts components:** Add `Hide save music`, `Hide stickers` ([ReVanced#3710](https://github.com/zainarbani/revanced-patches/issues/3710)) ([8c99321](8c99321)) * **YouTube - Hide Shorts components:** Add option to hide like fountain ([ReVanced#3731](https://github.com/zainarbani/revanced-patches/issues/3731)) ([00a99dd](00a99dd)) * **YouTube - Hide Shorts components:** Add patch option to hide Shorts app shortcut (long press app icon) ([ReVanced#3699](https://github.com/zainarbani/revanced-patches/issues/3699)) ([0d4e1f5](0d4e1f5)) * **YouTube - Hide Shorts components:** Add patch option to hide Shorts from app launcher widget Beta ([ReVanced#3707](https://github.com/zainarbani/revanced-patches/issues/3707)) ([838f183](838f183)) * **YouTube - Hide Shorts components:** Hide 'Use this sound' button ([ReVanced#3647](https://github.com/zainarbani/revanced-patches/issues/3647)) ([33fc090](33fc090)) * **YouTube - Keyword filter:** Add syntax to match whole keywords and not substrings ([ReVanced#3592](https://github.com/zainarbani/revanced-patches/issues/3592)) ([f5fb351](f5fb351)) * **YouTube - Spoof client:** Allow forcing AVC codec with iOS ([ReVanced#3570](https://github.com/zainarbani/revanced-patches/issues/3570)) ([1a49d1f](1a49d1f)) * **YouTube Music:** Make working patches compatible with latest versions ([ReVanced#3556](https://github.com/zainarbani/revanced-patches/issues/3556)) ([12f6f19](12f6f19)) * **YouTube:** Add donation link to settings about screen ([ReVanced#3626](https://github.com/zainarbani/revanced-patches/issues/3626)) ([0684ab5](0684ab5))
About
This PR adds a patch that checks and warns the user in case they have downloaded the app as a pre-patched APK or if the APK was not patched and installed using the expected means, such as ReVanced Manager or ReVanced CLI.
How it works
Several checks are run in sequence. Some checks may exempt others. One check is comparing the hardware of the device used to patch vs what device the app is then launched on. Another checks if the patch & install time is about the same. And another check verifies the installer source is either CLI or ReVanced Manager.
If the environment check is deemed to have failed, then a warning will be issued at the app launch. The warning will mention the current situation and explain why the warning is being shown by mentioning what kind of checks have failed. The warning has a button to open the source to patch and install an app as intended and a button to dismiss the warning. If the warning is ignored twice it will never be shown again. If the environment check is deemed successful, then the check will be disabled forever.
Quirks
Integration changes.
Todo