Jump to content


Photo

[MOD / GUIDE] CoverFlow Theme Chooser Layout [Source or Hack]


  • Please log in to reply
6 replies to this topic

#1
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X

THIS IS ONLY FOR FOR ROM'S THAT ALREADY HAVE THE THEME CHOOSER IMPLEMENTED


EXCUSE THE LOW QUALITY OF THE .GIF BELOW


Posted Image





first post will cover the guide on how to include this from .smali hacks, intended for people who don't compile there ROM from source.

the second post explains how to include it from source, this is actually recommended as you wont have to keep doing this every time









THINGS YOU WILL NEED FROM YOUR ROM

the whole ROM .zip on your PC
framework.jar from the ROM



TOOLS YOU WILL NEED TO WORK WITH (LINKS PROVIDED)

7zip > http://www.7-zip.org/download.html
jar decomplier / recomplier > http://ubuntuone.com...B9DlVRiSPtmmPtM (How To Use)
notepad ++ > http://notepad-plus-...nload/v6.3.html



FIRST

adding the CoverFlow code

decompile framework.jar with "jar decompiler / compiler"

navigate to
android\widget\

download this .rar, > Attached File  ADD-TO-WIDGET.rar   16.76KB   9 downloads
extract it and add all the files into the above directory (just the files not folder)

now we are done with the framework, compile it and add the new classes.dex inside the framework.jar (use 7zip)

now add the new framework.jar back into your ROM .zip (drag & drop into the framework directory)



SECOND

download and extract the tools we will be using to your desktop
Link: Here

you should now have a "ResignUpdateV2.1.3" folder, add your ROM to the folder, and the two .apk from this .rar > Attached File  ADD-APK.rar   229KB   8 downloads
copy the whole name of your ROM including the .zip part
right click on "ResignUpdate.bat" and select open with notepad++
replace "system.zip" with the name of your ROM by highlighting it then pressing paste
save and exit.

open your ROMs .zip and navigate to system\app find Phone.apk, drag and drop it into "ResignUpdateV2.1.3", then close.

now right click on Phone.apk and select open, drag and drop the " META-INF" folder into "ResignUpdateV2.1.3"
now you can close and delete the Phone.apk as we just wanted the folder we took.

right click on the two .apk you extracted and select open, delete the " META-INF" folder from both .apk
now drag and drop the " META-INF" folder we took from phone in to both .apk, once its updated close.

open your ROMs .zip and drag and drop both .apk into the system\app folder, then close.

now double click "ResignUpdate.bat" and your new ROM zip will be created

Toggle2G will also be added to the ROM, so if you don't want it just delete it from the app folder of your new ROM .zip


​flash with a full wipe... including format system





I ADVISE YOU TRY THIS METHOD FIRST IF ON A LOWER VERSION OF ANDROID THAN 4.2

ONCE YOU KNOW IT WORKS ADD IT TO YOUR SOURCE

​ DON'T TRY ON GINGERBREAD IT WONT WORK !!!


  • 4

#2
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X

GUIDE TO ADD FROM SOURCE



FIRST

Extract the .zip to your desktop,

Attached File  source.zip   309.73KB   9 downloads

now i will assume you are in the root of your source folder

copy the CoverFlow.java file into

frameworks_base / core / java / android / widget


SECOND

where ever you have your "ThemeChooser" source, delete it and replace it with the one from the zip
(example: vender / tmobile / apps)

do the same for ThemeManager
(example: vender / tmobile / providers)

and then the same for the libs
(example: vender / tmobile / libs)

to avoid compile errors don't build dirty, (delete the "out" folder)

  • 3

#3
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X
source guide added :)

  • 0

#4
kyan31

kyan31

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,889 posts
  • Gender:Male
awesome, thanks for the guide :)

  • 0

e2199c4dbb.png823c51b6b0.pngc3f6e04cdb.pngbc36a18046.pngead60d1912.pnge46a22ae54.png

 

Phones: Samsung Galaxy S4 Qualcomm & Huawei Ascend G300

PC: AMD FX 8350 8 CORE 4.2Ghz CPU, 16GB 1600Mhz Kingston HyperX RAM, Gigabyte R9 270X Winforce Edition GPU

Like my work? Hit that +1 button as a thank you! Want to support me? You could consider donating!  :)

Subscribe to my YT Channel: https://www.youtube.com/user/thekyan31


#5
flajko

flajko

    Newbie

  • Members
  • Pip
  • 21 posts
  • Devices:huawei ascend g300
Tillaz you allways put a smile on my face when you post new stuff! Big fan of yours
This is somewhat realted to this post, I wanted to ask you if you could write tutorial for creative noobs like me to make our own themes!
I couldn't find guide for that, I'm sorry if I missed it.

  • 0

#6
smweb

smweb

    Diehard

  • Members
  • PipPipPipPip
  • 411 posts
  • Devices:Ascend G300
Awesome work Tillaz :D

  • 0

#7
fr0do

fr0do

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,156 posts
  • Gender:Male
  • Devices:Huawei G300
Tillaz: have you seen the xtheme engine stuff over on XDA? Any chance you could convert your themes to work with that?

  • 0

Posted Image


#8
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X

Tillaz: have you seen the xtheme engine stuff over on XDA? Any chance you could convert your themes to work with that?


yeah, was looking at it the other day,
only problem is, my themes heavily use the styles.xml which can't be changed and may never be possible apparently :(

i might actually make a theme from scratch for it though

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users