ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.39k stars 274 forks source link

Youtube & YT Music both unable to sign in #1284

Closed HeyItsJono closed 1 year ago

HeyItsJono commented 1 year ago

Type

Error at runtime

Bug description

Neither YT not YT Music are functioning.

YouTube: Upon opening, immediately shows a screen stating my account could not be signed into. If I go to the account picker it is blank. If I uninstall Revanced and just use vanilla YouTube everything works.

YouTube Music: Loads the front page fine and appears to work. After selecting a song however, I am met with the error "There was a problem signing in to your account".

Steps to reproduce

  1. Uninstall updates for YT & YT Music (both system apps on Pixel 5)
  2. Install the appropriate latest versions for both apps; YouTube 18.03.36 and Music 5.39.52, both full (non-split) .apks from APKMirror. Open both apps to ensure they are in a working vanilla state. Account is signed in on both.
  3. Select patches for each in Revanced Manager as shown in Screenshots section; note no MicroG patch selected as the intention is for Root install.
  4. Patch without issue.
  5. Install as Root via Revanced Manager without issue.
  6. Open apps and encounter issue as above.

Relevant log output

YouTube Logcat:

---- 7 Mar 2023 12:15:34 pm ----

03-07 12:14:37.067  7301  7615 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.youtube/.app.honeycomb.Shell$HomeActivity bnds=[93,1648][945,1779]} from uid 10355

03-07 12:14:37.114  7301  7421 I ActivityManager: Start proc 10259:com.google.android.youtube/u0a180 for pre-top-activity {com.google.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity}

03-07 12:14:38.460  7301  7441 E VerityUtils: Failed to measure fs-verity, errno 1: /data/app/~~OIcrbaU_tJDtIZK19e7JkA==/com.google.android.youtube-XjwsWQif_sIyOj59IqgrjQ==/base.apk

03-07 12:14:39.413  8448 12490 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:39.426 10259 10431 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:39.455  7301  7358 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x4000000 cmp=com.google.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity bnds=[93,1648][945,1779] (has extras)} from uid 10180

03-07 12:14:39.628  8448 12521 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:39.635 10259 10334 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.609  8448  8511 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.611 10259 10520 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.613  8448 12521 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.614 10259 10340 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.619  8448  8511 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.620 10259 10520 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.750 10259 10436 E GoogleApiManager: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.880  8448 12490 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.882 10259 10520 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.888  8448 12490 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.889 10259 10481 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.893  8448  8511 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.894 10259 10481 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.898  8448  8511 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.900 10259 10481 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.903  8448  8511 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:41.904 10259 10481 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:42.098  7301  7403 I ActivityTaskManager: Displayed com.google.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity: +4s984ms

03-07 12:14:42.098  7301  7403 I ActivityTaskManager: Fully drawn com.google.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity: +4s984ms

03-07 12:14:42.178 10384 10384 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1930 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.google.android.youtube fieldId=-1 fieldName=null extras=null}, false)

03-07 12:14:42.483  7301  7358 W InputManager-JNI: Input channel object '46c716f Splash Screen com.google.android.youtube (client)' was disposed without first being removed with the input manager!

03-07 12:14:46.547 10384 10384 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1930 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.google.android.youtube fieldId=-1 fieldName=null extras=null}, false)

03-07 12:14:47.057 10384 10384 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1930 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.google.android.youtube fieldId=-1 fieldName=null extras=null}, false)

