[Guide] Add Gradient Statusbar In Any Device - Build Your Own ROM #2


This guide will show you on how to add Gradient Statusbar in any device. This will work on all devices as long as you follow the guide properly. It is very easy.
With this guide you can make your own modded ROM (make sure to give proper credits, all credits in the Credits section below)


This guide shall not be re-shared or re-posted anywhere else.

Things You Need :
- Modded Apktool : Download
- Gradient Files : Download
- Gradient App V2 : Download
- Little experience
- My amazing guide :p


How To :
- First Download all the files from Things You Need Section
- Unzip apktool_Ajit.zip
- Inside the apktool folder press Shift + Right Click and select Open Command Window Here
- Get your ROM's SystemUI.apk and framework-res.apk and place then inside the apktool folder (make sure SystemUI.apk can be recompiled without errors)
- In Command Prompt type "apktool if framework-res.apk" without "" and press enter
- Type "apktool d SystemUI.apk" without ""
- Unzip Gradient smali.zip and merge the smali folders from the gradient smali folder to your decompiled SystemUI
- Go to /res/layout/status_bar.xml
- Search for a line similar to this :
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"  


- And change android:background to
android:background="#00000000"


- Paste This Code :
<potato.mariozawa.statusbargradient.Gradient android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"/>  
Note : If not able to copy the above code, copy it from here : Click Here - Under This :
xmlns:android="http://schemas.android.com/apk/res/android">

- Save the file
- Open Command Prompt
- Type apktool b SystemUI
- It doesn't matter if you get errors, if at the end you get Building APK file then you are good to go
- After it has been recompiled go to SystemUI/original/
- Copy the files inside
- Go to SystemUI/build/apk/
- Paste the files there and replace existing files
- Select all files and right click and select Add to archive

- In name type first "SystemUI.zip" without "" and then type "SystemUI.apk" without "" and click ok
- Push the SystemUI.apk to your device
- Reboot.
- After reboot install the gradient app from Things You Need section.

Whola You have added Gradient statusbar to your device.


For MTK Users :
First make sure you can recompile your SystemUI.apk correctly. To do this :
1) Decompile SystemUI.apk
2) Without modding SystemUI.apk recompile it again.
If you are able to recompile successfully then good if not there is nothing I can do

You must add this line :
<potato.mariozawa.statusbargradient.Gradient android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"/>
Note : If not able to copy the above code, copy it from here : Click Here

Below this line :
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

Credits : 
Ajit Guraya - For this step by step guide and also for making the Gradient smali compatilbe with the modded apktool
Big thanks to mariozawa - For this awesome Gradient Status bar smali and app.

[Guide] Add Gradient Statusbar In Any Device - Build Your Own ROM #2 [Guide] Add Gradient Statusbar In Any Device - Build Your Own ROM #2 Reviewed by MTK Hacker Pro on 9:58 AM Rating: 5

2 comments:

  1. please activate the right click so i can copy/paste the codes

    ReplyDelete
    Replies
    1. reload this page, there is a link from where you can copy the code

      Delete

Powered by Blogger.