[Guide][Lp-MM-N]Adv Rom control in to stock Settings - Sony Cross-Device Development Themes and Apps

hello guys
After long day
i got free time
Today i am going to share Adv Rom control to Settings Integration....
Posting tuts and making settings for them ..... argh.........!
Wasting my time
So i am going to Share you This Easy Preferences.....!
Easy to work with and Easy to use .. thanks to @daxgirl for such a great work... thank you
Using that i had my personal changes to work in built settings and updated color picker and few
Ok lets start on integration of Rom control v1 to your Stock settings ( tested on my Kryptonian Roms )
so here guys, all you need
- Super User Mod ( MM/N, LP )
- Deodexed Stock settings
- Apktools ( i used apktool 2.x )
- and Patience
1. Decompile your Settings.apk
2. Now download this View attachment Settings.apk.zip
3. Extract them and Merge to Stock settings
4. Open Androidmanifest.xml and add these Persmissions
Code:
<uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />
5. In Settings.apk/res/values/arrays.xml add this
Code:
<string-array name="dashboard_switches_entries">
<item>Switches off</item>
<item>Switches on</item>
</string-array>
<string-array name="dashboard_switches_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="dashboard_columns_entries">
<item>One</item>
<item>Two</item>
<item>Three</item>
</string-array>
<string-array name="dashboard_columns_values">
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
6. In Settings.apk/res/values/attrs.xml add these
Code:
<attr name="colorPrimary" format="color" />
<attr name="colorPrimaryDark" format="color" />
<attr name="colorAccent" format="color" />
<declare-styleable name="ThumbnailListPreference">
<attr name="drawableArray" format="reference" />
<attr name="entryList" format="reference" />
<attr name="entryValuesList" format="reference" />
<attr name="entryDefault" format="string" />
</declare-styleable>
<attr name="switchClass" format="string" />
7. Open Settings.apk/res/values/colors.xml
add these
Code:
<color name="colorAccent">#ffff4081</color>
<color name="colorPrimary">#ff3f51b5</color>
<color name="colorPrimaryDark">#ff303f9f</color>
8. Open Settings.apk/res/values/dimens.xml
add this
Code:
<dimen name="button_size">30.0dip</dimen>
9. Open settings.apk/res/values/string.xml
add these
Code:
<string name="ok">OK</string>
<string name="app_reboot_required_title">App Reboot Required</string>
<string name="app_reboot_required_message">%1$s reboot is required for the changes to take effect.\n\nReboot now?</string>
<string name="dialog_color_picker">Color Picker</string>
<string name="press_color_to_apply">Press on Color to apply</string>
<string name="hex">Hex:</string>
<string name="hex_hint">\#ff000000</string>
Save and Close all
Continued in Next post

Final
Continuation
10. open settings.apk/res/xml/dashboard_categories.xml
add this Any where you like ( i had added under personal header setting )
If under Personal Header then follow this
Find this
Code:
<dashboard-category android:id="@+id/personal_section" android:title="@string/header_category_personal" android:key="@string/category_key_personal">
Below that add this
Code:
<dashboard-tile android:id="@+id/kryp_control" android:title="Kryptonian Menu" android:fragment="com.android.settings.kryp.krypton" />
If you want to add any logo then add this ( Example ) android:icon="@drawable/ic_settings_krypton"
it look like this
Code:
<dashboard-tile [COLOR="red"]android:icon="@drawable/ic_settings_krypton"[/COLOR] android:id="@+id/kryp_control" android:title="Kryptonian Menu" android:fragment="com.android.settings.kryp.krypton" />
and then place the icon in drawable folder in name of ic_settings_krypton and done...!
Now compile and Decompile ... now open
Settings.apk\smali\com\android\settings\kryp\krypton.smali
in that change the public id
Code:
<public type="xml" name="[COLOR="red"]krypton_settings[/COLOR]" id="[COLOR="red"]0x7f080089[/COLOR]" />
Done....!
Compile and Replace with your settings and test
And how this works will be explained in next post
Done Forget to mention me if you use my work

Adding more Preference xml layouts
Apologize for my explanation
The Krypton.smali is linked with krypton_settings.xml where it acts as Dashboard Header over settings part
example.smali is a preferenceScreen Fragments which is linked to kryp_example.xml
So handlerpreferences can be run trough the example.smali fragment
How to add more Preference settings in krypton Dashboard preference
1. copy the example.smali and paste in it with different name like.. displaysettings.smali
2. Open that displaysetting.smali and replace all example to displaysettings
3. the same way create a xml ( kryp_example / kryp_displaysettings )
4. Now in displaysetting.smali change kryp_example to kryp_displaysettings and save
and in krypton_settings.xml add this
add this
Code:
<PreferenceScreen android:id="@+id/example_control" android:title="Basic" android:summary="example of basic pref" android:fragment="com.android.settings.kryp.settings.[COLOR="Red"]displaysettings[/COLOR] " />
So in this Way you can add as many you like to have
How Preferences Work:-
Here The Complete mod work on Key preferences
android:key
android:title = write your title
android:defaultValue = it can be "true" (on) "false" (off) / "1" (on) "0" (off) by default
android:summary = summary msg never change on action.. static msg shown
android:summaryOn = summary msg below shown when status is enabled
android:summaryOff = summary msg below shown when status is disabled
android:icon="@null" will show no icon , if its android:icon="@drawable/ic_settings_krypton" then add an icon in drawable in name of ic_settings_krypton.
android:max="24" will end max to 24 from 1
android:min="2" will start from 1 till max given
unitsRight="" units may be dp/ dip / sec Right meant will Show on right side of seek bar pref
unitsLeft="" units may be dp/ dip / sec Right meant will Show on left side of seek bar pref
Switch preference
Code:
<SwitchPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="[COLOR="red"]true[/COLOR]" android:summaryOn="Shown" android:summaryOff="Hidden" />
CheckBox Preference
Code:
<CheckBoxPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="false" android:summaryOn="Shown" android:summaryOff="Hidden" />
SeekBar Preference
Code:
<com.android.settings.kryp.settings.prefs.SeekBarPreference android:max="24" android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="1" min="1" unitsRight="" />
ListPreferences
Code:
<com.android.settings.kryp.settings.prefs.MyListPreference android:entries="@array/entries" android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="8" android:dialogTitle="Dialog title" android:entryValues="@array/values" />
ColorPreferences color Hex code ff737373 change as you need
Code:
<com.android.settings.kryp.settings.prefs.ColorPickerPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="\#ff737373" alphaSlider="true" />
EditText Preferences
Code:
<com.android.settings.kryp.settings.prefs..MyEditTextPreference android:defaultValue="simpletext" android:key="[COLOR="Red"]Main_key[/COLOR]" android:title="Title" />
ohppppppppppppp.... done.!
Have fun guys

Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.

nitesh9 said:
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
Click to expand...
Click to collapse
+1
Verstuurd vanaf mijn F8331 met Tapatalk

nitesh9 said:
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
Click to expand...
Click to collapse
Pandemic said:
+1
Verstuurd vanaf mijn F8331 met Tapatalk
Click to expand...
Click to collapse
Its a complete Customized from your part bro
So it vary from device to device
Only so i havent gave any SS
If you want to see How my settings look like
Then Check These Screen shots
https://forum.xda-developers.com/showpost.php?p=68806751&postcount=2

Wow looks nice, status bar its great

When I decompile settings, and try to recompile, it doesnt work. I dont get a log, or anything! It just keeps on recompiling. Any ideas? I have used every version of apktool I could get my hands on.
Thanks

venkat kamesh said:
hello guys
After long day
i got free time
Today i am going to share Adv Rom control to Settings Integration....
Click to expand...
Click to collapse
great work.... :good:
i got succeeded on this

@venkat kamesh bro i want to make this but in android 7 ( on xperia z5 ) , there is no " dashboard_categories.xml " in " settings.apk/res/xml "
would you please tell me that correct xml name?
i searched a lot but couldnt found
thanks a lot

Hamidreza2010 said:
@venkat kamesh bro i want to make this but in android 7 ( on xperia z5 ) , there is no " dashboard_categories.xml " in " settings.apk/res/xml "
would you please tell me that correct xml name?
i searched a lot but couldnt found
thanks a lot
Click to expand...
Click to collapse
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm

venkat kamesh said:
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
Click to expand...
Click to collapse
bro i have supersuer mod
but please tell me how can i do final part ?
https://forum.xda-developers.com/showpost.php?p=70574874&postcount=2
i mean part 10
wait for your help or please update second post.thanks

venkat kamesh said:
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
Click to expand...
Click to collapse
@Hamidreza2010
What Venkat is saying is you need to add new tile on the android-manifest.xml file
it is the project manifest file for any standard android app.
Decompiling an apk would also decompile the manifest file in plain english.
you can look at the file with notepad++ and see that there are many activities and permissions and other primitive android class's objects are being manifested so that the delvik VM can know which class can run their objects and which cant.
Maybe a new tile needs to be mentioned [initialized] there somehow to add it 
 @venkat kamesh can explain the rest i think

@venkat kamesh PLEASE UPDATE FIRST PAGE
i want make this for android N
but second post has my problem
thanks

Hamidreza2010 said:
@venkat kamesh PLEASE UPDATE FIRST PAGE
i want make this for android N
but second post has my problem
thanks
Click to expand...
Click to collapse
What problem? You can do this on N

panzerox123 said:
What problem? You can do this on N
Click to expand...
Click to collapse
in android N there is no dashboard_category.xml and we should add into androidmanifest.xml
but i dont know where of androidmanifest.xml
for this i tell please update

Hamidreza2010 said:
in android N there is no dashboard_category.xml and we should add into androidmanifest.xml
but i dont know where of androidmanifest.xml
for this i tell please update
Click to expand...
Click to collapse
That I'm not sure of, sorry... I'm still on marshmallow unfortunately...

@venkat kamesh bro would you please give me your time for 5 min?
just please update final part for android N
i did some steps but cant do it in final part ( i want to make it in android 7 for z5 )
https://forum.xda-developers.com/showpost.php?p=70956230&postcount=10
thanks

Hamidreza2010 said:
@venkat kamesh bro would you please give me your time for 5 min?
just please update final part for android N
i did some steps but cant do it in final part ( i want to make it in android 7 for z5 )
https://forum.xda-developers.com/showpost.php?p=70956230&postcount=10
thanks
Click to expand...
Click to collapse
Sorry for late reply
Presently I don't have z5 or nougat
Once I get it.. I will update it bro
Sent from my C6902 using XDA-Developers Legacy app

venkat kamesh said:
Sorry for late reply
Presently I don't have z5 or nougat
Once I get it.. I will update it bro
Sent from my C6902 using XDA-Developers Legacy app
Click to expand...
Click to collapse
OK bro Thanks
Remember to you later
Have a nice day bro

Related

[Q] Help in Modding/Theming

