Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

feat: Add Check environment patch #683

Merged
merged 40 commits into from
Sep 6, 2024
Merged

feat: Add Check environment patch #683

merged 40 commits into from
Sep 6, 2024

Conversation

oSumAtrIX
Copy link
Member

@oSumAtrIX oSumAtrIX commented Aug 30, 2024

Integration changes for ReVanced/revanced-patches#3610

@LisoUseInAIKyrios LisoUseInAIKyrios force-pushed the feat/check-env branch 2 times, most recently from 2c3f101 to 8e4acec Compare September 2, 2024 23:49
…on null. Do not export environment check setting (setting can still be overwrote by adding to import text). Fix dialog not showing on top of announcements.
@LisoUseInAIKyrios
Copy link
Contributor

Since the device hardware hash will be very unique and always present when patching with Manager, that could be the primary way to validate. And to handle CLI, the patch time check and ip address could be used for that.

Checking if the install source is not Manager or null (indicating CLI install) could be used to immediately fail the check since that means its 100% certain it's not installed by CLI or Manager.

…old the patched apk is if other checks fail. Infer installer source failed if Manager is the source but no hardware hash codes are present.
@LisoUseInAIKyrios
Copy link
Contributor

I can't request a review from the PR owner, but otherwise looks good.

@oSumAtrIX oSumAtrIX merged commit e856455 into dev Sep 6, 2024
2 checks passed
@LisoUseInAIKyrios
Copy link
Contributor

Actually I just realized the time check can be done using only the installation time.

It'll remove all false positives if the user clears the app data.

I'll make a quick PR with the change in a moment.

@LisoUseInAIKyrios LisoUseInAIKyrios deleted the feat/check-env branch September 6, 2024 08:28
revanced-bot pushed a commit that referenced this pull request Sep 6, 2024
# [1.14.0-dev.5](v1.14.0-dev.4...v1.14.0-dev.5) (2024-09-06)

### Features