03-07 12:14:47.168 10259 10520 W android.youtub: ClassLoaderContext type mismatch. expected=PCL, found=DLC (PCL[] | DLC[];PCL[/data/app/~~OIcrbaU_tJDtIZK19e7JkA==/com.google.android.youtube-XjwsWQif_sIyOj59IqgrjQ==/base.apk*1321503985:/data/app/~~OIcrbaU_tJDtIZK19e7JkA==/com.google.android.youtube-XjwsWQif_sIyOj59IqgrjQ==/base.apk!classes2.dex*3503577498:/data/app/~~OIcrbaU_tJDtIZK19e7JkA==/com.google.android.youtube-XjwsWQif_sIyOj59IqgrjQ==/base.apk!classes3.dex*586159757:/data/app/~~OIcrbaU_tJDtIZK19e7JkA==/com.google.android.youtube-XjwsWQif_sIyOj59IqgrjQ==/base.apk!classes4.dex*23173201:/data/app/~~OIcrbaU_tJDtIZK19e7JkA==/com.google.android.youtube-XjwsWQif_sIyOj59IqgrjQ==/base.apk!classes5.dex*3664007937:/data/app/~~OIcrbaU_tJDtIZK19e7JkA==/com.google.android.youtube-XjwsWQif_sIyOj59IqgrjQ==/base.apk!classes6.dex*205154844:/data/app/~~OIcrbaU_tJDtIZK19e7JkA==/com.google.android.youtube-XjwsWQif_sIyOj59IqgrjQ==/base.apk!classes7.dex*4143492318:/data/app/~~OIcrbaU_tJDtIZK19e7JkA==/com.google.android.youtube-XjwsWQif_sIyOj59IqgrjQ==/base.apk!classes8.dex*2922927097]{PCL[/system/framework/org.apache.http.legacy.jar*3239720430]})

03-07 12:14:47.267  8448 12521 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:47.270 10259 10520 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:47.321 10259 10520 W YouTube : android.os.RemoteException: Accounts ContentProvider failed: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:47.427 10259 10436 E GoogleApiManager: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:47.468 10259 10757 I FA      :   adb shell setprop debug.firebase.analytics.app com.google.android.youtube

03-07 12:14:47.665 10721 10739 E DatabaseUtils: java.security.AccessControlException: Access not allowed for non-Google app: com.google.android.youtube

03-07 12:14:47.666 10259 10340 W WindDownApi: java.lang.SecurityException: Access not allowed for non-Google app: com.google.android.youtube

03-07 12:14:48.523  8448 12521 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:48.523 10259 10340 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.youtube, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:14:48.609 10384 10384 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1930 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.google.android.youtube fieldId=-1 fieldName=null extras=null}, false)

03-07 12:14:54.907 10384 10384 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1930 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.google.android.youtube fieldId=-1 fieldName=null extras=null}, false)

03-07 12:14:54.942  7301  9778 W InputManager-JNI: Input channel object 'ee0eae com.google.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity (client)' was disposed without first being removed with the input manager!

03-07 12:14:54.974 10384 10384 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1930 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.google.android.youtube fieldId=-1 fieldName=null extras=null}, false)

03-07 12:14:57.548  7301  9778 W InputManager-JNI: Input channel object 'a486feb com.google.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity (client)' was disposed without first being removed with the input manager!

03-07 12:14:57.602 10384 10384 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1930 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.google.android.youtube fieldId=-1 fieldName=null extras=null}, false)

03-07 12:15:00.169  7301  7358 I InputDispatcher: Monitor swipe-up (server) is stealing touch from [d7e00cb com.google.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity (server), ]

---- 7 Mar 2023 12:15:34 pm ----

YouTube Music Logcat:

---- 7 Mar 2023 12:17:20 pm ----

03-07 12:16:50.254  7301  7958 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.apps.youtube.music/.activities.MusicActivity bnds=[93,1779][945,1910]} from uid 10355

03-07 12:16:50.304  7301  7421 I ActivityManager: Start proc 11743:com.google.android.apps.youtube.music/u0a188 for pre-top-activity {com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity}

03-07 12:16:50.859 11743 11772 I FA      :   adb shell setprop debug.firebase.analytics.app com.google.android.apps.youtube.music

03-07 12:16:51.124  8448 12490 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:51.125 11743 11821 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:51.137 11743 11821 E AwarenessClientProvider: android.os.RemoteException: Accounts ContentProvider failed: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:51.139 11743 11785 E AwarenessRouterSyncMgr: Caused by: android.os.RemoteException: Accounts ContentProvider failed: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:51.395 11743 11787 W s.youtube.musi: ClassLoaderContext type mismatch. expected=PCL, found=DLC (PCL[] | DLC[];PCL[/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk*1480808589:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes2.dex*1564252544:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes3.dex*2605687074:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes4.dex*3508255742:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes5.dex*216349935:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes6.dex*4269185047]{PCL[/system/framework/org.apache.http.legacy.jar*3239720430]})

