ReVanced / revanced-documentation

🗄 Collection of all ReVanced documentation
https://revanced.app
GNU General Public License v3.0
271 stars 44 forks source link

YouTube URLs won't open in Patched Youtube App #48

Closed kadirgun closed 2 months ago

kadirgun commented 2 months ago

I had this problem and I found the solution with ADB to prevent the links of the application from being changed by the domain verification agent.

adb shell pm set-app-links --package app.revanced.android.youtube 2 all
set-app-links [--package <PACKAGE>] <STATE> <DOMAINS>...
    Manually set the state of a domain for a package. The domain must be
    declared by the package as autoVerify for this to work. This command
    will not report a failure for domains that could not be applied.
      --package <PACKAGE>: the package to set, or "all" to set all packages
      <STATE>: the code to set the domains to, valid values are:
        STATE_NO_RESPONSE (0): reset as if no response was ever recorded.
        STATE_SUCCESS (1): treat domain as successfully verified by domain.
          verification agent. Note that the domain verification agent can
          override this.
        STATE_APPROVED (2): treat domain as always approved, preventing the
           domain verification agent from changing it.
        STATE_DENIED (3): treat domain as always denied, preveting the domain
          verification agent from changing it.
      <DOMAINS>: space separated list of domains to change, or "all" to
        change every domain.

I think this solution will work for other patched applications.

oSumAtrIX commented 2 months ago

I don't understand what you mean, the documentation mentions that links not opened in an app can be fixed by changing the default links in the settings: https://github.com/ReVanced/revanced-documentation/blob/main/docs/revanced-other/troubleshooting.md#links-dont-open-in-a-patched-app