[CM12][tuto][theming][how to][video][apktool][Black][GLASS]3Minit Battery...Mods

Search This thread

089man

Senior Member
Sep 25, 2012
3,927
1,373
Can we flash in recovery? Please answer yes or no?

I9100 Tapatalk, RR 5.0.2 Lollipop
 

Troubadour666

Inactive Recognized Contributor
Aug 3, 2012
3,140
7,035
43.7031 - 7.2661
A little Material GLASS

Hi ,

regarding this thread, http://xdaforums.com/google-nexus-5/themes-apps/theme-material-glass-t3005025 , thanks to @asdfasdfvful , and as i want to learn about theming, i decompiled his work and apply on framework-res.apk and systemui.apk i have from @ab-samy with his last ROM : [ROM][GS2 I9100][LP 5.0.2][17/01/15] Roshnaie-ROM [End of Darkness][BETA] .
.
i will try to provide the xml code for our CM12 to all noob themer like me, guys.

see the result on rootexplorer and Notification Drawer ;)

Dark, Glass....transparency...and now CM12 theme chooser , all is good for our device in this new year .

thanks
 

Attachments

  • Screenshot_2015-01-17-16-57-49.png
    Screenshot_2015-01-17-16-57-49.png
    197.6 KB · Views: 226
  • Screenshot_2015-01-17-16-39-37.jpg
    Screenshot_2015-01-17-16-39-37.jpg
    63.3 KB · Views: 224

T-Rex

Senior Member
Jul 4, 2013
227
160
Marrakech
My Best Edit

guys i want to share with you some screenshot for my upcoming project BLACKandRED insipred from the tech reviewer MKBHD
thanks to :
@Vivek_Neel for the tutoriel
MKBHD for inspiration
and all the XDA community
guys can you plz give me some feedback before pushing the app to play store that would be nice
 

Attachments

  • Screenshot_2015-01-20-17-28-10.png
    Screenshot_2015-01-20-17-28-10.png
    66.8 KB · Views: 148
  • Screenshot_2015-01-20-17-28-25.png
    Screenshot_2015-01-20-17-28-25.png
    56.4 KB · Views: 144
  • Screenshot_2015-01-20-17-28-39.png
    Screenshot_2015-01-20-17-28-39.png
    45.7 KB · Views: 144
  • Screenshot_2015-01-20-17-28-48.png
    Screenshot_2015-01-20-17-28-48.png
    32.3 KB · Views: 142
  • Screenshot_2015-01-20-17-28-58.png
    Screenshot_2015-01-20-17-28-58.png
    39.5 KB · Views: 138
  • Screenshot_2015-01-20-17-29-09.png
    Screenshot_2015-01-20-17-29-09.png
    225.7 KB · Views: 137

Troubadour666

Inactive Recognized Contributor
Aug 3, 2012
3,140
7,035
43.7031 - 7.2661
TWEAKS

Hi,

i think we can mix themes :)
decompile two themes, copy some stuff from /theme1/assets/ to /theme2/assets/ and recompile, some folders should work and you can have good surprises :)

For example, i like
[Theme][CM 12] Material Glass
from @asdfasdfvful and i like fonts, red settings, contacts and dialer from @Vivek_Neel [cm 12 theme engine][theme][material dark red] , so i decompile com.vivek.red.c and then i copy com.vivek.red.c/assets/fonts/ , com.vivek.red.c/assets/overlays/com.android.settings/ , com.vivek.red.c/assets/overlays/com.android.contacts/ and com.vivek.red.c/assets/overlays/com.android.dialer/ to com.pitchedapps.material.glass.free/assets/ path and recompile com.pitchedapps.material.glass.free and replace on device so on FUSION from @sooti we have image on attachments.

give a try guys, it very simple and we can learn more with this method too.

thanks.
 

Attachments

  • Screenshot_2015-01-21-17-37-00.png
    Screenshot_2015-01-21-17-37-00.png
    45 KB · Views: 124
  • Like
Reactions: Adil Aziz

engloa

Senior Moderator
Staff member
Apr 18, 2011
6,138
1
21,011
Here & There ...
Hi,

i think we can mix themes :)
decompile two themes, copy some stuff from /theme1/assets/ to /theme2/assets/ and recompile, some folders should work and you can have good surprises :)

For example, i like
[Theme][CM 12] Material Glass
from @asdfasdfvful and i like fonts, red settings, contacts and dialer from @Vivek_Neel [cm 12 theme engine][theme][material dark red] , so i decompile com.vivek.red.c and then i copy com.vivek.red.c/assets/fonts/ , com.vivek.red.c/assets/overlays/com.android.settings/ , com.vivek.red.c/assets/overlays/com.android.contacts/ and com.vivek.red.c/assets/overlays/com.android.dialer/ to com.pitchedapps.material.glass.free/assets/ path and recompile com.pitchedapps.material.glass.free and replace on device so on FUSION from @sooti we have image on attachments.

give a try guys, it very simple and we can learn more with this method too.

thanks.


Or just follow this template and do it yourself from source :)
https://github.com/cyngn/android_packages_themes_Template
 
  • Like
Reactions: Troubadour666

Troubadour666

Inactive Recognized Contributor
Aug 3, 2012
3,140
7,035
43.7031 - 7.2661
DOS Command line utility ;)

Hi

imagine 6 apk to decompile in the folder you are , (assume apktool.bat and apktool.jar are in c:\windows\ folder or accessible in your %path%)

then let's go :)

C:\Apktool\GLASS\LayerTest>dir

Répertoire de C:\Apktool\GLASS\LayerTest

21/01/2015 21:34 4*587 MaterialDark_overlay_framework.apk
22/01/2015 01:25 372*941 MaterialDark_overlay_Settings.apk
21/01/2015 21:36 4*595 MaterialDark_overlay_systemui.apk
22/01/2015 01:00 4*579 Orange_overlay_framework.apk
22/01/2015 01:03 408*220 Orange_overlay_Settings.apk
22/01/2015 00:56 4*595 Orange_overlay_systemui.apk

C:\Apktool\GLASS\LayerTest>for %1 in (*.apk) do apktool d %1
.
C:\Apktool\GLASS\LayerTest>apktool d MaterialDark_overlay_framework.apk
I: Using Apktool 2.0.0-RC3 on MaterialDark_overlay_framework.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\skorpion\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

C:\Apktool\GLASS\LayerTest>apktool d MaterialDark_overlay_Settings.apk
I: Using Apktool 2.0.0-RC3 on MaterialDark_overlay_Settings.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\skorpion\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

C:\Apktool\GLASS\LayerTest>apktool d MaterialDark_overlay_systemui.apk
I: Using Apktool 2.0.0-RC3 on MaterialDark_overlay_systemui.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\skorpion\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

C:\Apktool\GLASS\LayerTest>apktool d Orange_overlay_framework.apk
I: Using Apktool 2.0.0-RC3 on Orange_overlay_framework.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\skorpion\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

C:\Apktool\GLASS\LayerTest>apktool d Orange_overlay_Settings.apk
I: Using Apktool 2.0.0-RC3 on Orange_overlay_Settings.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\skorpion\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

C:\Apktool\GLASS\LayerTest>apktool d Orange_overlay_systemui.apk
I: Using Apktool 2.0.0-RC3 on Orange_overlay_systemui.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\skorpion\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

C:\Apktool\GLASS\LayerTest>dir

22/01/2015 17:20 <REP> .
22/01/2015 17:20 <REP> ..
22/01/2015 17:19 <REP> MaterialDark_overlay_framework
21/01/2015 21:34 4*587 MaterialDark_overlay_framework.apk
22/01/2015 17:20 <REP> MaterialDark_overlay_Settings
22/01/2015 01:25 372*941 MaterialDark_overlay_Settings.apk
22/01/2015 17:20 <REP> MaterialDark_overlay_systemui
21/01/2015 21:36 4*595 MaterialDark_overlay_systemui.apk
22/01/2015 17:20 <REP> Orange_overlay_framework
22/01/2015 01:00 4*579 Orange_overlay_framework.apk
22/01/2015 17:20 <REP> Orange_overlay_Settings
22/01/2015 01:03 408*220 Orange_overlay_Settings.apk
22/01/2015 17:21 <REP> Orange_overlay_systemui
22/01/2015 00:56 4*595 Orange_overlay_systemui.apk


and voila, you have all apk decompiled in one time !

thanks.

thanks
 

Troubadour666

Inactive Recognized Contributor
Aug 3, 2012
3,140
7,035
43.7031 - 7.2661
I try it

Hi :)

have you try this app ?
https://play.google.com/apps/testing/net.darkion.theme.maker




about theming, with overlays/com.google.android.googlequicksearchboxplaying/ , touching /res/layout/user_folder.xml file by removing android:background="@drawable/quantum_panel" will give 'dark' or 'transparent' background in GoogleNow drawer instead of replacing "black" or "opaque" "quantum_panel.9.png" image in /res/drawable-xxhdpi/ like i saw in some theme i decompile.

