Changing default Theme selections in TiviMate 5.3.3 Part 1

This guide applies specifically to the 'Ian Mod' of TiviMate 5.3.3

How do you know if I have the 'Ian Mod' version of the app?
- If you have libiptvappsdotnet and libcockpitdotlol in your /libs directory, it's the Ian Mod (or a mod of that.)

It changes the defaults used by a fresh installation for:

    Background color
    Accent color
    Selection/focus color


The settings remain user-selectable afterward.

1. Open the APK

Using either MT Manager or APKTool:

Code:
apktool d -f "TiviMate_5.3.3.apk" -o "TiviMate_theme"

Open this Smali file:

Code:
classes16\ᵘʓᵢᵪ.smali

Do not edit the shared integer constants at the beginning of <clinit>. They are reused by unrelated preferences. Make only the three edits below.
--------------------------
2. Set the default background color

Search for this unique field assignment:

Smali:
sput-object v2, Lᵘʓᵢᵪ;->ˋʿᵥᵔ:Lᵥᵵᵶᵩ;

Immediately above it, replace:

Smali:
Code:

move-object/from16 v4, v46

invoke-static {v2, v4}, Lᵸˊʾᵜ;->ːˏᵟᵯ(Landroid/content/SharedPreferences;Ljava/lang/Object;)Lᵥᵵᵶᵩ;


with:

Smali:
Code:

const/16 v4, 0x11

invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v4

invoke-static {v2, v4}, Lᵸˊʾᵜ;->ːˏᵟᵯ(Landroid/content/SharedPreferences;Ljava/lang/Object;)Lᵥᵵᵶᵩ;

------------------
Change 0x11 to the wanted background:

0x0	Red
0x1	Pink
0x2	Purple
0x3	Indigo
0x4	Blue
0x5	Cyan
0x6	Teal
0x7	Green
0x8	Lime
0x9	Yellow
0xa	Amber
0xb	Orange
0xc	Brown
0xd	Grey
0xe	Blue grey
0xf	Dark grey
0x10	Black
0x11	Dark — original default

[th]Value[/th][th]Background[/th]

-------------------------------
3. Set the default accent color


Search for:

Smali:
sput-object v2, Lᵘʓᵢᵪ;->ˑˀˉᵲ:Lᵥᵵᵶᵩ;

Immediately above it, replace:

Smali:
Code:

move-object/from16 v5, v45

invoke-static {v2, v5}, Lᵸˊʾᵜ;->ːˏᵟᵯ(Landroid/content/SharedPreferences;Ljava/lang/Object;)Lᵥᵵᵶᵩ;

with:

Smali:
Code:

const/16 v5, 0x4

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v5

invoke-static {v2, v5}, Lᵸˊʾᵜ;->ːˏᵟᵯ(Landroid/content/SharedPreferences;Ljava/lang/Object;)Lᵥᵵᵶᵩ;

Change 0x4 to the wanted accent:

0x0	Red
0x1	Pink
0x2	Purple
0x3	Indigo
0x4	Blue — original default
0x5	Cyan
0x6	Teal
0x7	Green
0x8	Lime
0x9	Yellow
0xa	Amber
0xb	Orange
0xc	Brown
0xd	Grey
0xe	Blue grey
0xf	Black
[th]Value[/th][th]Accent[/th]

----------------------------
Download files