ReVanced / revanced-integrations

🔩 ReVanced Integrations containing classes to be merged by ReVanced Patcher
https://revanced.app
GNU General Public License v3.0
720 stars 238 forks source link

bug: `List.stream()` does not exist in older SDKs #136

Closed souravdas142 closed 2 years ago

souravdas142 commented 2 years ago

Type

Error at runtime

Bug description

Versions:

Android 6.0.1 custom rom on Samsung J200g (2015)

YT: 17.33.42 revanced-patches-2.50.4.jar revanced-cli-2.9.5-all.jar app-release-unsigned.apk - v0.36.5 Vanced MicroG v0.2.24.220220

JDK:

openjdk 18.0.2 2022-07-19 OpenJDK Runtime Environment (build 18.0.2+0) OpenJDK 64-Bit Server VM (build 18.0.2+0, mixed mode)

Used Command to patch the app

java -jar revanced-cli-2.9.5-all.jar -a YouTube_v17.33.42_apkpure.com.apk -c -o revanced_17.33.42.apk -b revanced-patches-2.50.4.jar -m app-release-unsigned.apk -e swipe-controls -e downloads -e seekbar-tapping -e amoled -e disable-create-button -e hide-cast-button -e hide-autoplay-button -e premium-heading -e custom-branding -e disable-fullscreen-panels -e sponsorblock -e custom-video-buffer -e always-autorepeat -e custom-playback-speed -e hdr-auto-brightness -e return-youtube-dislike 

Problem Description :

Revanced keep crashing on every launch. Also observed (from hint) App is not crashing when there is no internet on the device. Means I can launch the app without internet connection and can do everything staying offline. on relavant section putting an log for that.

Steps to reproduce

Step 1: On android 6.0.1 samsung J200G build the app and install Step 2: Try to launch the app Step 3: you can reproduce now, the app is crashed.

Step 1: Now turn off Cellular data and wifi Step 2: Launch the app Step 3: you can see the app is not crashing anymore

Relevant log output

Steps followed for taking logs:

Step 1 : adb logcat -b all -c for flushing all buffers which are irrelevant Step 2 : adb logcat -b all | tee <output_file> taking out all logs from all buffers Step 3 : Letting the problem be reproduced, send SIGTERM to stop

the log is : youtube_revanced_17.33.42_with_microg.log

Screenshots or videos

No response

Solution

No response

Additional context

To Devs,

If anything is missing please let me know, I will try my best to give you, But please fix this.

Regards, Sourav

oSumAtrIX commented 2 years ago

This is due to the integrations being compiled for a later SDK than your phone supporting. Compile the integrations for your phones target SDK, you will notice the List.stream will not be found and check if you can reproduce this issue.

souravdas142 commented 2 years ago

@oSumAtrIX Thanks for a quick reply. Please see the Github Action Error:

Task :app:lintDebug FAILED Lint found 5 errors, 25 warnings. First failure:

/home/runner/work/revanced-integrations/revanced-integrations/app/src/main/java/app/revanced/integrations/patches/GeneralBytecodeAdsPatch.java:62: Error: Call requires API level 24 (current min is 23): java.util.Collection#stream [NewApi] bufferBlockList.stream().anyMatch(new String(buffer.array(), StandardCharsets.UTF_8)::contains)



The full lint text report is located at:
  /home/runner/work/revanced-integrations/revanced-integrations/app/build/intermediates/lint_intermediate_text_report/debug/lint-results-debug.txt

77 actionable tasks: 77 executed
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lintDebug'.
> Lint found errors in the project; aborting build.

  Fix the issues identified by lint, or create a baseline to see only new errors:
  ```
  android {
      lint {
          baseline = file("lint-baseline.xml")
      }
  }
  ```

  For more details, see https://developer.android.com/studio/write/lint#snapshot

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 13s
Error: Process completed with exit code 1.

with https://stackoverflow.com/questions/47042805/androidstudio-3-0-java-8-stream-not-compile-call-requires-api-level-24 can it be solved ? I have no experience with android please guide me. Thanks a lot.

Regards, Sourav

souravdas142 commented 2 years ago

and also see

BUILD FAILED in 1m 58s

Task :app:lintDebug FAILED Lint found 1 errors, 27 warnings. First failure:

/home/runner/work/revanced-integrations/revanced-integrations/app/build.gradle:11: Error: Google Play requires that apps target API level 30 or higher. [ExpiredTargetSdkVersion] targetSdkVersion 23



   Explanation for issues of type "ExpiredTargetSdkVersion":
   As of the second half of 2018, Google Play requires that new apps and app
   updates target API level 26 or higher.

   Configuring your app to target a recent API level ensures that users
   benefit from significant security and performance improvements, while still
   allowing your app to run on older Android versions (down to the
   minSdkVersion).

   To update your targetSdkVersion, follow the steps from "Meeting Google Play
   requirements for target API level",
   https://developer.android.com/distribute/best-practices/develop/target-sdk.
   html

   https://support.google.com/googleplay/android-developer/answer/113469#targetsdk
   https://developer.android.com/distribute/best-practices/develop/target-sdk.html

The full lint text report is located at:
  /home/runner/work/revanced-integrations/revanced-integrations/app/build/intermediates/lint_intermediate_text_report/debug/lint-results-debug.txt
77 actionable tasks: 77 executed
Error: Process completed with exit code 1.

For https://github.com/souravdas142/revanced-integrations/runs/8235342467?check_suite_focus=true

oSumAtrIX commented 2 years ago

You will need to use something else than Collection.stream as previously mentioned.

souravdas142 commented 2 years ago

Sorry, I have no experience with java also

but some search on google says https://stackoverflow.com/questions/39515035/is-it-possible-to-use-the-java-8-stream-api-on-android-api-24 https://stackoverflow.com/questions/47042805/androidstudio-3-0-java-8-stream-not-compile-call-requires-api-level-24

Can you please see this. I will be very grateful to you. Thank you.

souravdas142 commented 2 years ago

This is due to the integrations being compiled for a later SDK

If it is an issue for revanced-integrations, can you please move this issue to revanced-integrations repository ?

oSumAtrIX commented 2 years ago

Currently there's no plan to downgrade the min sdk. You have to adjust the code to something else then .stream().

Sculas commented 2 years ago

@oSumAtrIX What's the reason for this decision? It sounds like an easy fix, and since YouTube supports Android 6.0 and higher, so should we. Don't you think?

oSumAtrIX commented 2 years ago

Yeah it's a simple fix, checking for the SDK version in the code would allow to use .streams() along side.

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 0.36.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

souravdas142 commented 2 years ago

Hi @Sculas and @oSumAtrIX Thank you working like a charm. :smiley: :partying_face:

However, there is error in app.revanced.integrations.swipecontrols, without swipe-controls app is not crashing anymore. See the filtered logs