Hi,
Is there any one who can help me in modding and theming?
I asked this question from some Modders but I didn't get any answer
I just wanna Modify settings.apk, for example I add some menu/options to settings menu. Such as usb tether.
Can anyone help me?
Thanks
Is there anyone help me?
first you need to add
HTML:
<string name="usboptions">usb tether</string>
a string file in strings.xml
then you need to do something like this :
for example i used an app called usb tether
and the packagename of it is com.usb.tether
HTML:
<com.android.settings.IconPreferenceScreen android:title="@string/usboptions" settings:icon="@drawable/usbtethericon">
<intent android:targetPackage="com.usb.usbtether" android:action="android.intent.action.MAIN" android:targetClass="com.usb.usbtether.MainActivity" />
</com.android.settings.IconPreferenceScreen>
add that to settings.xml
then i need to add an icon called usbtethericon in drawable-mdpi
and then compile
and done
CoolCatGetHome said:
first you need to add
HTML:
<string name="usboptions">usb tether</string>
a string file in strings.xml
then you need to do something like this :
for example i used an app called usb tether
and the packagename of it is com.usb.tether
HTML:
<com.android.settings.IconPreferenceScreen android:title="@string/usboptions" settings:icon="@drawable/usbtethericon">
<intent android:targetPackage="com.usb.usbtether" android:action="android.intent.action.MAIN" android:targetClass="com.usb.usbtether.MainActivity" />
</com.android.settings.IconPreferenceScreen>
add that to settings.xml
then i need to add an icon called usbtethericon in drawable-mdpi
and then compile
and done
Click to expand...
Click to collapse
you no reply on PM?
voetbalremco said:
you no reply on PM?
Click to expand...
Click to collapse
Wich pm?
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
Wich pm?
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
from farzad?
CoolCatGetHome said:
first you need to add
HTML:
<string name="usboptions">usb tether</string>
a string file in strings.xml
then you need to do something like this :
for example i used an app called usb tether
and the packagename of it is com.usb.tether
HTML:
<com.android.settings.IconPreferenceScreen android:title="@string/usboptions" settings:icon="@drawable/usbtethericon">
<intent android:targetPackage="com.usb.usbtether" android:action="android.intent.action.MAIN" android:targetClass="com.usb.usbtether.MainActivity" />
</com.android.settings.IconPreferenceScreen>
add that to settings.xml
then i need to add an icon called usbtethericon in drawable-mdpi
and then compile
and done
Click to expand...
Click to collapse
Yeaaaah, Thanks CoolCatGetHome, You are awesome.
Really thanks to your help

[GUIDE]How to Animate PNGS

