
Graphic Equalizer is a mod that adds a music visualiser to your notification panel and lockscreen. It’s reported to work across CyanogenMod and Android Open Source Project ROMs, running either Android 4.4 KitKat or Android 5.0 Lollipop.
We have carried out this tutorial on a Mac, but the steps are the same for Linux and Windows users – just watch out for the ADB (Android Debug Bridge) commands which may vary.
Before attempting this hack, install ES File Explorer and Xposed Installer on your device, plus Android Studio and Apktool on your computer – place Apktool in a new folder, called ‘Apktools’.
Then download Graphic Equalizer on your computer. Leave this open as it contains code that you’ll need later. Attach your device to your computer and you’re ready to go!
—–
This tutorial first appeared in Android Magazine issue 51. Buy Android Magazine from all good shops, order it online or download it your device now.

./adb pull SystemUI.apk
Open your platform-tools folder, then the Terminal and change the directory so it’s pointing at platform-tools. Check the location of SystemUI.apk on your device and then ./adb pull it onto your computer.

Merge with Graphic Equalizer
Move SystemUI.apk to the apktools folder. Point your Terminal here: (cd /Users/username/apk
tools). Decompile SystemUI.apk with: ./apktool.txt d SystemUI.apk and open the new folder. Copy the Graphic Equalizer folder to smali/com.

Change your SystemUI files
Check Step 2 of the webpage mentioned in the introduction as it lists all the files you need to edit and the code to add. Open each file in a text editor and make the changes. Then, recompile SystemUI using: ./apktool.txt b SystemUI.

Alter smali files
Decompile System.UI.apk and open the SystemUI.apk/smali/com/adi/rom/interface/MusicEqualizerVisualizer.smali file. Open system ui/res/values/public.xml. Replace in .smali with public.xml values (listed in Step 4 XDA thread).

Edit your manifest
Open AndroidManifest.xml and add the permissions listed in Step 5 of the XDA thread. Re-compile (./apktool.txt b SystemUI). You need to disable application signature checks to push this to your device. Open Xposed Installer and download Xinstaller. Activate this, then reboot.

Use ./adb push
Check your device’s SystemUI.apk has read/write permissions by launching ES File Explorer, opening its side-menu and enabling Root Explorer. Next, tap Root Explorer>Mount R/W and set System to RW. Now replace SystemUI.apk with your modified one, using ./adb push.