09-08 17:09:44.753  3128  3128 I power_partial_wake_state: [0,*job*/app.revanced.android.youtube/androidx.work.impl.background.systemjob.SystemJobService]
09-08 17:09:51.008  3128  5838 I am_kill : [0,5477,app.revanced.android.youtube,15,16,DHA:empty #31]
09-08 17:09:51.148  3128  3879 I am_proc_died: [0,5477,app.revanced.android.youtube,15,53,298]
09-08 17:09:56.188  3128  4539 I am_proc_start: [0,7753,80611719,10133,app.revanced.android.youtube,broadcast-4,app.revanced.android.youtube/com.google.android.libraries.notifications.entrypoints.restart.RestartReceiver]
09-08 17:09:56.213  3128  4848 I am_proc_bound: [0,7753,80611719,app.revanced.android.youtube]
09-08 17:10:08.118  3128  4854 D PackageManager: setEnabledSetting : userId = 0 packageName = app.revanced.android.youtube cmp = androidx.work.impl.background.systemalarm.RescheduleReceiver newState = 1 callingPackage = 10133
09-08 17:10:08.763  7753  7985 W MobStoreFlagStore: Unable to update local snapshot for com.google.android.libraries.performance.primes#app.revanced.android.youtube, may result in stale flags.
09-08 17:10:08.903  3128  4067 D PackageManager: setEnabledSetting : userId = 0 packageName = app.revanced.android.youtube cmp = androidx.work.impl.background.systemalarm.RescheduleReceiver newState = 1 callingPackage = 10133
09-08 17:10:10.843  7753  7907 W System.err: remove failed: ENOENT (No such file or directory) : /data/user/0/app.revanced.android.youtube/databases/104272331969535590922||.entitystore.bak
09-08 17:10:11.558  5844  5983 D GmsDummySvc: bound by: GetServiceRequest{serviceId=GASS, gmsVersion=223380000, packageName='app.revanced.android.youtube', extras=Bundle[{}]}
09-08 17:10:12.498  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=device_country value=de
09-08 17:10:13.258  4412  4412 I Timeline: Timeline: Activity_launch_request id:app.revanced.android.youtube time:95101
09-08 17:10:13.268  5844  5859 D ClearcutLoggerService: bound by: GetServiceRequest{serviceId=CLEARCUT_LOGGER, gmsVersion=223380000, packageName='app.revanced.android.youtube', extras=Bundle[{}]}
09-08 17:10:13.268  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.ad_id_cache_time value=null
09-08 17:10:13.273  5844  5982 D GmsAuthManagerSvc: getToken: account:sipradas883@gmail.com scope:oauth2:https://www.googleapis.com/auth/notifications extras:Bundle[{androidPackageName=app.revanced.android.youtube, clientPackageName=app.revanced.android.youtube, service_connection_start_time_millis=94884}], notify: false
09-08 17:10:13.368  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.monitoring.sample_period_millis value=null
09-08 17:10:13.393  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.config.cache_time value=null
09-08 17:10:13.448  3128  4988 I am_create_activity: [0,92233086,96,app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity,android.intent.action.MAIN,NULL,NULL,270532608,com.sec.android.app.launcher,0]
09-08 17:10:13.473  3128  4988 V WindowManager: addAppToken: AppWindowToken{9133b2c token=Token{32b62df ActivityRecord{57f5d7e u0 app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity t96}}} to stack=1 task=96 at 0
09-08 17:10:13.483  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.config.url_scheme value=null
09-08 17:10:13.483  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=gms:playlog:service:samplingrules_CHIME value=null
09-08 17:10:13.503  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.config.url_authority value=null
09-08 17:10:13.513  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_bundles value=null
09-08 17:10:13.513  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_batch_size value=null
09-08 17:10:13.543  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_bundle_size value=null
09-08 17:10:13.543  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_events_per_bundle value=null
09-08 17:10:13.548  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_events_per_day value=null
09-08 17:10:13.568  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_error_events_per_day value=null
09-08 17:10:13.588  3128  4988 I am_focused_activity: [0,app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity]
09-08 17:10:13.733  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_public_events_per_day value=null
09-08 17:10:13.743  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_conversions_per_day value=null
09-08 17:10:13.793  3128  3879 D ActivityManager:  Launching app.revanced.android.youtube, updated priority
09-08 17:10:13.853  3128  3879 I am_restart_activity: [0,92233086,96,app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity,0]
09-08 17:10:13.863  3128  3128 D GameManagerService: NotifyRunnable. pkg: app.revanced.android.youtube, type: 4, isMinimized: false, isTunableApp: false
09-08 17:10:13.898  3128  3490 V WindowStateAnimator: Finishing drawing window Window{6fc222e u0 d0 p3128 Starting app.revanced.android.youtube}: mDrawState=DRAW_PENDING
09-08 17:10:13.898  3128  3424 V MARsPolicyManager: updatePackagesScore PackageInfo name -- app.revanced.android.youtube
09-08 17:10:13.938  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_realtime_events_per_day value=null
09-08 17:10:13.948  3128  6700 D GameManagerService: identifyGamePackage. app.revanced.android.youtube
09-08 17:10:13.948  3128  3425 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{6fc222e u0 d0 p3128 Starting app.revanced.android.youtube}
09-08 17:10:13.968  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.store.max_stored_events_per_app value=null
09-08 17:10:13.983  3128  6700 D GameManagerService: identifyGamePackage. app.revanced.android.youtube
09-08 17:10:14.003  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.url value=null
09-08 17:10:14.008  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.backoff_period value=null
09-08 17:10:14.018  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.window_interval value=null
09-08 17:10:14.033  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.interval value=null
09-08 17:10:14.058  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.realtime_upload_interval value=null
09-08 17:10:14.098  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.debug_upload_interval value=null
09-08 17:10:14.108  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.minimum_delay value=null
09-08 17:10:14.133  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.alarm_manager.minimum_interval value=null
09-08 17:10:14.158  3128  6700 D GameManagerService: identifyGamePackage. app.revanced.android.youtube
09-08 17:10:14.198  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.stale_data_deletion_interval value=null
09-08 17:10:14.198  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.refresh_blacklisted_config_interval value=null
09-08 17:10:14.238  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.initial_upload_delay_time value=null
09-08 17:10:14.268  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.retry_time value=null
09-08 17:10:14.368  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.retry_count value=null
09-08 17:10:14.398  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.upload.max_queue_time value=null
09-08 17:10:14.423  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.lifetimevalue.max_currency_tracked value=null
09-08 17:10:14.583  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.audience.filter_result_max_count value=null
09-08 17:10:14.628  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.service_client.idle_disconnect_millis value=null
09-08 17:10:15.003  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.test.boolean_flag value=null
09-08 17:10:15.038  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.test.string_flag value=null
09-08 17:10:15.228  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.test.long_flag value=null
09-08 17:10:15.273  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.test.int_flag value=null
09-08 17:10:15.308  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.test.double_flag value=null
09-08 17:10:15.438  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.experiment.max_ids value=null
09-08 17:10:15.468  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.max_bundles_per_iteration value=null
09-08 17:10:15.568  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.sdk.attribution.cache.ttl value=null
09-08 17:10:15.598  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.redaction.app_instance_id.ttl value=null
09-08 17:10:15.673  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.collection.log_event_and_bundle_v2 value=null
09-08 17:10:15.793  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.audience.use_bundle_end_timestamp_for_non_sequence_property_filters value=null
09-08 17:10:15.803  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.audience.refresh_event_count_filters_timestamp value=null
09-08 17:10:15.818  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.audience.use_bundle_timestamp_for_event_count_filters value=null
09-08 17:10:15.828  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.sdk.collection.retrieve_deeplink_from_bow_2 value=null
09-08 17:10:15.858  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.sdk.collection.last_deep_link_referrer_campaign2 value=null
09-08 17:10:15.858  5844  5983 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:15.898  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.lifecycle.app_in_background_parameter value=null
09-08 17:10:15.938  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.integration.disable_firebase_instance_id value=null
09-08 17:10:15.958  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.collection.service.update_with_analytics_fix value=null
09-08 17:10:16.023  5844  8321 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.client.firebase_feature_rollout.v1.enable value=null
09-08 17:10:16.028  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.client.sessions.check_on_reset_and_enable2 value=null
09-08 17:10:16.033  5844  5983 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.collection.synthetic_data_mitigation value=null
09-08 17:10:16.038  5844  5859 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.service.storage_consent_support_version value=null
09-08 17:10:16.048  5844  8321 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.client.click_identifier_control.dev value=null
09-08 17:10:16.053  5844  5871 D GmsServicesProvider: query caller=app.revanced.android.youtube name=measurement.service.click_identifier_control value=null
09-08 17:10:16.683  7753  8266 I FA      :   adb shell setprop debug.firebase.analytics.app app.revanced.android.youtube
09-08 17:10:16.778  7753  7753 I Timeline: Timeline: Activity_launch_request id:app.revanced.android.youtube time:98621
09-08 17:10:16.993  3128  3879 I am_create_activity: [0,80108137,96,app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity,android.intent.action.MAIN,NULL,NULL,335544320,app.revanced.android.youtube,0]
09-08 17:10:16.993  3128  3879 V WindowManager: addAppToken: AppWindowToken{40c558f token=Token{e36acee ActivityRecord{4c65a69 u0 app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity t96}}} to stack=1 task=96 at 1
09-08 17:10:16.993  3128  3425 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{6fc222e u0 d0 p3128 Starting app.revanced.android.youtube}
09-08 17:10:16.998  3128  3879 I am_pause_activity: [0,92233086,app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity,0]
09-08 17:10:17.008  3128  3879 I am_focused_activity: [0,app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity]
09-08 17:10:17.198  3128  4957 I am_finish_activity: [0,92233086,96,app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity,app-request,0]
09-08 17:10:17.513  3128  3424 W ActivityManager: Activity pause timeout for ActivityRecord{57f5d7e u0 app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity t96 f}
09-08 17:10:17.518  3128  3424 I am_restart_activity: [0,80108137,96,app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity,0]
09-08 17:10:17.528  3128  3128 D GameManagerService: NotifyRunnable. pkg: app.revanced.android.youtube, type: 4, isMinimized: false, isTunableApp: false
09-08 17:10:17.598  3128  3424 V MARsPolicyManager: updatePackagesScore PackageInfo name -- app.revanced.android.youtube
09-08 17:10:17.993  3128  4067 I am_failed_to_pause: [0,92233086,app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity,(none)]
09-08 17:10:23.248  3128  5836 D PackageManager: setEnabledSetting : userId = 0 packageName = app.revanced.android.youtube cmp = androidx.work.impl.background.systemalarm.RescheduleReceiver newState = 1 callingPackage = 10133
09-08 17:10:23.423  5844  5982 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:23.888  3128  3424 I am_destroy_activity: [0,92233086,96,app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity,finish-idle,0]
09-08 17:10:24.138  3128  3409 I am_pss  : [7753,10133,app.revanced.android.youtube,80768000,77680640]
09-08 17:10:24.408  5844  5859 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:25.098  3128  5837 D PackageManager: setEnabledSetting : userId = 0 packageName = app.revanced.android.youtube cmp = androidx.work.impl.background.systemalarm.RescheduleReceiver newState = 1 callingPackage = 10133
09-08 17:10:25.783  3128  4988 D PackageManager: setEnabledSetting : userId = 0 packageName = app.revanced.android.youtube cmp = androidx.work.impl.background.systemalarm.RescheduleReceiver newState = 1 callingPackage = 10133
09-08 17:10:26.938  3128  5838 D PackageManager: setEnabledSetting : userId = 0 packageName = app.revanced.android.youtube cmp = androidx.work.impl.background.systemalarm.RescheduleReceiver newState = 1 callingPackage = 10133
09-08 17:10:29.333  3128  4434 D PackageManager: setEnabledSetting : userId = 0 packageName = app.revanced.android.youtube cmp = androidx.work.impl.background.systemalarm.RescheduleReceiver newState = 1 callingPackage = 10133
09-08 17:10:31.798  7753  7915 E GoogleApiManager: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=app.revanced.android.youtube, sha256=[b1a51cfab0b60f4f8d9029685365387aabab0520025ebe2237148a42e3a7423f], atk=false, ver=222615016.true (go/gsrlt)
09-08 17:10:31.978  7753  7915 E GoogleApiManager: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=app.revanced.android.youtube, sha256=[b1a51cfab0b60f4f8d9029685365387aabab0520025ebe2237148a42e3a7423f], atk=false, ver=222615016.true (go/gsrlt)
09-08 17:10:32.613  5844  5871 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:32.618  5844  8321 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:33.738  5844  5859 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:33.748  5844  5871 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:33.903  3128  3424 W ActivityManager: Activity destroy timeout for ActivityRecord{57f5d7e u0 app.revanced.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity t96 f}
09-08 17:10:33.983  3128  3148 V BroadcastQueue: [background] Process cur broadcast BroadcastRecord{5948812 u-1 android.intent.action.TIME_SET qIdx=4}, state= (APP_RECEIVE) DELIVERED for app ProcessRecord{4ce0987 7753:app.revanced.android.youtube/u0a133}
09-08 17:10:34.003  5844  5859 D MeasurementService: bound by: GetServiceRequest{serviceId=MEASUREMENT, gmsVersion=223380000, packageName='app.revanced.android.youtube', extras=Bundle[{}]}
09-08 17:10:35.548  5844  5982 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:35.643  5844  5859 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:35.708  3128  4850 D PackageManager: setEnabledSetting : userId = 0 packageName = app.revanced.android.youtube cmp = androidx.mediarouter.media.MediaTransferReceiver newState = 2 callingPackage = 10133
09-08 17:10:36.183  3128  3425 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{b30abf4 u0 d0 p7753 app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity}
09-08 17:10:37.758  3128  3879 I am_activity_launch_time: [0,80108137,app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity,20240,24025]
09-08 17:10:38.323  5844  5871 D GmsIcingLightIndexSvc: bound by: GetServiceRequest{serviceId=LIGHTWEIGHT_INDEX, gmsVersion=223380000, packageName='app.revanced.android.youtube', extras=Bundle[{}]}
09-08 17:10:38.343  5844  5983 D MeasurementService: f4() for AppMetadata[app.revanced.android.youtube]
09-08 17:10:38.443  5844  5982 D GmsAuthManagerSvc: getToken: account:sipradas883@gmail.com scope:oauth2:https://www.googleapis.com/auth/identity.lateimpersonation https://www.googleapis.com/auth/youtube https://www.googleapis.com/auth/assistant-sdk-prototype https://www.googleapis.com/auth/photos.image.readonly https://www.googleapis.com/auth/accounts.reauth https://www.googleapis.com/auth/youtube.force-ssl https://www.googleapis.com/auth/peopleapi.readonly extras:Bundle[{androidPackageName=app.revanced.android.youtube, clientPackageName=app.revanced.android.youtube, service_connection_start_time_millis=120192, handle_notification=true}], notify: true
09-08 17:10:38.453  5844  5859 D GmsAuthManagerSvc: getToken: account:sipradas883@gmail.com scope:oauth2:https://www.googleapis.com/auth/notifications extras:Bundle[{androidPackageName=app.revanced.android.youtube, clientPackageName=app.revanced.android.youtube, service_connection_start_time_millis=120158}], notify: false
09-08 17:10:38.508  5844  8751 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:38.563  5844  5983 D GmsServiceBroker: Service not supported: GetServiceRequest{serviceId=UNKNOWN(161), gmsVersion=223380000, packageName='app.revanced.android.youtube', extras=Bundle[EMPTY_PARCEL]}
09-08 17:10:38.618  5844  5983 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:38.788  5844  8751 D GmsAuthManagerSvc: clearToken: token:ya29.a0AVA9y1sxuOhjNm4p_ltWoALukdus_jbUGjfsB0I_pE_iqQBixNff_Q8JGxVPQ-JwwKgg4pkaCHEO8qwHrZG5C0gG2q1QpaNXNLSM8qZ8h9kMOX0PPthUQOQa50v4LGEwM8MW0UEQx6CRvSDXcsTo3P0nvPwY9R-KL06AUBu6kHzoJfTD57n51pQGLqoZtT_r1mE-Kab8zjLj15PutjXtd29FNhITCAjuWKckBj9t7gbb1oHnYMG_nSVpDWWN2tFtIv73HNglzwGx70RU3zXLObIP3DTwhpdFWBkzSfskKdG9i2RbbXy-EllVVQaCgYKATASAQASFQE65dr8CRcNY-qXxi_aZWj1OR-VmA0321 extras:Bundle[{androidPackageName=app.revanced.android.youtube, clientPackageName=app.revanced.android.youtube, service_connection_start_time_millis=120550}]
09-08 17:10:38.898  3128  4957 V WindowStateAnimator: Finishing drawing window Window{b30abf4 u0 d0 p7753 app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity}: mDrawState=DRAW_PENDING
09-08 17:10:38.918  5844  5871 D GmsAuthProvider: Call from app.revanced.android.youtube
09-08 17:10:38.928  3128  3490 I am_activity_launch_time: [0,80108137,app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity,21414,25199]
09-08 17:10:38.933  3128  3490 I ActivityManager: Displayed app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity: +21s414ms (total +25s199ms)
09-08 17:10:38.943  3128  3490 I Timeline: Timeline: Activity_windows_visible id: ActivityRecord{4c65a69 u0 app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity t96} time:120787
09-08 17:10:39.253  5844  5983 D MeasurementService: f11() for AppMetadata[app.revanced.android.youtube]
09-08 17:10:39.308  5844  5859 D MeasurementService: setDefaultEventParameters(Bundle[EMPTY_PARCEL]) for AppMetadata[app.revanced.android.youtube]
09-08 17:10:39.328  5844  5871 D MeasurementService: f10(-3051163495142108903, null, WatchWhileActivity, app.revanced.android.youtube)
09-08 17:10:39.733  3128  4850 V WindowStateAnimator: Finishing drawing window Window{b30abf4 u0 d0 p7753 app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity}: mDrawState=HAS_DRAWN
09-08 17:10:39.828  5844  8751 D GmsAuthManagerSvc: getToken: account:sipradas883@gmail.com scope:oauth2:https://www.googleapis.com/auth/identity.lateimpersonation https://www.googleapis.com/auth/youtube https://www.googleapis.com/auth/assistant-sdk-prototype https://www.googleapis.com/auth/photos.image.readonly https://www.googleapis.com/auth/accounts.reauth https://www.googleapis.com/auth/youtube.force-ssl https://www.googleapis.com/auth/peopleapi.readonly extras:Bundle[{androidPackageName=app.revanced.android.youtube, clientPackageName=app.revanced.android.youtube, service_connection_start_time_millis=121607, handle_notification=true}], notify: true
09-08 17:10:40.978  3128  6700 D SurveyLogging: app_id = com.android.server.ssrm, feature = SLUG, extra = {"S_INFO":"73200/app.revanced.android.youtube/266/0/1", "SSRM":"2/-1/533/44/22892/1584664/X/X/X/X", "MEMINFO":"917140/32844/3120/240720/159780/159936/117952/117788/524284/100152/177252", "OOMINFO":"61368/97475/94981/6218/220579/79610/61295/0/0/36226/0/0/11653/260298", "UPTIME":"122.80"}
09-08 17:10:41.643  3128  6700 D GameManagerService: identifyGamePackage. app.revanced.android.youtube
09-08 17:10:42.068  7753  7753 E MessageQueue-JNI:  at app.revanced.integrations.swipecontrols.SwipeControlsHostActivity.dispatchTouchEvent(SwipeControlsHostActivity.kt:112)
09-08 17:10:42.228  7753  7753 E AndroidRuntime: Process: app.revanced.android.youtube, PID: 7753
09-08 17:10:42.228  7753  7753 E AndroidRuntime:    at app.revanced.integrations.swipecontrols.SwipeControlsHostActivity.dispatchTouchEvent(SwipeControlsHostActivity.kt:112)
09-08 17:10:42.268  3128  4434 I am_crash: [7753,0,app.revanced.android.youtube,953925188,kotlin.UninitializedPropertyAccessException,lateinit property gesture has not been initialized,SwipeControlsHostActivity.kt,112]
09-08 17:10:42.373  3128  4434 W ActivityManager:   Force finishing activity app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity
09-08 17:10:42.373  3128  4434 I am_finish_activity: [0,80108137,96,app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity,force-crash,0]
09-08 17:10:42.463  3128  4434 I am_pause_activity: [0,80108137,app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity,0]
09-08 17:10:42.743  3128  3425 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{50c25ff u0 d0 p3128 Application Error: app.revanced.android.youtube}
09-08 17:10:42.833  3128  3425 V WindowStateAnimator: Finishing drawing window Window{50c25ff u0 d0 p3128 Application Error: app.revanced.android.youtube}: mDrawState=DRAW_PENDING
09-08 17:10:42.833  3128  3425 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{50c25ff u0 d0 p3128 Application Error: app.revanced.android.youtube}
09-08 17:10:42.863  3128  3425 V WindowStateAnimator: Finishing drawing window Window{50c25ff u0 d0 p3128 Application Error: app.revanced.android.youtube}: mDrawState=HAS_DRAWN
09-08 17:10:42.963  3128  3424 W ActivityManager: Activity pause timeout for ActivityRecord{4c65a69 u0 app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity t96 f}
09-08 17:10:43.803  3128  3424 W BroadcastQueue: Skipping deliver [background] BroadcastRecord{2b96a06 u-1 android.net.conn.CONNECTIVITY_CHANGE qIdx=4}, state= (IDLE) to ReceiverList{899f648 7753 app.revanced.android.youtube/10133/u0 remote:51e8eb}: process crashing
09-08 17:10:43.908  3128  3424 I am_destroy_activity: [0,80108137,96,app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity,finish-imm,0]
09-08 17:10:44.078  4148  4148 I ApplicationPackageManager: load=app.revanced.android.youtube, bg=72-72, dr=72-72
09-08 17:10:44.123  3128  4988 V BroadcastQueue: [background] Process cur broadcast BroadcastRecord{96b443a u-1 android.intent.action.TIMEZONE_CHANGED qIdx=4}, state= (APP_RECEIVE) DELIVERED for app ProcessRecord{4ce0987 7753:app.revanced.android.youtube/u0a133}
09-08 17:10:46.033  3128  4854 I am_proc_died: [0,7753,app.revanced.android.youtube,0,96,229]
09-08 17:10:46.033  3128  4854 I ActivityManager: Process app.revanced.android.youtube (pid 7753)(adj 0) has died(96,229)
09-08 17:10:46.038  3128  4434 I WindowState: WIN DEATH: Window{b30abf4 u0 d0 p7753 app.revanced.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity}
09-08 17:10:46.063  3128  4854 I am_broadcast_discard_app: [0,158024762,android.intent.action.TIMEZONE_CHANGED,11,ResolveInfo{ec90790 app.revanced.android.youtube/com.google.android.libraries.notifications.entrypoints.timezonechanged.TimezoneChangedReceiver m=0x108000}]
09-08 17:10:46.068  3128  4854 D ActivityManager: removeProcessNameLocked mProcessNames.remove pid=7753 ,hash=80611719 ,name=app.revanced.android.youtube
09-08 17:10:46.083  3128  3424 D MountService: getExternalStorageMountMode : final mountMode=1, uid : 10133, packageName : app.revanced.android.youtube
09-08 17:10:46.108  3128  3424 I am_proc_start: [0,8866,88492169,10133,app.revanced.android.youtube,broadcast-3,app.revanced.android.youtube/androidx.work.impl.background.systemalarm.RescheduleReceiver]
09-08 17:10:46.108  3128  3424 I ActivityManager: Start proc 8866:app.revanced.android.youtube/u0a133 for broadcast-3 app.revanced.android.youtube/androidx.work.impl.background.systemalarm.RescheduleReceiver
09-08 17:10:46.113  8866  8866 W SELinux : SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=app.revanced.android.youtube 
09-08 17:10:46.118  2251  2251 I sf_frame_dur: [Application Error: app.revanced.android.youtube,23,0,0,0,0,1,1]
09-08 17:10:46.158  3128  4848 I am_proc_bound: [0,8866,88492169,app.revanced.android.youtube]
09-08 17:10:46.168  3128  4848 V BroadcastQueue: [background] Process cur broadcast BroadcastRecord{96b443a u-1 android.intent.action.TIMEZONE_CHANGED qIdx=4}, state= (APP_RECEIVE) DELIVERED for app ProcessRecord{5464889 8866:app.revanced.android.youtube/u0a133}
09-08 17:10:46.718  8866  8866 W PatchedPackageManager: resolveContentProvider flags: 128 ret: ContentProviderInfo{name=app.revanced.android.youtube.fileprovider className=com.google.android.apps.youtube.app.common.util.MainAppFileProviderCompat}

See the full logs from all buffers : revanced_17.33.42_c.log

And please reopen the issue if needed. However it seems this is an issue of swipe-controls patch under revanced-patches repo. Thanks once again.

Sculas commented 2 years ago

I can't find an error in the filtered logs you've sent. But yeah, for this let's move to revanced-patches. Could you make an issue there whenever you have the time? :)

souravdas142 commented 2 years ago

yeah sure. I am creating now. Thank you.