forked from distok/cutthecord
		
	branding: allow multiple instances of CTC and discord to be installed
side by side Closes #16
This commit is contained in:
		
							parent
							
								
									5517d27956
								
							
						
					
					
						commit
						ac00bfd725
					
				
					 2 changed files with 67 additions and 3 deletions
				
			
		|  | @ -1,6 +1,6 @@ | |||
| diff -crB -x dist -x build com.discord-843-base/AndroidManifest.xml com.discord-843/AndroidManifest.xml
 | ||||
| *** com.discord-843-base/AndroidManifest.xml	2019-02-06 23:27:45.000000000 +0300 | ||||
| --- com.discord-843/AndroidManifest.xml	2019-02-06 23:49:38.603186409 +0300
 | ||||
| --- com.discord-843/AndroidManifest.xml	2019-02-07 22:19:29.693898547 +0300
 | ||||
| *************** | ||||
| *** 1,4 **** | ||||
| ! <?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="843" platformBuildVersionName="8.4.3g">
 | ||||
|  | @ -12,9 +12,68 @@ diff -crB -x dist -x build com.discord-843-base/AndroidManifest.xml com.discord- | |||
|       <uses-feature android:name="android.hardware.camera" android:required="false"/> | ||||
|       <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/> | ||||
|       <uses-feature android:name="android.hardware.faketouch" android:required="false"/> | ||||
| *************** | ||||
| *** 95,101 **** | ||||
|           </receiver> | ||||
|           <service android:enabled="true" android:exported="false" android:name="com.google.android.gms.analytics.CampaignTrackingService"/> | ||||
|           <service android:name="com.discord.utilities.voice.VoiceEngineForegroundService"/> | ||||
| !         <provider android:authorities="com.discord.file-provider" android:exported="false" android:grantUriPermissions="true" android:name="androidx.core.content.FileProvider">
 | ||||
|               <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"/> | ||||
|           </provider> | ||||
|           <meta-data android:name="firebase_crashlytics_collection_enabled" android:value="false"/> | ||||
| --- 95,101 ----
 | ||||
|           </receiver> | ||||
|           <service android:enabled="true" android:exported="false" android:name="com.google.android.gms.analytics.CampaignTrackingService"/> | ||||
|           <service android:name="com.discord.utilities.voice.VoiceEngineForegroundService"/> | ||||
| !         <provider android:authorities="top.distok.cutthecord.CTCBRANCH.file-provider" android:exported="false" android:grantUriPermissions="true" android:name="androidx.core.content.FileProvider">
 | ||||
|               <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"/> | ||||
|           </provider> | ||||
|           <meta-data android:name="firebase_crashlytics_collection_enabled" android:value="false"/> | ||||
| *************** | ||||
| *** 140,148 **** | ||||
|               </intent-filter> | ||||
|           </service> | ||||
|           <activity android:exported="false" android:name="com.google.android.gms.common.api.GoogleApiActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"/> | ||||
| !         <provider android:authorities="com.discord.firebaseinitprovider" android:exported="false" android:initOrder="100" android:name="com.google.firebase.provider.FirebaseInitProvider"/>
 | ||||
|           <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> | ||||
| !         <provider android:authorities="com.discord.workmanager-init" android:directBootAware="false" android:exported="false" android:multiprocess="true" android:name="androidx.work.impl.WorkManagerInitializer"/>
 | ||||
|           <service android:directBootAware="false" android:enabled="@bool/enable_system_alarm_service_default" android:exported="false" android:name="androidx.work.impl.background.systemalarm.SystemAlarmService"/> | ||||
|           <service android:directBootAware="false" android:enabled="@bool/enable_system_job_service_default" android:exported="true" android:name="androidx.work.impl.background.systemjob.SystemJobService" android:permission="android.permission.BIND_JOB_SERVICE"/> | ||||
|           <receiver android:directBootAware="false" android:enabled="true" android:exported="false" android:name="androidx.work.impl.utils.ForceStopRunnable$BroadcastReceiver"/> | ||||
| --- 140,148 ----
 | ||||
|               </intent-filter> | ||||
|           </service> | ||||
|           <activity android:exported="false" android:name="com.google.android.gms.common.api.GoogleApiActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"/> | ||||
| !         <provider android:authorities="top.distok.cutthecord.CTCBRANCH.firebaseinitprovider" android:exported="false" android:initOrder="100" android:name="com.google.firebase.provider.FirebaseInitProvider"/>
 | ||||