* Add `Check environment` patch ([#683](#683)) ([e856455](e856455))
revanced-bot pushed a commit that referenced this pull request Sep 18, 2024
# [1.14.0](v1.13.0...v1.14.0) (2024-09-18)

### Bug Fixes

* **YouTube - Check environment patch:** Allow adb installs even if patched more than 30 minutes ago ([5adf8bd](5adf8bd))
* **YouTube - Check environment patch:** Show if patched apk is too old, if the install source is not Manager or ADB ([18048f3](18048f3))
* **YouTube - Check environment patch:** Use app install/update time instead of current time ([#687](#687)) ([b0d82b0](b0d82b0))
* **YouTube - GmsCore support:** Show an error toast if GmsCore is included with root mounted installation ([#686](#686)) ([a4848be](a4848be))
* **YouTube - Hide layout components:** Hide new kind of community post ([#678](#678)) ([6be257a](6be257a))
* **YouTube - Return YouTube Dislike:** Show correct value when swiping back to prior Short and disliking ([2eb5e3a](2eb5e3a))
* **YouTube - ReturnYouTubeDislike:** Show estimated like count for videos with hidden likes ([#684](#684)) ([27d2b60](27d2b60))
* **YouTube - SponsorBlock:** Add summary text to 'view my segments' button ([0f5dfb4](0f5dfb4))
* **YouTube - SponsorBlock:** Handle if the user enters an invalid number into any SB settings ([01f084d](01f084d))
* **YouTube:** Fix issues related to playback by replace streaming data ([#680](#680)) ([0468235](0468235))

### Features

* Add `Check environment` patch ([#683](#683)) ([e856455](e856455))
* **YouTube - Hide Shorts components:** Hide 'Use this sound' button ([#691](#691)) ([6f3d2ff](6f3d2ff))
* **YouTube - Keyword filter:** Add syntax to match whole keywords and not substrings ([#681](#681)) ([5314dd9](5314dd9))
* **YouTube - Spoof client:** Allow forcing AVC codec with iOS ([#679](#679)) ([2c471f3](2c471f3))
* **YouTube:** Add donation link to settings about screen ([#688](#688)) ([b816c45](b816c45))
github-actions bot pushed a commit to zainarbani/revanced-integrations that referenced this pull request Oct 4, 2024
# [1.17.0-dev.1](v1.16.1...v1.17.0-dev.1) (2024-10-04)

### Bug Fixes

* **YouTube - Check environment patch:** Allow adb installs even if patched more than 30 minutes ago ([5adf8bd](5adf8bd))
* **YouTube - Check environment patch:** Show if patched apk is too old, if the install source is not Manager or ADB ([18048f3](18048f3))
* **YouTube - Check environment patch:** Use app install/update time instead of current time ([ReVanced#687](https://github.com/zainarbani/revanced-integrations/issues/687)) ([b0d82b0](b0d82b0))
* **YouTube - Check environment:** Only use fields available since Android 8 ([ReVanced#693](https://github.com/zainarbani/revanced-integrations/issues/693)) ([c0829c3](c0829c3))
* **YouTube - Check watch history domain name resolution:** Do not show warning if network connection is flaky ([ReVanced#702](https://github.com/zainarbani/revanced-integrations/issues/702)) ([80482df](80482df))
* **YouTube - GmsCore support:** Show an error toast if GmsCore is included with root mounted installation ([ReVanced#686](https://github.com/zainarbani/revanced-integrations/issues/686)) ([a4848be](a4848be))
* **YouTube - Hide layout components:** Hide new kind of community post ([ReVanced#678](https://github.com/zainarbani/revanced-integrations/issues/678)) ([6be257a](6be257a))
* **YouTube - Hide layout components:** Hide new kind of community posts ([ReVanced#695](https://github.com/zainarbani/revanced-integrations/issues/695)) ([b384926](b384926))
* **YouTube - Return YouTube Dislike:** Show correct value when swiping back to prior Short and disliking ([2eb5e3a](2eb5e3a))
* **YouTube - ReturnYouTubeDislike:** Show estimated like count for videos with hidden likes ([ReVanced#684](https://github.com/zainarbani/revanced-integrations/issues/684)) ([27d2b60](27d2b60))
* **YouTube - SponsorBlock:** Add summary text to 'view my segments' button ([0f5dfb4](0f5dfb4))
* **YouTube - SponsorBlock:** Handle if the user enters an invalid number into any SB settings ([01f084d](01f084d))
* **YouTube - Spoof video streams:** Change default client type to Android VR ([a2e8bbb](a2e8bbb))
* **YouTube - Spoof video streams:** Change default client type to Android VR ([ReVanced#697](https://github.com/zainarbani/revanced-integrations/issues/697)) ([d06706d](d06706d))
* **YouTube - Spoof video streams:** Handle app left open for a long time ([ReVanced#709](https://github.com/zainarbani/revanced-integrations/issues/709)) ([ea4b073](ea4b073))
* **YouTube:** Fix issues related to playback by replace streaming data ([ReVanced#680](https://github.com/zainarbani/revanced-integrations/issues/680)) ([0468235](0468235))
* **YouTube:** Show video chapter titles without clipping when overlay buttons are enabled ([ReVanced#699](https://github.com/zainarbani/revanced-integrations/issues/699)) ([325cc17](325cc17))

### Features

* Add `Check environment` patch ([ReVanced#683](https://github.com/zainarbani/revanced-integrations/issues/683)) ([e856455](e856455))
* Merge branch `feat/yt-bump` to `dev` ([48a7ac4](48a7ac4))
* **YouTube - Disable precise seeking gesture:** Hide "pull up" label that shows up when swiping ([ReVanced#696](https://github.com/zainarbani/revanced-integrations/issues/696)) ([0b9afd0](0b9afd0))
* **YouTube - Hide Shorts components:** Add `Hide save music`, `Hide stickers` ([ReVanced#703](https://github.com/zainarbani/revanced-integrations/issues/703)) ([a87456e](a87456e))
* **YouTube - Hide Shorts components:** Add option to hide like fountain ([ReVanced#708](https://github.com/zainarbani/revanced-integrations/issues/708)) ([16c3ef7](16c3ef7))
* **YouTube - Hide Shorts components:** Hide 'Use this sound' button ([ReVanced#691](https://github.com/zainarbani/revanced-integrations/issues/691)) ([6f3d2ff](6f3d2ff))
* **YouTube - Keyword filter:** Add syntax to match whole keywords and not substrings ([ReVanced#681](https://github.com/zainarbani/revanced-integrations/issues/681)) ([5314dd9](5314dd9))
* **YouTube - Spoof client:** Allow forcing AVC codec with iOS ([ReVanced#679](https://github.com/zainarbani/revanced-integrations/issues/679)) ([2c471f3](2c471f3))
* **YouTube:** Add donation link to settings about screen ([ReVanced#688](https://github.com/zainarbani/revanced-integrations/issues/688)) ([b816c45](b816c45))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants