[Guide] Add "About ROM" option in Settings - Android Themes

In this guide , I will tell "How to add About ROM" option in Settings.
Tested this option on Android 4.2 and 4.4​
REQUIREMENTS :
1. Brain
2. Apktool
3. Notepad ++
4. Knowledge on How to Decompile/Recompile the apk
Lets start ,
1. Decompile your Settings.apk and merge the file (given below).
2. Now add these lines in "device_info_settings.xml" or any other xml present in Settings.apk/res/xml.
PHP:
<PreferenceCategory android:layout="@layout/rom_logo" android:title="" />
<PreferenceScreen android:title="@string/about_rom" android:key="container" android:summary="@string/about_rom_summary">
<Preference android:title="@string/rom_name" android:summary="@string/rom_name_summary" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/rom_developer" android:summary="@string/rom_developer_summary" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/rom_version" android:summary="@string/rom_version_summary" style="?android:preferenceInformationStyle" />
<PreferenceScreen android:title="@string/rom_thanks" android:key="rom_thanks" android:summary="@string/rom_thanks_summary" android:fragment="com.android.settings.gurpreet.ContributorsCloud" />
<Preference android:title="@string/mywebsite" android:key="website" android:summary="@string/website">
<intent android:action="android.intent.action.VIEW" android:data="http://anythingultimate.blogspot.in/2014/01/i-am-writingthis-blogso-that-users-of.html" />
</Preference>
<PreferenceScreen android:title="@string/changelog_title" android:key="changelog">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.gurpreet.changelog.ChangeLog" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/additional_info" android:key="container" android:summary="@string/additional_info_summary">
<Preference android:title="@string/info" android:summary="@string/info_summary" style="?android:preferenceInformationStyle" />
</PreferenceScreen>
</PreferenceScreen>
NOTE :- Change the website link according to you in this line in the above code.
PHP:
<intent android:action="android.intent.action.VIEW" android:data="http://anythingultimate.blogspot.in/2014/01/i-am-writingthis-blogso-that-users-of.html" />
3. Now open "strings.xml" and add these lines above </resources>.
PHP:
<string name="about_rom">About ROM</string>
<string name="about_rom_summary">This contains all information about the ROM</string>
<string name="rom_name">ROM Name</string>
<string name="rom_name_summary">ZINGERONE™</string>
<string name="rom_developer">ROM Developer</string>
<string name="rom_developer_summary">Gurpreet Singh</string>
<string name="rom_version">ROM Version</string>
<string name="rom_version_summary">1.0</string>
<string name="rom_thanks">Special Thanks To</string>
<string name="rom_thanks_summary">Touch here to see the names</string>
<string name="mywebsite">Website</string>
<string name="website">Touch here to go to my website</string>
<string name="about_gen">General Information</string>
<string name="changelog_title">Changelogs</string>
<string name="changelog_dialog">ZINGERONE™ CHANGELOGS</string>
<string name="changelog_loading">Download the list of changes...</string>
<string name="changelog_error">Error loading list of changes</string>
<string name="additional_info">Additional Information</string>
<string name="additional_info_summary">Some additional information about ROM</string>
<string name="info">Guide By Gurpreet Singh</string>
<string name="info_summary">Enjoy guys. Keep helping each other</string>
NOTE :- Change the strings according to your choice.
4. Now open the "AndroidManifest.xml" and add this activity.
PHP:
<activity android:label="@string/changelog_title" android:name=".gurpreet.changelog.ChangeLog" android:theme="@android:style/Theme.Holo.Light.Dialog.Alert">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
5. Now Recompile your Settings.apk & Sign it and then again Decompile it.
6. Now go to smali/com/android/settings/gurpreet/changelog and open the "ChangeLog$1.smali". Then replace the id with the id present in public.xml of your Settings.apk
0x7f0c09fb
PHP:
<public type="string" name="changelog_dialog"
7. Now go to smali/com/android/settings/gurpreet/changelog and open the "ChangeLog.smali". Now again replace the ids with the ids present in public.xml of your Settings.apk.
0x7f0c09fd
PHP:
<public type="string" name="changelog_error"
0x7f0c09fc
PHP:
<public type="string" name="changelog_loading"
Important Information :
• The contributors image is in Settings/assets folder. Change it according to your choice. You can change the background colour from gray to any by editing this "-0xbbbbbc" in ContributorsCloud.smali.
• The changelog list is in the ROM/system/etc. You can change it according to you. Don't forget to change the permission of "rom-changelogs.txt" to rw-r--r--
• You can change the ROM Logo by editing the "logo_rom.png" in Settings/drawable
Special Thanks To :
1. Cyanogenmod
2. XDA
3. GK-Lollipop ROM
4. Sumeet Darade
5. MAAaD

Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Yeah! That's what I want!!

Yeah me too @dark_optimistic

Thanks bro.
Android小楼阁-QQ群 439637151
来自搭载Android 2.3 GingerBread的华为Y220-T10

hi could you add an option in my setting.apk
About Phone>>"Rom Devloper" and insid this option
contain:
- Devloper Name : Awedh Wedaan
-Rom Name : New Brava DM-990
and below the title:
--to contact with Devloper Press on Icon--
first icon : when sombody press on it take him to phone dealer and show my number +967734746556
the other icon :when sombody press on it take him to chat with me via whatsapp -if he has whatsapp.apk in his phone
pleas help me and i'll be greatful
if you can do this ,do it and upload th apks and give me the links to download it or you can try to making a guide to what i mention it above in red color and let the world now who r you

awadh730 said:
hi could you add an option in my setting.apk
About Phone>>"Rom Devloper" and insid this option
contain:
- Devloper Name : Awedh Wedaan
-Rom Name : New Brava DM-990
and below the title:
--to contact with Devloper Press on Icon--
first icon : when sombody press on it take him to phone dealer and show my number +967734746556
the other icon :when sombody press on it take him to chat with me via whatsapp -if he has whatsapp.apk in his phone
pleas help me and i'll be greatful
if you can do this ,do it and upload th apks and give me the links to download it or you can try to making a guide to what i mention it above in red color and let the world now who r you
Click to expand...
Click to collapse
Why in the HELL would you want to give your number out to the users of your rom? Also who in the HELL would care o even call!!? And lastly it's crazy how this dude was cool enough to take the time out of his everyday life to create this guide for all XDA users and then someone like you comes in here and rather then just being grateful you start demanding him to make these outlandish modificationis for you which you could do yourself if you'd do some research...well I dont know about the whole phone number dialer thing but the whatsapp is not hard just do some research or offer to pay the man to do it!

interesante
pudiste lograr hacerlo

How do you resign the app without the platform key?

Related

[MOD]theme bar volume/download/progress

I'm using a blue theme, but the loading bar always insisting on staying orange, these themes are never, always in the same color as the standard yellow / orange.
googled a bit and found no topic how, so I'll post a tutorial on how to make a very simple way ..
* color of the volume bar.
* color of slash loading browser.
* download progress bar color.
is actually a file only those responsible for the color, the file is within the framework-res.apk.
step by step;
* Has sdk/java/adb/apktool/7zip/Notepad + + installed (obviously).
* copy to your pc the framework-res.apk:
# adb pull /system/framework/framework-res.apk
* Decompile the apk:
#apktool d framework-res.apk
* find this file: framework-res\res\drawable\progress_horizontal.xml
*Open it with notepad++;
*note these lines:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff9d9e9d" android:endColor="#ff747674" android:angle="270.0" android:centerY="0.75" android:centerColor="#ff5a5d5a" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#800099cc" android:endColor="#a0ffcb00" android:angle="270.0" android:centerY="0.75" android:centerColor="#8000aae3" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff0099cc" android:endColor="#ffffcb00" android:angle="270.0" android:centerY="0.75" android:centerColor="#ff00aae3" />
</shape>
</clip>
</item>
</layer-list>
Click to expand...
Click to collapse
* The sets marked in red are the values ​​to be changed, the default is that this file is BLUE!
* if you want to put another color, just color code the researches in photoshop or another image editor.
ex:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
PS: attention! only the last six digits, the first two are responsible for the transparency!
* make a copy of the original framework-res.apk elsewhere. (to ensure that you have saved an original).
* Compile again.
#apktool b framework-res framework-res2.apk
* we now have two files "apk"
- framework-res. apk
- framework-res2. apk
* Open both files with 7zip (OPEN ONLY, NOT EXTRACT).
* copy the file "progress_horizontal.xml" compiled in "framework-res2.apk to the original framework-res.apk. respecting the path /res/drawable
*restart, open recovery, mounts & storage = mount system
#adb push framework-res.apk /system/framework
#adb shell
#cd /system/framework
#chmod 644 framework-res.apk
restart...
Awesome how do I edit the yellow bar present when increasing/decreasing the volume ??
Trying to learn to theme. What programs do I need?
Sent from my PC36100 using Tapatalk 2

[AOSP/CM/Stock]Adding Lidroid Toggles + Grid View[GB]