just let you know.

WalkWay "oblique" fonts to use in your build theme with net.darkion.theme.maker :)
@marjune23 , attachments for u my friend ;)
 

Attachments

  • Screenshot_2015-01-26-19-24-52.png
    Screenshot_2015-01-26-19-24-52.png
    51.5 KB · Views: 278
  • Screenshot_2015-01-26-19-26-37.png
    Screenshot_2015-01-26-19-26-37.png
    47.6 KB · Views: 280
  • walkway_fonts.rar
    428.5 KB · Views: 12
Last edited:
  • Like
Reactions: marjune23

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    Hi All , and Happy New Year 2015 with Lollipop on I9100 ;)

    Its been long time i havent made a thread, this one is only to show you what i have learn around the NET (XDA is my House!) since i have my device .

    i show you how to use apktool and decompile/compile process of some apks system from our new CM12.

    The essential code to touch is in colors.xml and styles.xml files from decompiled sources , but you too, you have to know what to do with XML code.
    I'm not trying to teach you about XML CODE, i just show you how i compare xml code from another theme with code from rom i have on my device and i show you how i try to make/adapt the changement code .
    to learn about xml code , see @Goldie thread here :
    http://xdaforums.com/galaxy-s2/deve...de-understanding-creating-smali-mods-t2488033

    in my video, i worked on framework-res, systemui and settings .

    So you can make you little test a part and show us your change according my video. colors.xml and styles.xml are the best way to begin i think, according my great friend @Vivek_Neel and its thread here :
    http://xdaforums.com/android/themes/guide-t2978121/

    Hope you have a big device with large screen/displaying to read it as well, 720p is a must :)



    thanks.
    10
    3Minit Battery Mod on CM12

    Source :
    from @pas2001 for his thread 3Minit Battery Mod Updated: [03/09/14]
    http://xdaforums.com/showthread.php?t=2799958
    and
    http://xdaforums.com/showpost.php?p=53795131&postcount=4

    from @davidisflash , here is the working SystemUI.apk for CM12 unofficial rom on Note 4!!
    http://xdaforums.com/showpost.php?p=57646050&postcount=2468
    thanks for its SystemUI.apk from CM12.

    i decompiled SystemUI.apk from CM12 Note4 to gain MinitBattery$1.smali , MinitBattery$ResourceManager.smali and MinitBattery.smali files and have learned that i have to change some codes in system_icons.xml :) instead of status_bar.xml like in @pas2001 thread.

    here it is my code for SystemUI/layout/system_icons.xml :
    (in red , what i changed)

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
        <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/signal_cluster_view" />
        <com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="[COLOR="Red"]0.0[/COLOR]dip" android:layout_height="[COLOR="Red"]0.0[/COLOR]dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
        [COLOR="Red"]<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />[/COLOR]
    </LinearLayout>

    You need to download 3MinitBatteryModFiles2.2_MD5_2aaf0531d4b8c74b33aacdba79575221.zip from @pas2001 thread (1rst post) and only take 3MinitBatterySettings.apk from it if you plan to use this mod. Then you will install 3MinitBatterySettings.apk on your device. Personaly, i installed it on /data/app/ , set permissions and reboot.

    In attachements, find a little pack containing only 3 smali files you need to add in SystemUI\smali\com\android\systemui\statusbar\policy according 1rst post from @pas2001.
    3 files are : MinitBattery$1.smali , MinitBattery$ResourceManager.smali and MinitBattery.smali .

    if you have installed CM12 on your device, you can try my SystemUI.apk in attachment too. (from beta5 or beta6)

    Its easy to decompile, make the change and compile too.

    Enjoy

    thanks

    ALL Credits to @gharrington .
    7
    CM12 Material_Black Theme

    Hi,

    this is my last theming with Material_Black theme , following post4

    CWM-I9100-CM12-Beta8-Material_Black-master-3MinitBatteryINCLUDE .zip - 22.02 MB

    i have themed black Dialer.apk and Contacts.apk

    ABOUT MY SystemUI.apk , you have to install 3MinitBatterySettings.apk as describe in post3 and post4.

    Also , i have added networkspeedindicator from @thanhfhuongf in my SystemUI.apk too.
    (his this thread here http://xdaforums.com/galaxy-note-3/themes-apps/guide-lollipop-network-status-bar-t2998932)

    for all of the followers insterested by theming it BLACK , i will post my colors.xml and style.xml soon, for all apk.
    there are some other xml to modify too and png/jpg to change.

    i'm open for other things if you have some ideas. i'm not moding but just theming, i mean, only colors and png images.

    give a try and report.
    thanks.

    UPDATE :
    NEW CWM package : 3MinitBattery and network speed indicator have been removed from SystemUI.apk.

    I9100-CM12-Beta8-Material_Black-master.zip - 22.05 MB

    or download SystemUI.apk in attachement, replace in CWM-I9100-CM12-Beta8-Material_Black-master-3MinitBatteryINCLUDE .zip if you have downloaded it before and reflash.
    5
    BLACK our CM12

    Inspirations and all credits :
    @Vivek_Neel for:
    [Guide][How to theme lollipop roms with ease]
    http://xdaforums.com/android/themes/guide-t2978121
    Euphoria Dark :
    http://xdaforums.com/showpost.php?p=58075585&postcount=635
    @nicholaschum for :
    http://xdaforums.com/galaxy-s3/themes-apps/flashable-material-dark-temasek-t2993376
    http://xdaforums.com/galaxy-note-3/themes-apps/flashable-material-dark-temasek-t2992088
    @androidous for his post and his autodidactic method i used too
    http://xdaforums.com/showpost.php?p=58038461&postcount=399
    and his github here :https://github.com/androidous/Material_Black

    method of work :
    - decompile all stuff from themes in intro.
    - decompile all my need from CM12 I9100
    - by comparison, change only made on colors.xml and styles.xml in /res and some other little xml in /drawable or /layout

    All my CWM Flashable files are here : http://d-h.st/users/skorpion/?fld_id=42551#files

    details of files : contacts.apk, dialer.apk, systemui.apk, settings.apk, framework-res.apk and maybe trebuchet (not sure)

    FINAL-Material_Black-master-CM12-BETA7.zip

    FINAL-Material_Black-master-3MinitBattery-CM12-BETA7.zip
    CM12-EUPHORIAbattery.zip
    (these two files need that you have installed 3MinitBatterySettings.apk from 3MinitBatteryModFiles2.2_MD5_2aaf0531d4b8c74b33aacdba79575221.zip , see post4 bellow)

    STOCK--CM12-BETA7.zip
    (return to stock CM12 beta7)

    Its not perfect but perfection will come soon, its just my first shoot about complete theming , just try it !

    Voilà ;)
    3
    Source :
    from @pas2001 for his thread 3Minit Battery Mod Updated: [03/09/14]
    http://xdaforums.com/showthread.php?t=2799958
    and
    http://xdaforums.com/showpost.php?p=53795131&postcount=4

    from @davidisflash , here is the working SystemUI.apk for CM12 unofficial rom on Note 4!!
    http://xdaforums.com/showpost.php?p=57646050&postcount=2468
    thanks for its SystemUI.apk from CM12.

    i decompiled SystemUI.apk from CM12 Note4 to gain MinitBattery$1.smali , MinitBattery$ResourceManager.smali and MinitBattery.smali files and have learned that i have to change some codes in system_icons.xml :) instead of status_bar.xml like in @pas2001 thread.

    here it is my code for SystemUI/layout/system_icons.xml :
    (in red , what i changed)

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
        <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/signal_cluster_view" />
        <com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="[COLOR="Red"]0.0[/COLOR]dip" android:layout_height="[COLOR="Red"]0.0[/COLOR]dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
        [COLOR="Red"]<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />[/COLOR]
    </LinearLayout>

    You need to download 3MinitBatteryModFiles2.2_MD5_2aaf0531d4b8c74b33aacdba79575221.zip from @pas2001 thread (1rst post) and only take 3MinitBatterySettings.apk from it if you plan to use this mod. Then you will install 3MinitBatterySettings.apk on your device. Personaly, i installed it on /data/app/ , set permissions and reboot.

    In attachements, find a little pack containing only 3 smali files you need to add in SystemUI\smali\com\android\systemui\statusbar\policy according 1rst post from @pas2001.
    3 files are : MinitBattery$1.smali , MinitBattery$ResourceManager.smali and MinitBattery.smali .

    if you have installed CM12 on your device, you can try my SystemUI.apk in attachment too. (from beta5)

    Its easy to decompile, make the change and compile too.

    Enjoy
    Great job mate. But don't forget the real owner of 3minit battery mod @gharrington. I am only his team member.
    BTW you guys can support by buy app in playstore. It up to date with new tabs function.
    Thank.