Browse Source

branding: attempt to unfuck installs

master
Ave 2 weeks ago
parent
commit
4efc74504f
Signed by: Ave Ozkal <[email protected]> GPG Key ID: 09356ABAA42C842B
1 changed files with 32 additions and 10 deletions
  1. 32
    10
      patches/branding/910.patch

+ 32
- 10
patches/branding/910.patch View File

@@ -1,6 +1,6 @@
1 1
 diff -crB com.discord-910-base/AndroidManifest.xml com.discord-910/AndroidManifest.xml
2 2
 *** com.discord-910-base/AndroidManifest.xml	2019-06-25 14:39:50.202736617 +0300
3
---- com.discord-910/AndroidManifest.xml	2019-06-25 14:42:56.787206632 +0300
3
+--- com.discord-910/AndroidManifest.xml	2019-06-25 15:56:07.584361345 +0300
4 4
 ***************
5 5
 *** 1,4 ****
6 6
 ! <?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:compileSdkVersion="28" android:compileSdkVersionCodename="9" android:installLocation="auto" package="com.discord" platformBuildVersionCode="910" platformBuildVersionName="9.1.0">
@@ -13,7 +13,11 @@ diff -crB com.discord-910-base/AndroidManifest.xml com.discord-910/AndroidManife
13 13
       <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
14 14
       <uses-feature android:name="android.hardware.faketouch" android:required="false"/>
15 15
 ***************
16
-*** 22,28 ****
16
+*** 18,28 ****
17
+      <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
18
+      <uses-permission android:name="android.permission.VIBRATE"/>
19
+      <uses-permission android:name="android.permission.WAKE_LOCK"/>
20
+!     <permission android:description="@string/app_permission_connect_desc" android:label="@string/app_permission_connect_label" android:name="com.discord.permission.CONNECT" android:protectionLevel="dangerous"/>
17 21
       <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
18 22
       <uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/>
19 23
       <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
@@ -21,7 +25,11 @@ diff -crB com.discord-910-base/AndroidManifest.xml com.discord-910/AndroidManife
21 25
           <activity android:name="com.discord.app.AppActivity" android:screenOrientation="fullUser" android:theme="@style/AppTheme.Dark" android:windowSoftInputMode="adjustResize|stateHidden"/>
22 26
           <activity android:exported="true" android:launchMode="singleTask" android:name="com.discord.app.AppActivity$Main" android:screenOrientation="fullUser" android:theme="@style/AppTheme.Loading" android:windowSoftInputMode="adjustResize|stateHidden">
23 27
               <intent-filter>
24
---- 22,28 ----
28
+--- 18,28 ----
29
+      <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
30
+      <uses-permission android:name="android.permission.VIBRATE"/>
31
+      <uses-permission android:name="android.permission.WAKE_LOCK"/>
32
+!     <permission android:description="@string/app_permission_connect_desc" android:label="@string/app_permission_connect_label" android:name="com.cutthecord.permission.CONNECT" android:protectionLevel="dangerous"/>
25 33
       <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
26 34
       <uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/>
27 35
       <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
@@ -30,6 +38,23 @@ diff -crB com.discord-910-base/AndroidManifest.xml com.discord-910/AndroidManife
30 38
           <activity android:exported="true" android:launchMode="singleTask" android:name="com.discord.app.AppActivity$Main" android:screenOrientation="fullUser" android:theme="@style/AppTheme.Loading" android:windowSoftInputMode="adjustResize|stateHidden">
31 39
               <intent-filter>
32 40
 ***************
41
+*** 76,82 ****
42
+                  <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
43
+              </intent-filter>
44
+          </service>
45
+!         <service android:exported="true" android:name="com.discord.app.DiscordConnectService" android:permission="com.discord.permission.CONNECT">
46
+              <intent-filter>
47
+                  <action android:name="com.discord.intent.action.CONNECT"/>
48
+                  <data android:host="app" android:pathPattern="/connect/.*" android:scheme="discord"/>
49
+--- 76,82 ----
50
+                  <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
51
+              </intent-filter>
52
+          </service>
53
+!         <service android:exported="true" android:name="com.discord.app.DiscordConnectService" android:permission="com.cutthecord.permission.CONNECT">
54
+              <intent-filter>
55
+                  <action android:name="com.discord.intent.action.CONNECT"/>
56
+                  <data android:host="app" android:pathPattern="/connect/.*" android:scheme="discord"/>
57
+***************
33 58
 *** 104,110 ****
34 59
           </receiver>
35 60
           <service android:enabled="true" android:exported="false" android:name="com.google.android.gms.analytics.CampaignTrackingService"/>
@@ -102,10 +127,9 @@ diff -crB com.discord-910-base/AndroidManifest.xml com.discord-910/AndroidManife
102 127
           <meta-data android:name="com.android.vending.derived.apk.id" android:value="1"/>
103 128
       </application>
104 129
 ! </manifest>
105
-Only in com.discord-910: AndroidManifest.xml.orig
106 130
 diff -crB com.discord-910-base/apktool.yml com.discord-910/apktool.yml
107 131
 *** com.discord-910-base/apktool.yml	2019-06-25 14:39:19.485883767 +0300
108
---- com.discord-910/apktool.yml	2019-06-25 14:42:56.787206632 +0300
132
+--- com.discord-910/apktool.yml	2019-06-25 15:45:44.557145780 +0300
109 133
 ***************
110 134
 *** 308,312 ****
111 135
     tag: null
@@ -121,7 +145,7 @@ diff -crB com.discord-910-base/apktool.yml com.discord-910/apktool.yml
121 145
 !   versionName: 9.1.0-cutthecord-CTCBUILD
122 146
 diff -crB com.discord-910-base/res/values/strings.xml com.discord-910/res/values/strings.xml
123 147
 *** com.discord-910-base/res/values/strings.xml	2019-06-25 14:39:16.372531599 +0300
124
---- com.discord-910/res/values/strings.xml	2019-06-25 14:43:27.980730002 +0300
148
+--- com.discord-910/res/values/strings.xml	2019-06-25 15:45:44.563812489 +0300
125 149
 ***************
126 150
 *** 1304,1310 ****
127 151
       <string name="disconnect_account_body">Disconnecting your account might remove you from servers you joined via this account.</string>
@@ -173,11 +197,9 @@ diff -crB com.discord-910-base/res/values/strings.xml com.discord-910/res/values
173 197
       <string name="suppress_all_embeds">Remove all embeds</string>
174 198
       <string name="suppressed">Suppressed</string>
175 199
       <string name="suppressed_afk_body">"It seems you've gone AFK on us. We've went ahead and moved you to the AFK channel."</string>
176
-Only in com.discord-910/res/values: strings.xml.orig
177
-Only in com.discord-910/res/values: strings.xml.rej
178 200
 diff -crB com.discord-910-base/smali/com/discord/app/e.smali com.discord-910/smali/com/discord/app/e.smali
179 201
 *** com.discord-910-base/smali/com/discord/app/e.smali	2019-06-25 14:39:17.615872454 +0300
180
---- com.discord-910/smali/com/discord/app/e.smali	2019-06-25 14:42:56.787206632 +0300
202
+--- com.discord-910/smali/com/discord/app/e.smali	2019-06-25 15:45:44.563812489 +0300
181 203
 ***************
182 204
 *** 53,59 ****
183 205
       .line 15
@@ -197,7 +219,7 @@ diff -crB com.discord-910-base/smali/com/discord/app/e.smali com.discord-910/sma
197 219
       sput-object v0, Lcom/discord/app/e;->sI:Ljava/lang/String;
198 220
 diff -crB com.discord-910-base/smali/com/discord/utilities/captcha/CaptchaHelper$showCaptchaHelpDialog$$inlined$let$lambda$1.smali com.discord-910/smali/com/discord/utilities/captcha/CaptchaHelper$showCaptchaHelpDialog$$inlined$let$lambda$1.smali
199 221
 *** com.discord-910-base/smali/com/discord/utilities/captcha/CaptchaHelper$showCaptchaHelpDialog$$inlined$let$lambda$1.smali	2019-06-25 14:39:17.815873664 +0300
200
---- com.discord-910/smali/com/discord/utilities/captcha/CaptchaHelper$showCaptchaHelpDialog$$inlined$let$lambda$1.smali	2019-06-25 14:42:56.787206632 +0300
222
+--- com.discord-910/smali/com/discord/utilities/captcha/CaptchaHelper$showCaptchaHelpDialog$$inlined$let$lambda$1.smali	2019-06-25 15:45:44.563812489 +0300
201 223
 ***************
202 224
 *** 77,83 ****
203 225
   

Loading…
Cancel
Save