Hello guys today iam going to teach you how to add lidroid toggles in grid view in AOSP/CM/Stock roms.
Maybe i have forgot something so dont blame me Let me know it first and i will change it.
Things REQUIRED.
1.Patience [Heavily Needed]
2.Lots of time.
3.My provided files.Here: Public.xml and Lidroid_Resources.zip
4.Notepad++ etc.
The guide is divide into two parts.
1.XML PART [Includes xml editing ]
2.SMALI PART [ Includes smali editing ]
Lets start with XML PART first.
STEP 1
Open ids.xml under res/values foler and add these in last above
Code:
<item type="id" name="quickpanel_button">false</item>
<item type="id" name="quickpanel_text">false</item>
<item type="id" name="quickpanel_image">false</item>
<item type="id" name="quickpanel_indicator">false</item>
<item type="id" name="Lidroid">false</item>
STEP 2
Open dimens.xml under res/values foler and add these in last above
Code:
</resources>
Code:
quickpanel_button_height">79.0px
STEP 3
Open strings.xml under res/values foler and add these in last above
Code:
<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_bluetooth_text">Bluetooth</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_sound_vibration_text">"Sound Vibration"</string>
<string name="quickpanel_silent_text">Silent</string>
<string name="quickpanel_vibration_text">Vibration</string>
<string name="quickpanel_rotation_text">"Auto rotation"</string>
<string name="quickpanel_shutdown_text">Phone will be shutdown</string>
<string name="quickpanel_shutdown_confirm">Shutdown</string>
<string name="quickpanel_sound_vibrate">Vibrate</string>
<string name="quickpanel_sound_sound">Sound</string>
<string name="quickpanel_sound_silent">Silent</string>
<string name="quickpanel_sound_sound_vibrate">Sound Vibrate</string>
<string name="quickpanel_sync">Sync</string>
<string name="quickpanel_wifiap">Wifi Ap</string>
<string name="quickpanel_wifi">Wifi</string>
<string name="quickpanel_rotation">Auto Rotate</string>
<string name="quickpanel_airplane">Airplane</string>
<string name="quickpanel_bluetooth">Bluetooth</string>
<string name="quickpanel_brightness">Brightness</string>
<string name="quickpanel_flashlight">Flashlight</string>
<string name="quickpanel_gps">GPS</string>
<string name="quickpanel_lockscreen">Lockscreen</string>
<string name="quickpanel_mobiledata">Data</string>
<string name="quickpanel_reboot">Reboot</string>
<string name="quickpanel_reboot_text">Phone will reboot</string>
<string name="quickpanel_screen_timeout">Screen Timeout</string>
<string name="quickpanel_recovery">Recovery</string>
STEP 5
Delete these if they are already present
Code:
<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_bluetooth_text">Bluetooth</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_sound_vibration_text">"Sound Vibration"</string>
<string name="quickpanel_silent_text">Silent</string>
<string name="quickpanel_vibration_text">Vibration</string>
<string name="quickpanel_rotation_text">"Auto rotation"</string>
STEP 6
Merge attached files with your SystemUI.apk
STEP 7
Recompile Your App.
STEP 8
Decompile it again.
STEP 9
Open Statusbar_expanded.xml or any other xml where you want to place lidroid toggles.
STEP 10
And Add this where you want to place the lidroid toggles.
Code:
<com.lidroid.systemui.quickpanel.PowerWidget android:id="@id/Lidroid" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Now lets complete the SMALI PART
SMALI PART
STEP 11
Open com/android/systemui/statusbar/StatusBarService.smali
STEP12
In
Code:
# instance fields
Below
Code:
.field mPositionTmp:[I
Add this line
Code:
.field mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
STEP 13
In
Code:
.method private makeStatusBarView(Landroid/content/Context;)V
Add this in last above
Code:
.line (A numeric value will be there)
return-void
.line 656
iget-object v5, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;
const v6, 0x7f090039
invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v5
check-cast v5, Lcom/lidroid/systemui/quickpanel/PowerWidget;
iput-object v5, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
iget-object v6, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v6}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
STEP 14
Open your public.xml
Search for "Lidroid" id and copy its public id and replace it with id of above code i.e with "0x7f090039"
STEP 15
OPEN Statusbarservice.smali again
STEP 16
In
Code:
.method public addIcon(Ljava/lang/String;IILcom/android/internal/statusbar/StatusBarIcon;)V
Add this in last above
Code:
.line (A numeric value will be there)
return-void
Code:
.line 1900
iget-object v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v1}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->updateWidget()V
NOTE..
Here "0x7f090039" is the public id of id "Lidroid"
STEP17
Now open all files in com/lidroid/systemui/quickpanel folder
Search "0x7f" Copy the whole id .
Open my provided public.xml
Search for that id in my public.xml
Copy the text of that id.
Like if my Public id is "0x7f030011"
Then i will copy "quickpanel_button".
Now find same text in your public.xml
Copy its public id .
And replace the id of all smali files with your public.xml's id.
Similarly do this with all smali files available in quickpanel folder.
STEP 18
Now open your apps Android-Manifest.xml.
And add this in last above
Code:
</application>
Code:
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:name="com.lidroid.systemui.quickpanel.FlashlightActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation" />
Since You have edited Android-Manifest.xml you need to sign apk file.
STEP 19
Recompile it .
STEP 20
Sign it.
And push to system/app
CREDITS;;
ryanfebriyadi
PineappleOwl
MuSaddiq
Lidroid
serajr
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Reserved for more....
san122 said:
Reserved for more....
Click to expand...
Click to collapse
Bro,u wrote an awesome guide.
I think this mod will never be on my device because I think the systemui of my device is totally different.
I have a mt6575 gb 2.3.6 device with ldpi resolution.
It has 2 types of statusbar by stock which can be switched via build.prop.
1st type of statusbar is like :-
Lewa OS
2 sided panel ui with notification and toggles options.
The xml of these are zzz_statusbar_expanded_gemini_notification & zzz_statusbar_expanded_Gemini_toolkits.xml .
2nd type of statusbar is like :-
Simple dropdown with slidable toggles like galaxy y but 12 in number.
Don't know it's layout b'coz I haven't modded in this style.
I always mod the notification layout for all this.
It has it's custom smali's and other stuff's.
I could find the lines told by you in the guide but the mod isn't working though their is no error made by me.
I think this is not possible for my device so it's better to leave it as it's frustates when it's not get done again & again.
I will post all layouts name tomorrow as I forgot some.
Do you think it's possible?
Thanks for all the help.
nightwalker said:
Bro,u wrote an awesome guide.
I think this mod will never be on my device because I think the systemui of my device is totally different.
I have a mt6575 gb 2.3.6 device with ldpi resolution.
It has 2 types of statusbar by stock which can be switched via build.prop.
1st type of statusbar is like :-
Lewa OS
2 sided panel ui with notification and toggles options.
The xml of these are zzz_statusbar_expanded_gemini_notification & zzz_statusbar_expanded_Gemini_toolkits.xml .
2nd type of statusbar is like :-
Simple dropdown with slidable toggles like galaxy y but 12 in number.
Don't know it's layout b'coz I haven't modded in this style.
I always mod the notification layout for all this.
It has it's custom smali's and other stuff's.
I could find the lines told by you in the guide but the mod isn't working though their is no error made by me.
I think this is not possible for my device so it's better to leave it as it's frustates when it's not get done again & again.
I will post all layouts name tomorrow as I forgot some.
Do you think it's possible?
Thanks for all the help.
Click to expand...
Click to collapse
Anything is possible if we goes deep under it.Just share your systemui once .I want to take a look inside it
Sent from my GT-S5360 using Tapatalk 2
san122 said:
Anything is possible if we goes deep under it.Just share your systemui once .I want to take a look inside it
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
ok bro,my stock untouched one or the one which is modded by me in one of my mods?
thanks.
nightwalker said:
ok bro,my stock untouched one or the one which is modded by me in one of my mods?
thanks.
Click to expand...
Click to collapse
In which u followed my guide.
Sent from my GT-S5360 using Tapatalk 2
san122 said:
In which u followed my guide.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Bro,here are the resources Link
I have already given logcat,thanks a lot bro.
nightwalker said:
Bro,here are the resources Link
I have already given logcat,thanks a lot bro.
Click to expand...
Click to collapse
Link asks permission from you.
Sent from my GT-S5360 using Tapatalk 2
Every tym recompiling error...Wats d matr...
tryd very slowly bt stil error
deleted
Sir @san122 , how to add more button ?
san122 said:
Hello guys today iam going to teach you how to add lidroid toggles in grid view in AOSP/CM/Stock roms.
Maybe i have forgot something so dont blame me Let me know it first and i will change it.
Things REQUIRED.
1.Patience [Heavily Needed]
2.Lots of time.
3.My provided files.Here: Public.xml and Lidroid_Resources.zip
4.Notepad++ etc.
The guide is divide into two parts.
1.XML PART [Includes xml editing ]
2.SMALI PART [ Includes smali editing ]
Lets start with XML PART first.
STEP 1
Open ids.xml under res/values foler and add these in last above
Code:
<item type="id" name="quickpanel_button">false</item>
<item type="id" name="quickpanel_text">false</item>
<item type="id" name="quickpanel_image">false</item>
<item type="id" name="quickpanel_indicator">false</item>
<item type="id" name="Lidroid">false</item>
STEP 2
Open dimens.xml under res/values foler and add these in last above
Code:
</resources>
Code:
quickpanel_button_height">79.0px
STEP 3
Open strings.xml under res/values foler and add these in last above
Code:
<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_bluetooth_text">Bluetooth</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_sound_vibration_text">"Sound Vibration"</string>
<string name="quickpanel_silent_text">Silent</string>
<string name="quickpanel_vibration_text">Vibration</string>
<string name="quickpanel_rotation_text">"Auto rotation"</string>
<string name="quickpanel_shutdown_text">Phone will be shutdown</string>
<string name="quickpanel_shutdown_confirm">Shutdown</string>
<string name="quickpanel_sound_vibrate">Vibrate</string>
<string name="quickpanel_sound_sound">Sound</string>
<string name="quickpanel_sound_silent">Silent</string>
<string name="quickpanel_sound_sound_vibrate">Sound Vibrate</string>
<string name="quickpanel_sync">Sync</string>
<string name="quickpanel_wifiap">Wifi Ap</string>
<string name="quickpanel_wifi">Wifi</string>
<string name="quickpanel_rotation">Auto Rotate</string>
<string name="quickpanel_airplane">Airplane</string>
<string name="quickpanel_bluetooth">Bluetooth</string>
<string name="quickpanel_brightness">Brightness</string>
<string name="quickpanel_flashlight">Flashlight</string>
<string name="quickpanel_gps">GPS</string>
<string name="quickpanel_lockscreen">Lockscreen</string>
<string name="quickpanel_mobiledata">Data</string>
<string name="quickpanel_reboot">Reboot</string>
<string name="quickpanel_reboot_text">Phone will reboot</string>
<string name="quickpanel_screen_timeout">Screen Timeout</string>
<string name="quickpanel_recovery">Recovery</string>
STEP 5
Delete these if they are already present
Code:
<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_bluetooth_text">Bluetooth</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_sound_vibration_text">"Sound Vibration"</string>
<string name="quickpanel_silent_text">Silent</string>
<string name="quickpanel_vibration_text">Vibration</string>
<string name="quickpanel_rotation_text">"Auto rotation"</string>
STEP 6
Merge attached files with your SystemUI.apk
STEP 7
Recompile Your App.
STEP 8
Decompile it again.
STEP 9
Open Statusbar_expanded.xml or any other xml where you want to place lidroid toggles.
STEP 10
And Add this where you want to place the lidroid toggles.
Code:
<com.lidroid.systemui.quickpanel.PowerWidget android:id="@id/Lidroid" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Now lets complete the SMALI PART
SMALI PART
STEP 11
Open com/android/systemui/statusbar/StatusBarService.smali
STEP12
In
Code:
# instance fields
Below
Code:
.field mPositionTmp:[I
Add this line
Code:
.field mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
STEP 13
In
Code:
.method private makeStatusBarView(Landroid/content/Context;)V
Add this in last above
Code:
.line (A numeric value will be there)
return-void
.line 656
iget-object v5, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;
const v6, 0x7f090039
invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v5
check-cast v5, Lcom/lidroid/systemui/quickpanel/PowerWidget;
iput-object v5, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
iget-object v6, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v6}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
STEP 14
Open your public.xml
Search for "Lidroid" id and copy its public id and replace it with id of above code i.e with "0x7f090039"
STEP 15
OPEN Statusbarservice.smali again
STEP 16
In
Code:
.method public addIcon(Ljava/lang/String;IILcom/android/internal/statusbar/StatusBarIcon;)V
Add this in last above
Code:
.line (A numeric value will be there)
return-void
Code:
.line 1900
iget-object v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v1}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->updateWidget()V
NOTE..
Here "0x7f090039" is the public id of id "Lidroid"
STEP17
Now open all files in com/lidroid/systemui/quickpanel folder
Search "0x7f" Copy the whole id .
Open my provided public.xml
Search for that id in my public.xml
Copy the text of that id.
Like if my Public id is "0x7f030011"
Then i will copy "quickpanel_button".
Now find same text in your public.xml
Copy its public id .
And replace the id of all smali files with your public.xml's id.
Similarly do this with all smali files available in quickpanel folder.
STEP 18
Now open your apps Android-Manifest.xml.
And add this in last above
Code:
</application>
Code:
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:name="com.lidroid.systemui.quickpanel.FlashlightActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation" />
Since You have edited Android-Manifest.xml you need to sign apk file.
STEP 19
Recompile it .
STEP 20
Sign it.
And push to system/app
Click to expand...
Click to collapse
..\Decompiled_apk\SystemUI2)_signed\smali\com\lidroid\systemui\MainActivity.smali[25,4] Error for input '.parameter': Invalid directive
..\Decompiled_apk\SystemUI2)_signed\smali\com\lidroid\systemui\MainActivity.smali[25,15] mismatched input '"newConfig"' expecting END_METHOD_DIRECTIVE
..\Decompiled_apk\SystemUI2)_signed\smali\com\lidroid\systemui\MainActivity.smali[42,4] Error for input '.parameter': Invalid directive
..\Decompiled_apk\SystemUI2)_signed\smali\com\lidroid\systemui\MainActivity.smali[42,15] mismatched input '"savedInstanceState"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/lidroid/systemui/MainActivity.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)
at brut.androlib.Androlib.buildSources(Androlib.java:299)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
The system cannot find the file specified.
getting this error..well i have some toglles too but they arent in grid view..and i want to add this in spacecacker toggle..any solution?
i'm doing this in GB2.3.5
sssomnath474 said:
..\Decompiled_apk\SystemUI2)_signed\smali\com\lidroid\systemui\MainActivity.smali[25,4] Error for input '.parameter': Invalid directive
..\Decompiled_apk\SystemUI2)_signed\smali\com\lidroid\systemui\MainActivity.smali[25,15] mismatched input '"newConfig"' expecting END_METHOD_DIRECTIVE
..\Decompiled_apk\SystemUI2)_signed\smali\com\lidroid\systemui\MainActivity.smali[42,4] Error for input '.parameter': Invalid directive
..\Decompiled_apk\SystemUI2)_signed\smali\com\lidroid\systemui\MainActivity.smali[42,15] mismatched input '"savedInstanceState"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/lidroid/systemui/MainActivity.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)
at brut.androlib.Androlib.buildSources(Androlib.java:299)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
The system cannot find the file specified.
getting this error..well i have some toglles too but they arent in grid view..and i want to add this in spacecacker toggle..any solution?
i'm doing this in GB2.3.5
Click to expand...
Click to collapse
Did you modify MainActivity.smali??
If not change the apktool version to 1.5.2.
Sent from my GT-B5512 using Carbon rom
acermedo said:
Did you modify MainActivity.smali??
If not change the apktool version to 1.5.2.
Sent from my GT-B5512 using Carbon rom
Click to expand...
Click to collapse
yea that was problem of apktool..but i ahve also some problems..just think if i just want to add only wifi button
then if i call it by this
Code:
<FrameLayout android:background="@drawable/tile_toggle" android:layout_width="106.0px" android:layout_height="100.0px" android:layout_weight="1.0">
<com.lidroid.systemui.statusbar.quickpanel.BluetoothButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quick_operation_bluetooth_name" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="58.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_bluetooth_text" />
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quick_operation_bluetooth_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0px" android:src="@drawable/stat_bluetooth_off" />
<TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="106.0px" android:layout_height="wrap_content" android:layout_marginBottom="12.0px" android:text="" android:singleLine="true" android:layout_alignParentBottom="true" />
</FrameLayout>
will it work?
i did that and stausbar gone so here is the logcat
Code:
E/AndroidRuntime( 318): java.lang.RuntimeException: Unable to create service com.android.systemui.statusbar.StatusBarService: android.view.InflateException: Binary XML file line #13: Error inflating class com.lidroid.systemui.statusbar.quickpanel.BluetoothButton
acermedo said:
Did you modify MainActivity.smali??
If not change the apktool version to 1.5.2.
Sent from my GT-B5512 using Carbon rom
Click to expand...
Click to collapse
should i add something in statusbarservices.smali to?
sssomnath474 said:
should i add something in statusbarservices.smali to?
Click to expand...
Click to collapse
Yeah u hav to modify it also.
Follow this link http://forum.xda-developers.com/showthread.php?t=2315342 second post.
Sent from my GT-B5512 using Carbon rom
acermedo said:
Yeah u hav to modify it also.
Follow this link http://forum.xda-developers.com/showthread.php?t=2315342 second post.
Sent from my GT-B5512 using Carbon rom
Click to expand...
Click to collapse
actually i used that thread and modified a lilbit..those are not toggles those totally buttons.i want toggles seems need a large help to do that
sssomnath474 said:
actually i used that thread and modified a lilbit..those are not toggles those totally buttons.i want toggles seems need a large help to do that
Click to expand...
Click to collapse
Are toggles and buttons the samething ??
I didn't get you.Can u explain more what u want?
Sent from my GT-B5512 using Carbon rom
sir I did everything presisely.even double checked
but my statusbar gone and gettings fcs & my device is hdpi..is it becauz of that??? i added the lidroid toggles in spacecaker's quickpanel...can you check my systemui?

[Guide]Actionbar buttons, Titlebar height, Background Settings for GB [MDPI devices]

OK like the title said this guide is for :
- Adding Actionbar back button like in ICS/JB
- Changing titlebar height and settings background
First thing if u want look of ICS/JB Settings go here
Second if u want Wifi/Bt buttons/toggles fo here
Also this, placing a custom icon on the title bar of a certain app here
What Is Required :
? Brain function - but not all function dont worry
? Rooted phone
? Notepad++(for opening build.prop files)
? Android Commander
? Tool for decompiling jar files - apkmanager/apktool/virtous or...
Click to expand...
Click to collapse
Adding Actionbar back button like in ICS/JB :
*This part is for adding back button in "About Phone" section but if u have free time (your gonna need it!)
same metod can be used for rest of Settings categories, just have to find them... like for "Development" changes
have to be made in development_prefs.xml, for Display there is display_settings.xml.. and androidmanifest.xml ofc!
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. STEP - DECOMPILE Settings.apk
res/xml/device_info_settings.xml
add this line :
Code:
<CheckBoxPreference android:layout="@layout/actionbar_device_info_preferences" android:title="@string/about_settings" android:key="device_info_ab_settings" />
bellow:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
2. STEP - Open your Android-Manifest.xml and change :
Code:
<activity android:label="@string/device_info_settings" android:name="DeviceInfoSettings" android:configChanges="keyboardHidden|orientation">
to this :
Code:
<activity [COLOR="Red"]android:theme="@*android:style/Theme.Black.NoTitleBar"[/COLOR] android:label="@string/device_info_settings" android:name="DeviceInfoSettings" android:configChanges="keyboardHidden|orientation">
3. STEP - Download setfiles.rar and push files to your decompiled Settings.apk
4. STEP - Re-sign your apk and push it to system/app.
5. STEP - Because we made change to androidmanifest we have to make change to services.jar also
Decompile /system/framework/services.jar
com/android/server/PackageManagerService.smali, look for
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921 [COLOR="DeepSkyBlue"]- this number could be different in your files[/COLOR]
change it to :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921
[COLOR="Red"] const/4 v6, 0x0
return v6[/COLOR]
6. STEP - Re-sign your apk and push it to system/framework.
Changing titlebar height and settings background :
1. STEP - DECOMPILE framework-res.apk
res/values/styles.xml
2. STEP - find this lines :
Code:
<style name="Theme">
bellow that find something like :
Code:
<item name="windowBackground">@drawable/screen_background_dark</item>
change it to :
Code:
<item name="windowBackground">@drawable/[COLOR="Red"]mybackground[/COLOR]</item>
then find :
Code:
<item name="windowTitleSize">25.0dip</item>
change it to :
Code:
<item name="windowTitleSize">[COLOR="Red"]48.0dip[/COLOR]</item>
3. STEP - Download framefiles.rar and push files to your decompiled framework-res.apk
4. STEP - Re-sign your apk and push it to system/framework.
If I forgot something dont upset it will be upload.
Credits:
Sniper Killer
Recognized Contributor
SpaceCaker
Recognized Themer / Contributor
reserved
background*
tomgacz said:
background*
Click to expand...
Click to collapse
changed.
help
Vesavoj said:
reserved
Click to expand...
Click to collapse
I want to center the text in titlebar.please help me.thanks
sorry my english is so bad
desire1990 said:
I want to center the text in titlebar.please help me.thanks
sorry my english is so bad
Click to expand...
Click to collapse
Decompile framework-res.apk
res/layout/screen_title.xml
change this line :
Code:
<TextView android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
to this :
Code:
<TextView android:gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
thank!!
Vesavoj said:
Decompile framework-res.apk
res/layout/screen_title.xml
change this line :
Code:
<TextView android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
to this :
Code:
<TextView android:gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
Click to expand...
Click to collapse
thank u so much!!! <3
---------- Post added at 01:55 AM ---------- Previous post was at 01:39 AM ----------
I tried, but failed :crying:

