Add support for 8.3.4g, ahh fuck Discord
This commit is contained in:
parent
2391c2851b
commit
82379ffc8c
20 changed files with 4525 additions and 0 deletions
37
patches/branding/834.patch
Normal file
37
patches/branding/834.patch
Normal file
|
@ -0,0 +1,37 @@
|
|||
diff -crB -x dist -x build com.discord-834-base/res/values/strings.xml com.discord-834/res/values/strings.xml
|
||||
*** com.discord-834-base/res/values/strings.xml 2019-01-23 23:17:41.361153021 +0300
|
||||
--- com.discord-834/res/values/strings.xml 2019-01-23 23:17:10.564346458 +0300
|
||||
***************
|
||||
*** 1130,1136 ****
|
||||
<string name="disconnect_account_body">Disconnecting your account might remove you from servers you joined via this account.</string>
|
||||
<string name="disconnect_account_title">Disconnect %1$s</string>
|
||||
<string name="disconnect_from_voice">Disconnect from Voice</string>
|
||||
! <string name="discord">Discord</string>
|
||||
<string name="discord_desc_long">Free and secure chat for gamers, works on both your desktop and your phone.</string>
|
||||
<string name="discord_desc_short">Team voice & text chat</string>
|
||||
<string name="discord_gg">discord.gg/</string>
|
||||
--- 1130,1136 ----
|
||||
<string name="disconnect_account_body">Disconnecting your account might remove you from servers you joined via this account.</string>
|
||||
<string name="disconnect_account_title">Disconnect %1$s</string>
|
||||
<string name="disconnect_from_voice">Disconnect from Voice</string>
|
||||
! <string name="discord">CutTheCord</string>
|
||||
<string name="discord_desc_long">Free and secure chat for gamers, works on both your desktop and your phone.</string>
|
||||
<string name="discord_desc_short">Team voice & text chat</string>
|
||||
<string name="discord_gg">discord.gg/</string>
|
||||
***************
|
||||
*** 2685,2691 ****
|
||||
<string name="notification_reply_failed">Failed to reply to %1$s</string>
|
||||
<string name="notification_reply_success">Replied to %1$s</string>
|
||||
<string name="notification_settings">Notification Settings</string>
|
||||
! <string name="notification_title_discord">Discord</string>
|
||||
<string name="notification_title_start_game">"Somebody Playin'"</string>
|
||||
<string name="notifications">Notifications</string>
|
||||
<string name="nsfw_accept">Continue</string>
|
||||
--- 2685,2691 ----
|
||||
<string name="notification_reply_failed">Failed to reply to %1$s</string>
|
||||
<string name="notification_reply_success">Replied to %1$s</string>
|
||||
<string name="notification_settings">Notification Settings</string>
|
||||
! <string name="notification_title_discord">CutTheCord</string>
|
||||
<string name="notification_title_start_game">"Somebody Playin'"</string>
|
||||
<string name="notifications">Notifications</string>
|
||||
<string name="nsfw_accept">Continue</string>
|
|
@ -8,4 +8,5 @@ Running customicon.sh (while on root of the extracted folder) will also change t
|
|||
|
||||
#### Available and tested on:
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
|
|
252
patches/customtheme/834.patch
Normal file
252
patches/customtheme/834.patch
Normal file
|
@ -0,0 +1,252 @@
|
|||
diff -crB -x dist -x build com.discord-834-base/res/values/colors.xml com.discord-834/res/values/colors.xml
|
||||
*** com.discord-834-base/res/values/colors.xml 2019-01-23 23:17:41.424486642 +0300
|
||||
--- com.discord-834/res/values/colors.xml 2019-01-23 23:21:28.489048909 +0300
|
||||
***************
|
||||
*** 61,68 ****
|
||||
<color name="common_google_signin_btn_text_light_disabled">#1f000000</color>
|
||||
<color name="common_google_signin_btn_text_light_focused">#90000000</color>
|
||||
<color name="common_google_signin_btn_text_light_pressed">#de000000</color>
|
||||
! <color name="dark_grey_2">#ff36393e</color>
|
||||
! <color name="dark_grey_2_alpha_10">#ff303337</color>
|
||||
<color name="design_bottom_navigation_shadow_color">#14000000</color>
|
||||
<color name="design_default_color_primary">#ff3f51b5</color>
|
||||
<color name="design_default_color_primary_dark">#ff303f9f</color>
|
||||
--- 61,68 ----
|
||||
<color name="common_google_signin_btn_text_light_disabled">#1f000000</color>
|
||||
<color name="common_google_signin_btn_text_light_focused">#90000000</color>
|
||||
<color name="common_google_signin_btn_text_light_pressed">#de000000</color>
|
||||
! <color name="dark_grey_2">#ff000000</color>
|
||||
! <color name="dark_grey_2_alpha_10">#ff000000</color>
|
||||
<color name="design_bottom_navigation_shadow_color">#14000000</color>
|
||||
<color name="design_default_color_primary">#ff3f51b5</color>
|
||||
<color name="design_default_color_primary_dark">#ff303f9f</color>
|
||||
***************
|
||||
*** 98,106 ****
|
||||
<color name="grey_6_alpha_05">#0d4f545c</color>
|
||||
<color name="grey_6_alpha_30">#4d4f545c</color>
|
||||
<color name="grey_6_alpha_60">#994f545c</color>
|
||||
! <color name="grey_account">#ff282b30</color>
|
||||
! <color name="grey_channels">#ff2e3136</color>
|
||||
! <color name="grey_guilds">#ff1e2124</color>
|
||||
<color name="grey_unread">#ff8a8e94</color>
|
||||
<color name="highlighted_text_material_dark">#6680cbc4</color>
|
||||
<color name="highlighted_text_material_light">#66009688</color>
|
||||
--- 98,106 ----
|
||||
<color name="grey_6_alpha_05">#0d4f545c</color>
|
||||
<color name="grey_6_alpha_30">#4d4f545c</color>
|
||||
<color name="grey_6_alpha_60">#994f545c</color>
|
||||
! <color name="grey_account">#ff000000</color>
|
||||
! <color name="grey_channels">#ff000000</color>
|
||||
! <color name="grey_guilds">#ff000000</color>
|
||||
<color name="grey_unread">#ff8a8e94</color>
|
||||
<color name="highlighted_text_material_dark">#6680cbc4</color>
|
||||
<color name="highlighted_text_material_light">#66009688</color>
|
||||
***************
|
||||
*** 109,123 ****
|
||||
<color name="hypesquad_house3">#ff45ddc0</color>
|
||||
<color name="icon_color_light">#ff93a5af</color>
|
||||
<color name="league_of_legends">#ff021f25</color>
|
||||
! <color name="link_100">#fff2fbfe</color>
|
||||
! <color name="link_200">#ffcceffd</color>
|
||||
! <color name="link_300">#ff99dffb</color>
|
||||
! <color name="link_400">#ff33c0f6</color>
|
||||
! <color name="link_500">#ff00b0f4</color>
|
||||
! <color name="link_600">#ff0078a6</color>
|
||||
! <color name="link_700">#ff004662</color>
|
||||
! <color name="link_800">#ff003549</color>
|
||||
! <color name="link_900">#ff00090c</color>
|
||||
<color name="material_blue_grey_800">#ff37474f</color>
|
||||
<color name="material_blue_grey_900">#ff263238</color>
|
||||
<color name="material_blue_grey_950">#ff21272b</color>
|
||||
--- 109,123 ----
|
||||
<color name="hypesquad_house3">#ff45ddc0</color>
|
||||
<color name="icon_color_light">#ff93a5af</color>
|
||||
<color name="league_of_legends">#ff021f25</color>
|
||||
! <color name="link_100">#ff8cf687</color>
|
||||
! <color name="link_200">#ff7df577</color>
|
||||
! <color name="link_300">#ff6ef368</color>
|
||||
! <color name="link_400">#ff5ff258</color>
|
||||
! <color name="link_500">#ff50f148</color>
|
||||
! <color name="link_600">#ff41f038</color>
|
||||
! <color name="link_700">#ff32ef28</color>
|
||||
! <color name="link_800">#ff23ed19</color>
|
||||
! <color name="link_900">#ff1be411</color>
|
||||
<color name="material_blue_grey_800">#ff37474f</color>
|
||||
<color name="material_blue_grey_900">#ff263238</color>
|
||||
<color name="material_blue_grey_950">#ff21272b</color>
|
||||
***************
|
||||
*** 159,176 ****
|
||||
<color name="primary_400_alpha_30">#4d7d8187</color>
|
||||
<color name="primary_400_alpha_60">#997d8187</color>
|
||||
<color name="primary_400_alpha_90">#e67d8187</color>
|
||||
! <color name="primary_500">#ff4f545c</color>
|
||||
! <color name="primary_500_alpha_30">#4d4f545c</color>
|
||||
! <color name="primary_500_alpha_60">#994f545c</color>
|
||||
! <color name="primary_500_alpha_90">#e64f545c</color>
|
||||
! <color name="primary_600">#ff36393f</color>
|
||||
! <color name="primary_600_alpha_30">#4d36393f</color>
|
||||
! <color name="primary_600_alpha_60">#9936393f</color>
|
||||
! <color name="primary_600_alpha_90">#e636393f</color>
|
||||
! <color name="primary_630">#ff2f3136</color>
|
||||
! <color name="primary_630_alpha_30">#4d2f3136</color>
|
||||
! <color name="primary_630_alpha_60">#992f3136</color>
|
||||
! <color name="primary_630_alpha_90">#e62f3136</color>
|
||||
<color name="primary_700">#ff202225</color>
|
||||
<color name="primary_700_alpha_30">#4d202225</color>
|
||||
<color name="primary_700_alpha_60">#99202225</color>
|
||||
--- 159,176 ----
|
||||
<color name="primary_400_alpha_30">#4d7d8187</color>
|
||||
<color name="primary_400_alpha_60">#997d8187</color>
|
||||
<color name="primary_400_alpha_90">#e67d8187</color>
|
||||
! <color name="primary_500">#ff0f0f0f</color>
|
||||
! <color name="primary_500_alpha_30">#4d0f0f0f</color>
|
||||
! <color name="primary_500_alpha_60">#990f0f0f</color>
|
||||
! <color name="primary_500_alpha_90">#e60f0f0f</color>
|
||||
! <color name="primary_600">#ff000000</color>
|
||||
! <color name="primary_600_alpha_30">#4d000000</color>
|
||||
! <color name="primary_600_alpha_60">#99000000</color>
|
||||
! <color name="primary_600_alpha_90">#e6000000</color>
|
||||
! <color name="primary_630">#ff000000</color>
|
||||
! <color name="primary_630_alpha_30">#4d000000</color>
|
||||
! <color name="primary_630_alpha_60">#99000000</color>
|
||||
! <color name="primary_630_alpha_90">#e6000000</color>
|
||||
<color name="primary_700">#ff202225</color>
|
||||
<color name="primary_700_alpha_30">#4d202225</color>
|
||||
<color name="primary_700_alpha_60">#99202225</color>
|
||||
***************
|
||||
*** 191,198 ****
|
||||
<color name="primary_text_default_material_light">#de000000</color>
|
||||
<color name="primary_text_disabled_material_dark">#4dffffff</color>
|
||||
<color name="primary_text_disabled_material_light">#39000000</color>
|
||||
! <color name="purple_brand">#ff738bd7</color>
|
||||
! <color name="purple_brand_alpha_10">#1a738bd7</color>
|
||||
<color name="purple_brand_dark">#ff697ec4</color>
|
||||
<color name="purple_brand_hint">#ffc9d2f0</color>
|
||||
<color name="purple_brand_notification">#ff5161ff</color>
|
||||
--- 191,198 ----
|
||||
<color name="primary_text_default_material_light">#de000000</color>
|
||||
<color name="primary_text_disabled_material_dark">#4dffffff</color>
|
||||
<color name="primary_text_disabled_material_light">#39000000</color>
|
||||
! <color name="purple_brand">#ff9c4249</color>
|
||||
! <color name="purple_brand_alpha_10">#1a9c4249</color>
|
||||
<color name="purple_brand_dark">#ff697ec4</color>
|
||||
<color name="purple_brand_hint">#ffc9d2f0</color>
|
||||
<color name="purple_brand_notification">#ff5161ff</color>
|
||||
diff -crB -x dist -x build com.discord-834-base/res/values/styles.xml com.discord-834/res/values/styles.xml
|
||||
*** com.discord-834-base/res/values/styles.xml 2019-01-23 23:17:41.631154248 +0300
|
||||
--- com.discord-834/res/values/styles.xml 2019-01-23 23:21:28.489048909 +0300
|
||||
***************
|
||||
*** 116,122 ****
|
||||
<item name="colorPrimary">@color/primary_600</item>
|
||||
<item name="colorPrimaryBg">@drawable/drawable_uikit_primary_600_bg_dark</item>
|
||||
<item name="colorPrimaryCircle">@drawable/drawable_uikit_primary_600_circle</item>
|
||||
! <item name="colorPrimaryDark">#ff2b2e31</item>
|
||||
<item name="colorPrimaryDivider">@color/primary_500_alpha_60</item>
|
||||
<item name="colorPrimaryTabs">@color/black_alpha_05</item>
|
||||
<item name="dialogTheme">@style/AppTheme.Dark.Notice</item>
|
||||
--- 116,122 ----
|
||||
<item name="colorPrimary">@color/primary_600</item>
|
||||
<item name="colorPrimaryBg">@drawable/drawable_uikit_primary_600_bg_dark</item>
|
||||
<item name="colorPrimaryCircle">@drawable/drawable_uikit_primary_600_circle</item>
|
||||
! <item name="colorPrimaryDark">@color/primary_630</item>
|
||||
<item name="colorPrimaryDivider">@color/primary_500_alpha_60</item>
|
||||
<item name="colorPrimaryTabs">@color/black_alpha_05</item>
|
||||
<item name="dialogTheme">@style/AppTheme.Dark.Notice</item>
|
||||
***************
|
||||
*** 322,328 ****
|
||||
<item name="tabSelectedTextColor">@color/white</item>
|
||||
<item name="tabTextColor">@color/white_alpha_40</item>
|
||||
<item name="theme_backspace_icon">@drawable/ic_backspace_white_24dp</item>
|
||||
! <item name="theme_chat_blocked_bg">#ff34373c</item>
|
||||
<item name="theme_chat_blocked_text">@color/grey_unread</item>
|
||||
<item name="theme_chat_code">@color/grey_channels</item>
|
||||
<item name="theme_chat_codeblock_border">@color/grey_account</item>
|
||||
--- 322,328 ----
|
||||
<item name="tabSelectedTextColor">@color/white</item>
|
||||
<item name="tabTextColor">@color/white_alpha_40</item>
|
||||
<item name="theme_backspace_icon">@drawable/ic_backspace_white_24dp</item>
|
||||
! <item name="theme_chat_blocked_bg">@color/primary_500</item>
|
||||
<item name="theme_chat_blocked_text">@color/grey_unread</item>
|
||||
<item name="theme_chat_code">@color/grey_channels</item>
|
||||
<item name="theme_chat_codeblock_border">@color/grey_account</item>
|
||||
***************
|
||||
*** 336,347 ****
|
||||
<item name="theme_chat_input_button_tint_colors">@color/chat_input_button_tint_colors_dark</item>
|
||||
<item name="theme_chat_input_content_tab_bg">@drawable/drawable_rect_rounded_dark</item>
|
||||
<item name="theme_chat_input_divider">@color/dark_grey_2_alpha_10</item>
|
||||
! <item name="theme_chat_input_edit">#ff3e4145</item>
|
||||
<item name="theme_chat_input_photo_selection_icon">@drawable/ic_img_selected_dark_theme</item>
|
||||
<item name="theme_chat_input_text">@color/white_alpha_70</item>
|
||||
<item name="theme_chat_input_text_placeholder">@color/white_alpha_20</item>
|
||||
<item name="theme_chat_loading_spinner_color">@color/white</item>
|
||||
! <item name="theme_chat_mentioned_me">#1afaa61a</item>
|
||||
<item name="theme_chat_name">@color/white</item>
|
||||
<item name="theme_chat_reaction_background">@drawable/drawable_bg_reaction_dark</item>
|
||||
<item name="theme_chat_reaction_text_color">@drawable/drawable_reaction_text_color_dark</item>
|
||||
--- 336,347 ----
|
||||
<item name="theme_chat_input_button_tint_colors">@color/chat_input_button_tint_colors_dark</item>
|
||||
<item name="theme_chat_input_content_tab_bg">@drawable/drawable_rect_rounded_dark</item>
|
||||
<item name="theme_chat_input_divider">@color/dark_grey_2_alpha_10</item>
|
||||
! <item name="theme_chat_input_edit">@color/primary_600</item>
|
||||
<item name="theme_chat_input_photo_selection_icon">@drawable/ic_img_selected_dark_theme</item>
|
||||
<item name="theme_chat_input_text">@color/white_alpha_70</item>
|
||||
<item name="theme_chat_input_text_placeholder">@color/white_alpha_20</item>
|
||||
<item name="theme_chat_loading_spinner_color">@color/white</item>
|
||||
! <item name="theme_chat_mentioned_me">@color/purple_brand_alpha_10</item>
|
||||
<item name="theme_chat_name">@color/white</item>
|
||||
<item name="theme_chat_reaction_background">@drawable/drawable_bg_reaction_dark</item>
|
||||
<item name="theme_chat_reaction_text_color">@drawable/drawable_reaction_text_color_dark</item>
|
||||
***************
|
||||
*** 406,412 ****
|
||||
<item name="colorControlActivated">@color/brand_500</item>
|
||||
<item name="colorControlNormal">@color/primary_100</item>
|
||||
<item name="colorPrimary">@color/primary_600</item>
|
||||
! <item name="colorPrimaryDark">#ff2b2e31</item>
|
||||
</style>
|
||||
<style name="AppTheme.Dark.Evil" parent="@style/AppTheme.Dark">
|
||||
<item name="colorAccent">@color/brand_600</item>
|
||||
--- 406,412 ----
|
||||
<item name="colorControlActivated">@color/brand_500</item>
|
||||
<item name="colorControlNormal">@color/primary_100</item>
|
||||
<item name="colorPrimary">@color/primary_600</item>
|
||||
! <item name="colorPrimaryDark">@color/primary_630</item>
|
||||
</style>
|
||||
<style name="AppTheme.Dark.Evil" parent="@style/AppTheme.Dark">
|
||||
<item name="colorAccent">@color/brand_600</item>
|
||||
***************
|
||||
*** 438,444 ****
|
||||
<item name="colorControlActivated">@color/brand_500</item>
|
||||
<item name="colorControlNormal">@color/primary_100</item>
|
||||
<item name="colorPrimary">@color/primary_600</item>
|
||||
! <item name="colorPrimaryDark">#ff2b2e31</item>
|
||||
</style>
|
||||
<style name="AppTheme.Dark.Notice.PositiveRed" parent="@style/AppTheme.Dark.Notice">
|
||||
<item name="buttonBarPositiveButtonStyle">@style/UiKit.Button.Red.Fit</item>
|
||||
--- 438,444 ----
|
||||
<item name="colorControlActivated">@color/brand_500</item>
|
||||
<item name="colorControlNormal">@color/primary_100</item>
|
||||
<item name="colorPrimary">@color/primary_600</item>
|
||||
! <item name="colorPrimaryDark">@color/primary_630</item>
|
||||
</style>
|
||||
<style name="AppTheme.Dark.Notice.PositiveRed" parent="@style/AppTheme.Dark.Notice">
|
||||
<item name="buttonBarPositiveButtonStyle">@style/UiKit.Button.Red.Fit</item>
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/app/AppActivity$e.smali com.discord-834/smali/com/discord/app/AppActivity$e.smali
|
||||
*** com.discord-834-base/smali/com/discord/app/AppActivity$e.smali 2019-01-23 23:17:43.004493819 +0300
|
||||
--- com.discord-834/smali/com/discord/app/AppActivity$e.smali 2019-01-23 23:21:28.489048909 +0300
|
||||
***************
|
||||
*** 123,129 ****
|
||||
|
||||
check-cast v0, Landroid/app/Activity;
|
||||
|
||||
! const v1, 0x7f060136
|
||||
|
||||
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->setStatusBarColorResourceId(Landroid/app/Activity;I)V
|
||||
|
||||
--- 123,129 ----
|
||||
|
||||
check-cast v0, Landroid/app/Activity;
|
||||
|
||||
! const v1, 0x7f0600d3
|
||||
|
||||
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->setStatusBarColorResourceId(Landroid/app/Activity;I)V
|
||||
|
|
@ -12,6 +12,7 @@ Copy `asset_loading.png` to root of Discord's extracted folder and run `fixsplas
|
|||
#### Available and tested on:
|
||||
- 8.3.2
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
#### Value reference
|
||||
|
||||
|
|
20
patches/customversion/834.patch
Normal file
20
patches/customversion/834.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettings.smali com.discord-834/smali/com/discord/widgets/settings/WidgetSettings.smali
|
||||
*** com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettings.smali 2019-01-23 23:17:43.801164105 +0300
|
||||
--- com.discord-834/smali/com/discord/widgets/settings/WidgetSettings.smali 2019-01-23 23:24:49.953408659 +0300
|
||||
***************
|
||||
*** 1323,1329 ****
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, " - 8.3.4g (834)"
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
--- 1323,1329 ----
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, " - 8.3.4g (834), with Cutthecord patches"
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
|
@ -7,4 +7,5 @@ This patch replaces version string and adds mention of cutthecord in the user se
|
|||
#### Available and tested on:
|
||||
- 8.3.2
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
|
|
153
patches/experiments/834.patch
Normal file
153
patches/experiments/834.patch
Normal file
|
@ -0,0 +1,153 @@
|
|||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali com.discord-834/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali
|
||||
*** com.discord-834-base/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2019-01-23 23:17:43.204494728 +0300
|
||||
--- com.discord-834/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2019-01-23 23:25:59.620402117 +0300
|
||||
***************
|
||||
*** 81,108 ****
|
||||
.method public final call(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuild;)Z
|
||||
.locals 1
|
||||
|
||||
- const-string v0, "meUser"
|
||||
-
|
||||
- .line 93
|
||||
- invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
-
|
||||
- invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
|
||||
-
|
||||
- move-result p1
|
||||
-
|
||||
- if-nez p1, :cond_1
|
||||
-
|
||||
- if-eqz p2, :cond_0
|
||||
-
|
||||
- goto :goto_0
|
||||
-
|
||||
- :cond_0
|
||||
- const/4 p1, 0x0
|
||||
-
|
||||
- return p1
|
||||
-
|
||||
- :cond_1
|
||||
- :goto_0
|
||||
const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
--- 81,86 ----
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/stores/StoreExperiments$getExperimentAndStaff$1.smali com.discord-834/smali/com/discord/stores/StoreExperiments$getExperimentAndStaff$1.smali
|
||||
*** com.discord-834-base/smali/com/discord/stores/StoreExperiments$getExperimentAndStaff$1.smali 2019-01-23 23:17:43.204494728 +0300
|
||||
--- com.discord-834/smali/com/discord/stores/StoreExperiments$getExperimentAndStaff$1.smali 2019-01-23 23:25:59.620402117 +0300
|
||||
***************
|
||||
*** 77,90 ****
|
||||
.method public final call(Lcom/discord/models/domain/ModelUser;)Z
|
||||
.locals 1
|
||||
|
||||
! const-string v0, "it"
|
||||
!
|
||||
! .line 78
|
||||
! invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
!
|
||||
! invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
|
||||
!
|
||||
! move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
--- 77,83 ----
|
||||
.method public final call(Lcom/discord/models/domain/ModelUser;)Z
|
||||
.locals 1
|
||||
|
||||
! const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/stores/StoreExperiments.smali com.discord-834/smali/com/discord/stores/StoreExperiments.smali
|
||||
*** com.discord-834-base/smali/com/discord/stores/StoreExperiments.smali 2019-01-23 23:17:43.207828077 +0300
|
||||
--- com.discord-834/smali/com/discord/stores/StoreExperiments.smali 2019-01-23 23:25:59.620402117 +0300
|
||||
***************
|
||||
*** 1247,1255 ****
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
! invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser$Me;->isStaff()Z
|
||||
!
|
||||
! move-result v0
|
||||
|
||||
if-eq v0, v1, :cond_1
|
||||
|
||||
--- 1247,1253 ----
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
! const/4 v0, 0x1
|
||||
|
||||
if-eq v0, v1, :cond_1
|
||||
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali com.discord-834/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali
|
||||
*** com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali 2019-01-23 23:17:43.804497453 +0300
|
||||
--- com.discord-834/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali 2019-01-23 23:25:59.620402117 +0300
|
||||
***************
|
||||
*** 71,83 ****
|
||||
|
||||
check-cast v0, Landroid/view/View;
|
||||
|
||||
! const-string v1, "it"
|
||||
!
|
||||
! invoke-static {p1, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
!
|
||||
! invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
|
||||
!
|
||||
! move-result p1
|
||||
|
||||
invoke-static {v0, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy(Landroid/view/View;Z)V
|
||||
|
||||
--- 71,77 ----
|
||||
|
||||
check-cast v0, Landroid/view/View;
|
||||
|
||||
! const/4 p1, 0x1
|
||||
|
||||
invoke-static {v0, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy(Landroid/view/View;Z)V
|
||||
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettings.smali com.discord-834/smali/com/discord/widgets/settings/WidgetSettings.smali
|
||||
*** com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettings.smali 2019-01-23 23:17:43.801164105 +0300
|
||||
--- com.discord-834/smali/com/discord/widgets/settings/WidgetSettings.smali 2019-01-23 23:26:44.193946941 +0300
|
||||
***************
|
||||
*** 711,719 ****
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
! invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
|
||||
!
|
||||
! move-result v0
|
||||
|
||||
if-eq v0, v2, :cond_0
|
||||
|
||||
--- 711,717 ----
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
! const/4 v0, 0x1
|
||||
|
||||
if-eq v0, v2, :cond_0
|
||||
|
||||
Only in com.discord-834/smali/com/discord/widgets/settings: WidgetSettings.smali.orig
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettingsUserConnections$UserConnectionItem.smali com.discord-834/smali/com/discord/widgets/settings/WidgetSettingsUserConnections$UserConnectionItem.smali
|
||||
*** com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettingsUserConnections$UserConnectionItem.smali 2019-01-23 23:17:43.824497544 +0300
|
||||
--- com.discord-834/smali/com/discord/widgets/settings/WidgetSettingsUserConnections$UserConnectionItem.smali 2019-01-23 23:25:59.623735465 +0300
|
||||
***************
|
||||
*** 80,87 ****
|
||||
.method public final isStaffOrTester()Z
|
||||
.locals 1
|
||||
|
||||
! .line 102
|
||||
! iget-boolean v0, p0, Lcom/discord/widgets/settings/WidgetSettingsUserConnections$UserConnectionItem;->isStaffOrTester:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
--- 80,86 ----
|
||||
.method public final isStaffOrTester()Z
|
||||
.locals 1
|
||||
|
||||
! const/4 v0, 0x1
|
||||
|
||||
return v0
|
||||
.end method
|
|
@ -8,4 +8,5 @@ This patch enables developer options (empty), mobile experiments (of which there
|
|||
#### Available and tested on:
|
||||
- 8.3.2
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
|
|
334
patches/litecord/834.patch
Normal file
334
patches/litecord/834.patch
Normal file
|
@ -0,0 +1,334 @@
|
|||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/app/App.smali com.discord-834/smali/com/discord/app/App.smali
|
||||
*** com.discord-834-base/smali/com/discord/app/App.smali 2019-01-23 23:17:43.004493819 +0300
|
||||
--- com.discord-834/smali/com/discord/app/App.smali 2019-01-23 23:27:49.444269345 +0300
|
||||
***************
|
||||
*** 218,224 ****
|
||||
|
||||
invoke-virtual {v0, v1}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
|
||||
|
||||
! const-string v0, "https://cdn.discordapp.com"
|
||||
|
||||
.line 75
|
||||
invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
|
||||
--- 218,224 ----
|
||||
|
||||
invoke-virtual {v0, v1}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
|
||||
|
||||
! const-string v0, "https://dev.litecord.top"
|
||||
|
||||
.line 75
|
||||
invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/BuildConfig.smali com.discord-834/smali/com/discord/BuildConfig.smali
|
||||
*** com.discord-834-base/smali/com/discord/BuildConfig.smali 2019-01-23 23:17:43.001160471 +0300
|
||||
--- com.discord-834/smali/com/discord/BuildConfig.smali 2019-01-23 23:27:49.444269345 +0300
|
||||
***************
|
||||
*** 16,30 ****
|
||||
|
||||
.field public static final FLAVOR_internalExternal:Ljava/lang/String; = "external"
|
||||
|
||||
! .field public static final HOST:Ljava/lang/String; = "https://discordapp.com"
|
||||
|
||||
! .field public static final HOST_API:Ljava/lang/String; = "https://discordapp.com/api/"
|
||||
|
||||
! .field public static final HOST_CDN:Ljava/lang/String; = "https://cdn.discordapp.com"
|
||||
|
||||
.field public static final HOST_GIFT:Ljava/lang/String; = "https://discord.gift"
|
||||
|
||||
! .field public static final HOST_INVITE:Ljava/lang/String; = "https://discord.gg"
|
||||
|
||||
.field public static final LOCAL_IP:Ljava/lang/String; = ""
|
||||
|
||||
--- 16,30 ----
|
||||
|
||||
.field public static final FLAVOR_internalExternal:Ljava/lang/String; = "external"
|
||||
|
||||
! .field public static final HOST:Ljava/lang/String; = "https://dev.litecord.top"
|
||||
|
||||
! .field public static final HOST_API:Ljava/lang/String; = "https://dev.litecord.top/api/"
|
||||
|
||||
! .field public static final HOST_CDN:Ljava/lang/String; = "https://dev.litecord.top"
|
||||
|
||||
.field public static final HOST_GIFT:Ljava/lang/String; = "https://discord.gift"
|
||||
|
||||
! .field public static final HOST_INVITE:Ljava/lang/String; = "https://dev.litecord.top"
|
||||
|
||||
.field public static final LOCAL_IP:Ljava/lang/String; = ""
|
||||
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/gateway/GatewaySocket.smali com.discord-834/smali/com/discord/gateway/GatewaySocket.smali
|
||||
*** com.discord-834-base/smali/com/discord/gateway/GatewaySocket.smali 2019-01-23 23:17:43.041160653 +0300
|
||||
--- com.discord-834/smali/com/discord/gateway/GatewaySocket.smali 2019-01-23 23:27:49.444269345 +0300
|
||||
***************
|
||||
*** 32,38 ****
|
||||
|
||||
.field private static final DISCOVERING:I = 0x1
|
||||
|
||||
! .field private static final GATEWAY_COMPRESSION:Ljava/lang/String; = "zlib-stream"
|
||||
|
||||
.field private static final GATEWAY_ENCODING:Ljava/lang/String; = "json"
|
||||
|
||||
--- 32,38 ----
|
||||
|
||||
.field private static final DISCOVERING:I = 0x1
|
||||
|
||||
! .field private static final GATEWAY_COMPRESSION:Ljava/lang/String; = ""
|
||||
|
||||
.field private static final GATEWAY_ENCODING:Ljava/lang/String; = "json"
|
||||
|
||||
***************
|
||||
*** 1033,1039 ****
|
||||
|
||||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string p1, "/?encoding=json&v=6&compress=zlib-stream"
|
||||
|
||||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
--- 1033,1039 ----
|
||||
|
||||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string p1, "/?encoding=json&v=6"
|
||||
|
||||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
Only in com.discord-834/smali/com/discord/gateway: GatewaySocket.smali.orig
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/stores/StoreGatewayConnection.smali com.discord-834/smali/com/discord/stores/StoreGatewayConnection.smali
|
||||
*** com.discord-834-base/smali/com/discord/stores/StoreGatewayConnection.smali 2019-01-23 23:17:43.221161471 +0300
|
||||
--- com.discord-834/smali/com/discord/stores/StoreGatewayConnection.smali 2019-01-23 23:28:19.534418022 +0300
|
||||
***************
|
||||
*** 1413,1419 ****
|
||||
.line 290
|
||||
new-instance v10, Lcom/discord/gateway/rest/RestConfig;
|
||||
|
||||
! const-string v3, "https://discordapp.com/api/"
|
||||
|
||||
sget-object v4, Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;->INSTANCE:Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;
|
||||
|
||||
--- 1413,1419 ----
|
||||
.line 290
|
||||
new-instance v10, Lcom/discord/gateway/rest/RestConfig;
|
||||
|
||||
! const-string v3, "https://dev.litecord.top/api/"
|
||||
|
||||
sget-object v4, Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;->INSTANCE:Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;
|
||||
|
||||
Only in com.discord-834/smali/com/discord/stores: StoreGatewayConnection.smali.orig
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/utilities/icon/IconUtils.smali com.discord-834/smali/com/discord/utilities/icon/IconUtils.smali
|
||||
*** com.discord-834-base/smali/com/discord/utilities/icon/IconUtils.smali 2019-01-23 23:17:43.417829030 +0300
|
||||
--- com.discord-834/smali/com/discord/utilities/icon/IconUtils.smali 2019-01-23 23:27:49.450936045 +0300
|
||||
***************
|
||||
*** 359,365 ****
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
! const-string p3, "https://cdn.discordapp.com"
|
||||
|
||||
.line 103
|
||||
check-cast p3, Ljava/lang/CharSequence;
|
||||
--- 359,365 ----
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
! const-string p3, "https://dev.litecord.top"
|
||||
|
||||
.line 103
|
||||
check-cast p3, Ljava/lang/CharSequence;
|
||||
***************
|
||||
*** 407,413 ****
|
||||
:cond_3
|
||||
new-instance p3, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, "https://cdn.discordapp.com/channel-icons/"
|
||||
|
||||
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
--- 407,413 ----
|
||||
:cond_3
|
||||
new-instance p3, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, "https://dev.litecord.top/channel-icons/"
|
||||
|
||||
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
***************
|
||||
*** 649,655 ****
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
! const-string p2, "https://cdn.discordapp.com"
|
||||
|
||||
.line 135
|
||||
check-cast p2, Ljava/lang/CharSequence;
|
||||
--- 649,655 ----
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
! const-string p2, "https://dev.litecord.top"
|
||||
|
||||
.line 135
|
||||
check-cast p2, Ljava/lang/CharSequence;
|
||||
***************
|
||||
*** 699,705 ****
|
||||
:cond_2
|
||||
new-instance p2, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, "https://cdn.discordapp.com/icons/"
|
||||
|
||||
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
--- 699,705 ----
|
||||
:cond_2
|
||||
new-instance p2, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, "https://dev.litecord.top/icons/"
|
||||
|
||||
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
***************
|
||||
*** 900,906 ****
|
||||
:cond_0
|
||||
if-eqz p1, :cond_4
|
||||
|
||||
! const-string p2, "https://cdn.discordapp.com"
|
||||
|
||||
.line 82
|
||||
check-cast p2, Ljava/lang/CharSequence;
|
||||
--- 900,906 ----
|
||||
:cond_0
|
||||
if-eqz p1, :cond_4
|
||||
|
||||
! const-string p2, "https://dev.litecord.top"
|
||||
|
||||
.line 82
|
||||
check-cast p2, Ljava/lang/CharSequence;
|
||||
***************
|
||||
*** 969,975 ****
|
||||
:goto_1
|
||||
new-instance p3, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, "https://cdn.discordapp.com/avatars/"
|
||||
|
||||
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
--- 969,975 ----
|
||||
:goto_1
|
||||
new-instance p3, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, "https://dev.litecord.top/avatars/"
|
||||
|
||||
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
***************
|
||||
*** 1717,1723 ****
|
||||
.line 176
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v1, "https://cdn.discordapp.com/game-assets/"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
--- 1717,1723 ----
|
||||
.line 176
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v1, "https://dev.litecord.top/game-assets/"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
***************
|
||||
*** 1837,1843 ****
|
||||
.line 157
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v1, "https://cdn.discordapp.com/app-assets/"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
--- 1837,1843 ----
|
||||
.line 157
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v1, "https://dev.litecord.top/app-assets/"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/utilities/rest/RestAPI$Companion.smali com.discord-834/smali/com/discord/utilities/rest/RestAPI$Companion.smali
|
||||
*** com.discord-834-base/smali/com/discord/utilities/rest/RestAPI$Companion.smali 2019-01-23 23:17:43.447829167 +0300
|
||||
--- com.discord-834/smali/com/discord/utilities/rest/RestAPI$Companion.smali 2019-01-23 23:27:49.450936045 +0300
|
||||
***************
|
||||
*** 276,282 ****
|
||||
.line 213
|
||||
new-instance v0, Lcom/discord/restapi/RestAPIBuilder;
|
||||
|
||||
! const-string v9, "https://discordapp.com/api/"
|
||||
|
||||
check-cast v6, Lokhttp3/m;
|
||||
|
||||
--- 276,282 ----
|
||||
.line 213
|
||||
new-instance v0, Lcom/discord/restapi/RestAPIBuilder;
|
||||
|
||||
! const-string v9, "https://dev.litecord.top/api/"
|
||||
|
||||
check-cast v6, Lokhttp3/m;
|
||||
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/utilities/textprocessing/Rules$createCustomEmojiRule$1$parse$emojiNode$1.smali com.discord-834/smali/com/discord/utilities/textprocessing/Rules$createCustomEmojiRule$1$parse$emojiNode$1.smali
|
||||
*** com.discord-834-base/smali/com/discord/utilities/textprocessing/Rules$createCustomEmojiRule$1$parse$emojiNode$1.smali 2019-01-23 23:17:43.477829303 +0300
|
||||
--- com.discord-834/smali/com/discord/utilities/textprocessing/Rules$createCustomEmojiRule$1$parse$emojiNode$1.smali 2019-01-23 23:27:49.450936045 +0300
|
||||
***************
|
||||
*** 105,111 ****
|
||||
:goto_1
|
||||
new-instance p2, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, "https://cdn.discordapp.com/emojis/"
|
||||
|
||||
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
--- 105,111 ----
|
||||
:goto_1
|
||||
new-instance p2, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v0, "https://dev.litecord.top/emojis/"
|
||||
|
||||
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGameInvite.smali com.discord-834/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGameInvite.smali
|
||||
*** com.discord-834-base/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGameInvite.smali 2019-01-23 23:17:43.607829894 +0300
|
||||
--- com.discord-834/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGameInvite.smali 2019-01-23 23:27:49.450936045 +0300
|
||||
***************
|
||||
*** 605,611 ****
|
||||
.line 104
|
||||
new-instance v1, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v6, "https://cdn.discordapp.com/app-icons/"
|
||||
|
||||
invoke-direct {v1, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
--- 605,611 ----
|
||||
.line 104
|
||||
new-instance v1, Ljava/lang/StringBuilder;
|
||||
|
||||
! const-string v6, "https://dev.litecord.top/app-icons/"
|
||||
|
||||
invoke-direct {v1, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGift.smali com.discord-834/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGift.smali
|
||||
*** com.discord-834-base/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGift.smali 2019-01-23 23:17:43.614496591 +0300
|
||||
--- com.discord-834/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGift.smali 2019-01-23 23:27:49.450936045 +0300
|
||||
***************
|
||||
*** 1042,1048 ****
|
||||
:goto_3
|
||||
sget-object v10, Lcom/discord/utilities/icon/IconUtils;->INSTANCE:Lcom/discord/utilities/icon/IconUtils;
|
||||
|
||||
! const-string v11, "https://cdn.discordapp.com"
|
||||
|
||||
.line 116
|
||||
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGift$Model$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
||||
--- 1042,1048 ----
|
||||
:goto_3
|
||||
sget-object v10, Lcom/discord/utilities/icon/IconUtils;->INSTANCE:Lcom/discord/utilities/icon/IconUtils;
|
||||
|
||||
! const-string v11, "https://dev.litecord.top"
|
||||
|
||||
.line 116
|
||||
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGift$Model$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
@ -12,4 +12,5 @@ Please keep in mind that litecord is free (gratis and libre) software, provided
|
|||
#### Available and tested on:
|
||||
- 8.3.2
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
|
|
1907
patches/mutant/834.patch
Normal file
1907
patches/mutant/834.patch
Normal file
File diff suppressed because it is too large
Load diff
|
@ -19,6 +19,7 @@ Various scripts are provided to help building of custom patches easier.
|
|||
- 8.3.1 (CM and MMs are not supported on this version of the patch)
|
||||
- 8.3.2
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
#### Disclaimer
|
||||
|
||||
|
|
13
patches/necessary/834.patch
Normal file
13
patches/necessary/834.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff -crB -x dist com.discord-831/res/values/public.xml com.discord-831-patched/res/values/public.xml
|
||||
*** com.discord-831/res/values/public.xml 2019-01-18 19:05:56.057972374 +0300
|
||||
--- com.discord-831-patched/res/values/public.xml 2019-01-18 17:26:29.150818524 +0300
|
||||
***************
|
||||
*** 65,71 ****
|
||||
<public type="animator" name="selection_grow" id="0x7f02000a" />
|
||||
<public type="animator" name="selection_shrink" id="0x7f02000b" />
|
||||
<public type="animator" name="design_appbar_state_list_animator" id="0x7f020000" />
|
||||
- <public type="array" name="color_picker_palette" id="0x7f030000" />
|
||||
<public type="attr" name="actionBarDivider" id="0x7f040000" />
|
||||
<public type="attr" name="actionBarItemBackground" id="0x7f040001" />
|
||||
<public type="attr" name="actionBarPopupTheme" id="0x7f040002" />
|
||||
--- 65,70 ----
|
|
@ -8,4 +8,5 @@ If the version you're using is in the following list, please make sure to use th
|
|||
- 8.3.1
|
||||
- 8.3.2
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
|
|
87
patches/nonearby/834.patch
Normal file
87
patches/nonearby/834.patch
Normal file
|
@ -0,0 +1,87 @@
|
|||
diff -crB -x dist -x build com.discord-833-base/smali/com/discord/widgets/friends/NearbyManager.smali com.discord-833/smali/com/discord/widgets/friends/NearbyManager.smali
|
||||
*** com.discord-833-base/smali/com/discord/widgets/friends/NearbyManager.smali 2019-01-23 11:03:47.459035497 +0300
|
||||
--- com.discord-833/smali/com/discord/widgets/friends/NearbyManager.smali 2019-01-23 11:23:00.200709501 +0300
|
||||
***************
|
||||
*** 440,512 ****
|
||||
|
||||
# virtual methods
|
||||
.method public final activateNearby()V
|
||||
! .locals 9
|
||||
!
|
||||
! .line 58
|
||||
! iget-object v0, p0, Lcom/discord/widgets/friends/NearbyManager;->messagesClient:Lcom/google/android/gms/nearby/messages/MessagesClient;
|
||||
!
|
||||
! if-nez v0, :cond_0
|
||||
!
|
||||
! return-void
|
||||
!
|
||||
! .line 59
|
||||
! :cond_0
|
||||
! iget-object v1, p0, Lcom/discord/widgets/friends/NearbyManager;->outboundMessage:Lcom/google/android/gms/nearby/messages/Message;
|
||||
!
|
||||
! if-nez v1, :cond_1
|
||||
!
|
||||
! return-void
|
||||
!
|
||||
! .line 60
|
||||
! :cond_1
|
||||
! iget-object v2, p0, Lcom/discord/widgets/friends/NearbyManager;->messagePublishOptions:Lcom/google/android/gms/nearby/messages/PublishOptions;
|
||||
!
|
||||
! if-nez v2, :cond_2
|
||||
!
|
||||
! return-void
|
||||
!
|
||||
! .line 61
|
||||
! :cond_2
|
||||
! iget-object v3, p0, Lcom/discord/widgets/friends/NearbyManager;->messageListener:Lcom/google/android/gms/nearby/messages/MessageListener;
|
||||
!
|
||||
! if-nez v3, :cond_3
|
||||
!
|
||||
! return-void
|
||||
!
|
||||
! .line 62
|
||||
! :cond_3
|
||||
! iget-object v4, p0, Lcom/discord/widgets/friends/NearbyManager;->subscribeOptions:Lcom/google/android/gms/nearby/messages/SubscribeOptions;
|
||||
!
|
||||
! if-nez v4, :cond_4
|
||||
!
|
||||
! return-void
|
||||
!
|
||||
! .line 64
|
||||
! :cond_4
|
||||
! iget-object v5, p0, Lcom/discord/widgets/friends/NearbyManager;->nearbyStateSubject:Lrx/subjects/BehaviorSubject;
|
||||
!
|
||||
! new-instance v6, Lcom/discord/widgets/friends/NearbyManager$NearbyState$Connected;
|
||||
!
|
||||
! new-instance v7, Ljava/util/HashSet;
|
||||
!
|
||||
! iget-object v8, p0, Lcom/discord/widgets/friends/NearbyManager;->nearbyUserIds:Ljava/util/HashSet;
|
||||
!
|
||||
! check-cast v8, Ljava/util/Collection;
|
||||
!
|
||||
! invoke-direct {v7, v8}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
|
||||
!
|
||||
! check-cast v7, Ljava/util/Set;
|
||||
!
|
||||
! invoke-direct {v6, v7}, Lcom/discord/widgets/friends/NearbyManager$NearbyState$Connected;-><init>(Ljava/util/Set;)V
|
||||
!
|
||||
! invoke-virtual {v5, v6}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V
|
||||
!
|
||||
! .line 66
|
||||
! invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/nearby/messages/MessagesClient;->a(Lcom/google/android/gms/nearby/messages/Message;Lcom/google/android/gms/nearby/messages/PublishOptions;)Lcom/google/android/gms/tasks/g;
|
||||
!
|
||||
! .line 67
|
||||
! invoke-virtual {v0, v3, v4}, Lcom/google/android/gms/nearby/messages/MessagesClient;->a(Lcom/google/android/gms/nearby/messages/MessageListener;Lcom/google/android/gms/nearby/messages/SubscribeOptions;)Lcom/google/android/gms/tasks/g;
|
||||
!
|
||||
return-void
|
||||
.end method
|
||||
|
||||
--- 440,446 ----
|
||||
|
||||
# virtual methods
|
||||
.method public final activateNearby()V
|
||||
! .locals 0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
|
@ -5,4 +5,5 @@ This patch nulls a bunch of nearby friends features for privacy.
|
|||
#### Available and tested on:
|
||||
- 8.3.2
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
|
|
1685
patches/notrack/834.patch
Normal file
1685
patches/notrack/834.patch
Normal file
File diff suppressed because it is too large
Load diff
|
@ -9,4 +9,5 @@ Fuck telemetry.
|
|||
#### Available and tested on:
|
||||
- 8.3.2
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
|
|
26
patches/pureevil/834.patch
Normal file
26
patches/pureevil/834.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
diff -crB -x dist -x build com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali com.discord-834/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali
|
||||
*** com.discord-834-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali 2019-01-23 23:17:43.804497453 +0300
|
||||
--- com.discord-834/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali 2019-01-23 23:31:20.728628077 +0300
|
||||
***************
|
||||
*** 71,83 ****
|
||||
|
||||
check-cast v0, Landroid/view/View;
|
||||
|
||||
! const-string v1, "it"
|
||||
!
|
||||
! invoke-static {p1, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
!
|
||||
! invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
|
||||
!
|
||||
! move-result p1
|
||||
|
||||
invoke-static {v0, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy(Landroid/view/View;Z)V
|
||||
|
||||
--- 71,77 ----
|
||||
|
||||
check-cast v0, Landroid/view/View;
|
||||
|
||||
! const/4 p1, 0x1
|
||||
|
||||
invoke-static {v0, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy(Landroid/view/View;Z)V
|
||||
|
|
@ -7,4 +7,6 @@ This patch enables the secret AMOLED theme (which is shit).
|
|||
|
||||
#### Available and tested on:
|
||||
- 8.3.2
|
||||
- 8.3.3
|
||||
- 8.3.4
|
||||
|
||||
|
|
Reference in a new issue