THIS IS A SAMPLE ANIMATION:
https://www.youtube.com/watch?v=nCBdxxLtgCg&feature=youtu.be
I cannot provide the pngs I used on that animation because I mod it long time ago. I already lost the files.
Click to expand...
Click to collapse
STEPS:
1.) Download animate.zip. Extract and put animate.xml in drawable folder.
2.) Create png/images that will be animated, (like bootanim, .gif)
3.) Put in drawable-ldpi. (or mdpi, hdpi, depends on your device)
4.) Open animate.xml
5.) Duplicate and edit the lines depending on how many pngs will you animate.
Code:
<item android:duration="1000" android:drawable= [user=3944923]@drawab[/user]le/YourSamplePng1" />
<item android:duration="1000" android:drawable= [user=3944923]@drawab[/user]le/YourSamplePng2" />
<item android:duration="1000" android:drawable= [user=3944923]@drawab[/user]le/YourSamplePng3" />
(NOTE: YourSamplePng must be the name of your png that you will animate.)
(PS: As you can see inside animate.xml, there's android: oneshot="false". )
false = infinitely show the png you list/looping.
true = show the png you list and will end on the bottom/last <item png you list.
PPS: 1000 duration = 1 second. (1000 milliseconds)
6.) Save.
7.) How to use? go to ImageView or android:background lines and put the @drawable/animate.
CREDITS:
Sniper Killer
Macmoon
Lenox devs
Potato Inc
Click to expand...
Click to collapse
Nice one sir !
Interesting
Reserved.
tentenponce said:
Nice one sir !
Click to expand...
Click to collapse
Thanks sir
Charging battery lockscreen
Great work..
This can be done on charging battery icon on lockscreen??
M47H!AS said:
Great work..
This can be done on charging battery icon on lockscreen??
Click to expand...
Click to collapse
You can try sir. :good:

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

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://forum.xda-developers.com/gal...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://forum.xda-developers.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.
My videos result :
3Minit Battery Mod on CM12:
HOW TO : http://forum.xda-developers.com/showpost.php?p=57975609&postcount=4
BLACK our CM12
Inspirations and all credits :
@Vivek_Neel for:
[Guide][How to theme lollipop roms with ease]
http://forum.xda-developers.com/android/themes/guide-t2978121
Euphoria Dark :
http://forum.xda-developers.com/showpost.php?p=58075585&postcount=635
@nicholaschum for :
http://forum.xda-developers.com/galaxy-s3/themes-apps/flashable-material-dark-temasek-t2993376
http://forum.xda-developers.com/galaxy-note-3/themes-apps/flashable-material-dark-temasek-t2992088
@androidous for his post and his autodidactic method i used too
http://forum.xda-developers.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à
3Minit Battery Mod on CM12
Source :
from @pas2001 for his thread 3Minit Battery Mod Updated: [03/09/14]
http://forum.xda-developers.com/showthread.php?t=2799958
and
http://forum.xda-developers.com/showpost.php?p=53795131&postcount=4
from @davidisflash , here is the working SystemUI.apk for CM12 unofficial rom on Note 4!!
http://forum.xda-developers.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 .
Troubadour666 said:
Source :
from @pas2001 for his thread 3Minit Battery Mod Updated: [03/09/14]
http://forum.xda-developers.com/showthread.php?t=2799958
and
http://forum.xda-developers.com/showpost.php?p=53795131&postcount=4
from @davidisflash , here is the working SystemUI.apk for CM12 unofficial rom on Note 4!!
http://forum.xda-developers.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
Click to expand...
Click to collapse
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.
plz when i followed the guide and compile the new systemui.apk
i paste it into \system\private-app\SystemUi
and i set permission to rw-r-r
but when i reboot the device a message pop up and said systemui has stopped and repetted the same thing over and over
can you tell me how did you manage to get it work ?
<T-Rex> said:
plz when i followed the guide and compile the new systemui.apk
i paste it into \system\private-app\SystemUi
and i set permission to rw-r-r
but when i reboot the device a message pop up and said systemui has stopped and repetted the same thing over and over
can you tell me how did you manage to get it work ?
Click to expand...
Click to collapse
its curious, because i always have error that you have but only when i copy apk on system. just a pop up said systemui has stopped .
when i reboot, it never appear again.
When you have compiled, did you manage META-INF folder and AndroidManifest.xml in new SystemUI.apk ?
- you set permission to rw-r-r and owner and group to root
- and you have 3MinitBatterySettings.apk on your system too ?
you missed smali files
i have tested without and i loose status bar and have constant "systemui has stopped" .
Troubadour666 said:
its curious, because i always have error that you have but only when i copy apk on system. just a pop up said systemui has stopped .
when i reboot, it never appear again.
When you have compiled, did you manage META-INF folder and AndroidManifest.xml in new SystemUI.apk ?
- you set permission to rw-r-r and owner and group to root
- and you have 3MinitBatterySettings.apk on your system too ?
you missed smali files
i have tested without and i loose status bar and have constant "systemui has stopped" .
Click to expand...
Click to collapse
no , i just replace the systemui.apk that you attached
can you give me plz all file needed to have the look in the screenshots (without changing the white backround for apps drawer) and the method plz
because i don't have time to compile my own
<T-Rex> said:
no , i just replace the systemui.apk that you attached
can you give me plz all file needed to have the look in the screenshots (without changing the white backround for apps drawer) and the method plz
because i don't have time to compile my own
Click to expand...
Click to collapse
ha, i cant share because its personal use and i made many change on it
and you will need my modded framework-res and settings for beta5 too.
its bad idea if you have though to use my systemui in attachment without 3MinitBatterySettings.apk installed just to gain 'black' ui like me.
you can follow this thread
http://forum.xda-developers.com/android/themes/guide-t2978121/
and try to adapt it and yes you will need to compile too. sry.
maybe, if i have time, i will make a post with all my XML changes on beta6 to give it a black ui .
thanks.
Troubadour666 said:
ha, i cant share because its personal use and i made many change on it
and you will need my modded framework-res and settings for beta5 too.
its bad idea if you have though to use my systemui in attachment without 3MinitBatterySettings.apk installed just to gain 'black' ui like me.
you can follow this thread
http://forum.xda-developers.com/android/themes/guide-t2978121/
and try to adapt it and yes you will need to compile too. sry.
maybe, if i have time, i will make a post with all my XML changes on beta6 to give it a black ui .
thanks.
Click to expand...
Click to collapse
please create full dark material theme decksclock, mms, calendar, calculator and others. thanks
hen you have compiled, did you manage META-INF folder and AndroidManifest.xml in new SystemUI.apk ? YES
- you set permission to rw-r-r and owner and group to root : YES
- and you have 3MinitBatterySettings.apk on your system too ? NO I D'ONT HAVE THIS APP
you missed smali files / WHAT YOU MEAN BY I MISSED THOSE FILES
i have tested without and i loose status bar and have constant "systemui has stopped" .
<T-Rex> said:
hen you have compiled, did you manage META-INF folder and AndroidManifest.xml in new SystemUI.apk ? YES
- you set permission to rw-r-r and owner and group to root : YES
- and you have 3MinitBatterySettings.apk on your system too ? NO I D'ONT HAVE THIS APP
you missed smali files / WHAT YOU MEAN BY I MISSED THOSE FILES
i have tested without and i loose status bar and have constant "systemui has stopped" .
Click to expand...
Click to collapse
i'm talking about the smali files pack in attachments post4.
you habe to install 3MinitBatterySettings.apk from @pas2001 thread too. you have FC because you missed smali files added before compilation. see again post 4.
thanks.
3Minit Battery Mod on Resurrection Remix 5.2.8 now , post4 updated
thanks
is it working on cm 12 lysergic acid? Thanks
Yakap said:
is it working on cm 12 lysergic acid? Thanks
Click to expand...
Click to collapse
see attachments post4
sweet job glad i was able to help at least a bit keep it up man :good::good:
androidous said:
sweet job glad i was able to help at least a bit keep it up man :good::good:
Click to expand...
Click to collapse
i have idea to create theme.material.dark definitions in framework-res.apk and see what i can do with it (similar from theme.material.light) , could be a sad work
and playing with android:theme="@style/ on <activity in AndroidManifest.xml maybe .
Good going @Troubadour666! Looking good
Thank great guide sorry my bad english
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://forum.xda-developers.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.

