Skip to content

MrSluffy/sis-res

Repository files navigation

Substratum Icons Special A11 (resources used)

  • layout
  • drawable
  • dimens
  • integer
  • color

Create your own Module to used S.I.S in your favorite android 11 custom roms

  • For educational purposes only
  • I'm no responsible for any damage on your device. Do this at on your own risk*

Step 0: PRECONFIGURATIONS!

Install/Use Apktool for PC from here

for mobile you can use ApkToolX by AndroBlack arm7 arm64 Zarchiever.apk here vrtheme XDA, github

ApkToolX Requirements

  • Your rom should have an SELinux permissive state, get permissiver from here
  • BusyBox NDK (Optional, sometimes you get "/system/bin/sh not found error without busybox) repo
  • Root Magisk

Installing Apktool X in Mobile

Install Apktool X like any other APK after installing it will ask again to install .Install once again

Open ApktoolX then go to Settings

*Check/tick Add Apktool and Option flags *Install OpenJDK

See Sreenshot for references

  • Now Import our framework in Apktool X
  • Go to system folder -> framework -> framework-res.apk
  • click framework-res.apk and choose import as framework
  • done

Decompiling / Recompiling SystemUI

  • Make a folder in your sdcard and name it Mod
  • using root explorer copy your SystemUI.apk in created Mod folder
/system/system_ext/priv-app/SystemUI
  • Now open Apktool X and go to your Mod folder
  • Click SystemUI.apk, and Choose Decompile res
  • Using a TextEditor open sdcard/Mod/SystemUI_src/res/values/styles.xml
Search these styles

<style name="Keyguard.ImageButton.NumPadDelete" parent="@android:style/Widget.ImageButton">

you will see a duplicate attribute which is

<item name="android:src">@drawable/ic_backspace_black_24dp</item>

delete that line (so only 1 instead of 2 lines are left of it)

See for reference
==========================================
from this

    <style name="Keyguard.ImageButton.NumPadDelete" parent="@android:style/Widget.ImageButton">
        <item name="android:paddingBottom">11.0sp</item>
        <item name="android:src">@drawable/ic_backspace_black_24dp</item>
        <item name="android:src">@drawable/ic_backspace_black_24dp</item>
        <item name="android:tint">@color/pin_delete_color</item>
        <item name="android:tintMode">src_in</item>
    </style>
    
    to This 

        <style name="Keyguard.ImageButton.NumPadDelete" parent="@android:style/Widget.ImageButton">
        <item name="android:paddingBottom">11.0sp</item>
        <item name="android:src">@drawable/ic_backspace_black_24dp</item>
        <item name="android:tint">@color/pin_delete_color</item>
        <item name="android:tintMode">src_in</item>
    </style>

==========================================

and Same with 

<style name="TextAppearance.NotificationImportanceApp" parent="@style/TextAppearance">

<style name="TextAppearance.NotificationImportanceChannel" parent="@style/TextAppearance">
  
<style name="TextAppearance.NotificationImportanceChannelGroup" parent="@style/TextAppearance">

Delete the duplicated attribute 

  • Now Open Apktool X and tap SystemUI_src and choose Recompile

Create Module to Support S.I.S

You have already learned Decompiling and Recompiling SystemUI

  • Now to create S.I.S Module
  • In my provided files
  • in toMerge folder , Copy layout and drawable folder and paste it to your SystemUI_src/res/HERE (dont create a folder called here)
  • in toCompare Compare S.I.S layout to your SystemUI_src
How to properly compare:
open 2 files

file 1: a file from the "ToCompare" folder
file 2: a file with the same name from your /res/layout folder

search for "Compare start" in the "ToCompare" file
check if your file looks the same as the "ToCompare" file

do this until you reach "Compare stop"



Repeat for all files in the "ToCompare" folder

*Note Compare not Replace!

  • Now Recompile!

Replacing

  • In your Zarchiever
  • Open SystemUI_src.apk
  • select all the modified res (files you modded) copy and replace the files inside of:
  • S.I.SvrTheme[MAGISK].zip vrtheme/system/system_ext/priv-app/SystemUI/Systemui.apk/res/HERE
  • now install your S.I.SvrTheme[MAGISK].zip in your Magisk
  • And Enjoy S.I.S A11 (you can also edit module.prop to change name, ID, and other things about the module)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published