[TEAM XPOSED][HOW-TO]7/18/12 SystemUI mods and how-tos (new: custom notif background) - Galaxy S III Themes and Apps (US Carriers)

This thread will be about various SystemUI modifications and how to achieve them. The first post will be full of screenshots and my personal mods and the second post will be the how-tos.
First of all, here is my modified SystemUI in its current form. It has been modded to do the following:
Blue ICS icons
Blue style quick toggle icons
Blue notification shade bottom from ICS
Remove clock
Remove carrier ID
Remove quick toggle text
Upcoming mods to it will be:
Battery precentages
Charging battery animations
1x display
{
"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"
}

HOW-TO
7/18/12: Custom notification pulldown background:
First, we're going to use a file that already exists in SystemUI that isn't being used by the system, so that we don't have to create IDs and anything else too difficult. Create your custom background and save it as a png. Yes, it also supports transparency right off the bat! Once you have your custom background selected, name it "status_bar_expand_default.png" and put it in the drawable-xhdpi folder in /res/drawable-xhdpi/ overwriting the current one.
Now navigate to /res/layout/tw_status_bar_tracking.xml and open it with editor
LOOK FOR:
Code:
<FrameLayout android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
CHANGE
Code:
android:background="#ff000000"
TO:
Code:
android:background="@drawable/status_bar_expand_default"
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
7/17/12: Remove battery full notification:
Navigate to /com/android/systemui/power/PowerUI$1.smali
LOOK FOR:
Code:
iget v14, v14, Lcom/android/systemui/power/PowerUI;->mBatteryStatus:I
if-ne v13, v14, :cond_1b3
move-object/from16 v0, p0
iget-object v13, v0, Lcom/android/systemui/power/PowerUI$1;->this$0:Lcom/android/systemui/power/PowerUI;
invoke-virtual {v13}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
:cond_da
:goto_da
const/4 v13, 0x4
REMOVE:
Code:
invoke-virtual {v13}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
How to decompile troublesome ICS apks on the GS3:
Start off by downloading the package I put together with APKTOOL v1.4.2 and v1.4.4: here
You also need to have Java installed, and WinRAR or a comparable archive manager installed.
Extract it and navigate there with a command prompt
Grab your framework-res.apk and SystemUI.apk from your ROM or ADB on your phone and place them in the same directory as your apktools
Open SystemUI with WinRAR or your archive manager and extract the META-INF folder and AndroidManifest.xml file and put them somewhere easy to find.
In command prompt type this command "apktool if framework-res.apk" and if done correct, you will have installed a dependency for whatever you're about to decompile.
The trick is to decompile with 1.4.2 which is named apktool142.jar, so rename that to apktool.jar
Now you're ready to decompile SystemUI. Type this command "apktool d SystemUI.apk" and if done correctly it will start the decompiling process and eventually finish with a new folder "SystemUI" being created.
Now you can make all of your edits.
The next trick is to recompile with 1.4.4 which is named apktool144.jar, but first rename your current apktool.jar back to apktool142.jar then rename apktool144.jar to apktool.jar.
Once done, recompile your SystemUI file by typing "apktool b SystemUI"
Once done, copy the folder and file from earlier "META-INF" and "AndroidManifest.xml" then open the "SystemUI" folder then open "build" then "apk" and paste them here, which will overwrite the current AndroidManifest.xml and create the META-INF folder in there.
Now type "apktool b SystemUI" again and this time it will build much faster than before. Once done your file is ready to be tested!
Open the "SystemUI" folder, go into "dist" and voila, your file is there, signed, and ready to be pushed back to your phone.
Go ahead and push it back with ADB, or with Root Explorer, OR create yourself a flashable zip. Whatever works for you.
Enjoy.
How to remove Quick settings toggle text or hide Quick Settinsg toggle:
I have seen inquiries about how to mod the quick toggle area to remove it. It's a fairly easy modification to make. Especially if you already know how to decompile and recompile SystemUI.apk
For the sake of making this HOW-TO short and to the point, I'm going to assume you already know how to successfully decompile and recompile SystemUI.apk. If you don't, I will be posting up another HOW-TO with all the necessary tools.
Let me first start out by apologizing because this is kind of sloppy. It may require less steps but once I got it, I didn't bother going back to figure out if it did require less steps or not.
Start off by decompiling SystemUI.apk
Next, navigate to /res/layout/tw_quick_setting_button.xml
Open it with your favorite editor
LOOK FOR:
Code:
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
CHANGE:
Code:
android:layout_height="@dimen/quick_setting_button_height"
For complete removal of quick toggle settings:
TO:
Code:
android:layout_height="0.0dip"
For text removal like my mod:
TO
Code:
android:layout_height="50.0dip"
LOOK FOR:
Code:
<TextView android:textSize="@dimen/quick_setting_button_text_size" android:textColor="#ff9eb2c3" android:gravity="center" android:id="@id/btn_text" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_text_height" android:includeFontPadding="false" android:shadowColor="#ff000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
CHANGE:
Code:
android:textSize="@dimen/quick_setting_button_text_size"
For complete or text removal:
TO:
Code:
android:textSize="0.0dip"
Save & close
Navigate to /res/layout/tw_status_bar_expanded.xml and open with editor
LOOK FOR:
Code:
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
CHANGE:
Code:
android:layout_height="wrap_content"
For complete removal:
TO:
Code:
android:layout_height="0.0dip"
For text removal like my mod:
TO:
Code:
android:layout_height="50.0dip"
If you want to remove the carrier ID (Sprint):
LOOK FOR and REMOVE:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
Save & close
These next parts probably aren't needed but I did them anyway. If you want to try compiling and using your SystemUI.apk, go for it and report back. If you want to follow exactly what I did, keep reading..
Navigate to /res/layout/tw_status_bar_toggle_slider.xml and open with editor
LOOK FOR:
Code:
<TextView android:textSize="15.0dip" android:textColor="#ffd7d7d7" android:id="@id/label" android:layout_width="46.0dip" android:layout_height="wrap_content" android:layout_marginRight="4.0dip" android:singleLine="false" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
CHANGE:
Code:
android:textSize="15.0dip"
For complete or text removal
TO:
Code:
android:textSize="0.0dip"
Save & Close
Navigate to /res/values/dimens.xml and open with editor
LOOK FOR:
Code:
<dimen name="quick_setting_button_text_height">30.0dip</dimen>
<dimen name="quick_setting_button_text_size">13.0dip</dimen>
For complete or text removal:
CHANGE TO:
Code:
<dimen name="quick_setting_button_text_height">0.0dip</dimen>
<dimen name="quick_setting_button_text_size">0.0dip</dimen>
Save & Close
Finally, navigate to /res/values/strings.xml and open with editor
LOOK FOR:
Code:
<string name="status_bar_settings_wifi_button">Wi-Fi</string>
<string name="status_bar_settings_airplane">Airplane mode</string>
<string name="status_bar_settings_auto_rotation">Auto-rotate screen</string>
<string name="status_bar_settings_mute_label">MUTE</string>
For complete or text removal:
CHANGE TO:
Code:
<string name="status_bar_settings_wifi_button"></string>
<string name="status_bar_settings_airplane"></string>
<string name="status_bar_settings_auto_rotation"></string>
<string name="status_bar_settings_mute_label"></string>
LOOK FOR:
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_silent_mode_text">"Silent
mode"</string>
<string name="quickpanel_silent_mode_sound">Sound</string>
<string name="quickpanel_silent_mode_vibrate">Vibrate</string>
<string name="quickpanel_silent_mode_mute">Mute</string>
<string name="quickpanel_rotation_text">"Screen
rotation"</string>
<string name="quickpanel_mobile_data_text">"Mobile
data"</string>
<string name="quickpanel_notification_text">Notification</string>
<string name="quickpanel_airplane_mode_text">"Flight
mode"</string>
<string name="quickpanel_sync_text">Sync</string>
<string name="quickpanel_wifi_display_text">"AllShare
Cast"</string>
<string name="quickpanel_power_saving_text">"Power
saving"</string>
<string name="quickpanel_driving_mode_text">"Driving
mode"</string>
<string name="quickpanel_error_text">Error</string>
<string name="quickpanel_ctwap_text">CTWAP</string>
<string name="quickpanel_ctnet_text">CTNET</string>
For complete or text removal:
CHANGE TO:
Code:
<string name="quickpanel_wifi_text"></string>
<string name="quickpanel_bluetooth_text"></string>
<string name="quickpanel_gps_text"></string>
<string name="quickpanel_silent_mode_text"></string>
<string name="quickpanel_silent_mode_sound"></string>
<string name="quickpanel_silent_mode_vibrate"></string>
<string name="quickpanel_silent_mode_mute"></string>
<string name="quickpanel_rotation_text"></string>
<string name="quickpanel_mobile_data_text"></string>
<string name="quickpanel_notification_text"></string>
<string name="quickpanel_airplane_mode_text"></string>
<string name="quickpanel_sync_text"></string>
<string name="quickpanel_wifi_display_text"></string>
<string name="quickpanel_power_saving_text"></string>
<string name="quickpanel_driving_mode_text"></string>
<string name="quickpanel_error_text"></string>
<string name="quickpanel_ctwap_text"></string>
<string name="quickpanel_ctnet_text"></string>
LOOK FOR:
Code:
<string name="quickpanel_data_roaming_text">"Data
roaming"</string>
For complete or text removal:
CHANGE TO:
Code:
<string name="quickpanel_data_roaming_text"></string>
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
Now, a lot of these could have simply been removed from the XML, but I decided to mod their values to preserve structure in case I want to put things back the way they were. If you want to experiment with removing the entire "LOOK FOR:" line, please report back the results.
Enjoy.
How to change carrier label:
Navigate to /res/values/strings.xml and open with editor
LOOK FOR:
Code:
<string name="done">Done</string>
<string name="edit">Edit</string>
AKA at the bottom of the file.
ADD AFTER:
Code:
<string name="custom_carrier">INSERT_CUSTOM_CARRIER_LABEL_HERE</string>
Add what you want where it says "INSERT_CUSTOM_CARRIER_LABEL_HERE"
Save & Close.
Navigate to /res/layout/tw_status_bar_expanded.xml and open with editor
If you haven't removed the carrier label already:
LOOK FOR:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
REPLACE WITH:
Code:
<TextView android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:text="@string/custom_carrier" android:layout_centerVertical="true" />
If you have removed the carrier label:
LOOK FOR:
Code:
<com.android.systemui.statusbar.policy.DateView android:textSize="@dimen/status_bar_expanded_date_text_size" android:textColor="#ff1589d7" android:id="@id/date" android:paddingRight="12.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
ADD AFTER:
Code:
<TextView android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:text="@string/custom_carrier" android:layout_centerVertical="true" />
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.

Awesome. Thank you for your contribution to the community.
Sent from my SPH-L710 using Tapatalk 2

Wondering if this qualifies as one
http://forum.xda-developers.com/showthread.php?t=1740993

i thought that's what the theming sticky was for, stuff like this

thx
thank you for your help, thisthread is very useful

nest75068 said:
Wondering if this qualifies as one
http://forum.xda-developers.com/showthread.php?t=1740993
Click to expand...
Click to collapse
You can get shutter sound controls without any modifications to sound. I don't know why it's labeled as silent camera if you can get shutter sounds without modding anything.

Anyway to modify and remove the persistant wifi conmectee text from the notification bar

Awesome freeza TY

Nice to see you here freeza.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

FrankJL_ said:
Anyway to modify and remove the persistant wifi conmectee text from the notification bar
Click to expand...
Click to collapse
Most definitely. Verizon right? Send me a copy of your systemui.apk

freeza said:
Most definitely. Verizon right? Send me a copy of your systemui.apk
Click to expand...
Click to collapse
Been trying to get rid of the same thing. Do tell, if you know how.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

I am on Verizon too. I removed the wifi notification, but decided to put it back until there is a proper toggle. Can you make a flashable zip to make the toggles like the first post?
Thanks

lynseyw said:
I am on Verizon too. I removed the wifi notification, but decided to put it back until there is a proper toggle. Can you make a flashable zip to make the toggles like the first post?
Thanks
Click to expand...
Click to collapse
Yeah but you'll have to send me a copy of your systemui

