Compare commits
4 commits
2021-05-31
...
master
Author | SHA1 | Date | |
---|---|---|---|
bf003b6e51 | |||
30bb19ab17 | |||
5bf3ae1aa2 | |||
5c4d900af5 |
4 changed files with 101 additions and 24 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
#### Toolchain setup
|
||||
|
||||
- Get apktool (use [this self-built version](//f001.backblazeb2.com/file/avepub/apktool-cli-all.jar) which is master + [this pr](https://github.com/iBotPeaches/Apktool/pull/2463)).
|
||||
- Get apktool (use [this self-built version](http://f001.backblazeb2.com/file/avepub/apktool-cli-all.jar) which is master + [this pr](https://github.com/iBotPeaches/Apktool/pull/2463)).
|
||||
- Get a keystore, see [here](https://stackoverflow.com/a/14994354/3286892), step 1.
|
||||
- Get apksigner, it's part of android build tools.
|
||||
- If you want Mutant Standard emoji patches, get 72x72 PNG copies of latest version of mutant standard emojis with codepoints. I have a zip [here](https://mutant.lavatech.top/72x72.zip).
|
||||
|
|
1
build-dw.sh
Normal file
1
build-dw.sh
Normal file
|
@ -0,0 +1 @@
|
|||
ctcci.py dwlitecut slashcommands tokenlogin bettertm notrack nozlib nonearby experiments noblocked litecord customversion necessary psuedonitro-viewer
|
76
ctcci NEEDS FIXESZ.txt
Normal file
76
ctcci NEEDS FIXESZ.txt
Normal file
|
@ -0,0 +1,76 @@
|
|||
W: Failed to decode a string at offset 8238985 of length 133
|
||||
W: Failed to decode a string at offset 8830355 of length 95
|
||||
W: Failed to decode a string at offset 9038084 of length 76
|
||||
W: Failed to decode a string at offset 9206665 of length 87
|
||||
W: Failed to decode a string at offset 9736091 of length 82
|
||||
W: Failed to decode a string at offset 9924203 of length 90
|
||||
I: Decoding AndroidManifest.xml with resources...
|
||||
I: Loading resource table from file: /root/.local/share/apktool/framework/1.apk
|
||||
I: Regular manifest package...
|
||||
I: Decoding file-resources...
|
||||
I: Decoding values */* XMLs...
|
||||
I: Baksmaling classes.dex...
|
||||
I: Baksmaling classes2.dex...
|
||||
I: Copying assets and libs...
|
||||
I: Copying unknown files...
|
||||
I: Copying original files...
|
||||
I: Copying META-INF/services directory
|
||||
Applying /home/discordapp/litecordintra/cutthecord/patches/necessary/1371.patch
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file AndroidManifest.xml
|
||||
Applying branding icon patch
|
||||
/home/discordapp/litecordintra/cutthecord/patches/branding/customicon.sh: line 5: $'\r': command not found
|
||||
/home/discordapp/litecordintra/cutthecord/patches/branding/customicon.sh: line 10: $'\r': command not found
|
||||
/home/discordapp/litecordintra/cutthecord/patches/branding/customdynamicicon.sh: line 4: $'\r': command not found
|
||||
Traceback (most recent call last):
|
||||
File "/home/discordapp/litecordintra/cutthecord/patches/branding/addpatch.py", line 34, in <module>
|
||||
buildnum = str(counterup(branch))
|
||||
File "/home/discordapp/litecordintra/cutthecord/patches/branding/addpatch.py", line 20, in counterup
|
||||
with open(cfname, 'w') as file:
|
||||
FileNotFoundError: [Errno 2] No such file or directory: '/root/distokrepos/versionlogs/1371dwlitecut'
|
||||
Applying /home/discordapp/litecordintra/cutthecord/patches/branding/1371-custom.patch
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file AndroidManifest.xml
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file apktool.yml
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file res/values/strings.xml
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file 'smali/com/discord/utilities/captcha/CaptchaHelper$showCaptchaHelpDialog$$inlined$let$lambda$1.smali'
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file 'smali_classes2/com/discord/widgets/settings/WidgetSettings$onViewBound$18.smali'
|
||||
Applying custom version
|
||||
Applying /home/discordapp/litecordintra/cutthecord/patches/customversion/1371-custom.patch
|
||||
patching file smali_classes2/com/discord/widgets/settings/WidgetSettings.smali
|
||||
Applying /home/discordapp/litecordintra/cutthecord/patches/nozlib/1371.patch
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file smali/com/discord/gateway/GatewaySocket.smali
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file 'smali/com/discord/gateway/io/OutgoingPayload$Identify.smali'
|
||||
Applying /home/discordapp/litecordintra/cutthecord/patches/litecord/1371.patch
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file smali/com/discord/BuildConfig.smali
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file smali/com/discord/app/App.smali
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file smali/com/discord/stores/StoreGatewayConnection.smali
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file smali/com/discord/utilities/icon/IconUtils.smali
|
||||
(Stripping trailing CRs from patch; use --binary to disable.)
|
||||
patching file 'smali/com/discord/utilities/rest/RestAPI$Companion.smali'
|
||||
Applying custom version
|
||||
Applying /home/discordapp/litecordintra/cutthecord/patches/customversion/1371-custom.patch
|
||||
patching file smali_classes2/com/discord/widgets/settings/WidgetSettings.smali
|
||||
Reversed (or previously applied) patch detected! Assume -R? [n]
|
||||
Apply anyway? [n]
|
||||
Skipping patch.
|
||||
1 out of 1 hunk ignored -- saving rejects to file smali_classes2/com/discord/widgets/settings/WidgetSettings.smali.rej
|
||||
Traceback (most recent call last):
|
||||
File "ctcci.py", line 123, in <module>
|
||||
patch(patch_file.replace(".patch", "-custom.patch"), WORK_APK_PATH)
|
||||
File "ctcci.py", line 28, in patch
|
||||
subprocess.run(f"patch -p1 --no-backup-if-mismatch -i {patch_file}",
|
||||
File "/usr/lib/python3.8/subprocess.py", line 512, in run
|
||||
raise CalledProcessError(retcode, process.args,
|
||||
subprocess.CalledProcessError: Command 'patch -p1 --no-backup-if-mismatch -i /home/discordapp/litecordintra/cutthecord/patches/customversion/1371-custom.patch' returned non-zero exit status 1.
|
||||
root@discordappsrv:/home/discordapp/litecordintra/cutthecord/ctcci#
|
|
@ -26,19 +26,19 @@ diff -crB from/smali/com/discord/BuildConfig.smali to/smali/com/discord/BuildCon
|
|||
|
||||
.field public static final FLAVOR_vendor:Ljava/lang/String; = "discord"
|
||||
|
||||
! .field public static final HOST:Ljava/lang/String; = "https://dev.litecord.top"
|
||||
! .field public static final HOST:Ljava/lang/String; = "http://192.168.1.12"
|
||||
|
||||
! .field public static final HOST_ALTERNATE:Ljava/lang/String; = "https://dev.litecord.top"
|
||||
! .field public static final HOST_ALTERNATE:Ljava/lang/String; = "http://192.168.1.12"
|
||||
|
||||
! .field public static final HOST_API:Ljava/lang/String; = "https://dev.litecord.top/api/"
|
||||
! .field public static final HOST_API:Ljava/lang/String; = "http://192.168.1.12/api/"
|
||||
|
||||
! .field public static final HOST_CDN:Ljava/lang/String; = "https://dev.litecord.top"
|
||||
! .field public static final HOST_CDN:Ljava/lang/String; = "http://192.168.1.12"
|
||||
|
||||
! .field public static final HOST_GIFT:Ljava/lang/String; = "https://dev.litecord.top"
|
||||
! .field public static final HOST_GIFT:Ljava/lang/String; = "http://192.168.1.12"
|
||||
|
||||
! .field public static final HOST_GUILD_TEMPLATE:Ljava/lang/String; = "https://dev.litecord.top"
|
||||
! .field public static final HOST_GUILD_TEMPLATE:Ljava/lang/String; = "http://192.168.1.12"
|
||||
|
||||
! .field public static final HOST_INVITE:Ljava/lang/String; = "https://dev.litecord.top"
|
||||
! .field public static final HOST_INVITE:Ljava/lang/String; = "http://192.168.1.12"
|
||||
|
||||
.field public static final HOST_MEDIA_PROXY:Ljava/lang/String; = "https://media.discordapp.net"
|
||||
|
||||
|
@ -58,7 +58,7 @@ diff -crB from/smali/com/discord/app/App.smali to/smali/com/discord/app/App.smal
|
|||
|
||||
invoke-virtual {v0, v2}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
|
||||
|
||||
! const-string v0, "https://dev.litecord.top"
|
||||
! const-string v0, "http://192.168.1.12"
|
||||
|
||||
.line 48
|
||||
invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
|
||||
|
@ -78,7 +78,7 @@ diff -crB from/smali/com/discord/stores/StoreGatewayConnection.smali to/smali/co
|
|||
|
||||
sget-object v3, Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;->INSTANCE:Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;
|
||||
|
||||
! const-string v6, "https://dev.litecord.top/api/"
|
||||
! const-string v6, "http://192.168.1.12/api/"
|
||||
|
||||
invoke-direct {v7, v6, v3, v0}, Lcom/discord/gateway/rest/RestConfig;-><init>(Ljava/lang/String;Lcom/discord/restapi/RequiredHeadersInterceptor$HeadersProvider;Ljava/util/List;)V
|
||||
|
||||
|
@ -98,7 +98,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
! const-string v1, "https://dev.litecord.top/app-icons/"
|
||||
! const-string v1, "http://192.168.1.12/app-icons/"
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
|
@ -115,7 +115,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
return-object p0
|
||||
|
||||
:cond_4
|
||||
! const-string p3, "https://dev.litecord.top"
|
||||
! const-string p3, "http://192.168.1.12"
|
||||
|
||||
.line 4
|
||||
invoke-interface {p3}, Ljava/lang/CharSequence;->length()I
|
||||
|
@ -132,7 +132,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
|
||||
invoke-direct {p4}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
! const-string v0, "https://dev.litecord.top/channel-icons/"
|
||||
! const-string v0, "http://192.168.1.12/channel-icons/"
|
||||
|
||||
invoke-virtual {p4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
|
@ -149,7 +149,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
! const-string v1, "https://dev.litecord.top"
|
||||
! const-string v1, "http://192.168.1.12"
|
||||
|
||||
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
|
@ -166,7 +166,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
|
||||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
! const-string v2, "https://dev.litecord.top/icons/"
|
||||
! const-string v2, "http://192.168.1.12/icons/"
|
||||
|
||||
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
|
@ -183,7 +183,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
:cond_0
|
||||
if-eqz p1, :cond_4
|
||||
|
||||
! const-string p2, "https://dev.litecord.top"
|
||||
! const-string p2, "http://192.168.1.12"
|
||||
|
||||
.line 6
|
||||
invoke-interface {p2}, Ljava/lang/CharSequence;->length()I
|
||||
|
@ -200,7 +200,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
|
||||
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
! const-string v0, "https://dev.litecord.top/avatars/"
|
||||
! const-string v0, "http://192.168.1.12/avatars/"
|
||||
|
||||
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
|
@ -217,7 +217,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
! const-string v1, "https://dev.litecord.top/app-assets/"
|
||||
! const-string v1, "http://192.168.1.12/app-assets/"
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
|
@ -234,7 +234,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
move-object p3, v0
|
||||
|
||||
:goto_0
|
||||
! const-string v1, "https://dev.litecord.top"
|
||||
! const-string v1, "http://192.168.1.12"
|
||||
|
||||
.line 3
|
||||
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
||||
|
@ -251,7 +251,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
|
||||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
! const-string v3, "https://dev.litecord.top/banners/"
|
||||
! const-string v3, "http://192.168.1.12/banners/"
|
||||
|
||||
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
|
@ -268,7 +268,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
! const-string v1, "https://dev.litecord.top/app-icons/"
|
||||
! const-string v1, "http://192.168.1.12/app-icons/"
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
|
@ -285,7 +285,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
move-object p4, v0
|
||||
|
||||
:goto_0
|
||||
! const-string v1, "https://dev.litecord.top"
|
||||
! const-string v1, "http://192.168.1.12"
|
||||
|
||||
.line 2
|
||||
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
||||
|
@ -302,7 +302,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
|
|||
|
||||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
! const-string v3, "https://dev.litecord.top/splashes/"
|
||||
! const-string v3, "http://192.168.1.12/splashes/"
|
||||
|
||||
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
|
@ -322,7 +322,7 @@ diff -crB from/smali/com/discord/utilities/rest/RestAPI$Companion.smali to/smali
|
|||
.line 9
|
||||
new-instance v1, Lcom/discord/restapi/RestAPIBuilder;
|
||||
|
||||
! const-string v10, "https://dev.litecord.top/api/"
|
||||
! const-string v10, "http://192.168.1.12/api/"
|
||||
|
||||
invoke-direct {v1, v10, v7}, Lcom/discord/restapi/RestAPIBuilder;-><init>(Ljava/lang/String;Lb0/p;)V
|
||||
|
||||
|
|
Reference in a new issue