03-07 12:16:51.487  7301  7441 E VerityUtils: Failed to measure fs-verity, errno 1: /data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk

03-07 12:16:52.299  8448 12490 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:52.300 11743 11777 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:52.304 11743 11785 W s.youtube.musi: ClassLoaderContext type mismatch. expected=PCL, found=DLC (PCL[] | DLC[];PCL[/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk*1480808589:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes2.dex*1564252544:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes3.dex*2605687074:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes4.dex*3508255742:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes5.dex*216349935:/data/app/~~TF3hGEYLFtE5Dl6NzO7UYg==/com.google.android.apps.youtube.music--kY4eTCCs481FX8FVJYQzw==/base.apk!classes6.dex*4269185047]{PCL[/system/framework/org.apache.http.legacy.jar*3239720430]})

03-07 12:16:52.313  8448 12490 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:52.315 11743 11783 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:52.353  8448 12490 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:52.355 11743 11821 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:52.362  8448 12490 E DatabaseUtils: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:52.363 11743 11793 E Auth    : java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.android.apps.youtube.music, sha256=[02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)

03-07 12:16:52.765  7301  7403 I ActivityTaskManager: Displayed com.google.android.apps.youtube.music/.activities.MusicActivity: +2s495ms

03-07 12:16:53.121  7301  9780 W InputManager-JNI: Input channel object 'c545125 Splash Screen com.google.android.apps.youtube.music (client)' was disposed without first being removed with the input manager!

03-07 12:16:53.369  7301  7403 I ActivityTaskManager: Fully drawn com.google.android.apps.youtube.music/.activities.MusicActivity: +3s116ms

03-07 12:16:53.392 10384 10384 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1930 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.google.android.apps.youtube.music fieldId=-1 fieldName=null extras=null}, false)

03-07 12:17:02.104 11743 11793 E YT.qoe  : Pinging https://s.youtube.com/api/stats/qoe?cl=513304176&event=streamingstats&ns=yt&cpn=G4LSKvqZp4wQx6QS&cplatform=mobile&cbr=com.google.android.apps.youtube.music&cff=SMALL_FORM_FACTOR&c=android_music&cmodel=Pixel%205&cos=Android&csdk=32&cbrver=5.39.52&cver=5.39.52&cosver=12&cbrand=Google&conn=6.305:6&cplayer=ANDROID_EXOPLAYER_V2&bat=6.308:0.640:0&vps=6.304:ER&error=6.302:metadata.net.retryexhausted:fatal:0.000:e.j.ebe;s.j.aeaq.b.11:zom.g.7:xvp.a.14:xuo.run.25:alqy.run.3;m.UNREGISTERED_ON_API_CONSOLE&seq=2&docid=(scrubbed) 

03-07 12:17:02.105 11743 11810 E YT.qoe  : Pinging https://s.youtube.com/api/stats/qoe?cl=513304176&event=streamingstats&ns=yt&cpn=G4LSKvqZp4wQx6QS&cplatform=mobile&cbr=com.google.android.apps.youtube.music&cff=SMALL_FORM_FACTOR&c=android_music&cmodel=Pixel%205&cos=Android&csdk=32&cbrver=5.39.52&cver=5.39.52&cosver=12&cbrand=Google&sur=0.035:1&vis=0.041:0&conn=0.027:6&cplayer=ANDROID_EXOPLAYER_V2&bat=0.003:0.640:0,6.307:0.640:0&vps=0.000:N&ctmp=du:used.0.268435456;avail.10369396736.117153181696&error=1.164:onesie.response.badstatus::0.000:e.j.IOE;s.j.acmi.b.4:aclr.a.4:alrb.a.3:amuh.c.2:amuj.run.9;m.Non-200%20Apiary%20response_%20401,1.167:onesie.innertube.fallback::0.000:e.j.E;s.j.acpq.mT.2:alrg.mT.4:amwj.run.6:amvn.exec.1:aor.k.1;ce.j.IOE;cs.j.acmi.b.4:aclr.a.4;m.Non-200%20Apiary%20response_%20401&vc=53952240&seq=1&docid=(scrubbed) 

03-07 12:17:02.108 11743 11790 E YT.qoe  : Pinging https://s.youtube.com/api/stats/qoe?cl=513304176&event=streamingstats&ns=yt&cpn=G4LSKvqZp4wQx6QS&cplatform=mobile&cbr=com.google.android.apps.youtube.music&cff=SMALL_FORM_FACTOR&c=android_music&cmodel=Pixel%205&cos=Android&csdk=32&cbrver=5.39.52&cver=5.39.52&cosver=12&cbrand=Google&conn=6.307:6&cplayer=ANDROID_EXOPLAYER_V2&bat=6.309:0.640:0&vps=6.306:N&seq=3&docid=(scrubbed) 

03-07 12:17:04.576  7301  7953 I InputDispatcher: Monitor swipe-up (server) is stealing touch from [df8bee8 com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity (server), ]

03-07 12:17:04.584  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.606  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.623  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.634  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.656  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.668  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.679  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.690  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.735  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.749  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.760  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.773  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.790  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.802  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.813  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

03-07 12:17:04.825  6942  6942 W BufferStateLayer: Removing the front of pending jank deque from layer - SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0 to prevent memory leak

---- 7 Mar 2023 12:17:20 pm ----

Screenshots or videos

Screenshot_20230307-115556 Screenshot_20230307-121453 Screenshot_20230307-115540 Screenshot_20230307-120355 Screenshot_20230307-120337

Solution

I have yet to find a solution, but I can say that I've tried uninstalling and reinstalling plenty of times without success.

Additional context

Version: 0.0.56 Model: Pixel 5 Android Version: 12 Arch: arm64-v8a

Acknowledgements

oSumAtrIX commented 1 year ago

I am unable to reproduce, leaving open to see if anyone else is.

HeyItsJono commented 1 year ago

For some more information I just tried clearing the data of Revanced YouTube and now when I open it, it immediately force-quits. Scoop catches the following error:

FATAL EXCEPTION: DG
Process: com.google.android.youtube, PID: 5821
java.lang.SecurityException: GoogleCertificatesRslt: not 
allowed: pkg=com.google.android.youtube, sha256=  [02098571b297ad71d9fe637a407c5e80bf7f516a161288a5bef0231e6e8b0534], atk=false, ver=230617044.true (go/gsrlt)
    at 
android.os.Parcel.createExceptionOrNull(Parcel.java:2426)
    at android.os.Parcel.createException(Parcel.java:2410)
    at android.os.Parcel.readException(Parcel.java:2393)
    at android.os.Parcel.readException(Parcel.java:2335)
    at nmo.A(PG:16)
    at nml.a(PG:1)
    at nmn.c(PG:1)
    at nme.d(PG:1)
    at nmh.handleMessage(PG:36)
    at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
at android.os.HandlerThread.run(HandlerThread.java:67)`

Apologies I accidentally hit "Close with comment".

oSumAtrIX commented 1 year ago

The mount fails to bypass validation, my best bet would be that Google is rolling out a fix for bypassing verification check via root, will require other users to report too to confirm

LisoUseInAIKyrios commented 1 year ago

@HeyItsJono Can you try logging in with a different YouTube account, and see if the issue persists?

Also try logging in while using a VPN to a different region.

HeyItsJono commented 1 year ago

@HeyItsJono Can you try logging in with a different YouTube account, and see if the issue persists?

Also try logging in while using a VPN to a different region.

Hi thanks for the reply. I tried a reinstall for this, a different account didn't work unfortunately, and neither did using a VPN to change continent. Interestingly after each fresh root install Revanced YT works until I reboot.

Scoop is now also detecting a different error on YT crashing when opening:

FATAL EXCEPTION: main
Process: com.google.android.youtube, PID: 4828
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity}: java.lang.RuntimeException: EntityStore failed loading from .so
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3707)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3864)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7870)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.RuntimeException: EntityStore failed loading from .so
    at wcj.d(PG:4)
    at wcj.a(PG:1)
    at fzi.b(PG:1)
    at fzi.<init>(PG:1)
    at fxj.j(PG:1)
    at fea.o(PG:61)
    at fea.a(PG:1)
    at asvf.a(PG:1)
    at fea.o(PG:64)
    at fea.a(PG:1)
    at fea.o(PG:65)
    at fea.a(PG:1)
    at asvf.a(PG:1)
    at fcw.e(PG:13)
    at fcw.a(PG:29)
    at asvf.a(PG:1)
    at fcw.b(PG:75)
    at fcw.a(PG:40)
    at asvf.a(PG:1)
    at fcw.b(PG:6)
    at fcw.a(PG:40)
    at asvf.a(PG:1)
    at fcw.m(PG:41)
    at fcw.a(PG:35)
    at asvf.a(PG:1)
    at fcw.m(PG:42)
    at fcw.a(PG:35)
    at asvf.a(PG:1)
    at fcw.o(PG:69)
    at fcw.a(PG:33)
    at asvf.a(PG:1)
    at com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity.o(PG:16)
    at kdi.a(PG:28)
    at qv.onCreate(PG:3)
    at bu.onCreate(PG:1)
    at fob.onCreate(PG:8)
    at mcr.onCreate(PG:1)
    at app.revanced.integrations.swipecontrols.SwipeControlsHostActivity.onCreate(SwipeControlsHostActivity.kt:1)
    at com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity.onCreate(PG:4)
    at android.app.Activity.performCreate(Activity.java:8057)
    at android.app.Activity.performCreate(Activity.java:8037)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1341)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3688)
    ... 12 more
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libjsapi.so" not found: needed by /data/data/com.google.android.youtube/app_lib/libelements.so.18.03.36 in namespace classloader-namespace
    at java.lang.Runtime.load0(Runtime.java:929)
    at java.lang.System.load(System.java:1625)
    at fcl.X(PG:48)
    at tyn.ag(PG:7)
    at ffg.a(PG:1)
    at ahvl.e(PG:8)
    at ahvl.f(PG:5)
    at ahvl.c(PG:1)
    at pat.a(PG:3)
    at wcf.<init>(PG:1)
    at wcm.<init>(PG:6)
    at wcj.g(PG:4)
    at wcj.d(PG:1)
    at wcj.a(PG:1)
    at fzi.b(PG:1)
    at fzi.<init>(PG:1)
    at fxj.j(PG:1)
    at fea.o(PG:61)
    at fea.a(PG:1)
    at asvf.a(PG:1)
    at feb.A(PG:1)
    at feb.yE(PG:1)
    at feb.de(PG:1)
    at fea.o(PG:11)
    at fea.a(PG:1)
    at asvf.a(PG:1)
    at abcf.c(PG:6)
    at ffk.run(PG:57)
    at ulq.run(PG:7)
    at afvw.run(PG:3)
    at oxg.run(PG:5)
    at oxk.run(PG:23)
    at owj.run(PG:50)
    at java.lang.Thread.run(Thread.java:1012)
    at oxp.run(PG:5)
oSumAtrIX commented 1 year ago

Please record the following in full and exact detail:

  1. Uninstall or remove any patched app including ReVanced Manager
  2. Download and install ReVanced Manager
  3. Patch the app & show the issue in scoop
HeyItsJono commented 1 year ago

Ok, here's a video of the process. I censored my accounts and snipped irrelevant chunks of waiting out of the video for speed purposes but the whole actual process is shown here.

I start with Revanced Manager (and all patched apps) uninstalled, YT + YT Music in their stock state (after doing "uninstall updates" from App Info), and having deleted the leftover revanced bash scripts from the post-fs and service.d directories.

Then you can see me install Revanced Manager, update YT/Music to the appropriate versions using stock APKs from APKmirror, then you see me show that they both function appropriately as stock, then I patch YT. After patching, I show YT Revanced works initially, then I reboot and demonstrate the "Couldn't sign in" error. Then, after clearing data, we get the force-quit/certificate error. Unfortunately for some reason Scoop wasn't capturing the thrown error like it usually does, so I just show the youtube-specific logcat instead, and I've attached that log here too.

https://user-images.githubusercontent.com/4620093/223604106-78393d13-8c37-41d6-86de-edf7b479f9ce.mp4

Log_2023-03-08_11-59-57.txt

oSumAtrIX commented 1 year ago

ReVanced Manager drops scripts in the service.d directory. Try adding a delay in the script by prepending sleep 20. Reboot and wait 20s before launching again, check if the issue is still occuring.

HeyItsJono commented 1 year ago

ReVanced Manager drops scripts in the service.d directory. Try adding a delay in the script by prepending sleep 20. Reboot and wait 20s before launching again, check if the issue is still occuring.

Unfortunately, the issues persist. Should I add it to the post-fs script too? I've just done the service.d script so far.

oSumAtrIX commented 1 year ago

In that case, remove the mount script from service.d. After a reboot manually run the mount script and check for anomalies in the process of mounting. In the recording, the initial mount succeeded, check how the mount process differs when doing it manually.

HeyItsJono commented 1 year ago

I removed the mount script from service.d, then attempted to run the script line by line in Termux, and got no shell output to indicate anything had failed, however Youtube has not mounted, and remains in stock form. I would have expected some kind of error to throw in Termux but the commands run without issue. I tried both as user and root.

Running mount shows me it seems to have actually mounted, but this hasn't manifested in YT Revanced actually showing up on my system.

/dev/block/dm-34 on /data/app/~~XhLp3E_-as0AzQsY5gQaJg==/com.google.android.youtube-FW8-VlJ9ca61UEQpaE4jhw==/base.apk type f2fs (rw,lazytime,seclabel,nosuid,nodev,noatime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,reserve_root=32768,resuid=0,resgid=1065,inlinecrypt,alloc_mode=default,checkpoint_merge,fsync_mode=nobarrier)
oSumAtrIX commented 1 year ago

Initially, the mount worked via the ReVanced Manager in your video, reproduce that manually. Check what causes it to work, and what causes it to not work anymore.

HeyItsJono commented 1 year ago

Initially, the mount worked via the ReVanced Manager in your video, reproduce that manually. Check what causes it to work, and what causes it to not work anymore.

Apologies, I'm confused; I figured that in my video after installing the patched app the mount always succeeds, since even after restart it's clear that it's Revanced YT (as indicated by the icon) that's present, not stock. I thought the issue was that this mounted app doesn't seem to pass this certificate check. When I manually run the script I can't get the app to mount, in this scenario the app remains as stock YT and runs fine (albeit without any revanced features obviously). What makes you say the mount process fails on reboot?

oSumAtrIX commented 1 year ago

The way I understand it is that the mount succeeds but if you do it manually, it does not. Also if the mount succeeds, on reboot it crashes. The first question would be to solve why the mount fails if you do it manually. The second question to solve would be to understand why it initially does not crash.

HeyItsJono commented 1 year ago

Huh weird, I got the mount to work by running it manually when I ssh into my phone as root via the SSH for Magisk module.

Steps (as root user via ssh):

  1. Make a copy of the service.d mount script, I called mine ytmount.sh
  2. Move it to the Termux $PREFIX/bin folder (/data/data/com.termux/files/usr/bin) to allow execution
  3. Make it executable with chmod +x.
  4. Run the script as root via SSH: sh /data/data/com.termux/files/usr/bin/ytmount.sh
  5. Wait a couple seconds, I watched the stock YT logo change to the Revanced logo in front of my eyes in the App Info window
  6. Confirm mount works with mount | grep youtube, output is: /dev/block/dm-34 on /data/app/~~XhLp3E_-as0AzQsY5gQaJg==/com.google.android.youtube-FW8-VlJ9ca61UEQpaE4jhw==/base.apk type f2fs (rw,lazytime,seclabel,nosuid,nodev,noatime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,reserve_root=32768,resuid=0,resgid=1065,inlinecrypt,alloc_mode=default,checkpoint_merge,fsync_mode=nobarrier)

And this works! The app doesn't force quit when started and has all the Revanced features! Unfortunately, it seems like this must be done via the root user of the Magisk SSH module, which requires my laptop to be handy. It didn't work before when I was running as root via Termux directly, even though mount via Termux confirms that the mount is successful, with an identical output of mount | grep youtube when done via Termux or ssh.

I thought at first this was because Termux might be using its own mount binary (since one exists in the aforementioned bin folder), but I've added which mount to the start of the mount script and it confirms that as long as you start a root shell with su in Termux before running the mount script, it uses /system/bin/mount.

I'll continue investigating but any ideas you guys might have would be much appreciated because so far we know:

HeyItsJono commented 1 year ago

Still no closer to the root cause of all this, but as a small added convenience I can confirm that it's possible to use Termux as a client to SSH into my phone itself and run the mount script from there, and this also works, removing the need for a separate device to act as an SSH client. Still really roundabout though. Obviously this all needs to be done after removing the mount script from the Magisk service.d folder so it doesn't run at startup and cause the error-prone mount.

Steps:

  1. Open Termux, cd to $PREFIX/etc/ssh
  2. Generate a new keypair for the current user: ssh-keygen -t rsa 2048 -f USERNAME_id_rsa
  3. Add the generated public key to Magisk SSH's authorized_keys file (there are two, one for shell & one for root): su, then cat USERNAME_id_rsa.pub >> /data/ssh/root/.ssh/authorized_keys, then cat USERNAME_id_rsa.pub >> /data/ssh/shell/.ssh/authorized_keys, then exit to step back into the regular user
  4. Using Termux as a client, SSH into the Magisk SSH server: ssh root@localhost -i $PREFIX/etc/ssh/USERNAME_id_rsa
  5. Run the mount script: sh /data/data/com.termux/files/usr/bin/ytmount.sh (where ytmount.sh is my mount script from the prev. post)
  6. exit, exit to close Termux

This can be condensed into a single shell script once the initial setup above is done, so it can just be run quickly after each boot. For example, where ytmount.sh is your mount script, name the following ytssh.sh:

#!/system/bin/sh
ssh root@localhost -i $PREFIX/etc/ssh/USERNAME_id_rsa 'sh /data/data/com.termux/files/usr/bin/ytmount.sh'

Put it in /data/data/com.termux/files/usr/bin, and chmod +x to make it executable, then on each reboot you just have to open Termux and run ytssh.sh, then force-stop Youtube and restart it, it should be Revanced. You can use the Termux:Boot app to run the script at startup, making the whole process effectively automatic/seamless, but very much a jerry-rigged solution.

oSumAtrIX commented 1 year ago

Using SSH is kinda unelegant. You can elevate to a root user in the script directly. Have you tried that?

HeyItsJono commented 1 year ago

Using SSH is kinda unelegant. You can elevate to a root user in the script directly. Have you tried that?

I tried both of the following and neither worked, SSH seems to be the only way to get it to work for some reason.

#!/system/bin/sh
sudo sh /data/data/com.termux/files/usr/bin/ytmount.sh

and

#!/system/bin/sh
su -c 'sh /data/data/com.termux/files/usr/bin/ytmount.sh'

I also still have no idea what's different about manually mounting vs. the script mounting.

oSumAtrIX commented 1 year ago

The SSH server is still opening a shell for the user you login as. There's no difference in running the command with that user directly on the host, or over ssh via the same user.

HeyItsJono commented 1 year ago

The SSH server is still opening a shell for the user you login as. There's no difference in running the command with that user directly on the host, or over ssh via the same user.

I'm aware there shouldn't be, but in practice there is. I can't explain why. Even if I just use su to open a shell as root then manually run the command straight from the terminal (or use sh script.sh), it doesn't work.

There's also the question of why the mount works fine when the script runs manually, vs. force-quitting when run as a magisk service.d script.

oSumAtrIX commented 1 year ago

Well, it doesn't make much sense, check if the user is different in the ssh shell

HeyItsJono commented 1 year ago

id in each shell (via SSH, and directly on phone Termux) prints the same: uid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0

oSumAtrIX commented 1 year ago

In that case you are likely doing something wrong, as the commands are executed by the same user. Try recording both, via SSH and via normal shell.

senseigit commented 1 year ago

I faced this problem a while ago, and I thought that I should share it here, if anything is of worth to any of you. Basically problem was the same signin for both the apps was not working and I was having root version installed. Alongside the root version, I was also using yt revanced non root with microg. But, I was not signed in to the non root version. I played with some options here and there, like uninstalling reinstalling and repatching apps. Finally, tried uninstalling non root version and to my surprise, it worked.

Btw, Thanks for your time to build such good apps and all others pieces of software.

oSumAtrIX commented 1 year ago

Closing since no further reports of this issue exist.