[Guide][MOD] Network Traffic 4.x to 5.x (turn on/off, color, Display unit and more)

Today i came here with new Tut
This tut includes
Status bar traffic monitor
Disable
Outgoing
Incoming
Outgoing and Incoming
Color style
Display unit
Bits per second
Bytes per second
update interval
500 ms
1000 ms
1500 ms
2000 ms
Auto hide
Inactivity threshold
Before going to tutorial First you need to have these mods (If you already had these mods then go to post #2
Color picker settings by @05Gurpreet
and Seekbar Preferences by me
Thanks to carbon rom
mod [settings/systemui]
First you need Deodexed SystemUI.apk and Settings.apk
Lets first start with SystemUI.apk
1. Decompile the SystemUI.apk
2. Open res\values\dimens.xml and add these below codes
Code:
<dimen name="net_traffic_single_text_size">12.0dip</dimen>
<dimen name="net_traffic_multi_text_size">9.0dip</dimen>
<dimen name="network_stats_text_size">10.0dip</dimen>
3. then open res\values\id.xml and these below code
Code:
<item type="id" name="networkTraffic">false</item>
4. then open res\values\status_bar.xml
look for
Code:
<include layout="@layout/system_icons" />
Add this code above it
Code:
<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@+id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />
5. Download this View attachment SystemUI.zip and merge them
6. Compile it and decompile then open smali/com/android/systemui.statusbar/policy/NetworkTraffic.smali
7. After replace the public ids ( by comparing one i gave in zip
8. after compared and replace... compile the app and replace in system
Now time for settings.apk
1. Decompile the settings.apk
2. open settings.apk/res/values/arrays.xml and this below code
Code:
<string-array name="show_network_traffic_state_entries">
<item>@string/show_network_traffic_disable</item>
<item>@string/show_network_traffic_up</item>
<item>@string/show_network_traffic_down</item>
<item>@string/show_network_traffic_all</item>
</string-array>
<string-array name="show_network_traffic_state_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
<string-array name="show_network_traffic_unit_entries">
<item>@string/show_network_traffic_bit</item>
<item>@string/show_network_traffic_byte</item>
</string-array>
<string-array name="show_network_traffic_unit_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="show_network_traffic_frequency_entries">
<item>@string/show_network_traffic_500</item>
<item>@string/show_network_traffic_1000</item>
<item>@string/show_network_traffic_1500</item>
<item>@string/show_network_traffic_2000</item>
</string-array>
<string-array name="show_network_traffic_frequency_values">
<item>500</item>
<item>1000</item>
<item>1500</item>
<item>2000</item>
</string-array>
3. now open settings.apk/res/values/strings.xml and add these codes
Code:
<string name="default_string">Default</string>
<string name="network_traffic_summary">Enable various network traffic options in statusbar</string>
<string name="network_traffic_title">Network traffic</string>
<string name="show_network_traffic_state">Status bar traffic monitor</string>
<string name="show_network_traffic_unit">Display unit</string>
<string name="show_network_traffic_frequency">Update interval</string>
<string name="show_network_traffic_disable">Disabled</string>
<string name="show_network_traffic_up">Outgoing</string>
<string name="show_network_traffic_down">Incoming</string>
<string name="show_network_traffic_all">Outgoing and incoming</string>
<string name="show_network_traffic_bit">Bits per second</string>
<string name="show_network_traffic_byte">Bytes per second</string>
<string name="show_network_traffic_500">500 ms</string>
<string name="show_network_traffic_1000">1000 ms</string>
<string name="show_network_traffic_1500">1500 ms</string>
<string name="show_network_traffic_2000">2000 ms</string>
<string name="network_traffic_autohide">Auto hide</string>
<string name="network_traffic_autohide_summary">Hide the traffic monitor when there is no activity</string>
<string name="network_traffic_autohide_threshold">Inactivity threshold</string>
<string name="network_traffic_color_style">Color style</string>
<string name="network_traffic_color_reset">Reset color</string>
<string name="network_traffic_color_reset_message">Reset network traffic color to default?</string>
4. now open settings.apk/res/values/attrs.xml and add these codes
Code:
<attr name="unitsLeft" format="reference|string" />
<attr name="min" format="float" />
<attr name="unitsRight" format="reference|string" />
5. Add this to any of your xml
for example i had add to my personal settings (res/xm/rstatusbar.xml)
you can add in display_settings.xml or as you wish
Code:
<PreferenceScreen android:title="@string/network_traffic_title" android:key="network_traffic_state " android:summary="@string/network_traffic_summary" android:fragment="com.android.settings.rz.NetworkTraffic" />
6. download this View attachment Settings.zip and merge to your settings
7. compile and decompile so you will get ids
8. open smali/com/android/settings/rz/NetworkTraffic.smali
9. compare the public ids to my one and replace yours
10. after that compile and replace the settings.apk
Best way to compare the Public ids go here shared by @iedafarha
Oh god finally you did it
Don't forget to mention me in your thread. If you tried my tut
venkat kamesh said:
8. compare the public ids to my one and replace yours
9. after that compile and replace the settings.apk
Oh god finally you did it
Don't forget to mention me in your thread. If you tried my tut
Click to expand...
Click to collapse
Awesome guide mate :good:, for compare the public ids , its easier to use public_id port
Try it ..
Good mode bro Tnx man
iedafarha said:
Awesome guide mate :good:, for compare the public ids , its easier to use public_id port
Try it ..
Click to expand...
Click to collapse
tnx bro you save my time alot
Nimadroid said:
tnx bro you save my time alot
Click to expand...
Click to collapse
welcome for editing xml especially for custom xml , this tools very usefull , xml validator
so save your time when recompile apk without error.
xml validato Application made with Mono 2.0, compatible with .Net Framework 2.0. It allows to load and modify xml, xsd and xsl docs and perform theirs validation, also using an embedded browser. Also, it allows to apply xsl to xml and to validate xml with xsd
Need Fix
Can you help me to fix it for me? Cause try and try but it always can't open Network Traffic menu on settings
I attach my apk
Sorry for my bad english
Thanks for help :angel:
Sloved.
I think you miss something for Public ID on NetworkTraffic.smali
For this publicID :
PHP:
<public type="integer" name="maskUp"
<public type="integer" name="maskDown"
<public type="integer" name="maskUnit"
<public type="integer" name="maskPeriod"
Keep Rockin :highfive:
iedafarha said:
welcome for editing xml especially for custom xml , this tools very usefull , xml validator
so save your time when recompile apk without error.
xml validato Application made with Mono 2.0, compatible with .Net Framework 2.0. It allows to load and modify xml, xsd and xsl docs and perform theirs validation, also using an embedded browser. Also, it allows to apply xsl to xml and to validate xml with xsd
Click to expand...
Click to collapse
ohhhh yeaaa
worked like chrm...
venkat kamesh said:
6. Compile it and decompile then open smali/com/android/systemui.statusbar/policy/NetworkTraffic.smali
Click to expand...
Click to collapse
i dont have networktraffic smali in my folder. can you mod my apk for me
uday94 said:
i dont have networktraffic smali in my folder. can you mod my apk for me
Click to expand...
Click to collapse
You don't have Networktraffic smali in ur folder because u did not follow the instructions in OP. This tutorial works perfectly.. Just try again. Read the full tutorial one time or two time then try..
venkat kamesh said:
Today i came here with new Tut
Click to expand...
Click to collapse
everything worked fine . but whenever i open network traffic option in settings it force closes.
uday94 said:
everything worked fine . but whenever i open network traffic option in settings it force closes.
Click to expand...
Click to collapse
Re check ids..
I used public id port app to change ids. There were some missing ids while editing.
uday94 said:
I used public id port app to change ids. There were some missing ids while editing.
Click to expand...
Click to collapse
There u go.. Try manual way. Find each ids and try again like me..
uday94 said:
I used public id port app to change ids. There were some missing ids while editing.
Click to expand...
Click to collapse
Download the compare_settings_systemui.zip http://forum.xda-developers.com/showthread.php?p=64516025
Decompile and check what you need (if the míssed public id is a attr= search into values/attr.xml and copy the línes you have míssed to your files and follow That way)
Who mod files for m2 2303?
djborek said:
Who mod files for m2 2303?
Click to expand...
Click to collapse
Tutorials is for learning my friend.. Just try it..
I dont know how do it.
djborek said:
I dont know how do it.
Click to expand...
Click to collapse
I made it from z5 style files
Pls send me on my PM files for 2303.

[GUIDE] [MOD] [LP/MM] [UPDATE :- 27.04.2016] How To Add Power Button To Lock Screen

Hello friends
Here is my latest simple tutorial for adding a power button in lock screen. With this you can acces ur power menu through Lock Screen.. Here you go ...
Things Needed :-
Latest Apktool
Notepad ++
PC
Deodexed SystemUI ( LP/MM )
Decompile SystemUI.apk
1) Go to res / values / ids.xml and add this line to last
<item type="id" name="lock">false</item>
Click to expand...
Click to collapse
Save it and close
2) Go to res / values / string.xml and add this line to last
<string name="accessibility_lock">Lock</string>
Click to expand...
Click to collapse
Save it and close
3) Go to res / layout / keyguard_bottom_area.xml and add this line before the last line
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="bottom|center" android:id="@id/lock" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" />
Click to expand...
Click to collapse
So it should be like this
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="bottom|center" android:id="@id/lock" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" />
</com.android.systemui.statusbar.phone.KeyguardBottomAreaView>
Click to expand...
Click to collapse
Save it and close
4) Move the attached png to res / drawable-hdpi-v4 or drawable-hdpi ( HERE )
Thats it. Done..
Recompile SystemUI and replace it by yours and enjoy...
No screen.??
johnsamte said:
No screen.??
Click to expand...
Click to collapse
Here u go. U can reduce the size of the png if u want...
Thank you. Do you know how to add power button menu to navi bar ?
devilmaycry2020 said:
Thank you. Do you know how to add power button menu to navi bar ?
Click to expand...
Click to collapse
There is one guide my friend.. U can get mine or spuri78..

Categories

Resources