|           <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> | ||||
| !         <provider android:authorities="top.distok.cutthecord.CTCBRANCH.workmanager-init" android:directBootAware="false" android:exported="false" android:multiprocess="true" android:name="androidx.work.impl.WorkManagerInitializer"/>
 | ||||
|           <service android:directBootAware="false" android:enabled="@bool/enable_system_alarm_service_default" android:exported="false" android:name="androidx.work.impl.background.systemalarm.SystemAlarmService"/> | ||||
|           <service android:directBootAware="false" android:enabled="@bool/enable_system_job_service_default" android:exported="true" android:name="androidx.work.impl.background.systemjob.SystemJobService" android:permission="android.permission.BIND_JOB_SERVICE"/> | ||||
|           <receiver android:directBootAware="false" android:enabled="true" android:exported="false" android:name="androidx.work.impl.utils.ForceStopRunnable$BroadcastReceiver"/> | ||||
| *************** | ||||
| *** 181,188 **** | ||||
|                   <action android:name="androidx.work.impl.background.systemalarm.UpdateProxies"/> | ||||
|               </intent-filter> | ||||
|           </receiver> | ||||
| !         <provider android:authorities="com.discord.lifecycle-process" android:exported="false" android:multiprocess="true" android:name="androidx.lifecycle.ProcessLifecycleOwnerInitializer"/>
 | ||||
| !         <provider android:authorities="com.discord.crashlyticsinitprovider" android:exported="false" android:initOrder="90" android:name="com.crashlytics.android.CrashlyticsInitProvider"/>
 | ||||
|           <meta-data android:name="com.android.vending.derived.apk.id" android:value="1"/> | ||||
|       </application> | ||||
|   </manifest> | ||||
| \ No newline at end of file | ||||
| --- 181,188 ----
 | ||||
|                   <action android:name="androidx.work.impl.background.systemalarm.UpdateProxies"/> | ||||
|               </intent-filter> | ||||
|           </receiver> | ||||
| !         <provider android:authorities="top.distok.cutthecord.CTCBRANCH.lifecycle-process" android:exported="false" android:multiprocess="true" android:name="androidx.lifecycle.ProcessLifecycleOwnerInitializer"/>
 | ||||
| !         <provider android:authorities="top.distok.cutthecord.CTCBRANCH.crashlyticsinitprovider" android:exported="false" android:initOrder="90" android:name="com.crashlytics.android.CrashlyticsInitProvider"/>
 | ||||
|           <meta-data android:name="com.android.vending.derived.apk.id" android:value="1"/> | ||||
|       </application> | ||||
|   </manifest> | ||||
| \ No newline at end of file | ||||
| diff -crB -x dist -x build com.discord-843-base/apktool.yml com.discord-843/apktool.yml
 | ||||
| *** com.discord-843-base/apktool.yml	2019-02-06 23:27:45.323639501 +0300 | ||||
| --- com.discord-843/apktool.yml	2019-02-06 23:49:38.603186409 +0300
 | ||||
| --- com.discord-843/apktool.yml	2019-02-07 22:19:29.697231896 +0300
 | ||||
| *************** | ||||
| *** 345,349 **** | ||||
|     tag: null | ||||
|  | @ -30,7 +89,7 @@ diff -crB -x dist -x build com.discord-843-base/apktool.yml com.discord-843/apkt | |||
| !   versionName: 8.4.3g-cutthecord-CTCBUILD
 | ||||
| diff -crB -x dist -x build com.discord-843-base/res/values/strings.xml com.discord-843/res/values/strings.xml
 | ||||
| *** com.discord-843-base/res/values/strings.xml	2019-02-06 23:27:49.190325481 +0300 | ||||
| --- com.discord-843/res/values/strings.xml	2019-02-06 23:49:38.603186409 +0300
 | ||||
| --- com.discord-843/res/values/strings.xml	2019-02-07 22:19:29.700565245 +0300
 | ||||
| *************** | ||||
| *** 1157,1163 **** | ||||
|       <string name="disconnect_account_body">Disconnecting your account might remove you from servers you joined via this account.</string> | ||||
|  |  | |||
|  | @ -8,6 +8,11 @@ Running customicon.sh (while on root of the extracted folder) will also change t | |||
| 
 | ||||
|  | ||||
| 
 | ||||
| 
 | ||||
| You can use the following line to patch authorities: | ||||
| 
 | ||||
| `sed -i 's/android:authorities="com.discord./android:authorities="top.distok.cutthecord.CTCBRANCH./g' AndroidManifest.xml` | ||||
| 
 | ||||
| #### Available and tested on: | ||||
| - 8.3.3 | ||||
| - 8.3.4g | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue