[TUTORIAL] [MOD] How to add AF Volume Panel - Galaxy Y GT-S5360 General

Hello today I am Bring My first thread how to ad AF Volume Panel to Android Mobile Its Very Easy Methods to Do it. I have waste many time to do make some smali codes so don't kang this smali .ok Lets Start
Requirement:
Apktool http://forum.xda-developers.com/showthread.php?t=1755243
Framework.jar from ur phone
Framework-res.apk from ur phone
Nice Brain to Understand
Instructions:
Step 1 :- Decompile Framework-res.apk
Step 2 :- Open decompiled folder / values / ids.xml and Merged down the Framework-res.zip with ur Decompiled Folder
Step 3 :-
Code:
<item type="id" name="warning_message_af">false</item>
before </resources>
Step 4 :- Open layout/volume_adjust.xml Remove All lines
Step 5 :- Add This
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="@drawable/panel_background" android:layout_width="300.0dip" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/additional_message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<LinearLayout android:gravity="left|center" android:orientation="horizontal" android:layout_width="280.0dip" android:layout_height="45.0dip" android:layout_marginTop="6.0dip" android:layout_marginBottom="6.0dip">
<ImageView android:id="@id/other_stream_icon" android:padding="0.0dip" android:layout_width="42.0dip" android:layout_height="32.0dip" />
<ImageView android:id="@id/ringer_stream_icon" android:padding="0.0dip" android:layout_width="42.0dip" android:layout_height="32.0dip" />
<ProgressBar android:id="@id/level" android:layout_width="215.0dip" android:layout_height="32.0dip" android:layout_marginRight="16.0dip" android:progressDrawable="@drawable/progress_volume_adjust" style="?android:attr/progressBarStyleHorizontal" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/warning_message_af" android:layout_width="195.0dip" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginTop="3.0dip" android:layout_marginRight="15.0dip" android:layout_marginBottom="5.0dip" />
</LinearLayout>
</LinearLayout>
Step 6 :- Recompile the framework-res.apk
Step 7 :- Decompile The Output framework-res.apk one
Step 8 :- Open values/public.xml
Step 9 :- Search for
Code:
<public type="id" name="warning_message"
Step 10 :- Note Down public id we need
Step 11 :- Decompile framework.jar
Step 12 :- Downloads The Attachment and merged with ur Decompiled folder
Step 13 :- Open smali / android / view
Step 14 :- Open VolumePanel
Step 15 :- Search for 0x1020263
Step 16 :- You will See
HTML:
.line 148
const v4, 0x1020263
invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v4
check-cast v4, Landroid/widget/TextView;
iput-object v4, p0, Landroid/view/VolumePanel;->mWarningMessage:Landroid/widget/TextView;
Step 17 :- Change smali codes first list five digit like if my warning_message_af is 0x01020265] Volume Panel ids is 0x1020263
then we have replace waring public codes id to volume panel ids only last five digit
Step 18 :- Recompile The Framework.jar
Step 19 :- Sign The The Two apps
Step 20:- Push to ur phone
Step 21 :- Happy Modding
Result:
{
"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"
}

hey sir @AndroidFire i got error at [email protected]_volume_adjust

Mranggapo said:
hey sir @AndroidFire i got error at [email protected]_volume_adjust
Click to expand...
Click to collapse
Give me Logs of Your Error
Edit: Follow These Guide http://forum.xda-developers.com/showthread.php?t=2806060

@op Can i add your guide on my thread ?

Sure
AbhiLP said:
@op Can i add your guide on my thread ?
Click to expand...
Click to collapse
:good: Yeah Sure by pressing Thanks and Giving Proper Credit check my other guide maybe useful for u http://forum.xda-developers.com/showpost.php?p=53960404&postcount=2

Hi
Thanks alot
I change my volume panel
--------------
Is a way to add sound setting to volume panel??
Excuse me For MY Bad ENGLISH

danial199 said:
Hi
Thanks alot
I change my volume panel
--------------
Is a way to add sound setting to volume panel??
Excuse me For MY Bad ENGLISH
Click to expand...
Click to collapse
Thx
I have already try I have make it when I implemented to the system it is exception and so I drop this project
Sent from my SM-G530H using XDA Free mobile app

AndroidFire said:
Thx
I have already try I have make it when I implemented to the system it is exception and so I drop this project
Sent from my SM-G530H using XDA Free mobile app
Click to expand...
Click to collapse
So there isnt any way??
You dont try again?
Do not do another one?
Excuse me for bad English

Related

Remove clock from Satus Bar

