[Q] HowTo change Lockscreen Color in CM7 for Lense Style - Motorola Droid and Milestone Themes and Apps

I'm using a Milestone with CyanogenMod 7.1.0 by nadlabak and lense lockscreen style like in attachment.
Now i want to change the clock and date color, because black is unreadable on a dark lense. To change the the color in keyguard_screen_tab_unlock.xml doesn't work but this xml is in use. I don't know why, if i add a text in this xml, it's shown on lockscreen, but the time/ date color will not change.
I found Lockscreen.smali in android.policy.jar but don't know where i have to change the text for another color and to add the custom messages like in SlidingTab Lockscreen. If it's possible i want the lense style with the standard lockscreen messages for battery charging, alarm and maybe carrier.
Can anybody help me?!
{
"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"
}

No ideas?
sileshn can u help me?

bandit79 said:
No ideas?
sileshn can u help me?
Click to expand...
Click to collapse
What is Lense lockscreen? Does it use different files? Can you link me to it. I will take a look.
Btw, what is that theme you are running? It looks awesome. Can you link me to that too.

I'm using CyanogeMod7 RC10 by nadlabak Port for Milestone. There u can choose between different Lockscreens, with Slider, Lense or Rotary like HTC ... in the screenshot, that's Lense style.
The lockscreen is using some xml files, for example keyguard_screen_tab_unlock.xml where is defined that the clock is shown or date or something else. This file will also be used in lense lockscreen, but with different settings i think. On Lockscreen with Sliders like below u see the clock in white font, the date and alarm. This style i changed in the xml file. But with lense obove the clock is dark and the alarm wasn't shown. And i don't know why.
In attachement there is a metamorph with my theme. Have fun and thanks
Edit: attached the "framework-res.apk" & "android.polica.jar" (remove.zip @ jar)

Some news? Did u find time to take a look sileshn?

Hi dude,
I have not been able to look at it because i am really busy with official work. But at a glance, i think it is in Lockscreen.smali inside .method private setLenseWidgetsVisibility(I)V ( line 3171 )
The actual corrections are in the following code, i think.
( lines 3210 to 3221 )
Code:
.line 1301
iget v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mTime12_24:I
[B]const/16 v1, 0x18[/B]
if-ne v0, v1, :cond_2c
.line 1302
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mAmPm:Landroid/widget/TextView;
[B]const/4 v1, 0x4[/B]
You have to change the highlighted text with the appropriate color codes. I have not been able to check it. You can try.

Thx mate,
i'll try this soon. After some meetings today .
So i have to change this code like
Code:
.line 1301
iget v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mTime12_24:I
[B][COLOR="Red"]const/16 v1, #ffffff[/COLOR][/B]
if-ne v0, v1, :cond_2c
.line 1302
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mAmPm:Landroid/widget/TextView;
[B][COLOR="Red"]const/4 v1, #ffffff[/COLOR][/B]
Or is it wrong?

-0x1 instead of #ffffff. Please note dude, i have not tried this. So backup before trying anything. I know you are a senior member at AH, so i don't need to lecture you.
I will take a detailed look by tomorrow evening my time ( Indian Time )
Edit : This should help with smali color codes, but i am not sure whether it it the same in GB.

Thx dude. Yeah i'm senior member @ AH, but i don't have much experience to mod a smali file. xml or something else is no problem. I will reply if it works.
Edit:
It doesn't work. In Lockscreen.smali the .method private setLenseWidgetsVisibility(I)V begins at line 3167 and the code below is not be present
Code:
.line 1301
iget v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mTime12_24:I
const/16 v1, 0x18
if-ne v0, v1, :cond_2c
.line 1302
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mAmPm:Landroid/widget/TextView;
const/4 v1, 0x4
The only part where the const variable is shown is
Code:
.line 1312
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mAmPm:Landroid/widget/TextView;
const/4 v1, 0x4
Changing 0x4 to -0x1 will not change the color to white. It's the same layout like befor.

Some attemps later, the time - date and carrier were shown above the slider, like normal lockscreen.
But thats the default clock, not the black in the lense slider. I've changed this code
Code:
.line 1304
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mDate:Landroid/widget/TextView;
invoke-virtual {v0, [B]p1[/B]}, Landroid/widget/TextView;->setVisibility(I)V
.line 1305
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mTime:Landroid/widget/TextView;
invoke-virtual {v0, [B]p1[/B]}, Landroid/widget/TextView;->setVisibility(I)V
.line 1306
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mAmPm:Landroid/widget/TextView;
invoke-virtual {v0, [B]p1[/B]}, Landroid/widget/TextView;->setVisibility(I)V
Change to
Code:
line 1304
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mDate:Landroid/widget/TextView;
[B]const-string v1, "grey"
const v1, 0x808080[/B]
invoke-virtual {v0, [B]v1[/B]}, Landroid/widget/TextView;->setVisibility(I)V
.line 1305
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mTime:Landroid/widget/TextView;
[B] const-string v1, "yellow"
const v1, 0xffff00[/B]
invoke-virtual {v0, [B]v1[/B]}, Landroid/widget/TextView;->setVisibility(I)V
and it will be shown on lockscreen. Unfortunately that's not what i want ... so keep trying ...

Is there some good news?
I have the same question.

No news and no ideas how to do! Sorry .. i'm still searching

actually,I'm a defy user.
wonderful theme you offer on 6th post
could you offer the origin file ,so that I can find out what have been chaged?

The theme is atteched in post http://forum.xda-developers.com/showpost.php?p=15033974&postcount=4 as framework-res.zip as metamorph.
maybe sileshn has an idea to change the color. his hint doesn't work as well and my attemps failed. so maybe it's impossible to change the lense style clock color....

i asko want to know the wy

very interesting

Related

[Q] How to make sizable notification button in CM7 ?

Hi,
I want made button like this with indicators :
{
"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"
}
For the background, no problem, i modify the 9-patch png like this :
For the "on" and "off" button, i create 9-patch png :
stat_bluetooth_off.9.png
stat_bluetooth_on.9.png
Now, how i can replace "stat_bluetooth_off.png" with "stat_bluetooth_off.9.png" into SystemUI.apk in order to see the 9-patch png, because i can't see it ?
Thanks
what program are you using to make the .9.pngs?
theme chooser would be easy or try making a cwm flash.
After decompiling SystemUI.apk with Apk_Manager_UOT, i use psp7
to add 9-patch black pixels around the png, then i save it and compil it.
Then i make CWR zip to flash it.
Maybe i must use draw9patch.jar from android sdk ?
i have only had success with photoshop (way easier) or the draw9patch. not sure psp can or cannot. though the draw9patch is really annoying but it works.
try the draw9patch and see. if you run into trouble, post the images and i can see if i can help. good luck.
Guys,
don't go that way!.
make this for cm7 theme manager. that would be the best idea!
mickey-r said:
Hi,
I want made button like this with indicators :
For the background, no problem, i modify the 9-patch png like this :
For the "on" and "off" button, i create 9-patch png :
stat_bluetooth_off.9.png
stat_bluetooth_on.9.png
Now, how i can replace "stat_bluetooth_off.png" with "stat_bluetooth_off.9.png" into SystemUI.apk in order to see the 9-patch png, because i can't see it ?
Thanks
Click to expand...
Click to collapse
Can you tell me from where did you get those png's?
@vijaysapkota
each time i compile cm7 theme, i have a missing asset for my device
and if i apply anyway all the theme isn't load (missing notification button
and some other graphics ...)
the png come from sense widgets.
mickey-r said:
@vijaysapkota
each time i compile cm7 theme, i have a missing asset for my device
and if i apply anyway all the theme isn't load (missing notification button
and some other graphics ...)
the png come from sense widgets.
Click to expand...
Click to collapse
i realize you weren't writing to me but since i have spent many an hour with compiling for cm7 i would chirp in.
if you are compiling on Windows, you will always get the missing asset message. only way around it is using linux.
as for the not working, there are a million reasons from your manifest to icon names to image deficiencies.
have you read the following?:
http://forum.xda-developers.com/showthread.php?t=964391
that is a fantastic guide.
also, if you want to post your apk and we can take a look.
cheers.
thanks jsmccabe78,
i already try to compile theme by this way, but i receive unproperly compiled theme when i want to apply.
i will retry asap but i'm french and it's not so easy to anderstand every subtilities ...
if you have a good and step by step link to a linux theme compiling ...
i will try by this way too
in other way, i made a CWR theme working right but it seem that button
can't be sizable (9-patch ok for all button, i can see it but not sizable
maybe the notification script don't include this possibility)
thanks
no problem; glad to help.
i have yet to be successful resizing things. sometimes bigger / smaller but those look distorted. as you are assuming, the sizes are set not in the image but in some xml and are not easily edited (haven't seen any.)
as for compiling - i don't know a good guide for linux, but assume it is fairly similar to windows. there is nothing you are doing that should give you an unusable theme from compiling on windows; i have edited those images with my theme just fine and i use windows. so not sure linux would help or give you a better result.
if you want, post the apk and i can take a look. other than that, i would start over reading the link i gave you. sorry, not many other ideas.
ok, i'm back ...
i decompile the systemui.apk of TyphooN nand (because i use this nand ...)
i saw that the notification power button use "stat_bgon_custom.9.png" like
indicator in both state on and off.
i'm looking for "stat_bgon_custom" into files of systemui.apk and i found it
into smali\com\android\systemui\R$drawable.smali :
Code:
.field public static final stat_bgoff:I = 0x7f020027
.field public static final stat_bgon:I = 0x7f020028
.field public static final stat_bgon_custom:I = [COLOR="Red"]0x7f020029[/COLOR]
next, i'm looking for address 0x7f020029 into same files and i found it
into smali\com\android\systemui\statusbar\powerwidget\PowerButton$1.smali :
Code:
.line 130
iget-object v10, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton$1;->this$0:Lcom/android/systemui/statusbar/powerwidget/PowerButton;
const v11, [COLOR="red"]0x7f020029[/COLOR]
invoke-static {}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$100()Landroid/graphics/PorterDuff$Mode;
move-result-object v12
invoke-virtual {v5, v11, v7, v12}, Landroid/content/res/Resources;->getDrawable(IILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;
move-result-object v11
invoke-static {v10, v2, v11}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$200(Lcom/android/systemui/statusbar/powerwidget/PowerButton;ILandroid/graphics/drawable/Drawable;)V
.line 135
.end local v0 #buttonIcon:I
.end local v1 #buttonLayer:I
.end local v2 #buttonState:I
.end local v3 #context:Landroid/content/Context;
.end local v4 #indic:Landroid/widget/ImageView;
.end local v5 #res:Landroid/content/res/Resources;
.end local v6 #sColorMaskBase:I
.end local v7 #sColorMaskInter:I
.end local v8 #sColorMaskOff:I
.end local v9 #sColorMaskOn:I
:cond_0
:goto_1
return-void
.line 109
.restart local v0 #buttonIcon:I
.restart local v1 #buttonLayer:I
.restart local v2 #buttonState:I
.restart local v3 #context:Landroid/content/Context;
.restart local v4 #indic:Landroid/widget/ImageView;
.restart local v5 #res:Landroid/content/res/Resources;
:cond_1
const/4 v10, 0x0
invoke-virtual {v4, v10}, Landroid/widget/ImageView;->setVisibility(I)V
goto :goto_0
.line 122
.restart local v6 #sColorMaskBase:I
.restart local v7 #sColorMaskInter:I
.restart local v8 #sColorMaskOff:I
.restart local v9 #sColorMaskOn:I
:pswitch_0
iget-object v10, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton$1;->this$0:Lcom/android/systemui/statusbar/powerwidget/PowerButton;
const v11, [COLOR="red"]0x7f020029[/COLOR]
invoke-static {}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$100()Landroid/graphics/PorterDuff$Mode;
move-result-object v12
invoke-virtual {v5, v11, v9, v12}, Landroid/content/res/Resources;->getDrawable(IILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;
move-result-object v11
invoke-static {v10, v2, v11}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$200(Lcom/android/systemui/statusbar/powerwidget/PowerButton;ILandroid/graphics/drawable/Drawable;)V
goto :goto_1
.line 126
:pswitch_1
iget-object v10, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton$1;->this$0:Lcom/android/systemui/statusbar/powerwidget/PowerButton;
const v11, [COLOR="red"]0x7f020029[/COLOR]
invoke-static {}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$100()Landroid/graphics/PorterDuff$Mode;
move-result-object v12
invoke-virtual {v5, v11, v8, v12}, Landroid/content/res/Resources;->getDrawable(IILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;
move-result-object v11
invoke-static {v10, v2, v11}, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->access$200(Lcom/android/systemui/statusbar/powerwidget/PowerButton;ILandroid/graphics/drawable/Drawable;)V
goto :goto_1
.line 120
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
.end packed-switch
.end method
i think this portion of code is used to change the indicator display ?
my question : it is possible to replace in first case 0x7f020029 by 0x7f020027 (stat_bgoff)
and in second case 0x7f020029 by 0x7f020028 (stat_bgon) and add PowerButton$1.smali into templatebread and compile it?
mickey-r said:
...my question : it is possible to replace in first case 0x7f020029 by 0x7f020027 (stat_bgoff)
and in second case 0x7f020029 by 0x7f020028 (stat_bgon) and add PowerButton$1.smali into templatebread and compile it?
Click to expand...
Click to collapse
i don't know. i haven't messed with smali.
my question: why not simply try it? what's the worse that could happen?
or post in the thread i mentioned previously; bigger audience to ask.
Finally it's working by modify "smali\com\android\systemui\statusbar\powerwidget\PowerButton$1.smali " into systemui.apk
i ask my question to the thread you mentioned me to include this modification into cm7 theme
thank for all

[17.09.2014][MOD]Patched Sony Lifelog 2.1.A.0.10 | Unlimited data history | 6 rows

Hello everyone,
The stock Lifelog app allows only to look back 21 days. I patched the app so it displays all the data. For example: if you want to look back where you have been a year ago, it's finally possible. It's especially useful for those who use the location logging service.
Patched Sony Lifelog version: 2.1.A.0.10
Originally I was going to write an Xposed mode for this purpose, but unfortunately it would require to rewrite the whole function just from smali code and that overwhelmed my skills I'll keep updating this mod as soon as a new Lifelog version comes out. Enjoy!
{
"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"
}
I also attached a screenshot, if anyone is wondering how the patched version looks like. Sorry for the German language
Also, as a bonus I'm posting a version that has 6 rows of grid.
I just realized sony only allows us to keep 21 days record
WT..
why they are doing this? its ridiculous
Anyway, thanks for your effort!! please keep updating it
worth a 5 star!
kennethlam said:
I just realized sony only allows us to keep 21 days record
WT..
why they are doing this? its ridiculous
Anyway, thanks for your effort!! please keep updating it
worth a 5 star!
Click to expand...
Click to collapse
Exactly my thought. The funny thing is that Lifelog logs all the data, just the display is limited. Weird. Maybe because of some performance issues? The app is slow while browsing the data.
I realized the limit is there as I wanted to look back at my trip 3 months earlier... And it wasn't possible
Based on a request from an XDA member I did some research regarding the two additional modes that are available only for Sony devices - bicycle and travel. Unfortunately it's not possible to add those two mods for non-Sony devices, because they are based on libraries that are present only in Xperias.
Here is also some funny stuff: I found unfinished and unused code parts of following modes:
Code:
.field public static final BUS:Ljava/lang/String; = "BUS"
.field public static final CAR:Ljava/lang/String; = "CAR"
.field public static final TRAIN:Ljava/lang/String; = "TRAIN"
.field public static final ELEVATOR:Ljava/lang/String; = "ELEVATOR"
Those are functions that may be work-in-progress. So expect the Lifelog to get better and better overtime. Well, mainly for Sony devices...
Nice work, installing it now. Quick question for you guys: are you also having problems with your device not going in to deep sleep when lifelog 2.0.A.0.12 is running?
kistigun said:
Nice work, installing it now. Quick question for you guys: are you also having problems with your device not going in to deep sleep when lifelog 2.0.A.0.12 is running?
Click to expand...
Click to collapse
My device has no problem getting into deep sleep.
Jackos said:
My device has no problem getting into deep sleep.
Click to expand...
Click to collapse
you have a Z2 running stock(stanima activated?) On my Z1 the lifelog app is draining more battery then my screen since the 2.0.A.0.12 update...
kistigun said:
you have a Z2 running stock(stanima activated?) On my Z1 the lifelog app is draining more battery then my screen since the 2.0.A.0.12 update...
Click to expand...
Click to collapse
No matter if the STAMINA mode is on or off. The device always goes into deep sleep. Yes, I run stock (although heavy modified).
Jackos said:
No matter if the STAMINA mode is on or off. The device always goes into deep sleep. Yes, I run stock (although heavy modified).
Click to expand...
Click to collapse
ok, unfortunately mine isn't
Hoping your modified app will dain less. Nevertheless thanks for the mod!
kistigun said:
ok, unfortunately mine isn't
Hoping your modified app will dain less. Nevertheless thanks for the mod!
Click to expand...
Click to collapse
Hmm, seems like a ROM compatibility issue. Did you try after a hard reset? Just use the stock ROM, without modifications.
Something is not right.
@kistigun Actually this seem to be quite a widespread problem: http://talk.sonymobile.com/t5/Lifelog/Battery-drain/m-p/746519
Not only for the Z1.
Jackos said:
@kistigun Actually this seem to be quite a widespread problem: http://talk.sonymobile.com/t5/Lifelog/Battery-drain/m-p/746519
Not only for the Z1.
Click to expand...
Click to collapse
Thanks for the heads up!
Jackos said:
Based on a request from an XDA member I did some research regarding the two additional modes that are available only for Sony devices - bicycle and travel. Unfortunately it's not possible to add those two mods for non-Sony devices, because they are based on libraries that are present only in Xperias.
Click to expand...
Click to collapse
Hi dev,
thanks for research, you know what are the libraries used by LifeLog to enable the unique functions? thanks
vitor_hs said:
Hi dev,
thanks for research, you know what are the libraries used by LifeLog to enable the unique functions? thanks
Click to expand...
Click to collapse
According to the method isSonyDevice the LifeLog app searches for the "com.sony.device" library in package manager.
Ref:
Code:
.method public static isSonyDevice(Landroid/content/Context;)Z
.locals 7
.param p0, "context" # Landroid/content/Context;
.prologue
.line 17
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v5
.line 18
.local v5, "pm":Landroid/content/pm/PackageManager;
invoke-virtual {v5}, Landroid/content/pm/PackageManager;->getSystemSharedLibraryNames()[Ljava/lang/String;
move-result-object v4
.line 19
.local v4, "libNames":[Ljava/lang/String;
move-object v0, v4
.local v0, "arr$":[Ljava/lang/String;
array-length v2, v0
.local v2, "len$":I
const/4 v1, 0x0
.local v1, "i$":I
:goto_0
if-ge v1, v2, :cond_1
aget-object v3, v0, v1
.line 20
.local v3, "libName":Ljava/lang/String;
if-eqz v3, :cond_0
const-string v6, "com.sony.device"
invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_0
.line 21
const/4 v6, 0x1
.line 24
.end local v3 # "libName":Ljava/lang/String;
:goto_1
return v6
.line 19
.restart local v3 # "libName":Ljava/lang/String;
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 24
.end local v3 # "libName":Ljava/lang/String;
:cond_1
const/4 v6, 0x0
goto :goto_1
.end method
Jackos said:
According to the method isSonyDevice the LifeLog app searches for the "com.sony.device" library in package manager.
Ref:
Code:
.method public static isSonyDevice(Landroid/content/Context;)Z
.locals 7
.param p0, "context" # Landroid/content/Context;
.prologue
.line 17
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v5
.line 18
.local v5, "pm":Landroid/content/pm/PackageManager;
invoke-virtual {v5}, Landroid/content/pm/PackageManager;->getSystemSharedLibraryNames()[Ljava/lang/String;
move-result-object v4
.line 19
.local v4, "libNames":[Ljava/lang/String;
move-object v0, v4
.local v0, "arr$":[Ljava/lang/String;
array-length v2, v0
.local v2, "len$":I
const/4 v1, 0x0
.local v1, "i$":I
:goto_0
if-ge v1, v2, :cond_1
aget-object v3, v0, v1
.line 20
.local v3, "libName":Ljava/lang/String;
if-eqz v3, :cond_0
const-string v6, "com.sony.device"
invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_0
.line 21
const/4 v6, 0x1
.line 24
.end local v3 # "libName":Ljava/lang/String;
:goto_1
return v6
.line 19
.restart local v3 # "libName":Ljava/lang/String;
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 24
.end local v3 # "libName":Ljava/lang/String;
:cond_1
const/4 v6, 0x0
goto :goto_1
.end method
Click to expand...
Click to collapse
Thanks
Hahaha working !! , copy framework com.sony.device, and etc/permission from xperia z2 , set permission correct 644.
And clean data.
Samsung galaxy Note 3 Happy
vitor_hs said:
Thanks
Hahaha working !! , copy framework com.sony.device, and etc/permission from xperia z2 , set permission correct 644.
And clean data.
Samsung galaxy Note 3 Happy
Click to expand...
Click to collapse
Glad to hear that.
Ensure that it is properly working.
Can you port the app to 4.3 if possible?
Sent from my C5303 using XDA Premium 4 mobile app
TheSG said:
Can you port the app to 4.3 if possible?
Sent from my C5303 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
No, unfortunately I don't have time to do that.
New version released.
Changelog:
Power consumption improvements
Receive notification about achieved goals
Extended SEN account support
General bugfixing
Click to expand...
Click to collapse
My mod has been updated, download in first post.
vitor_hs said:
Thanks
Hahaha working !! , copy framework com.sony.device, and etc/permission from xperia z2 , set permission correct 644.
And clean data.
Samsung galaxy Note 3 Happy
Click to expand...
Click to collapse
Can you please post framework com.sony.device from z2, so I can also use full lifelog app (this is anoying)

[PORT][CM12] Official Xperia Z3 Lollipop SystemUI + Z3 Particle Effect Lockscreen

Introduction:-
Hey guys! Here's My New Port of Official Xperia Z3 Lollipop SystemUI and Xperia Z3 Particle Effect Lockscreen for devices running on CM12. I have also added Z3 Lollipop ClockWidgets and Z3 Media Sounds in this MOD. Hope you like it!
POST 1- Introduction And Features
POST 2- Screenshots
POST 3- Downloads And Instructions
POST 4- Guide To Create Superuser MOD
Disclaimer:-
* Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards,thermonuclear war, or you getting fired because the alarm app failed!!
*Please make nandroid backup before flashing this as a precaution!
*Try this MOD at your own risk!
Click to expand...
Click to collapse
Features:-
Drag And Drop To Add Or Remove Quick Settings
Added New Animations
Z3 Particle Effect Lockscreen With 3 Different Clocks On Lockscreen
Xperia Z3 Lollipop Live Wallpaper
Xperia Z3 Lollipop ClockWidgets
Xperia Z3 Media Sounds
NOTE- DO NOT USE OR SHARE ANY PART OF MY WORK IN ANY ROM OR ANY MOD WITHOUT MY PERMISSION!!
Credits:-
@serajr for amazing guidance and precious help!
@vandroid7 for Z3 ClockWidgets fonts xmls
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Screenshots
Screenshots:-
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Downloads And Instructions
Instructions:-
Make sure you're on CyanogenMod 12.(I don't know if this PORT works on AOSP ROMs..Confirmation Required!!)
Make sure you have Superuser MOD installed.(Guide to create it is given on next post.)
Download My Z3 Lollipop System Apps Port Zip.
Go into Recovery.
Flash the downloaded zip.
Wipe Cache partition and ART/Dalvik-cache.
Reboot your phone.
Done!Enjoy The New Looks!!
Download:-
Z3 Lollipop System Apps Port
Bugs:-
Some of the Quick Settings tiles are not working.
NOTE:- To Get Particle Effect Lockscreen, Just Set Xperia Live Wallpaper as your default wallpaper.
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Guide To Create Superuser MOD
Superuser MOD disables the signature verification for all apps. After using this MOD you can install apps with different signature!
Requirements:-
Services.jar from your device.It's located in system/framework/
Apktool or some similar software.
Decompiling-Recompiling Knowledge.
Notepad++ for Editing XMLs.
Working brain and patience!!
STEP 1- Decompile services.jar using apktool.
STEP 2- Go to \smali\com\android\server\pm\
STEP 3- Find the file named PackageManagerService.smali and open it using Notepad++
STEP 4- Now Find this method:-
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 11
.param p0, "s1" # [Landroid/content/pm/Signature;
.param p1, "s2" # [Landroid/content/pm/Signature;
.prologue
const/4 v6, 0x1
const/4 v8, -0x3
const/4 v7, 0x0
.line 2955
if-nez p0, :cond_1
.line 2956
if-nez p1, :cond_0
.line 2988
:goto_0
return v6
.line 2956
:cond_0
const/4 v6, -0x1
goto :goto_0
.line 2961
:cond_1
if-nez p1, :cond_2
.line 2962
const/4 v6, -0x2
goto :goto_0
.line 2965
:cond_2
array-length v9, p0
array-length v10, p1
if-eq v9, v10, :cond_3
move v6, v8
.line 2966
goto :goto_0
.line 2970
:cond_3
array-length v9, p0
if-ne v9, v6, :cond_5
.line 2971
aget-object v6, p0, v7
aget-object v9, p1, v7
invoke-virtual {v6, v9}, Landroid/content/pm/Signature;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_4
move v6, v7
goto :goto_0
:cond_4
move v6, v8
goto :goto_0
.line 2976
:cond_5
new-instance v3, Ljava/util/HashSet;
invoke-direct {v3}, Ljava/util/HashSet;-><init>()V
.line 2977
.local v3, "set1":Ljava/util/HashSet;, "Ljava/util/HashSet<Landroid/content/pm/Signature;>;"
move-object v0, p0
.local v0, "arr$":[Landroid/content/pm/Signature;
array-length v2, v0
.local v2, "len$":I
const/4 v1, 0x0
.local v1, "i$":I
:goto_1
if-ge v1, v2, :cond_6
aget-object v5, v0, v1
.line 2978
.local v5, "sig":Landroid/content/pm/Signature;
invoke-virtual {v3, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
.line 2977
add-int/lit8 v1, v1, 0x1
goto :goto_1
.line 2980
.end local v5 # "sig":Landroid/content/pm/Signature;
:cond_6
new-instance v4, Ljava/util/HashSet;
invoke-direct {v4}, Ljava/util/HashSet;-><init>()V
.line 2981
.local v4, "set2":Ljava/util/HashSet;, "Ljava/util/HashSet<Landroid/content/pm/Signature;>;"
move-object v0, p1
array-length v2, v0
const/4 v1, 0x0
:goto_2
if-ge v1, v2, :cond_7
aget-object v5, v0, v1
.line 2982
.restart local v5 # "sig":Landroid/content/pm/Signature;
invoke-virtual {v4, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
.line 2981
add-int/lit8 v1, v1, 0x1
goto :goto_2
.line 2985
.end local v5 # "sig":Landroid/content/pm/Signature;
:cond_7
invoke-virtual {v3, v4}, Ljava/util/HashSet;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_8
move v6, v7
.line 2986
goto :goto_0
:cond_8
move v6, v8
.line 2988
goto :goto_0
.end method
STEP 5- Shrink it to:-
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 11
.param p0, "s1" # [Landroid/content/pm/Signature;
.param p1, "s2" # [Landroid/content/pm/Signature;
.prologue
const/4 v7, 0x0
.line 2934
return v7
.end method
STEP 6- Now Find the lines given below:-
Code:
invoke-static {v4, v0}, Lcom/android/server/pm/PackageManagerService;->compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
move-result v4
if-nez v4, :cond_c
.line 5572
new-instance v4, Lcom/android/server/pm/PackageManagerException;
const/16 v5, -0x13
const-string v11, "Cannot install platform packages to user storage!"
invoke-direct {v4, v5, v11}, Lcom/android/server/pm/PackageManagerException;-><init>(ILjava/lang/String;)V
throw v4
.line 5578
.end local v89 # "s1":[Landroid/content/pm/Signature;
:cond_c
STEP 7- Change it to the Red line:-
Code:
invoke-static {v4, v0}, Lcom/android/server/pm/PackageManagerService;->compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
move-result v4
[B][COLOR="Red"]if-eqz[/COLOR][/B] v4, :cond_c
.line 5572
new-instance v4, Lcom/android/server/pm/PackageManagerException;
const/16 v5, -0x13
const-string v11, "Cannot install platform packages to user storage!"
invoke-direct {v4, v5, v11}, Lcom/android/server/pm/PackageManagerException;-><init>(ILjava/lang/String;)V
throw v4
.line 5578
.end local v89 # "s1":[Landroid/content/pm/Signature;
:cond_c
STEP 8- Save and recompile your services.jar..Set the permissions to rw-r--r-- and push it to system/framework/
STEP 9- Done! Reboot your device.
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Will it work with CM12.1?
elmkzgirxp said:
Will it work with CM12.1?
Click to expand...
Click to collapse
Cooooooooooooooooooooool Bro. :good::good::good:
Bro...finally you made it
Awesome mahn...
But update the thread with download links fast or else it would be considered as placeholder
And i hope it works on cm12.1 also
evil.demon_s said:
Bro...finally you made it
Awesome mahn...
But update the thread with download links fast or else it would be considered as placeholder
And i hope it works on cm12.1 also
Click to expand...
Click to collapse
12.1 and 12 are nearly same so it will work
elmkzgirxp said:
Will it work with CM12.1?
Click to expand...
Click to collapse
I don't think so..Give it a try if you want..Let me know if it woks or not.
wolfmannight said:
Cooooooooooooooooooooool Bro. :good::good::good:
Click to expand...
Click to collapse
Thanks a lot!
evil.demon_s said:
Bro...finally you made it
Awesome mahn...
But update the thread with download links fast or else it would be considered as placeholder
And i hope it works on cm12.1 also
Click to expand...
Click to collapse
Thanks!Thread updated..I don't know if it woks on CM12.1 or not..Give it a try!
Thanks dude. ?
And how to create super user mode?
Nope , Not work on 12.1
---------- Post added at 03:51 PM ---------- Previous post was at 03:50 PM ----------
please make it for 12.1
I think I' m gonna get back to CM12 haha. nice, I believe you would port more and more apps
nirmal471 said:
Thanks dude.
And how to create super user mode?
Click to expand...
Click to collapse
Guide updated on 4th post! Enjoy!!
wolfmannight said:
Nope , Not work on 12.1
---------- Post added at 03:51 PM ---------- Previous post was at 03:50 PM ----------
please make it for 12.1
Click to expand...
Click to collapse
miku6r said:
I think I' m gonna get back to CM12 haha. nice, I believe you would port more and more apps
Click to expand...
Click to collapse
I will surely try!
STRYDER~007 said:
Guide updated on 4th post! Enjoy!!
Click to expand...
Click to collapse
Without super user mode it will work?
nirmal471 said:
Without super user mode it will work?
Click to expand...
Click to collapse
No.. It won't work.. Superuser mod is compulsory..
STRYDER~007 said:
No.. It won't work.. Superuser mod is compulsory..
Click to expand...
Click to collapse
Dude I dont known how to edit apk, can you make me a super user mode enabled services. Jar for me plz.. You known how badly like this system ui.. Plz if you can means do for me.. Thanks
My service.Jar file link
https://www.dropbox.com/s/v8dzadpk6tb20ke/services.jar?dl=0
STRYDER~007 said:
Features:-
Drag And Drop To Add Or Remove Quick Settings
Added New Animations
Z3 Particle Effect Lockscreen With 3 Different Clocks On Lockscreen
Xperia Z3 Lollipop Live Wallpaper
Xperia Z3 Lollipop ClockWidgets
Xperia Z3 Media Sounds
Click to expand...
Click to collapse
Hey buddy, the modified fallback fonts.xml and fonts.xml are mine !! and I saw you r using them for clock widgets !! If you didn't ask permission to me I think it's ok, atleast give credit to me
@STRYDER~007 can I try your guide on cm12.1, I mean try the changes on cm12.1
Another question, will it work on cm "based" roms too?( Just to be sure)
vandroid7 said:
Hey buddy, the modified fallback fonts.xml and fonts.xml are mine !! and I saw you used them for clock widgets !! If you didn't ask permission to me I think it's ok, atleast give credit to me
Click to expand...
Click to collapse
yes
 @STRYDER~007 give him credit for Clock fonts

[PORT][CM12.1/AOSP 5.1/STOCK 5.1] Xperia Z5 SystemUI And Particle Effect Lockscreen

Introduction:-
Hey guys! Here's my new port of Official Xperia Z5 Lollipop SystemUI and Particle Effect Lockscreen for Xperia as well as Non-Xperia devices running on CM12.1,AOSP 5.1 as well as Sony Stock 5.1. Possibly working on CM and AOSP variants such as AICP, Resurrection Remix etc. [TESTING REQUIRED!] I have also added Xperia Z5 Home and Z5 Media Sounds in this MOD. Hope you guys like it!
POST 1- Introduction And Features
POST 2- Screenshots
POST 3- Downloads And Instructions
POST 4- Guide To Create Superuser MOD
Disclaimer:-
* Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards,thermonuclear war, or you getting fired because the alarm app failed!!
*Please make nandroid backup before flashing this as a precaution!
*Try this MOD at your own risk!
Click to expand...
Click to collapse
Features:-
Drag And Drop To Add Or Remove Quick Settings
Added New Animations
Added New Expandable Sound Panel
Particle Effect Lockscreen With 3 Different Clocks On Lockscreen
Xperia Live Wallpaper
Xperia Z5 Home Launcher
Xperia Z5 Media Sounds
NOTE- DO NOT USE OR SHARE ANY PART OF MY WORK IN ANY ROM OR ANY MOD WITHOUT MY PERMISSION!!
Credits:-
@gamzekal for Xperia Z5 system dump
@Uncle Lucifer for deodexed system apps
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Screenshots
Screenshots:-
Xperia Z5 SystemUI
{
"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"
}
Xperia Particle Effect Lockscreen
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Downloads And Instructions
Instructions:-
Make sure you have Superuser MOD installed.
There are 2 ways of doing Superuser MOD.
1. Using the guide given in next post. [Recommended for CM and AOSP!]
2. If you have Xposed framework installed, then use Serajr Xperia Xposed LP module and in system option,click on Superuser MOD.
Download Xperia Z5 Lollipop System Apps Port Zip.
Go to Recovery.
Flash the downloaded zip.
Wipe Cache partition and ART/Dalvik-cache.
Reboot your phone.
Done!Enjoy The New Looks!!
Download:-
Xperia Z5 System Apps Port
Bugs:-
Some of the Quick Settings tiles are not working.
PIN,Pattern and Password locks are not working. (3x3 pattern lock works fine.)
NOTE:- To get Particle Effect Lockscreen, just set Xperia Live Wallpaper as your default wallpaper.
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Guide to create Superuser MOD
Superuser MOD disables the signature verification for all apps. After using this MOD you can install apps with different signature!
Requirements:-
Services.jar from your device. It's located in system/framework/
Apktool or some similar software.
Decompiling-Recompiling Knowledge.
Notepad++ for Editing XMLs.
Working brain and patience!!
STEP 1- Decompile services.jar using apktool.
STEP 2- Go to \smali\com\android\server\pm\
STEP 3- Find the file named PackageManagerService.smali and open it using Notepad++
STEP 4- Now Find this method:-
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 11
.param p0, "s1" # [Landroid/content/pm/Signature;
.param p1, "s2" # [Landroid/content/pm/Signature;
.prologue
const/4 v6, 0x1
const/4 v8, -0x3
const/4 v7, 0x0
.line 2955
if-nez p0, :cond_1
.line 2956
if-nez p1, :cond_0
.line 2988
:goto_0
return v6
.line 2956
:cond_0
const/4 v6, -0x1
goto :goto_0
.line 2961
:cond_1
if-nez p1, :cond_2
.line 2962
const/4 v6, -0x2
goto :goto_0
.line 2965
:cond_2
array-length v9, p0
array-length v10, p1
if-eq v9, v10, :cond_3
move v6, v8
.line 2966
goto :goto_0
.line 2970
:cond_3
array-length v9, p0
if-ne v9, v6, :cond_5
.line 2971
aget-object v6, p0, v7
aget-object v9, p1, v7
invoke-virtual {v6, v9}, Landroid/content/pm/Signature;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_4
move v6, v7
goto :goto_0
:cond_4
move v6, v8
goto :goto_0
.line 2976
:cond_5
new-instance v3, Ljava/util/HashSet;
invoke-direct {v3}, Ljava/util/HashSet;-><init>()V
.line 2977
.local v3, "set1":Ljava/util/HashSet;, "Ljava/util/HashSet<Landroid/content/pm/Signature;>;"
move-object v0, p0
.local v0, "arr$":[Landroid/content/pm/Signature;
array-length v2, v0
.local v2, "len$":I
const/4 v1, 0x0
.local v1, "i$":I
:goto_1
if-ge v1, v2, :cond_6
aget-object v5, v0, v1
.line 2978
.local v5, "sig":Landroid/content/pm/Signature;
invoke-virtual {v3, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
.line 2977
add-int/lit8 v1, v1, 0x1
goto :goto_1
.line 2980
.end local v5 # "sig":Landroid/content/pm/Signature;
:cond_6
new-instance v4, Ljava/util/HashSet;
invoke-direct {v4}, Ljava/util/HashSet;-><init>()V
.line 2981
.local v4, "set2":Ljava/util/HashSet;, "Ljava/util/HashSet<Landroid/content/pm/Signature;>;"
move-object v0, p1
array-length v2, v0
const/4 v1, 0x0
:goto_2
if-ge v1, v2, :cond_7
aget-object v5, v0, v1
.line 2982
.restart local v5 # "sig":Landroid/content/pm/Signature;
invoke-virtual {v4, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
.line 2981
add-int/lit8 v1, v1, 0x1
goto :goto_2
.line 2985
.end local v5 # "sig":Landroid/content/pm/Signature;
:cond_7
invoke-virtual {v3, v4}, Ljava/util/HashSet;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_8
move v6, v7
.line 2986
goto :goto_0
:cond_8
move v6, v8
.line 2988
goto :goto_0
.end method
NOTE- It doesn't matter if some of your code in above method differs than this code. Just go to next step!
STEP 5- Shrink the above code to:-
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 11
.param p0, "s1" # [Landroid/content/pm/Signature;
.param p1, "s2" # [Landroid/content/pm/Signature;
.prologue
const/4 v7, 0x0
.line 2934
return v7
.end method
STEP 6- Now Find the lines given below:-[Hint-In search box type Cannot to find faster!]
Code:
invoke-static {v4, v0}, Lcom/android/server/pm/PackageManagerService;->compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
move-result v4
if-nez v4, :cond_c
.line 5572
new-instance v4, Lcom/android/server/pm/PackageManagerException;
const/16 v5, -0x13
const-string v11, "Cannot install platform packages to user storage!"
invoke-direct {v4, v5, v11}, Lcom/android/server/pm/PackageManagerException;-><init>(ILjava/lang/String;)V
throw v4
.line 5578
.end local v89 # "s1":[Landroid/content/pm/Signature;
:cond_c
STEP 7- Make changes as per the Red line only:-
Code:
invoke-static {v4, v0}, Lcom/android/server/pm/PackageManagerService;->compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
move-result v4
[B][COLOR="Red"]if-eqz[/COLOR][/B] v4, :cond_c
.line 5572
new-instance v4, Lcom/android/server/pm/PackageManagerException;
const/16 v5, -0x13
const-string v11, "Cannot install platform packages to user storage!"
invoke-direct {v4, v5, v11}, Lcom/android/server/pm/PackageManagerException;-><init>(ILjava/lang/String;)V
throw v4
.line 5578
.end local v89 # "s1":[Landroid/content/pm/Signature;
:cond_c
STEP 8- Save and recompile your services.jar..Set the permissions to rw-r--r-- and push it to system/framework/
STEP 9- Done! Reboot your device.
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Awesome! I would love to try it but you said pattern lock doesn't work :/ Do you mean the 4*4 and 5*5 with that? (so 3*3 works?)
Otherwhise, looking forward to try it on aicp and on the upcoming stryflex update!
Deleunes254 said:
Awesome! I would love to try it but you said pattern lock doesn't work :/ Do you mean the 4*4 and 5*5 with that? (so 3*3 works?)
Otherwhise, looking forward to try it on aicp and on the upcoming stryflex update!
Click to expand...
Click to collapse
3x3 pattern lock works fine..Others doesn't..Possibly working on all CM variants such as AICP, Resurrection Remix etc..Give it a try!
Are the stock wallpapers included? If not, it would be a great additional feature to Xperia Home (like in /etc/customizations/com/sonyericsson/wallpapers).
elmkzgirxp said:
Are the stock wallpapers included? If not, it would be a great additional feature to Xperia Home (like in /etc/customizations/com/sonyericsson/wallpapers).
Click to expand...
Click to collapse
Sure! Will add it..
Thanks! Is it working on dual SIM phones?
Found bug, notification not showing in lockscreen bro ?
vjtigas said:
Thanks! Is it working on dual SIM phones?
Click to expand...
Click to collapse
Try it out! Possibly working..
osa_misuari said:
Found bug, notification not showing in lockscreen bro
Click to expand...
Click to collapse
It shows in mine.. Attach screenshot bro..
Hi OP is it ok if i just push the home-release to system app with correct permission? I'm on 5.1.1 stock odex.
In lockscreen not showing, but in list notice show up bro
anakdayak said:
Hi OP is it ok if i just push the home-release to system app with correct permission? I'm on 5.1.1 stock odex.
Click to expand...
Click to collapse
Yes.. Most probably it'll work.. Give it a try..
osa_misuari said:
In lockscreen not showing, but in list notice show up bro
Click to expand...
Click to collapse
Thanks for screenshots..I'll look into it..
Hi OP auto rotate not showing but small and large icon showed.
Hello I tried it on cm12.1 Ressurection Remix 5.5.5 Sprout 4 (android one) but after booting system UI Crashed.. Hoping you could give a solution.. Dalvik and cache were cleared..
Thank You
anakdayak said:
Hi OP auto rotate not showing but small and large icon showed.
Click to expand...
Click to collapse
New Xperia home just icon setting bro, auto rotation is on by default
Has anyone tried this on any Stock Motorola firmware? Can I consider my stock Moto X 2014's Android 5.1 as being AOSP? Since Motorola has kept it as close to the original as possible.
Thanks!
are all you apps supposed to disappear??
rom 5.1.1 Cyanogenmod 12.1
device - s3 mini
LividGamerZx said:
are all you apps supposed to disappear??
rom 5.1.1 Cyanogenmod 12.1
device - s3 mini
Click to expand...
Click to collapse
No you won't loose any app

[GUIDE][AOSP][CM12/12.1]How To Port Fully Featured Sony Phonebook,Dialer & InCallUI

[GUIDE][AOSP][CM12/12.1]How To Port Fully Featured Sony Phonebook,Dialer & InCallUI
Quick Guide To Port Xperia Z5,Z4,Z3,Z2,Z1,Z etc. Fully Featured Sony Phonebook,Dialer & InCallUI . For Many Phones Running AOSP,CM12,CM12.1. I Hope Everyone Like & Enjoy It.
{
"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"
}
Guide & Download Link Is On 2nd Post
Screenshots On 3rd Post
Cheers U Can Post Screenshots Too & I'll Add To This Thread
If U Like My Work Dont Forgot To Press Thanks Button
Guide For AOSP,CM12,CM12.1
1. Extract framework.jar Decompile classes.dex
2. Go to android/telephony/TelephonyManager.smali add this method before .method public handlePinMmi
PHP:
.method public getVoicemailString()Ljava/lang/String;
.registers 3
.prologue
.line 3592
iget-object v0, p0, Landroid/telephony/TelephonyManager;->mContext:Landroid/content/Context;
if-nez v0, :cond_6
const/4 v0, 0x0
.line 3593
:goto_5
return-object v0
:cond_6
iget-object v0, p0, Landroid/telephony/TelephonyManager;->mContext:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x1040051
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v0
goto :goto_5
.end method
3.To Port InCallUI add this method in android/telecom/Call.smali
PHP:
.method public getNotificationCode()I
.registers 2
.prologue
.line 415
iget v0, p0, Landroid/telecom/Call;->mNotificationCode:I
return v0
.end method
.method public getNotificationType()I
.registers 2
.prologue
.line 410
iget v0, p0, Landroid/telecom/Call;->mNotificationType:I
return v0
.end method
& Add This Instance Fields
PHP:
.field private mNotificationCode:I
.field private mNotificationType:I
4. Go To android/telecom/Phone.smali Add This Field at line 55
PHP:
.field private mSomcInCallAdapterExtend:Landroid/telecom/SomcInCallAdapterExtend;
5. Add This method before .method public switchToOtherActiveSub
PHP:
.method public final somcGetCommand(ILjava/lang/String;)Ljava/lang/String;
.registers 5
.parameter "commandId"
.parameter "option"
.prologue
.line 386
const/4 v0, 0x0
.line 387
.local v0, result:Ljava/lang/String;
iget-object v1, p0, Landroid/telecom/Phone;->mSomcInCallAdapterExtend:Landroid/telecom/SomcInCallAdapterExtend;
if-eqz v1, :cond_b
.line 388
iget-object v1, p0, Landroid/telecom/Phone;->mSomcInCallAdapterExtend:Landroid/telecom/SomcInCallAdapterExtend;
invoke-virtual {v1, p1, p2}, Landroid/telecom/SomcInCallAdapterExtend;->somcGetCommand(ILjava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 389
:cond_b
return-object v0
.end method
6. Download & Extract SomcInCallAdapterExtend.zip from attachments move SomcInCallAdapterExtend.smali to android/telecom folder
7. Recompile & Move Modify classes.dex In framework.jar
Done (Remember Superusermod & Deodex Rom Require)
Now CM12.1,AOSP Users Can Flash This http://www.mediafire.com/download/eokbox8h6otz5s5/EnfriarZ5Dialer.zip
Screenshots
How to and where to edit the files
@xperiaz2 awesome , thank yoooou so much for sharing this to us...
---------- Post added at 02:23 PM ---------- Previous post was at 01:51 PM ----------
Decompile Framework.apk
and add
<string name="config_voicemail_string" /> to string.xml
<public type="string" name="config_voicemail_string" id="#Number#" /> to Public.xml
Number in Public is like this 0x01040054 #Number is a example
You need to replace number in following code like this 0x1040054
PHP:
.method public getVoicemailString()Ljava/lang/String;
.registers 3
.prologue
.line 3592
iget-object v0, p0, Landroid/telephony/TelephonyManager;->mContext:Landroid/content/Context;
if-nez v0, :cond_6
const/4 v0, 0x0
.line 3593
:goto_5
return-object v0
:cond_6
iget-object v0, p0, Landroid/telephony/TelephonyManager;->mContext:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x1040054
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v0
goto :goto_5
.end method
add this code before .method public handlePinMmi
wolfmannight said:
@xperiaz2 awesome , thank yoooou so much for sharing this to us...
---------- Post added at 02:23 PM ---------- Previous post was at 01:51 PM ----------
Decompile Framework.apk
and add
<string name="config_voicemail_string" /> to string.xml
<public type="string" name="config_voicemail_string" id="#Number#" /> to Public.xml
Number in Public is like this 0x01040054 #Number is a example
You need to replace number in following code like this 0x1040054
Click to expand...
Click to collapse
most welcome bro yeah correct :good:
I cant find .method public switchToOtherActiveSub in Phone.smali
To CM12.1 users: the 'telecom' folder can be found at /smali_classes2/android (at least in my case).
wolfmannight said:
I cant find .method public switchToOtherActiveSub in Phone.smali
Click to expand...
Click to collapse
i think we should add this also
PHP:
.method public switchToOtherActiveSub(Ljava/lang/String;Z)V
.registers 4
.param p1, "subId" # Ljava/lang/String;
.param p2, "retainLch" # Z
.prologue
.line 287
iget-object v0, p0, Landroid/telecom/Phone;->mInCallAdapter:Landroid/telecom/InCallAdapter;
invoke-virtual {v0, p1, p2}, Landroid/telecom/InCallAdapter;->switchToOtherActiveSub(Ljava/lang/String;Z)V
.line 288
return-void
.end method
in the end
wolfmannight said:
I cant find .method public switchToOtherActiveSub in Phone.smali
Click to expand...
Click to collapse
its last line if not there add that method at end
.method public switchToOtherActiveSub(Ljava/lang/String;Z)V
.registers 4
.parameter "subId"
.parameter "retainLch"
.prologue
.line 276
iget-object v0, p0, Landroid/telecom/Phone;->mInCallAdapter:Landroid/telecom/InCallAdapter;
invoke-virtual {v0, p1, p2}, Landroid/telecom/InCallAdapter;->switchToOtherActiveSub(Ljava/lang/String;Z)V
.line 277
return-void
.end method
wolfmannight said:
i think we should add this also
Click to expand...
Click to collapse
yes
@xperiaz2 Where should I put the fields in Call.smali? In static or instance fields?
elmkzgirxp said:
@xperiaz2 Where should I put the fields in Call.smali? In static or instance fields?
Click to expand...
Click to collapse
instance fields
If Compile error try this attachment with latest smali jar
or
use smali jar 1.3.3 with developer added attchment
wolfmannight said:
If Compile error try this attachment with latest smali jar
or
use smali jar 1.3.3 with developer added attchment
Click to expand...
Click to collapse
try using romtoolspc no error
Hi, awesome work man! You're like on of the first porting this Can you port Conversations as well?
Deleunes254 said:
Hi, awesome work man! You're like on of the first porting this Can you port Conversations as well?
Click to expand...
Click to collapse
wow thanks alot bro yeah i will port Conversations too
You serious? Alright Awesome!!!!
I'm getting errors when smaling Phone.smali.
Code:
framework.jar.out\smali_classes2\android\telecom\Phone.smali[828,4] Error for input '.parameter': Invalid directive
framework.jar.out\smali_classes2\android\telecom\Phone.smali[829,4] Error for input '.parameter': Invalid directive
framework.jar.out\smali_classes2\android\telecom\Phone.smali[828,15] mismatched input '"commandId"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: android/telecom/Phone.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:372)
at brut.androlib.Androlib.buildNonDefaultSources(Androlib.java:316)
at brut.androlib.Androlib.build(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
My framework.jar is only 309 bytes what should I do?
m on cm12.1 lollipop 5.1.1
@xperiaz2
I've flashed this in AICP for Huashan (Xperia SP) and I'm getting contacts FC. Taken a log of the fc by repeatedly opening dialer.
The thing is, contacts opens up and can use it for a while ( Google account contacts are not there) . I try to click on import contacts and it FC's.
As for the dialer, it doesn't even open up.
So the log has a NoSuchMethodError .
Here is the link to the whole log.
http://hastebin.com/upurexegun.vhdl
Hope this helps you .

Categories

Resources