[GUIDE][MOD]StatusBar-Add day of the week FI27 - Samsung Epic 4G Touch

Status BarCenterClock and (Abbreviated). Day of the week MOD
{
"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"
}
Saw this Mod in the Galaxy S3 section.. Thought I'd port it over. I had to edit the code slightly to get it to look the way I wanted it to on our phone, but all credit for the original should give Thanks out to Didact74. Go to his thread HERE and give him some thanks!
If anyone has a busy schedule or just a plain bad memory like me, ya like to see the day of the week LOL, Anyway;
Decompile SystemUI and navigate to res/layout/tw_status_bar.xml
Find the following code
Code:
HTML:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="6.0dip" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true"
Above this line paste the following code:
HTML:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="center|left" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" android:includeFontPadding="false" />
Recompile System UI and Set aside.
Baksmali the SystemUI classes.dex
Navigate to smali/com/android/systemui/statusbar/policy/dateview.smali
Find the following code:
HTML:
.method private final updateClock()V
The very next line, delete everything all the way to and including the first "end Method you come to and paste the following code in its place:
HTML:
.locals 9
.prologue
const v8, 0x7f080002
const/4 v5, 0x2
const/4 v7, 0x1
const/4 v6, 0x0
.line 92
invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/DateView;->getContext()Landroid/content/Context;
move-result-object v0
.line 93
.local v0, context:Landroid/content/Context;
new-instance v3, Ljava/util/Date;
invoke-direct {v3}, Ljava/util/Date;-><init>()V
.line 94
.local v3, now:Ljava/util/Date;
const-string v4, "EEE"
invoke-static {v4, v3}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/Date;)Ljava/lang/CharSequence;
move-result-object v2
.line 95
.local v2, dow:Ljava/lang/CharSequence;
invoke-static {v0}, Landroid/text/format/DateFormat;->getLongDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;
move-result-object v4
invoke-virtual {v4, v3}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object v1
.line 98
.local v1, date:Ljava/lang/CharSequence;
sget-boolean v4, Lcom/android/systemui/statusbar/StatusBar;->useTouchWizGUI:Z
if-eqz v4, :cond_1
.line 99
sget-boolean v4, Lcom/android/systemui/statusbar/StatusBar;->canStatusBarHide:Z
if-eqz v4, :cond_0
.line 100
new-array v4, v5, [Ljava/lang/Object;
aput-object v1, v4, v6
aput-object v2, v4, v7
invoke-virtual {v0, v8, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/DateView;->setText(Ljava/lang/CharSequence;)V
.line 108
:goto_0
return-void
.line 102
:cond_0
const v4, 0x7f080003
new-array v5, v5, [Ljava/lang/Object;
aput-object v2, v5, v6
aput-object v1, v5, v7
invoke-virtual {v0, v4, v5}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/DateView;->setText(Ljava/lang/CharSequence;)V
goto :goto_0
.line 105
:cond_1
new-array v4, v5, [Ljava/lang/Object;
aput-object v2, v4, v6
aput-object v1, v4, v7
invoke-virtual {v0, v8, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/DateView;->setText(Ljava/lang/CharSequence;)V
goto :goto_0
.end method
Add back your drawable hdpi folder and Meta Inf folder back into your System ui you recompiled earlier,
Smali your classes.dex and add that to the system UI.. done.
Status BarCenterClock and (Abbreviated). Day of the week MOD (FI27)

Ok so this mod sucks. I got it.

I think this is a great mod. I sometimes forget what day it is lol. Maybe you, Dan, and tdunham should work together on adding all of your mods together.
Sent from my SPH-D710 using xda premium

Mattix724 said:
I think this is a great mod. I sometimes forget what day it is lol. Maybe you, Dan, and tdunham should work together on adding all of your mods together.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
+1. Would be amazing. Also, I think this mod is sweet. Thank you.
Sent from my SPH-D710 using xda premium

This mod is perfect man, I never know what day of the week it is lol. Adding to my phone :thumbup::beer:
Sent from my SPH-D710 using xda premium

Add to my ROM, running it now. I gotta say it looks pretty sweet thanks bro! :thumbup:
Sent from my SPH-D710 using xda premium

Stryke_the_Orc said:
Add to my ROM, running it now. I gotta say it looks pretty sweet thanks bro! :thumbup:
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
No prob. Glad ya like it.

Status BarCenterClock and (Abbreviated). Day of the week MOD (FI27)[/QUOTE]
I don't know how to decompile, compile and "Smali" whatever that is. It's this zip just supposed to do all of that for you?

NitrisOX said:
Status BarCenterClock and (Abbreviated). Day of the week MOD (FI27)
Click to expand...
Click to collapse
I don't know how to decompile, compile and "Smali" whatever that is. It's this zip just supposed to do all of that for you?[/QUOTE]
Yes that adds the already done mod to your phone
Sent from my SPH-D710 using xda premium

NitrisOX said:
Status BarCenterClock and (Abbreviated). Day of the week MOD (FI27)
Click to expand...
Click to collapse
I don't know how to decompile, compile and "Smali" whatever that is. It's this zip just supposed to do all of that for you?[/QUOTE]
Just flash the zip if u want the mod. The guide is fir devs that want to add the mod to their ROM, or for up and coming devs informational purposes

Hi mate!!!
I followed your fantastic guide to the letter and it worked but... Instead of having the day of the week (Sun.) it appears the date (12 May. 2013). I'm missing something but don't know what.
I'm on stock 4.1.2 Jelly Bean.
Any advise would be hugely appreciated.
Thanks for the tutorial and your support.
EDIT: I have uploaded a picture of what happens.

rockernaxo said:
Hi mate!!!
I followed your fantastic guide to the letter and it worked but... Instead of having the day of the week (Sun.) it appears the date (12 May. 2013). I'm missing something but don't know what.
I'm on stock 4.1.2 Jelly Bean.
Any advise would be hugely appreciated.
Thanks for the tutorial and your support.
EDIT: I have uploaded a picture of what happens.
Click to expand...
Click to collapse
Your problem is most likely that FI27 is Ice Cream Sandwich and you are on Jelly Bean

bilgerryan said:
Your problem is most likely that FI27 is Ice Cream Sandwich and you are on Jelly Bean
Click to expand...
Click to collapse
Thanks for the clarification.
However, I'm not touching any smali at all, only the layout and it's similar to ICS. Shoudn't this work?

rockernaxo said:
Thanks for the clarification.
However, I'm not touching any smali at all, only the layout and it's similar to ICS. Shoudn't this work?
Click to expand...
Click to collapse
No, you need to make the smali edits for it to work.
Slithering from the nether regions of a twisted mind and tarnished soul

Stryke_the_Orc said:
No, you need to make the smali edits for it to work.
Slithering from the nether regions of a twisted mind and tarnished soul
Click to expand...
Click to collapse
blah smali and baksmali can be a pain sometimes

bilgerryan said:
blah smali and baksmali can be a pain sometimes
Click to expand...
Click to collapse
Lol, tell me something I don't know

Anyone have the zip file?
Sent from my SPH-D710 using Tapatalk 2

will this work on htc one sense framework?

kami2k said:
will this work on htc one sense framework?
Click to expand...
Click to collapse
No

Related

Mms.apk - Skin Active + No MMS Convert + No contact Limit + Sent Time

MMS.apk mod for Samsung Galaxy Gio by greg_h_w (me)
First of all, I have to say Thanks to muveszur for his guide on Galaxy S2 thread
The Mms.apk has the following moddings:
- Message Skin (Default, Edge, Gloss, Sticky Note, Memo)
- Sent Time displayed instead of the Received Time
- No AutoConverting messages to MMS after 4 SMS. In my mod, it will be converted to MMS after 200 SMS.
- Possible to add to the message 200 contacts instead of 10 contacts.
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
HOW TO - For Developers
Change the AutoConverting:
In /res/xml/mms_config.xml change the following values
Code:
<int name="smsToMmsTextThreshold">4</int>
to:
Code:
<int name="smsToMmsTextThreshold">200</int>
Increase Contacts adding for the message
In /res/xml/mms_config.xml change the following values
Code:
<int name="recipientLimit">10</int>
to:
Code:
<int name="recipientLimit">200</int>
Display Sent Time instead of the Received Time
In /smali/com/android/mms/transaction/SMSReceiverService.smali there are 2 following value like this
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
change the first one to:
Code:
invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
then the second one to:
Code:
invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
Activated Message Skin:
In /res/xml/preferences.xml add the following values
Code:
<ListPreference android:entries="@array/pref_entries_message_skin" android:title="@string/pref_title_message_skin" android:key="pref_key_message_skin" android:defaultValue="Default" android:dialogTitle="@string/pref_dialog_title_message_skin" android:entryValues="@array/pref_entry_values_message_skin" />
after
Code:
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
In /smali/com/android/mms/ui/MessagingPreferenceActivity.smali
Change the following values
Code:
.method public static getMessageSkin(Landroid/content/Context;)I
.locals 1
.parameter "context"
.prologue
.line 631
const/4 v0, 0x0
return v0
.end method
to :
Code:
.method public static getMessageSkin(Landroid/content/Context;)I
.locals 6
.parameter "context"
.prologue
.line 631
const/4 v4, 0x0
const-string v5, "Default"
.line 578
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
.line 579
.local v0, pref:Landroid/content/SharedPreferences;
const-string v2, "pref_key_message_skin"
const-string v3, "Default"
invoke-interface {v0, v2, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 580
.local v1, skinType:Ljava/lang/String;
const-string v2, "Default"
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_0
move v2, v4
.line 591
:goto_0
return v2
.line 582
:cond_0
const-string v2, "Edge"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_1
.line 583
const/4 v2, 0x1
goto :goto_0
.line 584
:cond_1
const-string v2, "Gloss"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2
.line 585
const/4 v2, 0x2
goto :goto_0
.line 586
:cond_2
const-string v2, "Sticker note"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
.line 587
const/4 v2, 0x3
goto :goto_0
.line 588
:cond_3
const-string v2, "Memo"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_4
.line 589
const/4 v2, 0x4
goto :goto_0
:cond_4
move v2, v4
.line 591
goto :goto_0
.end method
Click to expand...
Click to collapse
For Stock Rom
1. Download the modified Mms.apk (Attached file)
2. Backup your Mms.apk and mms.odex in /system/app (Use Root Explorer).
3. Mount /system/app as R/W
3. Copy the modified Mms.apk to /system/app
4. Set the permissions to rw-r--r--
5. Delete mms.odex
6. Reboot
Click to expand...
Click to collapse
For Deodexed Rom
1. Download the modified Mms.apk (Attached file)
2. Backup your Mms.apk in /system/app (Use Root Explorer).
3. Mount /system/app as R/W
3. Copy the modified Mms.apk to /system/app
4. Set the permissions to rw-r--r--
5. Reboot
Click to expand...
Click to collapse
Note :
- Don't forget to Clear Messaging Data on Manage Application
- If you are using TouchWizLauncher, you have to erase the data of the launcher in the Settings
Click to expand...
Click to collapse
This mod working on Stock and Deodexed Rom
I tested on DXKT8 on Galaxy Gio and DXKK2 on Galaxy Y​
If you like my work, give me a beer, or just hit the the Thanks button
DONATE
Thanks for the upload, that works with cm 7.2?
thexavier said:
Thanks for the upload, that works with cm 7.2?
Click to expand...
Click to collapse
I don't know. I don't try it yet. Maybe you can report it to me later.
But don't forget to backup your mms.apk before try it
The thems didnt work in stock... And its only in english?
greg_h_w said:
I don't know. I don't try it yet. Maybe you can report it to me later.
But don't forget to backup your mms.apk before try it
Click to expand...
Click to collapse
I tried, sadly don't works. i hope for an update.
I need to delete all the messages I already received, right?
This mod works on odex rom?
MatZ69 said:
The thems didnt work in stock... And its only in english?
Click to expand...
Click to collapse
I have try it on my stock rom DXKP6 without deodexed. I'm sorry, what do you mean only in english?
thexavier said:
I tried, sadly don't works. i hope for an update.
Click to expand...
Click to collapse
I'm so sorry. Maybe I can give the guide to Mod it.
Josenhans said:
I need to delete all the messages I already received, right?
Click to expand...
Click to collapse
Only need to clear the cache and I think it didn't delete all the message. cmiiw
Rausio said:
This mod works on odex rom?
Click to expand...
Click to collapse
yup..
I have update the first post. I give the tutorial how to mod it.
Ask it if someone have a question.
Hope it helpful
greg_h_w said:
I have try it on my stock rom DXKP6 without deodexed. I'm sorry, what do you mean only in english?
Click to expand...
Click to collapse
The definitions are in english while my room are in portuguese,but i will try to modify my own application
Thanks
MatZ69 said:
The definitions are in english while my room are in portuguese,but i will try to modify my own application
Thanks
Click to expand...
Click to collapse
you're welcome
MatZ69 said:
The definitions are in english while my room are in portuguese,but i will try to modify my own application
Thanks
Click to expand...
Click to collapse
Boas!
Chegaste a modificar o teu mms.apk para Portugues?
Se sim, podes enviar-me?
Obrigado!
Can this modified apk solves this problem;
not work on cyanogen 7.2 rc5.6
DarkShadow69 said:
Can this modified apk solves this problem;
Click to expand...
Click to collapse
according to your screenshot. You using go sms. So it can't solve your problem
iman1396 said:
not work on cyanogen 7.2 rc5.6
Click to expand...
Click to collapse
Have you try to mod it by your self ??
greg_h_w said:
Have you try to mod it by your self ??
Click to expand...
Click to collapse
i'm not, where is problem ?
I tried to change the skin but does not happen.
stock ROM DXKT4.
thank you so much you helped me a lot
thx for your share
thanks
thanks very much

[MOD/HOW-TO] Disable screen-on when receiving SMS Messages. Updated for Jelly Bean

Plenty of people have been asking me how to do this, SO I finally decided that it was time I figured it out, and here it is!
I've attached a flashable zip that will replace your MMS app with my modified one. It will enable the option to turn screen on or off when receiving messages.
HUGE thanks to shoman94 for giving us the link to his github where the option is.
Other mods this includes:
-Attempted removal of compression and resolution limits.
How to for devs
Coming soon!
How to for devs OLD METHOD (deprecated):
Decompile classes.dex or SecMms.apk and navigate to the smali file \com\android\mms\transaction\MessagingNotification.smali and open it with editor
LOOK FOR:
Code:
.method private static decideNotificationType(Landroid/content/Context;Landroid/content/SharedPreferences;Landroid/app/Notification;)V
LOOK AROUND:
Code:
move-result v4
if-eqz v4, :cond_2b
REMOVE BELOW:
Code:
const-string v13, "power"
move-object/from16 v0, p0
invoke-virtual {v0, v13}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v6
check-cast v6, Landroid/os/PowerManager;
const v13, 0x1000001a
const-string v14, "New message notification LCD on"
invoke-virtual {v6, v13, v14}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;
move-result-object v12
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v13
const/4 v15, 0x0
invoke-virtual {v6, v13, v14, v15}, Landroid/os/PowerManager;->userActivity(JZ)V
const-wide/16 v13, 0x1388
invoke-virtual {v12, v13, v14}, Landroid/os/PowerManager$WakeLock;->acquire(J)V
Recompile classes.dex or SecMms.apk and push to phone.
That is all
NOTE: This is for Jelly Bean LJ7 based DeOdex ROMs. If someone wants to Odex it, that would be awesome.
{
"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"
}
Thank you so much. I've definitely been looking for this.
Sent from my SGS3 while experiencing some Wicked Sensations™.
Great job figuring this out! Can i flash this on blazer 1.7?
freeza said:
Plenty of people have been asking me how to do this, SO I finally decided that it was time I figured it out, and here it is!
I've attached a flashable zip that will replace your MMS app with my modified one. It will disable the screen coming on when receiving messages, but will still alert you with a notification sound or vibrate or whatever you have it set to.
How to for devs:
Decompile classes.dex or SecMms.apk and navigate to the smali file \com\android\mms\transaction\MessagingNotification.smali and open it with editor
LOOK FOR:
Code:
.method private static decideNotificationType(Landroid/content/Context;Landroid/content/SharedPreferences;Landroid/app/Notification;)V
LOOK AROUND:
Code:
move-result v4
if-eqz v4, :cond_2b
REMOVE BELOW:
Code:
const-string v13, "power"
move-object/from16 v0, p0
invoke-virtual {v0, v13}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v6
check-cast v6, Landroid/os/PowerManager;
const v13, 0x1000001a
const-string v14, "New message notification LCD on"
invoke-virtual {v6, v13, v14}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;
move-result-object v12
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v13
const/4 v15, 0x0
invoke-virtual {v6, v13, v14, v15}, Landroid/os/PowerManager;->userActivity(JZ)V
const-wide/16 v13, 0x1388
invoke-virtual {v12, v13, v14}, Landroid/os/PowerManager$WakeLock;->acquire(J)V
Recompile classes.dex or SecMms.apk and push to phone.
That is all
Click to expand...
Click to collapse
Not sure if your MMS.apk has this but on at&t variant:
Look at this link in my github.... it enables a few options including a toggle for screen on when receiving a message.
https://github.com/shoman94/SHOstock2-XWLP7/commit/3348835cd8e6dc25dcc358c397e6c71b5cc8a2d2
shoman94 said:
Not sure if your MMS.apk has this but on at&t variant:
Look at this link in my github.... it enables a few options including a toggle for screen on when receiving a message.
https://github.com/shoman94/SHOstock2-XWLP7/commit/3348835cd8e6dc25dcc358c397e6c71b5cc8a2d2
Click to expand...
Click to collapse
Nice! Thanks man, I'm about to make those changes right now.
Freeze is the man! Thanks bro!
Sent from my SPH-L710 using XDA Premium App
Good **** Freeza
freeza said:
Plenty of people have been asking me how to do this, SO I finally decided that it was time I figured it out, and here it is!
I've attached a flashable zip that will replace your MMS app with my modified one. It will enable the option to turn screen on or off when receiving messages.
HUGE thanks to shoman94 for giving us the link to his github where the option is.
How to for devs
Coming soon!
How to for devs OLD METHOD (deprecated):
Decompile classes.dex or SecMms.apk and navigate to the smali file \com\android\mms\transaction\MessagingNotification.smali and open it with editor
LOOK FOR:
Code:
.method private static decideNotificationType(Landroid/content/Context;Landroid/content/SharedPreferences;Landroid/app/Notification;)V
LOOK AROUND:
Code:
move-result v4
if-eqz v4, :cond_2b
REMOVE BELOW:
Code:
const-string v13, "power"
move-object/from16 v0, p0
invoke-virtual {v0, v13}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v6
check-cast v6, Landroid/os/PowerManager;
const v13, 0x1000001a
const-string v14, "New message notification LCD on"
invoke-virtual {v6, v13, v14}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;
move-result-object v12
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v13
const/4 v15, 0x0
invoke-virtual {v6, v13, v14, v15}, Landroid/os/PowerManager;->userActivity(JZ)V
const-wide/16 v13, 0x1388
invoke-virtual {v12, v13, v14}, Landroid/os/PowerManager$WakeLock;->acquire(J)V
Recompile classes.dex or SecMms.apk and push to phone.
That is all
UPDATED: Added revised flashable which enables the option to turn on and off screen for notifications.
Click to expand...
Click to collapse
You are the man! Every dev needs to add this to their roms. I was getting tired of not being able to leave my phone on the table because people could read my messages.
Exactly was I was needing.
Sent from Pluto.
I love you man
Sent from my SPH-L710 using xda premium
Good job, Freeza! Been waiting for this one.
This is very tasty icing on a very tasty cake! Thanks Freeza.!
Sent from my SPH-L710 using xda premium
Am I missing something? Why is such a asked for mod ?
Sent from my SPH-L710 using xda app-developers app
Getting "Unfortunately, Messaging has stopped".
wildgamer100 said:
Getting "Unfortunately, Messaging has stopped".
Click to expand...
Click to collapse
Latest version? If you are using the first one without the toggle, it might do that.
freeza said:
Latest version? If you are using the first one without the toggle, it might do that.
Click to expand...
Click to collapse
Yup was on the latest 1. Just downloaded and installed last night and kept getting messaging has stopped so I had to restore my backup.
Any ideas as to why?
Thanks a lot freeza and will this work on stock rooted?
Just a quick observation, I am running stock rooted LG8, and my screen does not turn on when receiving text msgs. I have gotten about 20 texts sofar this morning, and the screen didn't turn on to display the lockscreen notification.
Thanks so much!!
Sent from my SPH-L710 using xda premium
DUDE YOU ARE A ****ING GENIUS!!! IT WORKSSSSSSS!!! :thumbup:
Sent from my SPH-L710 using xda premium

[GUIDE][How-To]Xperia Z Lockscreen for HDPI devices [For Xperia Lovers ! ]

Hi XDA !:silly:
Firstly, big thanks to Arsaw for his awesome mod
This MOD is compatible to any HDPI or XHDPI devices with Stock 4.1.2 ROM but so far only tested on
-Galaxy s2
-Galaxy s3
-Galaxy note
-Galaxy note 2
Requirement :
-android.policy.jar from your rom
-Smalis from the attachment
-Flashable zip that i provided
-At least 60 MB of system memory
-A little knowledge in decompiling using baksmali
So, let's start !
Step 1
1)Extract your phone/rom android.policy.jar and decompile it with baksmali/smali program. From the output, copy and paste the ExtendedKeyguardScreen.smali and the modified ExternalLockScreen.smali to smali/com/android/internal/policy/impl
2)Then open smali/com/android/internal/policy/impl/ LockPatternKeyguardView.smali. Add the codes (highlighted in blue) and replace the codes (highlighted in green) as below
Code:
.field private mHasDialog:Z
.field mInfoCallback:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$InfoCallbackImpl;
[COLOR=Blue].field private mIsExternallyLoadedLockScreenEnabled:Z[/COLOR]
.field private mIsTalkbackDrvModeOn:Z
Find # virtual methods.method public cleanUp()V
Code:
# virtual methods
.method public cleanUp()V
.locals 2
.prologue
const/4 v1, 0x0
[COLOR=blue]const/4 v0, 0x0
iput-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z[/COLOR]
.line 1096
iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreen:Landroid/view/View;
Find .method createLockScreen()Landroid/view/View;
Code:
.prologue
[COLOR=blue] iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
invoke-static {v1, v2}, Lcom/android/internal/policy/impl/ExternalLockScreen;->getLockScreen(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)Landroid/view/View;
move-result-object v0
.local v0, lockView:Landroid/view/View;
if-eqz v0, :cond_1
const/4 v1, 0x1
:goto_0
iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z
.line 1038
iget-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z
if-nez v1, :cond_0[/COLOR]
.line 1268
new-instance v0, Lcom/android/internal/policy/impl/sec/LockScreen;
[COLOR=blue] .end local v0 #lockView:Landroid/view/View;[/COLOR]
iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mConfiguration:Landroid/content/res/Configuration;
iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;
iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;
iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/sec/LockScreen;->(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V
.line 1274
[COLOR=Lime] .restart local v0 #lockView:Landroid/view/View;[/COLOR]
[COLOR=blue] :cond_0[/COLOR]
invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->initializeTransportControlView(Landroid/view/View;)V
.line 1275
return-object v0
[COLOR=Blue] :cond_1
const/4 v1, 0x0
goto :goto_0[/COLOR]
.end method
Step 2
- Flash the ZIP provided in the Download link and you are done.
Flashable ZIP : http://www.mediafire.com/?un6239axlgsqys6
HOW TO CHANGE XPERIA Z LOCKSCREEN WALLPAPER :
Thanks to MohamedAzi.
TRICK ON LOCKSCREEN WALLPAPER STAYING FOR 1 SECOND :
Apply this image as Samsung lockscreen wallpaper ( apply from Display > Wallpaper > Lockscreen ), not XPERIA LOCKSCREEN WALLPAPER that the method provided by Mohamed Azi
{
"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"
}
Then go Developer Option in the setting, change the Window Animation scale to 0.5 or Off.
Trick By ME
EnJoY !
Thanks.
Very Nice.
A week ago I have tried to port for GS2, but bootlooped.
I follow guide from GS3 forum by Arsaw.
dr30ma said:
Thanks.
Very Nice.
A week ago I have tried to port for GS2, but bootlooped.
I follow guide from GS3 forum by Arsaw.
Click to expand...
Click to collapse
Try this and giv feedback :laugh:
One word Wooooooooooooooooooooooooooooow
---------- Post added at 09:04 AM ---------- Previous post was at 08:57 AM ----------
How much time left to upload the xperia rom, I need to go to school soon but i want to have the rom on my phone, please be faster thx.
And one more thing in the screenshots I the dots on the xperia z launcher are wrong. You should use the fix fo HDPI 800x480 for galaxy s2
Im still waiting
tested on cm10 and AOKP, they are working too (Both of them 4.1.2)
thanks for your guide =)
skys415 said:
tested on cm10 and AOKP, they are working too (Both of them 4.1.2)
thanks for your guide =)
Click to expand...
Click to collapse
Can you please give me the file for CM10? I don't know how to do all of this ..
does this work with aokp 4.2.2?
Could anybody make a flashable zip for official Sammy roms (JB) ? (with modified files)
Thx
Nice work , thank you.
But I have one question. If i want to add my own wallpaper and use it as lock screen wallpaper, how can I do it ?
is there any incoming notification for xperia z lockscreen ?
Sir help
Sir help because my device is in stock JB 4.1.2 rom. i try to do your tutorials but it seems my android policy jar smali codes is different to the smali codes example given can you help me to change it because i really dont understand smali codes my android.policy.jar is attach to this post thanks this will be really much appreciated
Is int identical to the s3 one ??
Sent from my GT-I9100G using xda premium
ICS_XD said:
Is int identical to the s3 one ??
Sent from my GT-I9100G using xda premium
Click to expand...
Click to collapse
no, it isn't
jaderxiii said:
no, it isn't
Click to expand...
Click to collapse
Goto s3 themes n apps section
Search for it by arsaw
Sent from my GT-I9100G using xda premium
ICS_XD said:
Goto s3 themes n apps section
Search for it by arsaw
Sent from my GT-I9100G using xda premium
Click to expand...
Click to collapse
The tutorial in this thread is the same on that thread
http://forum.xda-developers.com/showthread.php?t=2168411
have a look
jaderxiii said:
The tutorial in this thread is the same on that thread
http://forum.xda-developers.com/showthread.php?t=2168411
have a look
Click to expand...
Click to collapse
I think i said same ?
Sent from my GT-I9100G using xda premium
Hello, this work on S3 mini and a big thanks for this, I love the lockscreen
Envoyé depuis mon GT-I8190 avec Tapatalk
hi!! this work on htc one xl? thanks.. i dont know how to do this on my device
voenta paves
How to get the lockscreen in settings
what to do with this line?
Hello sir,
I have problem to do last line. There are several lines before .end method
It can't be recompiled if i push those line after
.line 938
return-object v0
but if i delete these lines it can't be recompiled too. so please help me what i have to do. Thank you before
here are the last lines/paragraph
.line 938
return-object v0
.line 930
.end local v0 #lockView:Landroid/view/View;
:cond_23
new-instance v0, Lcom/android/internal/policy/impl/LockScreen;
iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;
iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;
iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;
iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/LockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallbackV
.restart local v0 #lockView:Landroid/view/View;
goto :goto_1f
.end method

[MOD][HOW-TO] Fully disable app verification (FOR USER APPS)

Now there are guides out there that will disable signature checking (such as THIS one)
But no guides (as far as I know) show you how to FULLY disable signature checking...including for user apps that have been modified and so had their original signatures broken
Here I will show you how to do just that :good:
Let's get started.
You will need the following:
core.jar from your rom (use core-libart.jar if you are on Lollipop)
services.jar
apktool/baksmali+smali
Click to expand...
Click to collapse
[SIZE=+1]Part 1: Allows installing apps with broken/mismatched signatures [/SIZE]
[SIZE=+1]Modding core.jar (or core-libart.jar if on Lollipop)[/SIZE]
Decompile core.jar and navigate to java/security
Open MessageDigest.smali and find the following method
Code:
.method public static isEqual([B[B)Z
At the beginning you will find code like this:
Code:
const/4 v1, [color=red]0x0[/color]
array-length v2, p0
Change the 0x0 to 0x1 so that it becomes
Code:
const/4 v1, [color=blue]0x1[/color]
array-length v2, p0
Now save and close MessageDigest.smali
In the same directory, open Signature.smali
Find the method
Code:
.method public final verify([B)Z
Find this code at the very end of the method:
Code:
invoke-virtual {p0, p1}, Ljava/security/SignatureSpi;->engineVerify([B)Z
[color=red]move-result v0[/color]
return v0
Change the move-result v0 to the following:
Code:
invoke-virtual {p0, p1}, Ljava/security/SignatureSpi;->engineVerify([B)Z
[color=blue]const/4 v0, 0x1[/color]
return v0
Now find the method
Code:
.method public final verify([BII)Z
Scroll to the end of the method and find this code:
Code:
invoke-virtual {p0, p1, p2, p3}, Ljava/security/SignatureSpi;->engineVerify([BII)Z
[color=red]move-result v0[/color]
return v0
And replace it with this:
Code:
invoke-virtual {p0, p1, p2, p3}, Ljava/security/SignatureSpi;->engineVerify([BII)Z
[color=blue]const/4 v0, 0x1[/color]
return v0
Now save and close Signature.smali
Recompile core.jar (core-libart.jar for Lollipop)
Click to expand...
Click to collapse
[SIZE=+1]Now move on to step 2[/SIZE]
[SIZE=+1]Part 2: Allows installing older versions on top of newer versions[/SIZE]
[SIZE=+1]Modding services.jar[/SIZE]
Decompile services.jar and navigate to com\android\server\pm
Open PackageManagerService$InstallParams.smali and find the following method
Code:
.method private installLocationPolicy(Landroid/content/pm/PackageInfoLite;I)I
Scroll down until you find code that looks like the following
Code:
if-nez v7, :cond_1
iget v7, p1, Landroid/content/pm/PackageInfoLite;->versionCode:I
iget v8, v3, Landroid/content/pm/PackageParser$Package;->mVersionCode:I
[color=red]if-ge v7, v8, :cond_1[/color]
const-string v4, "PackageManager"
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;->()V
const-string v7, "Can\'t install update of "
And change the highlighted part above to this (register numbers may vary, but just make sure that you change it to if-ge vXX, vXX)
Code:
if-nez v7, :cond_1
iget v7, p1, Landroid/content/pm/PackageInfoLite;->versionCode:I
iget v8, v3, Landroid/content/pm/PackageParser$Package;->mVersionCode:I
[color=blue]if-ge v8, v8, :cond_1[/color]
const-string v4, "PackageManager"
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;->()V
const-string v7, "Can\'t install update of "
Recompile services.jar. This is conjunction with disabling signature checking in services.jar (shown here for example) allows you to FULLY disable ALL app verification. Mod away :victory:
Click to expand...
Click to collapse
[SIZE=+1]Note that this mod also lets you install unsigned versions over other current versions, as well as installing older versions on top of newer versions of an app[/SIZE]
Nice man!!!
Thanks,
Chaz187
Sent from my SPH-L900 using Xparent UIS Tapatalk
A1 dude thanks
Sent from my One using Xparent Red Tapatalk 2
{
"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"
}
Nice. Did your brain explode today from all the genius it possessed? Lol. May give this a try tomorrow. Hangouts update killed me...
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Cnex, you sir, are just awesome!!!!!
Dude you rock man!
Thanks so much for this.
Very nice sir
Sent from my SCH-I545 using Xparent BlueTapatalk 2
Epic guide
Sent from my One X using Tapatalk
Mod updated...accidentally left out the second part :silly:
@tdunham @Chad The Pathfinder...if you guys have already implemented, sorry but add the second part
CNexus said:
Mod updated...accidentally left out the second part :silly:
@tdunham @Chad The Pathfinder...if you guys have already implemented, sorry but add the second part
Click to expand...
Click to collapse
2 parts? This is getting out of hand. Lol
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Thebear j koss said:
2 parts? This is getting out of hand. Lol
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Click to expand...
Click to collapse
Lol but it's an easy edit
This is it though :thumbup:
Thebear j koss said:
2 parts? This is getting out of hand. Lol
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Click to expand...
Click to collapse
my head is ready to explode lol
Thanks a ton, and thanks for the help Cnexus. Works as described.
Great mod man, this is actually pretty great!
Any way to make a flashable zip?
Md4 Rooted Modded....... Flawless
Robalboa said:
Any way to make a flashable zip?
Md4 Rooted Modded....... Flawless
Click to expand...
Click to collapse
Impossible as every ROM has different jar file mods.
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Just updated to TW 4.4.2 and am wondering if this method would help with Google Play Services not playing nicely with some of my TBO themed apps?
Sent from my SPH-L710 using XDA Premium 4 mobile app
marcran75 said:
Just updated to TW 4.4.2 and am wondering if this method would help with Google Play Services not playing nicely with some of my TBO themed apps?
Sent from my SPH-L710 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Nope. It's caused by something in Google itself. Signatures are an easy fix as most of the time original signatures are used. The problem lies between gmail and the new updated Google settings.
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
CNexus said:
Mod updated...accidentally left out the second part :silly:
@tdunham @Chad The Pathfinder...if you guys have already implemented, sorry but add the second part
Click to expand...
Click to collapse
Hello Sir i have a problem with lewa rom.
When i try this method http://forum.xda-developers.com/showthread.php?t=1698352
my phone starts to bootloop and as you mentioned in the second part there is no such code that matches in the method
Here is the method
Code:
.method private installLocationPolicy(Landroid/content/pm/PackageInfoLite;I)I
.locals 8
.parameter "pkgLite"
.parameter "flags"
.prologue
const/4 v5, 0x2
const/4 v4, 0x1
.line 5949
iget-object v2, p1, Landroid/content/pm/PackageInfoLite;->packageName:Ljava/lang/String;
.line 5950
.local v2, packageName:Ljava/lang/String;
iget v0, p1, Landroid/content/pm/PackageInfoLite;->installLocation:I
.line 5951
.local v0, installLocation:I
and-int/lit8 v6, p2, 0x8
if-eqz v6, :cond_34
move v1, v4
.line 5953
.local v1, onSd:Z
:goto_b
iget-object v6, p0, Lcom/android/server/pm/PackageManagerService$InstallParams;->this$0:Lcom/android/server/pm/PackageManagerService;
iget-object v6, v6, Lcom/android/server/pm/PackageManagerService;->mPackages:Ljava/util/HashMap;
monitor-enter v6
.line 5954
:try_start_10
iget-object v7, p0, Lcom/android/server/pm/PackageManagerService$InstallParams;->this$0:Lcom/android/server/pm/PackageManagerService;
iget-object v7, v7, Lcom/android/server/pm/PackageManagerService;->mPackages:Ljava/util/HashMap;
invoke-virtual {v7, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/content/pm/PackageParser$Package;
.line 5955
.local v3, pkg:Landroid/content/pm/PackageParser$Package;
if-eqz v3, :cond_46
.line 5956
and-int/lit8 v7, p2, 0x2
if-eqz v7, :cond_56
.line 5958
iget-object v7, v3, Landroid/content/pm/PackageParser$Package;->applicationInfo:Landroid/content/pm/ApplicationInfo;
iget v7, v7, Landroid/content/pm/ApplicationInfo;->flags:I
and-int/lit8 v7, v7, 0x1
if-eqz v7, :cond_3b
.line 5959
if-eqz v1, :cond_36
.line 5960
const-string v4, "PackageManager"
const-string v5, "Cannot install update to system app on sdcard"
invoke-static {v4, v5}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 5961
const/4 v4, -0x3
monitor-exit v6
.line 5994
:goto_33
return v4
.line 5951
.end local v1 #onSd:Z
.end local v3 #pkg:Landroid/content/pm/PackageParser$Package;
:cond_34
const/4 v1, 0x0
goto :goto_b
.line 5963
.restart local v1 #onSd:Z
.restart local v3 #pkg:Landroid/content/pm/PackageParser$Package;
:cond_36
monitor-exit v6
goto :goto_33
.line 5988
.end local v3 #pkg:Landroid/content/pm/PackageParser$Package;
:catchall_38
move-exception v4
monitor-exit v6
:try_end_3a
.catchall {:try_start_10 .. :try_end_3a} :catchall_38
throw v4
.line 5965
.restart local v3 #pkg:Landroid/content/pm/PackageParser$Package;
:cond_3b
if-eqz v1, :cond_40
.line 5967
:try_start_3d
monitor-exit v6
move v4, v5
goto :goto_33
.line 5970
:cond_40
if-ne v0, v4, :cond_44
.line 5972
monitor-exit v6
goto :goto_33
.line 5973
:cond_44
if-ne v0, v5, :cond_4b
.line 5988
:cond_46
monitor-exit v6
.line 5991
if-eqz v1, :cond_59
move v4, v5
.line 5992
goto :goto_33
.line 5977
:cond_4b
#calls: Lcom/android/server/pm/PackageManagerService;->isExternal(Landroid/content/pm/PackageParser$Package;)Z
invoke-static {v3}, Lcom/android/server/pm/PackageManagerService;->access$2000(Landroid/content/pm/PackageParser$Package;)Z
move-result v7
if-eqz v7, :cond_54
.line 5978
monitor-exit v6
move v4, v5
goto :goto_33
.line 5980
:cond_54
monitor-exit v6
goto :goto_33
.line 5985
:cond_56
const/4 v4, -0x4
monitor-exit v6
:try_end_58
.catchall {:try_start_3d .. :try_end_58} :catchall_38
goto :goto_33
.line 5994
:cond_59
iget v4, p1, Landroid/content/pm/PackageInfoLite;->recommendedInstallLocation:I
goto :goto_33
.end method
I dont know how to take logcat when phone is bootlooping so i am sorry for that but i hope that you can help me.

[XT1033][STOCK] Imaged battery moto g

IMAGED BATTERYMOD
MOTO G XT1033 ASIA
{
"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"
}
BATTERY BLUE WHITE TEXT
GLOWING BATTERY
I have created the base ..
now its your turn to mod and come up with different battery mods
always give credits
PRESS THANKS IF YOU LIKED MY WORK
HOW THINGS WORK
ADAPTED FROM ORIGINAL POST
I basically used files from Android 4.3 to make Image theme on Stock XT1033.
I have modded PhoneStatusBar.smali.
used BatteryController.smali from Android4.3.
msim_status_bar.xml for imageview of @id/battery
AREA OF INTEREST :
PhoneStatusBar.smali line no : 8520
Code:
.line 1190
new-instance v0, Lcom/android/systemui/statusbar/policy/BatteryController;
iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
invoke-direct {v0, v2}, Lcom/android/systemui/statusbar/policy/BatteryController;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
[color=red]iget-object v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
const v4, 0x7f07002d
invoke-virtual {v0, v4}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
invoke-virtual {v3, v0}, Lcom/android/systemui/statusbar/policy/BatteryController;->addIconView(Landroid/widget/ImageView;)V[/color]
.line 1194
iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mIsMultiSimEnabled:Z
if-eqz v0, :cond_3e
.line 1195
new-instance v0, Lcom/android/systemui/statusbar/policy/MSimNetworkController;
IMPORTANT FILES :
ORIGINAL PHONESTATUSBAR.SMALI
​
BASED ON THE BEAUTIFUL WORKS OF MASTER @Ticklefish
And thanks to the guy who sent me SystemUI from JB4.3 !!
sidharth.gtm said:
THIS IS HALF BAKED ONLY FOR DEVELOPMENT (REGULAR USER PLZ DONT DOWNLOAD)
I basically used files from Android 4.3 to make Image theme on Stock XT1033.
I have modded PhoneStatusBar.smali.
used BatteryController.smali from Android4.3.
End Result :
some how this mod does not shows network icons
FILES : IMAGED BATTERY
AREA OF INTEREST :
PhoneStatusBar.smali line no : 8520
Code:
.line 1190
new-instance v0, Lcom/android/systemui/statusbar/policy/BatteryController;
iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
invoke-direct {v0, v2}, Lcom/android/systemui/statusbar/policy/BatteryController;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
[color=red]iget-object v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
const v6, 0x7f07002d
invoke-virtual {v0, v6}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
invoke-virtual {v3, v0}, Lcom/android/systemui/statusbar/policy/BatteryController;->addIconView(Landroid/widget/ImageView;)V[/color]
.line 1194
iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mIsMultiSimEnabled:Z
if-eqz v0, :cond_3e
.line 1195
new-instance v0, Lcom/android/systemui/statusbar/policy/MSimNetworkController;
Removing red lines and compiling again bring backs the Network icon (Signal Cluster)
IMPORTANT FILES :
ORIGINAL PHONESTATUSBAR.SMALI
MODIFIED PHONESTATUSBAR.SMALI
Click to expand...
Click to collapse
Hmm..smali. Yuck.
I'll be honest, I don't know what's caused this. My understanding of smali is only about 10% or so.
But I can make a suggestion. If removing the red lines solves the issue, it's worth finding out if you actually need to remove all of them.
So remove the first red line, recompile, see what happens. If you get a FC or your statusbar goes wrong, remove the second line instead, recompile and see what happens then.
Tedious but that way you can narrow down precisely which bits of code are causing your signal icons to vanish. Then you'll be that bit closer fo working out what to do about it.
@sidharth.gtm
try do not delete red lines and do some changes:
#if-eqz v0, :cond_3e
see what happend
S0bes said:
@sidharth.gtm
try do not delete red lines and do some changes:
#if-eqz v0, :cond_3e
see what happend
Click to expand...
Click to collapse
Did not help !
Ticklefish said:
Hmm..smali. Yuck.
I'll be honest, I don't know what's caused this. My understanding of smali is only about 10% or so.
But I can make a suggestion. If removing the red lines solves the issue, it's worth finding out if you actually need to remove all of them.
So remove the first red line, recompile, see what happens. If you get a FC or your statusbar goes wrong, remove the second line instead, recompile and see what happens then.
Tedious but that way you can narrow down precisely which bits of code are causing your signal icons to vanish. Then you'll be that bit closer fo working out what to do about it.
Click to expand...
Click to collapse
Thanks Sir !
I was finally able to make this mod working !
Thanks for your support !!
nice job mate :good: , was waiting for this ever since i got moto g , now i can mod battery icon to xperia z2
sidharth.gtm said:
Thanks Sir !
I was finally able to make this mod working !
Thanks for your support !!
Click to expand...
Click to collapse
Anytime
Which line(s) did you end up removing?
Sent from my C6603 using Tapatalk
Ticklefish said:
Anytime
Which line(s) did you end up removing?
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Sir ,
i changed
Code:
const v6, 0x7f07002d
invoke-virtual {v0, v6}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->fin
move-result-object v0
TO
Code:
const v4, 0x7f07002d
invoke-virtual {v0, v4}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->fin
move-result-object v0
Frankly speaking sir , i dont come from programming background.. everything i have learnt here is from you and your guides ..
sidharth.gtm said:
....
Click to expand...
Click to collapse
awesome work bro can u add speed to the statusbar to this mod? and upload the systemui i like the speed thing.
sidharth.gtm said:
Sir ,
i changed
Code:
const v6, 0x7f07002d
invoke-virtual {v0, v6}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->fin
move-result-object v0
TO
Code:
const v4, 0x7f07002d
invoke-virtual {v0, v4}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->fin
move-result-object v0
Frankly speaking sir , i dont come from programming background.. everything i have learnt here is from you and your guides ..
Click to expand...
Click to collapse
Interesting, I wonder why that worked...hmm...
I did study software engineering but that was a long time ago and I'm a bit out of date. Smali still puzzles me..lol
Good to see you got it working, I'm going to have to try this on the Sony Xperia KK rom. That's got a partial xml solution, because Sony did things a little differently, but it'd be nice to get it working fully.
Guess I'll be learning from you.
Oh, and you need to edit the op. It's still asking about the signal cluster..
moded to xperia z2 icons
XT-107 said:
moded to xperia z2 icons
Click to expand...
Click to collapse
Thats awesome .. plz share pngs
sidharth.gtm said:
Thats awesome .. plz share pngs
Click to expand...
Click to collapse
here
took so much time to rename/edit .
XT-107 said:
here
took so much time to rename/edit .
Click to expand...
Click to collapse
i will integrate it to Og battery mod
no need to edit and rename
sidharth.gtm said:
i will integrate it to Og battery mod
no need to edit and rename
Click to expand...
Click to collapse
nice , but that zip has every icon , signal/wifi/navbar/battery icons .
Not compatible with 4.4.4
getting system.ui force close issue.
i try to port this mod in 4.4.4 as you said where you did changes i did the same but i end up with systemui force close. can you suggest me how can i port this. please i need this mod ):
w arun kumar said:
i try to port this mod in 4.4.4 as you said where you did changes i did the same but i end up with systemui force close. can you suggest me how can i port this. please i need this mod ):
Click to expand...
Click to collapse
Gravity box supports battery icon change now similar to cm11 feature. No need to mod this anymore
Sent from XT1033 India

Categories

Resources