I would like the status bar the same as on the Lock screen
I think I found the line to delete in order to get rid of the clock on the status bar, in file SystemUI\res\layout\status_bar.xml, I decode it ok with Android Suite, but encoding gives an error ???
Brut directory PathNotExist Apktool.yml
{
"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"
}
melorib said:
I would like the status bar the same as on the Lock screen
I think I found the line to delete in order to get rid of the clock on the status bar, in file SystemUI\res\layout\status_bar.xml, I decode it ok with Android Suite, but encoding gives an error ???
Brut directory PathNotExist Apktool.yml
Click to expand...
Click to collapse
It is simple you are using this code:
Code:
apktool b SystemUI.apk
but you have to specify the FOLDER name, not the apk name. so it should be
Code:
apktool b SystemUI
LegendK95 said:
It is simple you are using this code:
Code:
apktool b SystemUI.apk
but you have to specify the FOLDER name, not the apk name. so it should be
Code:
apktool b SystemUI
Click to expand...
Click to collapse
Thanks
I think the problem is more complicated, I tried with other SystemUI.apk and it encoded, the one from my ROM doesnt, it must have some errors
HOW TO CENTER CLOCK
-decompile your SystemUI.apk
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the stock clock line, delete the entire line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" androidaddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout androidrientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
That's it for the Center Clock. Recompile and if you used apktool sign your new SystemUI.apk using apkmanager (option 16)
Here is an example of how your status_bar.xml should look like
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView androidrientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:gravity="center" androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" androidaddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@id/icons" androidaddingLeft="6.0dip" androidaddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout androidrientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:id="@id/signal_battery_cluster" androidaddingLeft="2.0dip" 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" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" androidaddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" androidaddingTop="2.0dip" androidaddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" androi
Click to expand...
Click to collapse
I did all this, replaced SystemUI\res\Layout\Status_bar but nothing changed
To remove clock from status bar do this:
Decompile SystemUI.apk
edit smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali
Search for: .method public showClock(Z)V
replace: const/4 v0, 0x0
with: const v0, 0x8
recompile SystemUI
note: the 0x8 value hides the clock
gcrutchr said:
To remove clock from status bar do this:
Decompile SystemUI.apk
edit smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali
Search for: .method public showClock(Z)V
replace: const/4 v0, 0x0
with: const v0, 0x8
recompile SystemUI
note: the 0x8 value hides the clock
Click to expand...
Click to collapse
Thank you SIR, unfortunately Apk_Multi_ICS when I re-compile, after doing the change, put it back as it was
melorib said:
Thank you SIR, unfortunately Apk_Multi_ICS when I re-compile, after doing the change, put it back as it was
Click to expand...
Click to collapse
here is the apktool I use.
gcrutchr said:
here is the apktool I use.
Click to expand...
Click to collapse
Thanks, I get this errors and nothing on decompiled smali folder
melorib said:
Thanks, I get this errors and nothing on decompiled smali folder
Click to expand...
Click to collapse
Have u installed the framework of ur rom first?
| Google+ |
AashayS said:
Have u installed the framework of ur rom first?
| Google+ |
Click to expand...
Click to collapse
I tried as per instructions I found on the net, but as you can see it didnt work, please show me the commands to install framework, decompile SystemUI.apk, and recompile it, thanks,
melorib said:
I tried as per instructions I found on the net, but as you can see it didnt work, please show me the commands to install framework, decompile SystemUI.apk, and recompile it, thanks,
Click to expand...
Click to collapse
If u are using apktool ,then to install framework, type in cmd,
Apktool if <path to framework-res.apk>
To decompile apk
Apktool d <path to apk> <path where decompiled apk should be>
Recompile
Apktool b <path to decompiled apk>
| Google+ |
melorib said:
I tried as per instructions I found on the net, but as you can see it didnt work, please show me the commands to install framework, decompile SystemUI.apk, and recompile it, thanks,
Click to expand...
Click to collapse
To decompile the command is:
apktoollics d SystemUI.apk
To compile the command is:
apktoolics b SystemUI
your apkfile will be in SystemUI\dist, but you need to add META_INF folder and AndroidManifest.xml from your original SystemUI.apk into the new SystemUI.apk.
EDIT: if you need to install framework-res, the command is:
java -jar apktool.jar if framework-res.apk
gcrutchr said:
To decompile the command is:
apktoollics d SystemUI.apk
To compile the command is:
apktoolics b SystemUI
your apkfile will be in SystemUI\dist, but you need to add META_INF folder and AndroidManifest.xml from your original SystemUI.apk into the new SystemUI.apk.
EDIT: if you need to install framework-res, the command is:
java -jar apktool.jar if framework-res.apk
Click to expand...
Click to collapse
Same error
melorib said:
Same error
Click to expand...
Click to collapse
Which ROM is this?
Edit: The bad magic value is because you are not using the correct apktool.jar for the SystemUI.apk you are trying to decompile.
Since u are only needing to edit out smali just grab classes.dex from unzipped (not decompiled) apk and then use baksmali.jar to decompile it. Edit smali lines then recompile with smali.jar
After then place new classes.dex in system ui rezip apk and u should be good
gcrutchr said:
Which ROM is this?
Edit: The bad magic value is because you are not using the correct apktool.jar for the SystemUI.apk you are trying to decompile.
Click to expand...
Click to collapse
I am using Dynamic 1.4 LP9
melorib said:
I am using Dynamic 1.4 LP9
Click to expand...
Click to collapse
Post your SystemUI.apk and I will look at it.
gcrutchr said:
Post your SystemUI.apk and I will look at it.
Click to expand...
Click to collapse
Thanks,
http://melorib.com/data/SystemUI.apk
gcrutchr said:
Post your SystemUI.apk and I will look at it.
Click to expand...
Click to collapse
I also tried to remove the Clock line from RES/Layout/Statusbar, but cannot compile back with the mod
melorib said:
I also tried to remove the Clock line from RES/Layout/Statusbar, but cannot compile back with the mod
Click to expand...
Click to collapse
Ok...try this.

[GUIDE] Adding Lidroid statusbar toggles [EASIER THAN EVER]

CREDITS
LIDROID
THIS THREAD and THIS THREAD
POTATOINC​
You must know how to decompile an APK
SCREENSHOTS
Without modifying StatusbarService.smali
{
"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"
}
After modifying StatusbarService.smali
First go to this thread by @dcsms
[GUIDE]How to add lidroid 14 statusbar toggle buttons for Galaxy Y
Skip step 3. (You don't need to edit StatusBarService.smali for now)
Then go to my thread (Now its usefull)
[GUIDE] Remove STOCK TW toggles on expandedView or just move it to anywhere
Because we need to remove stock toggles in our expandedView
Download this smali files from POTATOINC
http://forum.xda-developers.com/attachment.php?attachmentid=2506685&stc=1&d=1389366819
Copy it to your SystemUI/smali
Then go to your SystemUI/res/layout/status_bar_expanded.xml
add or you can put it anywhere you like
Code:
[FONT=Century Gothic]<com.potato.powerwidget.PowerRangers android:layout_width="match_parent" android:layout_height="wrap_content android:orientation="vertical"/>[/FONT]
So it will looks like this
Code:
[FONT=Century Gothic]<?xml version="1.0" encoding="utf-8"?>[/FONT]
[FONT=Century Gothic] <com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"[/FONT]
[FONT=Century Gothic] xmlns:android="http://schemas.android.com/apk/res/android">[/FONT]
[FONT=Century Gothic] <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">[/FONT]
[FONT=Century Gothic] <ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">[/FONT]
[FONT=Century Gothic] <com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">[/FONT]
[FONT=Century Gothic] [COLOR=Magenta]<com.potato.powerwidget.PowerRangers android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"/>[/COLOR][/FONT]
[FONT=Century Gothic] <LinearLayout android:orientation="horizontal" android:background="@drawable/quickpanel_plmn_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">[/FONT]
[FONT=Century Gothic] <com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />[/FONT]
[FONT=Century Gothic] <Button android:textSize="13.0sp" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:layout_width="85.0dip" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginRight="6.0dip" android:layout_marginBottom="3.0dip" android:text="@string/status_bar_clear_all_button" style="?android:attr/buttonStyleSmall" />[/FONT]
[FONT=Century Gothic] </LinearLayout>[/FONT]
[FONT=Century Gothic] <TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />[/FONT]
[FONT=Century Gothic] <TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />[/FONT]
[FONT=Century Gothic] <LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/FONT]
[FONT=Century Gothic] <TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />[/FONT]
[FONT=Century Gothic] <LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/FONT]
[FONT=Century Gothic] </com.android.systemui.statusbar.NotificationLinearLayout>[/FONT]
[FONT=Century Gothic] </ScrollView>[/FONT]
[FONT=Century Gothic] <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />[/FONT]
[FONT=Century Gothic] </FrameLayout>[/FONT]
[FONT=Century Gothic] </com.android.systemui.statusbar.ExpandedView>[/FONT]
Decompile SystemUI.apk
If you have some FC issues its better to attach LOGCAT.
Also test it on other devices then report back here. THANKS​
Awesome. Now its easy to port.
Sent from my Nexus 7 using Tapatalk
actually there is an even easier way
use this tool - does it all for you - you just have to add the code it give to the smali and the rest it does itself
http://forum.xda-developers.com/showthread.php?t=2181597
marcussmith2626 said:
actually there is an even easier way
use this tool - does it all for you - you just have to add the code it give to the smali and the rest it does itself
http://forum.xda-developers.com/showthread.php?t=2181597
Click to expand...
Click to collapse
no this is better coz the edit in statusbar service is different for all fones. and many have problem compiling it. now there will be no problem..
samsoul16 said:
no this is better coz the edit in statusbar service is different for all fones. and many have problem compiling it. now there will be no problem..
Click to expand...
Click to collapse
I have used that tool and it works perfect on galaxy y - the only thing you have to do is edit the service smali with the codes it gives you for different phones
so all you have to do is a simple copy and paste - everything else is done by the tool
The only thing it doesnt do is edit the manifest to enable flash light
Not work on my zte blade ROM: GSF B27 (2.3.4)
I don't know why.
In turn try lot of the make guide but the SystemUI always force close.
If anyone can help or described in more detail in the guide to ask you to do it.
LOTs OF THANKS.
sisxgame said:
Not work on my zte blade ROM: GSF B27 (2.3.4)
I don't know why.
In turn try lot of the make guide but the SystemUI always force close.
If anyone can help or described in more detail in the guide to ask you to do it.
LOTs OF THANKS.
Click to expand...
Click to collapse
layout or const value fail
logcat to know.
Sent from my S500 using xda app-developers app
SpaceCaker said:
layout or const value fail
logcat to know.
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
here is the apk link.
http://www63.zippyshare.com/v/82568762/file.html
i do not logcat this becuse all steps opservs and not problem in the recompile.
(no stock toggles my system ui and I not to do remove this)
please make my apk
maybe my rom is the problem, because force close when maked this guide
http://forum.xda-developers.com/showthread.php?t=2644229
Thanx your kindness
Sorry my bad english
sisxgame said:
here is the apk link.
http://www63.zippyshare.com/v/82568762/file.html
i do not logcat this becuse all steps opservs and not problem in the recompile.
(no stock toggles my system ui and I not to do remove this)
please make my apk
maybe my rom is the problem, because force close when maked this guide
http://forum.xda-developers.com/showthread.php?t=2644229
Thanx your kindness
Sorry my bad english
Click to expand...
Click to collapse
No.
u need to make yourself.
guides are there
it takes Trial and error to succed
Take logs to see whats wrong
without no one will be able to help
Sent from my S500 using xda app-developers app
SpaceCaker said:
No.
u need to make yourself.
guides are there
it takes Trial and error to succed
Take logs to see whats wrong
without no one will be able to help
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
thanks for the help, I'll try:fingers-crossed:
NON-Samsung ?
Will this work on non-samsung mediatek mt6575 device ?????/ reply plz
yes if u know how to mod properly.
Sent from my S500 using xda app-developers app
This is awesome! This is a mod that I've been searching for ways to add to my ancient GB tablet for the past two years! Big thanks to @mariozawa! :laugh:
Just two quick questions..
Is there an easy way to get the flashlight working? And is the quickpanelsettings.apk supposed to be visible from the app drawer? I can't see it anywhere..
Ticklefish said:
This is awesome! This is a mod that I've been searching for ways to add to my ancient GB tablet for the past two years! Big thanks to @mariozawa! :laugh:
Just two quick questions..
Is there an easy way to get the flashlight working? And is the quickpanelsettings.apk supposed to be visible from the app drawer? I can't see it anywhere..
Click to expand...
Click to collapse
for flashlight all u can do is add
permission of hardware camera or
modify the ledcontroller smali ( dunno how but on some fevices it made it work)
for the settings app it momight be DEFAULT in manifest change it to LAUNCHER and it should appearin appdrawer
Sent from my Acer S500 CloudMobile
SpaceCaker said:
for flashlight all u can do is add
permission of hardware camera or
modify the ledcontroller smali ( dunno how but on some fevices it made it work)
for the settings app it momight be DEFAULT in manifest change it to LAUNCHER and it should appearin appdrawer
Sent from my Acer S500 CloudMobile
Click to expand...
Click to collapse
Many thanks (I've used up my 8 today but I'll press thanks once I'm on TapaTalk later..).
I've added:
Code:
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
to my SystemUI.apk. This will be the first time I've done anything with modifying the Manifest. Am I correct that I can't use the same signature once the Manifest's changed?
Ticklefish said:
Many thanks (I've used up my 8 today but I'll press thanks once I'm on TapaTalk later..).
I've added:
Code:
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
to my SystemUI.apk. This will be the first time I've done anything with modifying the Manifest. Am I correct that I can't use the same signature once the Manifest's changed?
Click to expand...
Click to collapse
for modding manifest xml of system apps u need to sign them afterwards
but
u also need to disable signature check in services.jar
because u will sign it with tool like one_click_signer or apksigner etc
and they give different credentials then system sign so it will not show or appear if the signature check is on
its tricky but once it works u can do a lot
Sent from my Acer S500 CloudMobile
Okay, this is odd. I had to flash a nandroid backup as I made a mistake modding something..and I can now no longer use this mod. Everytime I install lidroid-res.apk, I get a bootloop.
And I've no idea why.
Anybody have a suggestion?
Maybe what happen is that u have 2 lidroid-res apks in framework.
but on different names.
tgen it tires to load them but fails.
also what can be the issue is the permissions although it shouldnt affect whole rom.
Sent from my Acer S500 CloudMobile
sir, will it work with non-samsung device like optimus L3 (GB)?
try it and you will see
if u have enough knowledge it will work ofcourse
Sent from my Acer S500 CloudMobile

[Guide][tut] Animations Speed (Transition/windows/duration) control

Today again a new mod ( i collected this from great cataclysm rom )
You should be having Stock deodexed settings.apk
1. Decompile the settings
2. Open settings.apk/res/values/attrs.xml
Add this code
Code:
<attr name="type" format="integer" />
3. Open settings.apk/res/values/strings.xml
Add this code
Code:
<string name="window_animation_scale_title">Window animation scale</string>
<string name="transition_animation_scale_title">Transition animation scale</string>
<string name="animator_duration_scale_title">Animator duration scale</string>
4. Add this code to any of your settings like (display_settings.xml or as you wish )
Code:
<PreferenceScreen android:title="@string/animation_speeds_title" android:key="animation_speeds" android:summary="@string/animation_speeds_summary" android:fragment="com.android.settings.AnimationSpeeds" />
5. Add these ids in settings.apk/res/values/ids.xml
Code:
<item type="id" name="seek_bar_pref_unit_right">false</item>
<item type="id" name="seek_bar_pref_value">false</item>
<item type="id" name="seek_bar_pref_unit_left">false</item>
<item type="id" name="seek_bar_pref_bar_container">false</item>
6. Now download this View attachment settings.zip
and merge codes
Main Part Continued in Post #2
Final part and Result
Here comes a critical Part but not difficult
We had added new integer so we have to define in setting activity
i will explain in simple code just follow it
7. Now open settings.apk/smali/com/android/settings/R$styleable.smali
Find this code
Code:
.field public static final IntentPreference:[I
Below this add
Code:
.field public static final MySeekBarPreference:[I
Now look for
Code:
sput-object v0, Lcom/android/settings/R$styleable;->PercentageBarChart:[I
Below Add this code
Code:
.line 12360
new-array v0, v3, [I
const v1, 0x7f010044
aput v1, v0, v2
sput-object v0, Lcom/android/settings/R$styleable;->MySeekBarPreference:[I
So here you had define the integer
8. Compile and decompile so you get new public ids
From that in R$styleable.smali
Replace the Public code :- 0x7f010044 #<public type="attr" name="type" id="0x7f010044" />
and in MySeekBarPreference.smali and in AnimationSpeeds.smali compare with my public ids and replace them
9. Oh god... just compile and replace your settings.apk and enjoy the mod ( check the below image on what mod you did........... )
{
"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"
}
Don't forget to mention in if you used my work
Awesome bro ^^
“Sent From MWE V7.0.0 On My Z3”
6. Now download this settings.zip
and merge codes
Click to expand...
Click to collapse
hi venkat, i tried your guide, all is fine except the step mentioned ahead.
i compared the public.xml from the rom i use and your public(compare).xml with WinMerge and there are many differences (on both sides)
So what to do?
Tried to simple copy your xml into the values folder, but then recompiling failed.
And the second thing i don´t understand:
8. Compile and decompile so you get new public ids
Click to expand...
Click to collapse
where is this new public ids?
From that in R$styleable.smali
Replace the Public code :- 0x7f010044 #<public type="attr" name="type" id="0x7f010044" />
and in MySeekBarPreference.smali and in AnimationSpeeds.smali compare with my public ids and replace them
Click to expand...
Click to collapse
i get a new public code and must replace the similar code in R$styleable.smali?
And also in MySeekBarPreference.smali and AnimationSpeed.smali? Right?
Thx for your help.
I love this mod, so i want to try it on my own.
Add new animation?
How can I add the same animation that was on kitkat when you open an app or while you tap thumbnail on multitasking view? This animation in lollipop is missing
Can you help me to know what i did wrong?
dark90 said:
Can you help me to know what i did wrong?
Click to expand...
Click to collapse
You need to define seekbar preferences then you will get all
Another great tutorial from master @venkat kamesh :good:
venkat kamesh said:
You need to define seekbar preferences then you will get all
Click to expand...
Click to collapse
Thanks i got it.
The problem following you tut step by step is that you have 12seek_bar_preference.xml (defined in seekbarpreference.smali) and seek_bar_preference.xml (defined in myseekbarpreference.smali) and we only have seek_bar_preference.xml (defined on seekbarpreference.smali) and Just comparing the public id didnt gonnna work
dark90 said:
Thanks i got it.
The problem following you tut step by step is that you have 12seek_bar_preference.xml (defined in seekbarpreference.smali) and seek_bar_preference.xml (defined in myseekbarpreference.smali) and we only have seek_bar_preference.xml (defined on seekbarpreference.smali) and Just comparing the public id didnt gonnna work
Click to expand...
Click to collapse
In my settings I had 2 to 3 different seekbar bro
For this mod the seek bar out value should be px
The one in tut I have and the one 12seekbar are same brother.. You can compare
Any how it worked for you bro
Happy to hear
for that ppl that cant make it work (just the ppl who did all the things in op), just:
-download, uncompres and copy this file to your settings.apk/res/layout folder
-compile and decompìle to get the new public id
-open you settings.apk/res/value/public.xml and search <public type="layout" name="seekbar_preference" id
-open settings.apk/smali/com/android/settings/rz/myseekbarpreference.smali and go to the line 92 " const v1, 0x7f040103 # type="layout" name="seek_bar_preference "
-change the id for the one you find before in public.xml
-now compile and sign and you got it now working, well i hope xD
Great Job venkat
Sorry I forget modify some lines all works like a charm thanks bro
@dark90 mate
Thanks. Ur solution works like a charm..
dark90 said:
for that ppl that cant make it work (just the ppl who did all the things in op), just:
-download, uncompres and copy this file to your settings.apk/res/layout folder
-compile and decompìle to get the new public id
-open you settings.apk/res/value/public.xml and search <public type="layout" name="seekbar_preference" id
-open settings.apk/smali/com/android/settings/rz/myseekbarpreference.smali and go to the line 92 " const v1, 0x7f040103 # type="layout" name="seek_bar_preference "
-change the id for the one you find before in public.xml
-now compile and sign and you got it now working, well i hope xD
Click to expand...
Click to collapse
@dark90
This aint work bro, when i add your xml and try to compile, i have error cant find the ids in public.xml and i send you a pm btw.
I have it all except the switches
deleted

[GUIDE] [CM 12/12.1/13] [AOSP/5.0.x/5.1.x/6.0.x] [Change Xperia Battery icon]

Due to the large demand for how to replace the battery icon for Lollipop and Marshmallow , here I will give a little tutorial .
This tutorial applies to Rom CM12 / 12.1 / 13 /AOSP/5.0/5.1/6.0/6.0.1
Well , we start from the first:
{
"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"
}
Materials and requirements:
-- PC
-- Apktool
-- Notepad++
-- WinRAR or any archive application
-- SystemUI.apk
-- Battery icon Download here
-- Battery smali Download here
-- Know How to Decompile and Recompile Apk. (don't ask here)
-- Know Baksmali smali (don't ask here)
-- Be patient
We start from step by step
STEP 1:
-- Decompile Your SystemUI.apk
-- Download Battery-icon.zip
-- Extract Battery-icon.zip
-- Copy Battery icon to your SystemUI (Place the appropriate folder)
-- Recompile Your SystemUI. (Done STEP 1)
STEP 2:
-- Decompile again your SystemUI
-- Download Smali-source.zip
-- Extract Smali-source.zip
-- Copy Smali-source to your smali , smali/com/cyandgl/battery/
-- go to res/values/public.xml
-- open public.xml and search 2 line:
PHP:
<public type="drawable" name="stat_sys_battery" id="0xYOURCODE1" />
<public type="drawable" name="stat_sys_battery_charge" id="0xYOURCODE2" />
-- Now open smali/com/cyandgl/battery/Battery$1.smali
-- find .line 104 and .line 124 and change const v3, 0X.. with your public code.
Code:
iget-object v2, p0, Lcom/cyandgl/battery/Battery$1;->val$BatteryImage:Landroid/widget/ImageView;
const v3, 0xstat_sys_battery_charge!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V
.line 38
:goto_1
return-void
.line 29
.end local v0 # "ifCharging":Z
:cond_0
const/4 v0, 0x1
goto :goto_0
.line 36
.restart local v0 # "ifCharging":Z
:cond_1
iget-object v2, p0, Lcom/cyandgl/battery/Battery$1;->val$BatteryImage:Landroid/widget/ImageView;
const v3, 0xstat_sys_battery !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V
goto :goto_1
.end method
-- Save
-- Now go to res/layout/status_bar.xml and Open
Code:
--
<com.cyandgl.battery.Battery android:gravity="center" android:id="@id/battery" android:paddingLeft="1.5dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
--
-- Paste my xml after
Code:
<com.android.systemui.BatteryLevelTextView android:textSize="@dimen/battery_level_text_size" android:textColor="@color/status_bar_battery_level_text_color" android:layout_gravity="center_vertical" android:id="@id/battery_level_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
EXAMPLE:
Code:
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<com.android.systemui.BatteryLevelTextView android:textSize=[COLOR="Red"]"@dimen/battery_level_text_size"[/COLOR] android:textColor=[COLOR="Green"]"@color/status_bar_battery_level_text_color"[/COLOR] android:layout_gravity="center_vertical" android:id="@id/battery_level_text" android:layout_width=[COLOR="Red"]"wrap_content"[/COLOR] android:layout_height=[COLOR="Red"]"wrap_content"[/COLOR] android:layout_marginStart=[COLOR="Red"]"@dimen/header_battery_margin_keyguard"[/COLOR] />
<com.cyandgl.battery.Battery android:gravity="center" android:id="@id/battery" android:paddingLeft="1.5dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
-- Change Red color to "0.0dip and Green color to "#00000000" and save
-- Than edit status_bar_expanded_header.xml and keyguard_status_bar.xml
-- Now go to res/layout/system_icons.xml and open
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"]"9.5dip"[/COLOR] android:layout_height=[COLOR="Red"]"14.5dip"[/COLOR] android:layout_marginBottom=[COLOR="Red"]"@dimen/battery_margin_bottom"[/COLOR] android:layout_marginStart=[COLOR="Red"]"@dimen/signal_cluster_battery_padding"[/COLOR] />
</LinearLayout>
-- Change Red color to "0.0dip"
-- Save
-- Decompile your SystemUI.apk
-- Sign
-------====== GOOD LUCK ======------
Great guide brother
Thanks alot
Change Red color to "0.0dip and Green color to "#00000000" and save
I do not know what to do here I can not find but to like I came up here where change this green ?
---------- Post added at 11:52 PM ---------- Previous post was at 11:49 PM ----------
Please help me
---------- Post added 14th March 2016 at 12:18 AM ---------- Previous post was 13th March 2016 at 11:52 PM ----------
Damn it!! antivirus blocked the Apktool files :crying: :crying: :crying: :crying: :crying: :crying: :crying: start over now
KayM6.0.1 said:
Change Red color to "0.0dip and Green color to "#00000000" and save
I do not know what to do here I can not find but to like I came up here where change this green ?
---------- Post added at 11:52 PM ---------- Previous post was at 11:49 PM ----------
Please help me
---------- Post added 14th March 2016 at 12:18 AM ---------- Previous post was 13th March 2016 at 11:52 PM ----------
Damn it!! antivirus blocked the Apktool files :crying: :crying: :crying: :crying: :crying: :crying: :crying: start over now
Click to expand...
Click to collapse
Meaning, red and green in my post . See code my post. Yeach apktool is virus. Disable your antivirus on your PC
Luncer said:
Great guide brother
Thanks alot
Click to expand...
Click to collapse
GOOD LUCK
but how to change the colors ?I did the same but does not change
KayM6.0.1 said:
but how to change the colors ?I did the same but does not change
Click to expand...
Click to collapse
See this
MasDergiL said:
See this
Click to expand...
Click to collapse
Thank you very much!! I'll try up until get a good result
I still have a lot to learn
KayM6.0.1 said:
I still have a lot to learn
Click to expand...
Click to collapse
Open smali/com/cyandgl/battery/Battery$1.smali
Line 104 0xstat_sys_battery_charge !!!!!!!!!!!!!!!!!!!!
Change your code stats_sys_battery_charge from res/values/public.xml
MasDergiL said:
Open smali/com/cyandgl/battery/Battery$1.smali
Line 104 0xstat_sys_battery_charge !!!!!!!!!!!!!!!!!!!!
Change your code stats_sys_battery_charge from res/values/public.xml
Click to expand...
Click to collapse
So I should change 0xstat_sys_battery_charge by stats_sys_battery_charge ?
please can see where I'm going wrong?
https://drive.google.com/file/d/0B6X7wvEzZtqCWHhXN3VaSFdDeEk/view
the file was too large to be sent
KayM6.0.1 said:
So I should change 0xstat_sys_battery_charge by stats_sys_battery_charge ?
Click to expand...
Click to collapse
Yes, u must change code from public.xml
Ex:
0x7f010024
Edit - sorry, nevermind. I get it...
I give up! only continues with this error
I think I got it, but one question - after modding status bar XML, there's instructions, 'then edit (2 other XMLs). What exactly is that edit? Is it the same as status bar XML? There is not exactly the same lines there, but do you just add cyandgl line to 'optimized frame layout', and change the color and size values?
Thanks
Thanks
please change this lines
levone1 said:
I think I got it, but one question - after modding status bar XML, there's instructions, 'then edit (2 other XMLs). What exactly is that edit? Is it the same as status bar XML? There is not exactly the same lines there, but do you just add cyandgl line to 'optimized frame layout', and change the color and size values?
Thanks
Click to expand...
Click to collapse
Nevermind - I got it. The issue is that I don't have 'battery level textview' field in my status bar XML, so I was confused. I originally added it in, based on your example, but i got errors, and then realized... Anyway, now I just need to figure out where exactly in the lockscreen and notification XMLs where to put the cyandgl entries.
You must be pretty good at writing instructions if I can figure it out. Thanks
Got the lock screen...
KayM6.0.1 said:
So I should change 0xstat_sys_battery_charge by stats_sys_battery_charge ?
Click to expand...
Click to collapse
It's saying change this - 0xstat_sys_battery !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
To this, (for example, just use whatever your code is) - 0x7f02010a

[GUIDE][4.3 - 5.x.x] Xperia Lockscreen with Graphic Visualizer

Yep, this could sounds to repost, but not, in this case the Porting Guide works with 4.4.x (KitKat) too.
Let's go with this, then:
For try port to LP: here
If you, don't understand that guide, here I've a explain (In spanish only):
Requirements
- Have a Deodex ROM (Really Important)
- Have the signature verification for all apps disabled (a.k.a Superuser Mod) installed.
- Know compile/decompile and sign apps (here a lite guide, I recommend download it)
- Brain (Not much xD )
- Patient
- Notepad++
- Latest apktool (in this case)
First, JellyBean (4.3)
Step 1
- Decompile XperiaLockScreen.apk
- Download Smali for JB 4.3 Lockscreen (In Download Section) and merge "smali" folder to your decompiled XperiaLockScreen
Step 2
Go to XperiaLockScreen/res/layout/keyguard_no_security_view.xml, search the follow line
Code:
[COLOR="RoyalBlue"]<LinearLayout android:gravity="center" android:layout_gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true">[/COLOR]
and add the red line down
Code:
[COLOR="Red"]<com.adi.rom.interface.MusicEqualizerVisualizer android:layout_gravity="bottom" android:id="@id/new_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="0.0dip">
<FrameLayout android:id="@id/new_custom_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.adi.rom.interface.VisualizerView android:id="@id/new_custom_visualizer_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</FrameLayout>
</com.adi.rom.interface.MusicEqualizerVisualizer>[/COLOR]
Some like this
{
"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"
}
Save it.
Step 3
Go to XperiaLockScreen/res/values/colors.xml
add these lines before of </resources>
Code:
[COLOR="Red"]<color name="new_custom_equalizer_fill_color">@color/didi2</color>
<color name="didi">@com.sonyericsson.uxp:color/somc_theme_accent_color_light</color>
<color name="didi2">@com.sonyericsson.uxp:color/somc_theme_accent_color_dark</color>
<color name="didi3">@com.sonyericsson.uxp:color/somc_accent_color_neutral</color>
<color name="didi4">@com.sonyericsson.uxp:color/semc_theme_illumination_color</color>[/COLOR]
If these lines don't leave compile, use only this
Code:
[COLOR="red"]<color name="new_custom_equalizer_fill_color">#96ffffff</color>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/dimens.xml
and add before of </resources>
Code:
[COLOR="red"] <dimen name="new_custom_eqalizer_path_effect_1">12.0dip</dimen>
<dimen name="new_custom_eqalizer_path_effect_2">1.0dip</dimen>
<dimen name="new_custom_eqalizer_path_stroke_width">24.0dip</dimen>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/ids.xml
and add before of </resources>
Code:
[COLOR="red"]<item type="id" name="new_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view">false</item>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/integers.xml
and add before of </resources>
Code:
[COLOR="red"]<integer name="new_custom_equalizer_divisions">4</integer>
<integer name="new_custom_equalizer_db_fuzz_factor">2</integer>
<integer name="new_custom_equalizer_db_fuzz">-10</integer>[/COLOR]
Step 4
Go to XperiaLockScreen/AndroidManifest.xml
and search
Code:
[COLOR="royalblue"]<uses-permission android:name="com.sonymobile.permission.READ_LOCKSCREEN_WALLPAPER"/>[/COLOR]
add the follow lines down
Code:
[COLOR="red"]<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>[/COLOR]
Step 5
- Compile XperiaLockScreen
- Sign it
- Push to System/app with the right permissions
- Download VisualizerStyleSettings.apk (from Download section) push to System/app with right permissions
Now with KitKat (4.4.x)
Step 1
- Decompile XperiaLockScreen.apk
- Download Smali for JB 4.3 Lockscreen (Yep, the same file, in Download Section) and merge "smali" folder to your decompiled XperiaLockscreen
Step 2
Go to XperiaLockScreen/res/layout/keyguard_no_security_view.xml, search the follow line
Code:
[COLOR="RoyalBlue"]<LinearLayout android:gravity="center" android:layout_gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true">[/COLOR]
and add the red line down
Code:
[COLOR="Red"]<com.adi.rom.interface.MusicEqualizerVisualizer android:layout_gravity="bottom" android:id="@id/new_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="0.0dip">
<FrameLayout android:id="@id/new_custom_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.adi.rom.interface.VisualizerView android:id="@id/new_custom_visualizer_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</FrameLayout>
</com.adi.rom.interface.MusicEqualizerVisualizer>[/COLOR]
Some like this
Save it.
Step 3
Go to XperiaLockScreen/res/values/dimens.xml
and add before of </resources>
Code:
[COLOR="red"] <dimen name="new_custom_eqalizer_path_effect_1">12.0dip</dimen>
<dimen name="new_custom_eqalizer_path_effect_2">1.0dip</dimen>
<dimen name="new_custom_eqalizer_path_stroke_width">24.0dip</dimen>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/ids.xml
and add before of </resources>
Code:
[COLOR="red"]<item type="id" name="new_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view">false</item>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/integers.xml
and add before of </resources>
Code:
[COLOR="red"] <integer name="new_custom_equalizer_divisions">13</integer>
<integer name="new_custom_equalizer_db_fuzz_factor">20</integer>
<integer name="new_custom_equalizer_db_fuzz">-10</integer>[/COLOR]
Step 4
Go to XperiaLockScreen/AndroidManifest.xml
and search
Code:
[COLOR="royalblue"]<uses-permission android:name="com.sonymobile.permission.READ_LOCKSCREEN_WALLPAPER"/>[/COLOR]
add the follow lines down
Code:
[COLOR="red"]<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>[/COLOR]
Step 5
- Compile XperiaLockScreen
- Sign it
- Push to System/app with the right permissions
- Download VisualizerStyleSettings.apk (from Download section) push to System/app with right permissions
Step 6
- Decompile SystemUI.apk
- Download Smali for KK-LP SystemUI (In Download Section) and merge "smali" folder to your decompiled SystemUI
Step 7
Go to SystemUI/res/layout/status_bar_expanded.xml, search the follow line
Code:
[COLOR="RoyalBlue"]
</LinearLayout>[/COLOR]
and add the red line down
Code:
[COLOR="Red"]<com.adi.rom.interface.MusicEqualizerVisualizer android:layout_gravity="bottom" android:id="@id/new_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="0.0dip">
<FrameLayout android:id="@id/new_custom_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.adi.rom.interface.VisualizerView android:id="@id/new_custom_visualizer_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</FrameLayout>
</com.adi.rom.interface.MusicEqualizerVisualizer>[/COLOR]
Save it.
Step 8
Go to SystemUI/res/values/colors.xml
add this line before of </resources>
Code:
[COLOR="red"]<color name="new_custom_equalizer_fill_color">#96ffffff</color>[/COLOR]
Save it.
Go to SystemUI/res/values/dimens.xml
and add before of </resources>
Code:
[COLOR="red"]<dimen name="new_custom_eqalizer_path_effect_1">6.0dip</dimen>
<dimen name="new_custom_eqalizer_path_effect_2">1.0dip</dimen>
<dimen name="new_custom_eqalizer_path_stroke_width">6.0dip</dimen>[/COLOR]
Save it.
Go to SystemUI/res/values/ids.xml
and add before of </resources>
Code:
[COLOR="red"]<item type="id" name="new_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view">false</item>[/COLOR]
Save it.
Go to SystemUI/res/values/integers.xml
and add before of </resources>
Code:
[COLOR="red"]<integer name="new_custom_equalizer_divisions">4</integer>
<integer name="new_custom_equalizer_db_fuzz_factor">2</integer>
<integer name="new_custom_equalizer_db_fuzz">-10</integer>[/COLOR]
Step 9
Go to SystemUI/AndroidManifest.xml
and search
Code:
[COLOR="royalblue"]<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>[/COLOR]
add the follow lines down
Code:
[COLOR="red"]<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>[/COLOR]
Step 10
- Compile SystemUI
- Sign it
- Push to System/app with the right permissions
- Download VisualizerStyleSettings.apk (from Download section) push to System/app with right permissions
Screenies & Demo
JB 4.3
KK 4.4.x (CyanogenMod Visualizer don't works)
LP 5.x.x (Works almost all, except Lines Visualizer on Stock ROM)
Demo
Downloads
Smalies for JB 4.3
Smalies for KK/LP SystemUI
VisualizerStyleSettings
VisualizerStyleSettings Fix for Lollipop
Credits
@idid idamrep (For their port to JB 4.3)
@Adi Aisiteru Reborn (For their Guide for port to "All" Android devices)
@sebasrock156 (For port to KitKat and make this possible)

Categories

Resources