Figured out how to change carrier ID

freeza said:
Figured out how to change carrier ID
Click to expand...
Click to collapse
I've been trying to figure it out myself.
Care to share?
Sent from my SGH-T999 using xda premium

uoY_redruM said:
I've been trying to figure it out myself.
Care to share?
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Sure will, Will be posting it up in the second post

Thanks for the thread.
I downloaded NinjaMorph Free and when viewing the xml files it seems, encrypted, a bunch of "?" and gibberish show. Is there a certain xml editor I'm suppose to use? Thanks for the help.

freeza said:
Figured out how to change carrier ID
Click to expand...
Click to collapse
was wondering what is that you have there under Ongoing?? with the cpu and memory and all that stuff.

Updated second post with instructions on how to change the carrier label
shadrach47 said:
Thanks for the thread.
I downloaded NinjaMorph Free and when viewing the xml files it seems, encrypted, a bunch of "?" and gibberish show. Is there a certain xml editor I'm suppose to use? Thanks for the help.
Click to expand...
Click to collapse
No problem. I think your problem is because you have to decompile the apk first, or the xmls will be encrypted.
concac858 said:
was wondering what is that you have there under Ongoing?? with the cpu and memory and all that stuff.
Click to expand...
Click to collapse
That's the app "Elixir2" free from the market.

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.

[MOD][LMY47O][5.1] Ambient Display + Extended Power Menu + Center Clock + Battery %

Hey Guys here find you the flashable zip for ambient display mod and extended power menu for Nexus 4 with stock 5.1 LMY47O Rom.
Added Ambient Display + Extended Power Menu + Center Clock + Battery % mod
Update Ambient Display + Extended Power Menu + Center Clock + Battery % mod v.2.0 with doze pulse duration visible value to 12 seconds
Added Ambient Display mod
Added Ambient Display + Extended Power Menu + Center Clock mod
Added Ambient Display + Extended Power Menu + Battery % mod
Added Ambient Display + Extended Power Menu + Battery % mod + 5 Navbar Buttons + Added day next to Clock and format 12h/24h with italic font style
Added Ambient Display + Extended Power Menu + Center Clock mod with fix overlapping + Battery % mod + 5 Navbar Buttons + Added day next to Clock and format 12h/24h with italic font style
Added All Mods files
Root needed.
Tested on my Nexus 4.
Regards
Thanks to
Ticklefish for center clock mod. You can take a look here
http://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816
raffaele88 for ambient display mod. You can take a look here
http://forum.xda-developers.com/goo.../how-to-add-ambient-display-settings-t2942838
namin78 from 4pda.ru for edit PhoneStatusBar.smali for hide clock on lockscreen after center clock with best method by Ticklefish. You can take a look here
http://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816/page33
garynych for for battery % mod. You can take a look here
http://forum.xda-developers.com/goo...-center-clock-battery-charge-percent-t3003413
and Planters76. You can take a look here
http://forum.xda-developers.com/google-nexus-5/themes-apps/mod-pm-battery-t3082716
Spannaa for AM/PM mod. You can take a look here
http://forum.xda-developers.com/showthread.php?t=2713812
pandza88 for Add/Reorder buttons in Navigation Bar. You can take a look here
http://forum.xda-developers.com/goo...guide-how-to-edit-mod-navigation-bar-t2973512
If You have got stuck on boot loop then do this.
METHOD 1
1. You can first try to flash Revert to Stock 5.1.zip file.
2. Reboot your phone..
3. Go to recovery and flash one of my mod.
4. Reboot your phone and enjoy
METHOD 2
1. You can try to flash first only ambient display mod.
2. Reboot your phone and You should have got ambient display mod installed.
3. After install ambient display mod go to recovery and flash ambient display and power menu mod.
4. Reboot your phone and You should have got ambient display and power menu mod installed.
5. Go to recovery again and flash ambient display-power menu-center clock mod that I added now.
6. Reboot your phone and You should have got ambient display-power menu-center clock mod installed.
7. Last go to recovery again and last flash ambient display-power menu-center clock-battery percent mod.
8. Reboot your phone and enjoy
Tutorial
How add Ambient Display mod.
1. Decompile SystemUI.apk with AdvancedApkTool that You can find here:
http://forum.xda-developers.com/showthread.php?t=2639400
You must use this file for decompile and recompile android 5.1 rom files
http://forum.xda-developers.com/showpost.php?p=59436776&postcount=2812
You just put inside AdvancedApkTool/1-BDFreak/ folder and rename it to apktool.jar (delete old apktool.jar file v. 2.0.0-RC3)
Remember first to install framework-res.apk file and to add your file inside AdvancedApkTool/2-In/ folder
2. Navigate to systemui/res/values/bools.xml and open it with Notepad++ and change this line:
from
PHP:
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool>
to
PHP:
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool>
3. Save and recompile SystemUI.apk
4. Decompile framework-res.apk
5. Navigate to framework-res/res/values/strings.xml and open it with notepad++ and change this line:
from
PHP:
<string name="config_dozeComponent"></string>
to
PHP:
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
6. Save and close
7. Now in the same folder open bools.xml and with Notepad++ and change this line:
from
PHP:
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
to
PHP:
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
Save it and close
8. Now in the same folder open integers.xml with notepad++ and change this line:
from
PHP:
<integer name="config_screenBrightnessDoze">1</integer>
to
PHP:
<integer name="config_screenBrightnessDoze">17</integer>
9. Save and recompile framework-res.apk
10. Make a backup of your SystemUI.apk and Framework-res.apk files.
11. Create a zip flashable with ZIPme app that You can find here:
https://play.google.com/store/apps/details?id=zip.me&hl=it
Add Aeroplane mode and mute-vibrate-ringer mode to the Power Menu
1. Decompile framework-res.apk
2. Navigate to framework-res/res/values/arrays.xml and open it with notepad++ and change this line:
from
PHP:
<string-array name="config_globalActionsList">
<item>power</item>
<item>bugreport</item>
<item>users</item>
to
PHP:
<string-array name="config_globalActionsList">
<item>power</item>
<item>airplane</item>
<item>bugreport</item>
<item>silent</item>
<item>users</item>
3. Save and recompile framework-res.apk
Add center clock
1. Decompile SystemUI.apk
2. Navigate to systemui/res/layout/status_bar.xml open it with notepad++ and add this line:
PHP:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" 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" />
</LinearLayout>
immediatly to follow after this line:
PHP:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
and delete this line:
PHP:
<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" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
3. Save and close
4. Navigate to systemui/res/values/dimens.xml open it with notepad++ and change this line:
from
PHP:
<dimen name="keyguard_carrier_text_margin">16.0dip</dimen>
to
PHP:
<dimen name="keyguard_carrier_text_margin">156.0dip</dimen>
5. Save and recompile SystemUI.apk
How add Battery Percent
1. Decompile SystemUI.apk
2. Navigate to systemui/smali/com/ and put inside erryy folder (this folder is inside source.zip file)
3. Navigate to systemui/res/layout/keyguard_status_bar.xml open it with notepad++ and add this line:
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:gravity="start|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
</FrameLayout>
delete this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
and add this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
4. Save and close
5. Now in the same folder open status_bar.xml open it with notepad++ and add this line:
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:gravity="start|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
6. Save and close
7. Now in the same folder open status_bar_expanded_header.xml open it with notepad++ and add this line:
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:gravity="start|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
</FrameLayout>
delete this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
and add this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
8. Save and recompile SystemUI.apk
Do You like that I do? If You want to show your appreciation then You can donate HERE or click on Donate to Me.
Every donation is really appreciated.
Thanks to everyone
Bootloop after Optimisation of applications
numa0001 said:
Bootloop after Optimisation of applications
Click to expand...
Click to collapse
Same for me..
+1 Me too,3 times i flashed always got bootloop
Sorry Guys..but it does work for me.. I check many times before to post it. I suggest you to try to flash my mod with TWRP 2.8.5.2 Recovery.
Sent from my Nexus 4 using XDA Free mobile app
tonysansone said:
Sorry Guys..but it does work for me.. I check many times before to post it. I suggest you to try to flash my mod with TWRP 2.8.5.2 Recovery.
Sent from my Nexus 4 using XDA Free mobile app
Click to expand...
Click to collapse
I use that 2.8.5.2 TWRP,but still bootloop sir... don't know why..
ivelramona said:
I use that 2.8.5.2 TWRP,but still bootloop sir... don't know why..
Click to expand...
Click to collapse
Hey mate try this and report please!
Regards
tonysansone said:
Hey mate try this and report please!
Regards
Click to expand...
Click to collapse
Sory bro,but still same here.. Still got bootloop...
But thanks for your work...:good:
ivelramona said:
Sory bro,but still same here.. Still got bootloop...
But thanks for your work...:good:
Click to expand...
Click to collapse
Can You try v.2 of my mod and report me please!
I'm sorry mate!
can you make a zip without the center clock?
tonysansone said:
Can You try v.2 of my mod and report me please!
I'm sorry mate!
Click to expand...
Click to collapse
Again.. Same result sir,still bootloop...:crying:
But,don't know with other,wait for other report..
ivelramona said:
Again.. Same result sir,still bootloop...:crying:
But,don't know with other,wait for other report..
Click to expand...
Click to collapse
Can you post your framework-res.apk and systemui.apk? I will try to add my mod.
tootang said:
can you make a zip without the center clock?
Click to expand...
Click to collapse
I will do it mate!
CyanogenMod 12.1 Ambient Display
Will ambient display work on 12.1? I'd be interested to install just ambient display if that's possible.
ahoyboyhoy said:
Will ambient display work on 12.1? I'd be interested to install just ambient display if that's possible.
Click to expand...
Click to collapse
I think yes.. Can You post your framework-res and systemui files and I will do it. But you remember that if You update cyanogenmod rom You will lost ambient display mod. Here You find the tutorial how add ambient display mod
http://forum.xda-developers.com/goo.../how-to-add-ambient-display-settings-t2942838
take a look
tonysansone said:
Can you post your framework-res.apk and systemui.apk? I will try to add my mod.
Click to expand...
Click to collapse
Here...
ivelramona said:
Here...
Click to expand...
Click to collapse
Can You try this file? It should be works. Only ambient display mod.
I'm tried installing that on CM12.1 4.23 nightly and got stuck on the boot animation.
ahoyboyhoy said:
I'm tried installing that on CM12.1 4.23 nightly and got stuck on the boot animation.
Click to expand...
Click to collapse
Hey Guy my mod does work only on rom stock 5.1. It will doesn't work on cyanogenmod rom.. Cm12.1 has framework-res.apk and systemui.apk files are different. Post your files and I try to add my mod
I flashed and bootloop on 5.1 stock
Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi

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

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

