How To Add Custom Switches in your roms (wifi,bluetooth,hotspot,etc)

Welcome everyone!!!

Here i Guide You to How to add custom switches  in your roms
Tested On kk

CAN BE APPLIED ON LP,CM,MM AND UP!!

Requirements:

Apktool
Knowledge of decompiling/recompiling
framework.apk
notepad++
some images
9 patch png (create here)

Process:
VIDEO GUIDE (SOON)




HERE WE GO!!!!!
  • Repeat all preivious steps for decompiling installing apktool from here 
  • after that decompile your framework.apk
  • after that open res/drawble-hdpiv4
  • now scroll through images and find all images having or starting with switch 
  • dont understand take help from below image 


  • i marked image with yellow pen for  easy stand now collect all png n copy them in a new folder 
  • in your apktool 
  • now understand image if image having switch disable means it covers the area when button is disabled
  • if pressed then when you press it 
  • if its only holo then it is in also in disabled mode 
  • if having thumb when you trying to on or off the switch
  • note: if pic having extention switvh_holo.9 means the image having .9 exten should be replaced by .9.png it can be created by using 9 patch tool mention in requirements
  • after creating suitable images replace png with png and .9.png with .9.png 
  • now open strings and find OFF and ON string or find code replace with any name whatever you want 

  • now all done this is very confiusing hope you get it_ need help feel free to comment below

  • recompile your systemui apkusing APKTOOL B framework
  • push your apk to your phone replace this with your original ,all done

  • THANX FOR READ :)
Previous
Next Post »