[TUT]How To port lollipop framework [ICS+]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi, today I want to help you port Android 5.0 framework
Guide its simple, you need to just know how to edit .xml files​
1. How to port Dialog Window
Screen:
Click to expand...
Click to collapse
Tutorial
1. Decompile your framework-res apk
2. Go to /res/layout and open alert_dialog_holo.xml
3. Find the line that starts with the
Code:
<View android:id="@id/titleDividerTop"
and delete this line
Do the same with line the starts with
Code:
<View android:id="@id/titleDivider"
4. Now find this line
Code:
<TextView android:id="@id/message" android:paddingLeft="16.0dip" android:paddingTop="8.0dip" android:paddingRight="16.0dip" android:paddingBottom="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" style="?android:attr/textAppearanceMedium" />
And edit to look like this (red elements are elements which we are changing)
Code:
<TextView android:id="@id/message" [COLOR="Red"]android:paddingLeft="24.0dip"[/COLOR] android:paddingTop="8.0dip" [COLOR="Red"]android:paddingRight="24.0dip"[/COLOR] [COLOR="Red"]android:paddingBottom="24.0dip"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" style="?android:attr/textAppearanceMedium" />
5. Now we are going to edit buttons,
Find line with this id android:id="@id/buttonPanel" and delete from this line these three parameters
Code:
[COLOR="RoyalBlue"]android:divider="?dividerHorizontal"[/COLOR]
[COLOR="RoyalBlue"]android:showDividers="beginning"[/COLOR]
[COLOR="RoyalBlue"]android:dividerPadding="0.0dip"[/COLOR]
In this line (under line with id/buttonPanel)
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="true" android:layoutDirection="locale" style="?android:attr/buttonBarStyle">
add this paramteters, anywhere you want
Code:
android:layout_marginLeft="24.0dip" android:layout_marginRight="24.0dip" android:paddingBottom="16.0dip" android:paddingTop="16.0dip"
After adding, line should look like this
Code:
<LinearLayout android:orientation="horizontal" [COLOR="Red"]android:layout_marginLeft="24.0dip" [/COLOR][COLOR="Red"]android:layout_marginRight="24.0dip" [/COLOR][COLOR="Red"]android:paddingBottom="16.0dip"[/COLOR] [COLOR="Red"]android:paddingTop="16.0dip"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="true" android:layoutDirection="locale" style="?android:attr/buttonBarStyle">
6. Now we are going to lines which starts with <Button tag (should be 3 )
Change (IN ALL 3 LINES)
Code:
android:textSize="14.0sp"
to
Code:
android:textSize="[COLOR="Red"]17.0sp[/COLOR]"
Now, in lines with android:id="@id/button2" and android:id="@id/button3" add this tag
Code:
android:textAllCaps="true"
Lines shoud look like this:
Code:
<Button android:textSize="17.0sp" android:textAllCaps="true" android:id="@id/button2" ... />
<Button android:textSize="17.0sp" android:textAllCaps="true" android:id="@id/button3" ... />
• In line with
Code:
android:id="@id/button1"
add this:
Code:
android:textStyle="bold" android:textAllCaps="true" android:textColor="@color/holo_blue_light"
line should look like this
Code:
<Button android:textSize="17.0sp" android:textStyle="bold" android:textAllCaps="true" android:textColor="@color/holo_blue_light" android:id="@id/button1" .... />
(If you have any problem check my alert_dialog_holo.xml in attach)
7. Now save changes, recompile & sign apk and push to /system/framework
2. How to port List Separators
Screen:
Click to expand...
Click to collapse
Tutorial
1. Download list separators.rar from attach and extract it to your drawable-xxhdpi folder (if you dont' have it just create now folder in /res called drawable-xxhdpi)
2. Now open styles.xmlin /res/values
•Find this style
Code:
<style name="Widget.TextView.ListSeparator" parent="@style/Widget.TextView">
Under this style you find parameter <item name="textColor"> change his value to #ff009587
• Now, in this style find and delete this line:
Code:
<item name="background">@drawable/dark_header_dither</item>
•Now edit this line
Code:
<item name="layout_width">fill_parent</item>
to look like this:
Code:
<item name="layout_width">[COLOR="Red"]wrap_content[/COLOR]</item>
3. Now we are looking this line
Code:
<item name="android:background">@drawable/list_section_divider_holo_dark</item>
edit this line to look like this
Code:
<item name="android:background">@drawable/[COLOR="Red"]list_section_divider_holo_dark_lollipop[/COLOR]</item>
• Now search this line:
Code:
<item name="android:background">@drawable/list_section_divider_holo_light</item>
end edit to look like this
Code:
<item name="android:background">@drawable/[COLOR="Red"]list_section_divider_holo_light_lollipop[/COLOR]</item>
4.You're done! Now recompile, sign and push to /system/framework
01.11.2014
Added Dialog & Separators guides
My tutorial How to port Lolipop Check boxes and Radio buttons with animations
Cool
wow
I'll add some new stuffs ASAP
(UP)
Can you make for my resolution my resolution is ldpi please make it i want to try it please
because i can any theme created for my tablet my tablet is unknown but i know it's name
Ok
I'll made it for all res
What about animation bro
Sent from my ST25i using Tapatalk
Sir what is the color code are using in this <color name="holo_blue_light"></color>
Punkzappa09 said:
Sir what is the color code are using in this <color name="holo_blue_light"></color>
Click to expand...
Click to collapse
Is color from your framework-res (/res/values/colors)
Hello , thank you for your tutorial you know how to remove the lines in the settings ? This is an .xml file ?
Thank you .
Sure, can you post tour decompiled settings.apk?
KuaQ said:
Sure, can you post tour decompiled settings.apk?
Click to expand...
Click to collapse
If you give me the way I do , thank you .
EDIT : You need exactly ?
---------- Post added at 06:56 PM ---------- Previous post was at 06:27 PM ----------
KuaQ said:
Sure, can you post tour decompiled settings.apk?
Click to expand...
Click to collapse
Ok the simplest , I send you, thank you .
http://www.partage-facile.com/TXDUDPN0Q6/secsettings.zip.html
dragonballz said:
If you give me the way I do , thank you .
EDIT : You need exactly ?
---------- Post added at 06:56 PM ---------- Previous post was at 06:27 PM ----------
Ok the simplest , I send you, thank you .
http://www.partage-facile.com/TXDUDPN0Q6/secsettings.zip.html
Click to expand...
Click to collapse
So..
In your styles.xml find line
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo" />
and replace it with this:
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo">
<item name="android:listViewStyle">@style/MyListViewStyle</item>
<item name="android:listSeparatorTextViewStyle">@style/ListSeparator</item>
</style>
Now add this 2 styles in your styles.xml
Code:
<style name="ListSeparator" parent="@*android:style/Widget.DeviceDefault.Light.TextView.ListSeparator">
<item name="android:background">#00000000</item>
</style>
Code:
<style name="MyListViewStyle" parent="@android:style/Widget.ListView">
<item name="android:divider">#00000000</item>
<item name="android:dividerHeight">1px</item>
</style>
Shoud working, I dont test it. pleas report if working or not. Of course you can add your own parametr in to this styles like text color or size..
KuaQ said:
So..
In your styles.xml find line
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo" />
and replace it with this:
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo">
<item name="android:listViewStyle">@style/MyListViewStyle</item>
<item name="android:listSeparatorTextViewStyle">@style/ListSeparator</item>
</style>
Now add this 2 styles in your styles.xml
Code:
<style name="ListSeparator" parent="@*android:style/Widget.DeviceDefault.Light.TextView.ListSeparator">
<item name="android:background">#00000000</item>
</style>
Code:
<style name="MyListViewStyle" parent="@android:style/Widget.ListView">
<item name="android:divider">#00000000</item>
<item name="android:dividerHeight">1px</item>
</style>
Shoud working, I dont test it. pleas report if working or not. Of course you can add your own parametr in to this styles like text color or size..
Click to expand...
Click to collapse
Thank you , but it does not work :crying:
dragonballz said:
Thank you , but it does not work :crying:
Click to expand...
Click to collapse
What does it means: recompiling error/fc/lines are still there?
KuaQ said:
What does it means: recompiling error/fc/lines are still there?
Click to expand...
Click to collapse
Not the lines are still apparent
KuaQ said:
What does it means: recompiling error/fc/lines are still there?
Click to expand...
Click to collapse
Here is my modified styles.xml may be I have an error !!!
Sir thanks for this awesome guide, will this work for jelly bean 4.2.2?

[Guide] How to add Music VisualizerView - Graphic Equalizer to Notification panel

How to add Music VisualizerView - Graphic Equalizer animation style to Notification panel
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
XDA PORTAL : http://www.xda-developers.com/mod-spotlight-graphic-equalizer-for-notification-panel/
Hello good day XDA
This mod is a ported mod from CM11 Tiles, but I guess this mod will work to all device /OS which has Landroid/media/AudioManager.smali and Landroid/media/audiofx/Visualizer.smali
Oke let's start it
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk
- notepad++
- APKTOOL 2 ++
STEP 1
Decompile SystemUI.apk
Download attached smali and merge to your decompiled SystemUI
STEP 2
go to SystemUI.apk/res/layout/ status_bar_expanded.xml, gemini_status_bar_expanded.xml, tw_status_bar_expanded.xml, status_bar_tracking.xml , depend on your UI
and add the red line
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/handle" android:background="@drawable/status_bar_close" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" />
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/close_handle_underlap" android:animateLayoutChanges="false">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<ViewStub android:id="@id/ribbon_settings_stub" android:layout="@layout/ribbon_settings" android:layout_width="fill_parent" android:layout_height="@dimen/notification_min_height" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:padding="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</FrameLayout>
</LinearLayout>
[COLOR="Red"]<com.adi.rom.interface.MusicEqualizerVisualizer android:layout_gravity="bottom" android:id="@id/visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="48.0dip" android:layout_marginBottom="36.0dip">
<LinearLayout android:orientation="vertical" android:id="@id/custom_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.adi.rom.interface.VisualizerView android:id="@id/custom_visualizer_view" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
</com.adi.rom.interface.MusicEqualizerVisualizer>[/COLOR]
</com.android.systemui.statusbar.phone.NotificationPanelView>
NEXT
SystemUI.apk/res/values/colors.xml
add the red line to end of it before </resources>
Code:
<color name="pie_selected_color">@android:color/holo_blue_light</color>
<color name="pie_long_pressed_color">#ff8ad5f0</color>
<color name="pie_outline_color">#dd0099cc</color>
[COLOR="Red"]<color name="custom_equalizer_fill_color">#96ffffff</color>[/COLOR]
</resources>
SystemUI.apk/res/values/dimens.xml
add the red line to end of it before </resources>
Code:
<dimen name="pie_navbar_height">85.0dip</dimen>
<dimen name="pie_sysinfo_radius">165.0dip</dimen>
<dimen name="pie_sysinfo_height">85.0sp</dimen>
[COLOR="Red"]<dimen name="custom_eqalizer_path_effect_1">6.0dip</dimen>
<dimen name="custom_eqalizer_path_effect_2">1.0dip</dimen>
<dimen name="custom_eqalizer_path_stroke_width">6.0dip</dimen>[/COLOR]
</resources>
SystemUI.apk/res/values/ids.xml
add the red line to end of it before </resources>
Code:
<item type="id" name="notification_inspect_item">false</item>
<item type="id" name="recent_remove_item">false</item>
<item type="id" name="recent_inspect_item">false</item>
[COLOR="Red"]<item type="id" name="custom_visualizer_view">false</item>
<item type="id" name="visualizer_view_panel">false</item>
<item type="id" name="custom_visualizer_view_panel">false</item>[/COLOR]
</resources>
SystemUI.apk/res/values/integers.xml
add the red line to end of it before </resources>
Code:
<integer name="blinds_pop_duration_ms">10</integer>
<integer name="notification_panel_layout_gravity">0x37</integer>
<integer name="settings_panel_layout_gravity">0x37</integer>
[COLOR="Red"]<integer name="custom_equalizer_divisions">4</integer>
<integer name="custom_equalizer_db_fuzz_factor">2</integer>
<integer name="custom_equalizer_db_fuzz">-10</integer>[/COLOR]
</resources>
Done and compile your SystemUI.apk
STEP 3
Decompile the newly recompiled again
next go to systemui/res/values/public.xml
leave it but keep it open
STEP 4
go to -SystemUI.apk/smali/com/adi/rom/interface/MusicEqualizerVisualizer.smali
search for 0x7f??????
Change the value in the smali with the value you got in your own public.xml
0x7f0900db
Code:
<public type="id" name="custom_visualizer_view" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0e0063
Code:
<public type="dimen" name="custom_eqalizer_path_stroke_width" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0b000e
Code:
<public type="color" name="custom_equalizer_fill_color" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0e0061
Code:
<public type="dimen" name="custom_eqalizer_path_effect_1" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0e0062
Code:
<public type="dimen" name="custom_eqalizer_path_effect_2" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0d0012
Code:
<public type="integer" name="custom_equalizer_divisions" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0d0014
Code:
<public type="integer" name="custom_equalizer_db_fuzz" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0d0013
Code:
<public type="integer" name="custom_equalizer_db_fuzz_factor" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0900dd
Code:
<public type="id" name="custom_visualizer_view_panel" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
STEP 5
AndroidManifest.xml
Add the red line
Code:
<uses-permission android:name="android.permission.READ_DREAM_STATE"/>
<uses-permission android:name="android.permission.WRITE_DREAM_STATE"/>
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
[COLOR="Red"]<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>[/COLOR]
<application android:allowBackup="false" android:allowClearUserData="false" android:hardwareAccelerated="true" android:icon="@android:drawable/platlogo" android:label="@string/app_label" android:persistent="true">
<service android:exported="true" android:name="SystemUIService"/>
STEP 6
- Compile
- Sign it
- Disable Signature check
You can try using any of the keys that come with whatever apk signing tool you use, but you will more then likely end up with a SystemUI.apk that wont show as being installed, you must sign it with platfrom keys from CyanogenMod's android_build github https://github.com/CyanogenMod/android_build/tree/jellybean/target/product/security
Note !
for CM / AOSP from source whic has
STATIC TILES, you need to uncheck/disable Equalizer tile, otherwise the Visualizer will not appear on Notification panel
Screenshot
New Style !
How to add Selectable 8 style Music Visualizer - to Notification panel
http://forum.xda-developers.com/android/themes/guide-how-to-add-selectable-8-style-t3070550
well done om adi.thank you
Awesome :good:
Another Owesome guide from the master :good:
Thnks om, i'll try soon
thanks
awesome guide
you're the best
work fine in lollipop 5.1
in lockscreen.
working perfectly sir.. Thanks
Sir, can you share this visualizer and weather tiles?)
Please don't quote all OPs
and Request is off , sorry , you are out of the topic
the_vanya1 said:
Sir, can you share this visualizer and weather tiles?)
Click to expand...
Click to collapse
Well done @Adi Aisiteru Reborn :thumbup::thumbup::thumbup:
And don't quote the whole of OP, edit your post please @the_vanya1
Sir @Adi Aisiteru Reborn, how to Add Switch on/off to Setting?
sir just a question.
in the source files why dont you use codes like these to assign the parts to ID's in packages?
this will save time in editing all the 0x7f*** etc codes and will work better
Code:
int layoutID = getResources().getIdentifier("customequalizerview","id", "com.android.systemui");
LinearLayout Layoutey = (LinearLayout)findViewById(layoutID);
in the java source code.
i find this easier as all java mods i nowadays code with those codes as thats easier to port for other people.
its doable for images ids layouts etc almost anything its useable.
Just my 2 cents
nice mod bro
A neat idea! Thanks! I'll have to give it a try..
---------------------------------
Sent from Tapatalk
------------------------------
Works on odexed rom?
EDIT: if doesn't work, can i just deodex systemui.apk and apply changes?
Thank you OP. Great MOD. Great tutorial.
HTC One M8 running Sense 7.0 with Android 5.0.1
Can this be made as an xposed module? i think that would be cool if you can!
SpaceCaker said:
sir just a question.
in the source files why dont you use codes like these to assign the parts to ID's in packages?
this will save time in editing all the 0x7f*** etc codes and will work better
Code:
int layoutID = getResources().getIdentifier("customequalizerview","id", "com.android.systemui");
LinearLayout Layoutey = (LinearLayout)findViewById(layoutID);
in the java source code.
i find this easier as all java mods i nowadays code with those codes as thats easier to port for other people.
its doable for images ids layouts etc almost anything its useable.
Just my 2 cents
nice mod bro
Click to expand...
Click to collapse
Interesting sir spacecaker,
you can write it, and I'll post it as optional guide , thanks
FSadino said:
Works on odexed rom?
EDIT: if doesn't work, can i just deodex systemui.apk and apply changes?
Click to expand...
Click to collapse
you should be able to run just the deodexed SystemUI.apk..
just remember to remove the SystemUI.odex..

Categories

Resources