From 735630c5e37685ae724b0f55fdb968a537e35138 Mon Sep 17 00:00:00 2001 From: WSTxda Date: Wed, 5 Jun 2024 11:48:26 -0300 Subject: [PATCH] Change default group id to ReVanced --- play-services-base/build.gradle | 3 +++ play-services-basement/src/main/AndroidManifest.xml | 2 +- play-services-cast-framework/build.gradle | 4 ++++ play-services-cast-framework/src/main/AndroidManifest.xml | 8 ++++---- play-services-cast/core/build.gradle | 4 ++++ play-services-cast/core/src/main/AndroidManifest.xml | 2 +- play-services-core/src/main/AndroidManifest.xml | 2 +- play-services-gcm/build.gradle | 4 ++++ play-services-gcm/src/main/AndroidManifest.xml | 2 +- .../com/google/android/gms/gcm/GcmListenerService.java | 2 +- .../com/google/android/gms/gcm/GcmNetworkManager.java | 4 ++-- .../main/java/com/google/android/gms/gcm/GcmReceiver.java | 8 ++++---- .../java/com/google/android/gms/gcm/GcmTaskService.java | 4 ++-- play-services-iid/build.gradle | 4 ++++ play-services-iid/src/main/AndroidManifest.xml | 2 +- .../google/android/gms/iid/InstanceIDListenerService.java | 2 +- 16 files changed, 38 insertions(+), 19 deletions(-) diff --git a/play-services-base/build.gradle b/play-services-base/build.gradle index dc7a3f4d52..057c80fd22 100644 --- a/play-services-base/build.gradle +++ b/play-services-base/build.gradle @@ -30,12 +30,15 @@ android { buildFeatures { aidl = true + buildConfig = true } defaultConfig { versionName version minSdkVersion androidMinSdk targetSdkVersion androidTargetSdk + + buildConfigField "String", "BASE_PACKAGE_NAME", "\"$basePackageName\"" } compileOptions { diff --git a/play-services-basement/src/main/AndroidManifest.xml b/play-services-basement/src/main/AndroidManifest.xml index 06561f90b1..442d0642c2 100644 --- a/play-services-basement/src/main/AndroidManifest.xml +++ b/play-services-basement/src/main/AndroidManifest.xml @@ -7,7 +7,7 @@ diff --git a/play-services-cast-framework/build.gradle b/play-services-cast-framework/build.gradle index 267c69ac90..dbc01758bf 100644 --- a/play-services-cast-framework/build.gradle +++ b/play-services-cast-framework/build.gradle @@ -21,6 +21,10 @@ android { versionName version minSdkVersion androidMinSdk targetSdkVersion androidTargetSdk + + manifestPlaceholders = [ + basePackageName: "$basePackageName" + ] } compileOptions { diff --git a/play-services-cast-framework/src/main/AndroidManifest.xml b/play-services-cast-framework/src/main/AndroidManifest.xml index 4fddd28710..3de4f33dd1 100644 --- a/play-services-cast-framework/src/main/AndroidManifest.xml +++ b/play-services-cast-framework/src/main/AndroidManifest.xml @@ -9,21 +9,21 @@ - + diff --git a/play-services-cast/core/build.gradle b/play-services-cast/core/build.gradle index 787acccc56..9a256ed892 100644 --- a/play-services-cast/core/build.gradle +++ b/play-services-cast/core/build.gradle @@ -32,6 +32,10 @@ android { versionName version minSdkVersion androidMinSdk targetSdkVersion androidTargetSdk + + manifestPlaceholders = [ + basePackageName: "$basePackageName" + ] } buildFeatures { diff --git a/play-services-cast/core/src/main/AndroidManifest.xml b/play-services-cast/core/src/main/AndroidManifest.xml index f25508e6ae..d1095e801b 100644 --- a/play-services-cast/core/src/main/AndroidManifest.xml +++ b/play-services-cast/core/src/main/AndroidManifest.xml @@ -15,7 +15,7 @@ - + diff --git a/play-services-core/src/main/AndroidManifest.xml b/play-services-core/src/main/AndroidManifest.xml index ec37cabfac..d1cb995cc5 100644 --- a/play-services-core/src/main/AndroidManifest.xml +++ b/play-services-core/src/main/AndroidManifest.xml @@ -71,7 +71,7 @@ - + diff --git a/play-services-gcm/build.gradle b/play-services-gcm/build.gradle index 60c68023f8..b888c28654 100644 --- a/play-services-gcm/build.gradle +++ b/play-services-gcm/build.gradle @@ -15,6 +15,10 @@ android { versionName version minSdkVersion androidMinSdk targetSdkVersion androidTargetSdk + + manifestPlaceholders = [ + basePackageName: "$basePackageName" + ] } compileOptions { diff --git a/play-services-gcm/src/main/AndroidManifest.xml b/play-services-gcm/src/main/AndroidManifest.xml index 31cd4d453a..cfc1bb78f3 100644 --- a/play-services-gcm/src/main/AndroidManifest.xml +++ b/play-services-gcm/src/main/AndroidManifest.xml @@ -18,7 +18,7 @@ - + diff --git a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmListenerService.java b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmListenerService.java index ccf99acf61..6d911479a2 100644 --- a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmListenerService.java +++ b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmListenerService.java @@ -53,7 +53,7 @@ * android:name=".YourGcmListenerService" * android:exported="false" > * - * + * * * */ diff --git a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmNetworkManager.java b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmNetworkManager.java index a7ee9a8940..fc809ce25d 100644 --- a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmNetworkManager.java +++ b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmNetworkManager.java @@ -67,9 +67,9 @@ *
  * 
+ *     android:permission="${basePackageName}.android.gms.permission.BIND_NETWORK_TASK_SERVICE" >
  *     
- *        
+ *        
  *     
  * 
  * 
diff --git a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmReceiver.java b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmReceiver.java index 1df70bccb0..ed3d5b96a1 100644 --- a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmReceiver.java +++ b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmReceiver.java @@ -44,12 +44,12 @@ *

*

  * 
+ *     android:permission="${basePackageName}.android.c2dm.permission.SEND" >
  *     
- *         
- *         
+ *         
+ *         
  *         
  *     
  * 
diff --git a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmTaskService.java b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmTaskService.java index 0d790589ca..ba7ca20d55 100644 --- a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmTaskService.java +++ b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GcmTaskService.java @@ -38,10 +38,10 @@ * {@link com.google.android.gms.gcm.GcmTaskService#SERVICE_ACTION_EXECUTE_TASK}. Here's an example: *
  *     
  *              
- *                  
+ *                  
  *              
  *     
  * 
diff --git a/play-services-iid/build.gradle b/play-services-iid/build.gradle index d6b9231620..b7e9024f76 100644 --- a/play-services-iid/build.gradle +++ b/play-services-iid/build.gradle @@ -19,6 +19,10 @@ android { versionName version minSdkVersion androidMinSdk targetSdkVersion androidTargetSdk + + manifestPlaceholders = [ + basePackageName: "$basePackageName" + ] } compileOptions { diff --git a/play-services-iid/src/main/AndroidManifest.xml b/play-services-iid/src/main/AndroidManifest.xml index 5a3b72361e..21c850f3d1 100644 --- a/play-services-iid/src/main/AndroidManifest.xml +++ b/play-services-iid/src/main/AndroidManifest.xml @@ -7,6 +7,6 @@ - + diff --git a/play-services-iid/src/main/java/com/google/android/gms/iid/InstanceIDListenerService.java b/play-services-iid/src/main/java/com/google/android/gms/iid/InstanceIDListenerService.java index c7bf61c78e..6e160f6550 100644 --- a/play-services-iid/src/main/java/com/google/android/gms/iid/InstanceIDListenerService.java +++ b/play-services-iid/src/main/java/com/google/android/gms/iid/InstanceIDListenerService.java @@ -43,7 +43,7 @@ *
  * 
  *     
- *         
+ *         
  *     
  * 
* Do not export this service. Instead, keep it private to prevent other apps