Guide to add about ROM in Settings

In this guide , I will tell "How to add About ROM" option in Settings.​
Tested on 4.2, 4.2, 4.3, 4.4, 5.0 and 6.0.1​
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.advait.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.advait.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">HyperSonic</string>
<string name="rom_developer">ROM Developer</string>
<string name="rom_developer_summary">AdvaitT17</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">HyperSonic 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 AdvaitT17 and Gurpreet Singh</string>
<string name="info_summary">Enjoy. </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="advait.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/advaitt17/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/advaitt17/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
6.Gurpreet Singh
XDA:DevDB Information
Guide to add about ROM in Settings, Theme for the Samsung Galaxy S III I9300
Contributors
AdvaitT17,05gurpreet
Version Information
Status: Stable
Created 2016-01-17
Last Updated 2016-01-17
AdvaitT17 said:
In this guide , I will tell "How to add About ROM" option in Settings.​
Tested on 4.2, 4.2, 4.3, 4.4, 5.0 and 6.0.1​
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.advait.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.advait.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">HyperSonic</string>
<string name="rom_developer">ROM Developer</string>
<string name="rom_developer_summary">AdvaitT17</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">HyperSonic 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 AdvaitT17 and Gurpreet Singh</string>
<string name="info_summary">Enjoy. </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="advait.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/advaitt17/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/advaitt17/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
6.Gurpreet Singh
XDA:DevDB Information
Guide to add about ROM in Settings, Theme for the Samsung Galaxy S III I9300
Contributors
AdvaitT17,05gurpreet
Version Information
Status: Stable
Created 2016-01-17
Last Updated 2016-01-17
Click to expand...
Click to collapse
WTF is this??
you are adding this link into website: http://anythingultimate.blogspot.in/2014/01/i-am-writingthis-blogso-that-users-of.html
you are also refering to changelog code that is located here: com.android.settings.advait.changelog.ChangeLog
and you aren't providing the code
I'm sure you have java code on your build and you aren't the author...
also contributors cloud code is missing: com.android.settings.advait.ContributorsCloud
this post is a joke
deleted
Copy oft this page:
[Guide] Add "About ROM" option in … | Android Development and Hacking
http://forum.xda-developers.com/android/themes/guide-add-rom-option-settings-t3167387
Thread should be closed.

[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