[REQUEST]Enable auto rotate for JB Home.apk - Sony Xperia T, TL, TX, V

Hi excuse, I'm requesting to enable auto rotation for Home.apk that I uploaded as attachment below,
Please someone as request, please download this and enable auto rotation of launcher
Thanks

danisariandi said:
Hi excuse, I'm requesting to enable auto rotation for Home.apk that I uploaded as attachment below,
Please someone as request, please download this and enable auto rotation of launcher
Thanks
Click to expand...
Click to collapse
I'm not sure what your asking as enabling auto rotate through settings allows the Home.apk to rotate

can not decompile your home.apk

jjwrongjj said:
can not decompile your home.apk
Click to expand...
Click to collapse
Install framework first
Sent by brand new mindmap

danisariandi said:
Install framework first
Sent by brand new mindmap
Click to expand...
Click to collapse
Of course
here is guide, i think you can make it
- Decompile Home.apk
- Go: smali\com\sonyericsson\home and open file HomeActivity.smali
- Search:
Code:
invoke-virtual {v12}, Landroid/app/UiModeManager;->getCurrentModeType()I
move-result v0
const/4 v2, 0x1
if-ne v0, v2, :cond_6
.line 567
const/4 v0, 0x5
iput v0, p0, Lcom/sonyericsson/home/HomeActivity;->mDefaultOrientation:I
and change this to:
Code:
invoke-virtual {v12}, Landroid/app/UiModeManager;->getCurrentModeType()I
move-result v0
const/4 v2, 0x1
if-ne v0, v2, :cond_6
.line 567
const/4 v0, [B]-0x1[/B]
iput v0, p0, Lcom/sonyericsson/home/HomeActivity;->mDefaultOrientation:I
-Recompile Home.apk

jjwrongjj said:
Of course
here is guide, i think you can make it
Click to expand...
Click to collapse
when i turn to the last two desktops the navigationbar becomes black(ive made it transparent)
anyone knows how to fix it ?
thanks

Leo said:
when i turn to the last two desktops the navigationbar becomes black(ive made it transparent)
anyone knows how to fix it ?
thanks
Click to expand...
Click to collapse
For me, that's fine
Sent from my LT25i using xda premium

danisariandi said:
Install framework first
Sent by brand new mindmap
Click to expand...
Click to collapse
what you mean? i can't decompile and recompile home.apk or getting error do it, all of them said about framework-res.apk or SemcGenericUxpRes.apk too
can you give me some tutorial to decompile or recompile home.apk??? please because i want make it auto rotate too on my xperia e single...

Related

(GUIDE) How to make IS backlights fix

IF YOU LIKE MY GUIDE PLEASE CLICK "THANKS" BUTTON
Principle:
First,there are two system files which are controling our vivo's backlights.They are
/sys/class/leds/button-backlight-portrait/brightness
sys/class/leds/button-backlight-landscape/brightness(when the phone is rotating)
If the backlights are not lighting up that means the value of these two system files are 0.
So that we can setup a system file which included the correct value and put it into systemui.apk , your vivo will get the light after you reboot it.
How to do that:
I have made the buttonlight.smali file for you guys.
What you should do is using VTS(Virtuous Ten Studio) to decompile systemui.apk and put this file in /smali/com/android/systemui/statusbar.
Then go to smali/com/android/systemui
use Notepad++ open SystemUIService.smali
search onCreate
add these code below after .line71
Code:
new-instance v0, Lcom/android/systemui/statusbar/ButtonLight;
invoke-direct {v0}, Lcom/android/systemui/statusbar/ButtonLight;-><init>()V
.local v0, bl:Lcom/android/systemui/statusbar/ButtonLight;
new-instance v1, Landroid/content/IntentFilter;
invoke-direct {v1}, Landroid/content/IntentFilter;-><init>()V
.local v1, intentfilter:Landroid/content/IntentFilter;
const-string v2, "android.intent.action.SCREEN_OFF"
invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
const-string v2, "android.intent.action.SCREEN_ON"
invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
const-string v2, "android.intent.action.CONFIGURATION_CHANGED"
invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
invoke-virtual {p0, v0, v1}, Lcom/android/systemui/SystemUIService;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
After that save it ,compile it,put it in to your system folder,set permission,DONE!
It should work on every rom in Incredible S in theory
Thanks for Deepak Srivastav providing the temp backlight fix,I inspired from there.
VTS download link is here(Thanks Virtuous Rom team): http://www.virtuousrom.com/p/ten-studio.html
Notepad++ download link is here:http://notepad-plus-plus.org/download/v6.1.3.html
Sorry for my poor English,hope you know what I mean
cycber said:
IF YOU LIKE MY GUIDE PLEASE CLICK "THANKS" BUTTON
Principle:
First,there are two system files which are controling our vivo's backlights.They are
/sys/class/leds/button-backlight-portrait/brightness
sys/class/leds/button-backlight-landscape/brightness(when the phone is rotating)
If the backlights are not lighting up that means the value of these two system files are 0.
So that we can setup a system file which included the correct value and put it into systemui.apk , your vivo will get the light after you reboot it.
How to do that:
I have made the buttonlight.smali file for you guys.
What you should do is using VTS(Virtuous Ten Studio) to decompile systemui.apk and put this file in /smali/com/android/systemui/statusbar.
Then go to smali/com/android/systemui
use Notepad++ open SystemUIService.smali
search onCreate
add these code below after .line71
Code:
new-instance v0, Lcom/android/systemui/statusbar/ButtonLight;
invoke-direct {v0}, Lcom/android/systemui/statusbar/ButtonLight;-><init>()V
.local v0, bl:Lcom/android/systemui/statusbar/ButtonLight;
new-instance v1, Landroid/content/IntentFilter;
invoke-direct {v1}, Landroid/content/IntentFilter;-><init>()V
.local v1, intentfilter:Landroid/content/IntentFilter;
const-string v2, "android.intent.action.SCREEN_OFF"
invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
const-string v2, "android.intent.action.SCREEN_ON"
invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
const-string v2, "android.intent.action.CONFIGURATION_CHANGED"
invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
invoke-virtual {p0, v0, v1}, Lcom/android/systemui/SystemUIService;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
After that save it ,compile it,put it in to your system folder,set permission,DONE!
It should work on every rom in Incredible S in theory
VTS download link is here(Thanks Virtuous Rom team): http://www.virtuousrom.com/p/ten-studio.html
Notepad++ download link is here:http://notepad-plus-plus.org/download/v6.1.3.html
Sorry for my poor English,hope you know what I mean
Click to expand...
Click to collapse
Thanks for the guide please mention thanks to Deepak Srivastav who made this mod in an apk form
nikhil007mmus said:
Thanks for the guide please mention thanks to Deepak Srivastav who made this mod in an apk form
Click to expand...
Click to collapse
Added it,thanks for the remind
Thanks for sharing it.
Thanks sooo much but can you remove Smileys from the code
Sent from my Incredible S using Tapatalk 2
sharawy1 said:
Thanks sooo much but can you remove Smileys from the code
Sent from my Incredible S using Tapatalk 2
Click to expand...
Click to collapse
Use computer see it should be fine !
Sent from my HTC Incredible S using xda premium
Nope im using PC and wont work as smileys are enabled in the code
htc-phones said:
Nope im using PC and wont work as smileys are enabled in the code
Click to expand...
Click to collapse
+1
Sent from my HTC Incredible S using Tapatalk 2
sharawy1 said:
+1
Sent from my HTC Incredible S using Tapatalk 2
Click to expand...
Click to collapse
Ok,I will post a txt download link for you
Attached Files updated!
感谢分享
thank you for translating my guide into English and posting it here!
recently,i have modded it better, let the keylight adjust the screen brightness. and do you know when the keylight rotate as landscape,you lock the screen ,the keylight will turn on?
Sent from my HTC Incredible S using xda premium
"After that save it ,compile it,put it in to your system folder,set permission,DONE"
Can I ask what permissions you are supposed to give the script, and how/what I'm supposed to use to set them?
thank you.
CyanideJack said:
"After that save it ,compile it,put it in to your system folder,set permission,DONE"
Can I ask what permissions you are supposed to give the script, and how/what I'm supposed to use to set them?
Click to expand...
Click to collapse
644
I have the lights working only in Landscape mode. Any solution? Do i have to try this?

[MOD] Updated Clock.smali

Hi all I have re-written the .method final updateclock()V in clock.smali so it can be adjusted to suit everyones needs.It has been taken from XXELLA.
To use just decompile SystemUI.apk and replace clock.smali with the one attached.​
How to configure:​
In the new method you will see this code at the top change the code to the code in red to suit your needs:​
Code:
[CENTER] .line 45
.local v3,
hr:Z
const/4 v8, 0x1
[COLOR=red]Change to 0x0 for no clock[/COLOR][/CENTER]
[CENTER] .line 46
.local v8,
show_clock:Z
const/4 v9, 0x1
[COLOR=red]Change to 0x0 for no day in statusbar[/COLOR][/CENTER]
[CENTER] .line 47
.local v9,
show_date:Z
const/4 v7, 0x1
[COLOR=red]Change to 0x0 for no am/pm[/COLOR][/CENTER]
[CENTER] .line 48
.local v7,
show_ampm:Z
const/high16 v1, 0x3f00
[COLOR=#ff0000]This one chages size of am/pm[/COLOR][/CENTER]
[CENTER][COLOR=red]1.0 = Same as clock size change to 0x3F80[/COLOR]
[COLOR=#ff0000]0.75 = 3/4 of clock size change to 0x3F40[/COLOR]
[COLOR=#ff0000]0.50 Half clock size (default) change to 0x[/COLOR][COLOR=red]3F00 [/COLOR][/CENTER]
[CENTER][COLOR=#ff0000]Go [URL="http://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html"]here[/URL] for other sizes.[/COLOR][/CENTER]
Download​
To make it so it says Mon instead of MON decompile and look for:
Code:
invoke-virtual {v6, v11}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object v0
.line 57
.local v0,
am:Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
move-result-object v11
invoke-virtual {v5, v11}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
in clock.smali and change the line:
Code:
invoke-virtual {v5, v11}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
To:
Code:
invoke-virtual {v5, v0}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
Then recompile and your done.
super stuff mate but some how ZSEMA1 SystemUI gives fc when applied ,
will be waiting for a fix ... thanks again mate
vegeta1 said:
super stuff mate but some how ZSEMA1 SystemUI gives fc when applied ,
will be waiting for a fix ... thanks again mate
Click to expand...
Click to collapse
I am running on ZSEMA1 now mate. What does logcat say?
Sent from my GT-I9300 using xda premium
gharrington said:
I am running on ZSEMA1 now mate. What does logcat say?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
i have never used log cat , but if you can look here's my logcat
vegeta1 said:
i have never used log cat , but if you can look here's my logcat
Click to expand...
Click to collapse
hey mate found the error in my clock smali find line 964 it says:
invoke-virtual {p0, v5}, Lcom/android/systemui/statusbar/policy/SimpleDateView;->setText(Ljava/lang/CharSequenceV
change it to:
invoke-virtual {p0, v5}, Lcom/android/systemui/statusbar/policy/Clock;->setText(Ljava/lang/CharSequenceV
now it will work
I have also updated the clock.smali to show changes on post #1 just in case you want to re-download
gharrington said:
hey mate found the error in my clock smali find line 964 it says:
invoke-virtual {p0, v5}, Lcom/android/systemui/statusbar/policy/SimpleDateView;->setText(Ljava/lang/CharSequenceV
change it to:
invoke-virtual {p0, v5}, Lcom/android/systemui/statusbar/policy/Clock;->setText(Ljava/lang/CharSequenceV
now it will work
Click to expand...
Click to collapse
absolutely ravishing , thanks alot my friend
i never thought logcat can be that handy i never tried it and know nothing related
vegeta1 said:
absolutely ravishing , thanks alot my friend
i never thought logcat can be that handy i never tried it and know nothing related
Click to expand...
Click to collapse
Logcat is a developers best friend lol. Any time mate.
Sent from my GT-I9300 using xda premium
Hi,
I'm using ROM FoxHound v1.8 (ZSMA1) and I want to have the day on my statusbar. I checked the clock.smali and I found this:
.line 45
.local v3, hr:Z
const/4 v8, 0x1
.line 46
.local v8, show_clock:Z
const/4 v9, 0x1
.line 47
.local v9, show_date:Z
const/4 v7, 0x1
.line 48
.local v7, show_ampm:Z
const/high16 v1, 0x3f00
My problem is that even I see that "const/4 v9, 0x1" I still don't have the date on my statusbar.
Can you please tell me what is wrong?
Thank you.
starbucks2010 said:
Hi,
I'm using ROM FoxHound v1.8 (ZSMA1) and I want to have the day on my statusbar. I checked the clock.smali and I found this:
.line 45
.local v3, hr:Z
const/4 v8, 0x1
.line 46
.local v8, show_clock:Z
const/4 v9, 0x1
.line 47
.local v9, show_date:Z
const/4 v7, 0x1
.line 48
.local v7, show_ampm:Z
const/high16 v1, 0x3f00
My problem is that even I see that "const/4 v9, 0x1" I still don't have the date on my statusbar.
Can you please tell me what is wrong?
Thank you.
Click to expand...
Click to collapse
Does SystemUI fc?
Sent from my GT-I9300 using xda premium
and how do we change clock colour?
Sent from my GT-I9300 using xda premium
gharrington said:
Does SystemUI fc?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I just decompiled SystemUI.apk and checked the clock.smali file on my PC. I didn't modify anything on the file or on the phone. No FC.
starbucks2010 said:
I just decompiled SystemUI.apk and checked the clock.smali file on my PC. I didn't modify anything on the file or on the phone. No FC.
Click to expand...
Click to collapse
You have to decompile your SystemUI then delete clock smali. Then replace with downloaded one. Then recompile and flash.
Sent from my GT-I9300 using xda premium
Sorry for mistake: I was looking in your clock.smali not mine. Actualy mine it looks very different than yours. Can you check it please and tell me if it will work if I replace it with your clock.smali.
Thank you for your time and patience.
starbucks2010 said:
Sorry for mistake: I was looking in your clock.smali not mine. Actualy mine it looks very different than yours. Can you check it please and tell me if it will work if I replace it with your clock.smali.
Thank you for your time and patience.
Click to expand...
Click to collapse
This is compatable with firmware MA1 so yes just swap them and Recompile.
Sent from my GT-I9300 using xda premium
I tried and is not working: no more statusbar and no more wallpaper. If is not too much asking, could you please modify my clock.smali to include the short day in the statusbar?
Thank you again and sorry for bother.
starbucks2010 said:
I tried and is not working: no more statusbar and no more wallpaper. If is not too much asking, could you please modify my clock.smali to include the short day in the statusbar?
Thank you again and sorry for bother.
Click to expand...
Click to collapse
Mate don't mean to be rude but this is a very simple thing to do you just have to swap the smali file. Maybe you should read how to decompile and recompile a apk properly then re attempt. If I was to modify for you it would look the same as the downloaded one!
Sent from my GT-I9300 using xda premium
I decompiled the file with 3 different sw. All are giving me the same file which is very different than yours. I don't understand why. I can send you my SystemUI to try to decompile it and the results. From which firmware you took this clock.smali?
Thank you.
starbucks2010 said:
I decompiled the file with 3 different sw. All are giving me the same file which is very different than yours. I don't understand why. I can send you my SystemUI to try to decompile it and the results. From which firmware you took this clock.smali?
Thank you.
Click to expand...
Click to collapse
The files will be different from mine. Mine as been modified! Yours are stock. You need to use my clock.smali instead of the one that's already there. Delete original and replace with mine and recompile that's it.
Sent from my GT-I9300 using xda premium

[HOW-TO][MOD][JB] Transparent Statusbar & NavBar [upd:10.05.2013]

So..My friends asked me to write a manual how to make a transparent virtual buttons and status bar on JB. Ready? :angel:
Screenshots from my Sola JB eek:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. Decompile android.policy.jar and open android.policy\smali\com\android\internal\policy\impl\PhoneWindowManager.smali
Blue- and to find through search
Red - Remove
Green- Add
Code:
.line 2552
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemTop:I
iput v0, p1, Landroid/graphics/Rect;->[color="blue"]top:I[/color]
.line 2553
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemRight:I
iput v0, p1, Landroid/graphics/Rect;->[color="blue"]right:I[/color]
.line 2554
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemBottom:I
iput v0, p1, Landroid/graphics/Rect;->[color="blue"]bottom:I[/color]
[color="red"] .line 2555
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
.line 2557
:goto_0
return v0
.line 2556
:cond_0
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
goto :goto_0
.line 2557
:cond_1
const/4 v0, 0x0
goto :goto_0[/color]
[COLOR="SeaGreen"][B]const/4 v0, 0x0
return v0[/B][/COLOR]
.end method
Compile android.policy.jar
2. Decompile SystemUI.apk and...
Open \SystemUI\res\values\drawables.xml
Code:
<item type="drawable" name="status_bar_background">#[B]5a[/B]000000</item>
5A - Transparency.
Open \SystemUI\res\layout\navigation_bar.xml and correct the same
Code:
<item type="drawable" name="status_bar_background">#[B]5a[/B]000000</item>
3. Open SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali and find "IIIII", near the code should be.
Green- Add, Red- Remove:
Code:
const/16 v3, 0x7e3
const v4, 0x4800068
[B][COLOR="Green"] const/4 v5, -0x3[/COLOR][/B]
move v2, v1
[COLOR="Red"] move v5, v1[/COLOR]
invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>([COLOR="Blue"]IIIII[/COLOR])V
Find "showNav" (second result in Notepad++) or "mPixelFormat:I", this code. Green- Add:
Code:
.line 417
.end local v3 #[COLOR="Blue"]showNav[/COLOR]:Z
:cond_1
:goto_2
[COLOR="Green"] const/4 v5, -0x3[/COLOR] [B][I](or [COLOR="Green"]const/4 v9, -0x3[/COLOR] for Z)[/I][/B]
iput v13, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->[COLOR="Blue"]mPixelFormat:I[/COLOR]
Compile SystemUI.apk.
upd: 10.05.2013
For the transparency of the open status bar (where the switches and notification)
Step 1:
Open PhoneStatusBar.smali (from SystemUI.apk) and find "PhoneStatusBar$FastColorDrawable". Immediately after that string is different, with "setBackground". Remove it. This line can appear twice.
Step 2:
We will adjust the transparency in the folder SystemUI\res\layout.Open-head status bar- status_bar_expanded_header.xml
Code:
android:background="@drawable/notification_header_bg"
change to
Code:
android:background="#[B]5A[/B]000000"
It is found in the file twice. Do everywhere.
The file status_bar_expanded.xml do by analogy, replace the reference to the background image on the color code. In this file, the background transparency notifications.
Download and Test​
Click to expand...
Click to collapse
Bugs:​- Transparency navibar only on the desktop \ status bar everywhere
- Works on stock launcher \ Apex, but the others were not checked​
Click to expand...
Click to collapse
Do not say thanks, press thanks:angel:
Please,
Can you just post modded android.policy.jar and systemui.apk? I'm having troubles with decompiling
How make it completly transparent?
Sent from my C6603 using xda premium
alvizu said:
How make it completly transparent?
Click to expand...
Click to collapse
5A=>00
mmamedov said:
Can you just post modded android.policy.jar and systemui.apk? I'm having troubles with decompiling
Click to expand...
Click to collapse
I'm not sure that these files from my smartphone you fit. (Sola)
But ...
Archive for CWM. Do not forget to backup!
Nope, in Xperia Z is in framework-res.apk, thx anyway
Sent from my C6603 using xda premium
Thank you will try
u should've mentioned that it's only for deodexed system :good:
alvizu said:
Nope, in Xperia Z is in framework-res.apk, thx anyway
Click to expand...
Click to collapse
Not...:angel: Transparency of the whole system to do in \framework-res.apk\res\values\styles.xml, But it looks awful in applications. Background is taken from the wallpaper on your desktop.
What value would you use to achieve around 10-20% transparency?
fcb13 said:
What value would you use to achieve around 10-20% transparency?
Click to expand...
Click to collapse
Use this:
2,55 х (100-20%)=204
Find 204 in image= CC
This 20% transparency:angel:
I get a little confused, so many with C6603 chatting here.
Anyway, can you make it work for Xperia V (LT25i) with .140 firmware and give a download link to be flashed with CWM, Please?
Spaun_Studio said:
Use this:
2,55 х (100-20%)=204
Find 204 in image= CC
This 20% transparency:angel:
Click to expand...
Click to collapse
Im confused, how did you get that number of 204
datagubben said:
I get a little confused, so many with C6603 chatting here.
Click to expand...
Click to collapse
They may have changed the product model to use social life...like I have done in my rom...
Spaun_Studio said:
5A=>00
I'm not sure that these files from my smartphone you fit. (Sola)
But ...
Archive for CWM.
Click to expand...
Click to collapse
Thanks, but not working( my systemui is changed, but it's still not transparent. I will try to do by myself :fingers-crossed: .
Thank you for easy manual!
Dear Spaun, here is my Lt29i system file, please make a transparent status bar for me? Thank alot :fingers-crossed:
https://docs.google.com/file/d/0B0czuSfsIjehWVk1aTRGWEl2cDg/edit?usp=sharing
Edited
Sorry, i'm upload wrong file
so sad.:crying:
Im just a player ,not a dev.
I try my best to search how to decompile ,but I fail.
Help me ,please!
Please make it for me
Xperia V LT25i_4.1.2_9.1.A.1.140
http://www.mediafire.com/?fka0ja60vi90633
will dis mod enable navigation bar on phones dat doesnt have it before?
thanks...
help please..... i get smali error when recompiling!!!!
please dis is my decompiled SystemUI.apk in zip archieve, just unzip!!!! http://www12.zippyshare.com/v/18413360/file.html
please let me know what yhu edit.
whalesplaho said:
will dis mod enable navigation bar on phones dat doesnt have it before?
Click to expand...
Click to collapse
No, it is included in the framework. Therefore, if before that it was not, and never will.
ikarus_0209 said:
Dear Spaun, here is my Lt29i system file, please make a transparent status bar for me? Thank alot :fingers-crossed:
Click to expand...
Click to collapse
Can not download. On the other file storage, please.
knnam said:
Please make it for me
Xperia V LT25i_4.1.2_9.1.A.1.140
Click to expand...
Click to collapse
Wait, now let me do.
whalesplaho said:
help please..... i get smali error when recompiling!!!!
please dis is my decompiled SystemUI.apk in zip archieve, just unzip!!!!
.
Click to expand...
Click to collapse
I made all the changes and compiled.

Guide: enable CRT effect for MT6577 JB phones

so after trying endless number of times including analyzing the smalis of a dozen guides for crt effect and the mysterious libsurfacelinger losing hwcomposer error in logcat which causes the phone to soft reboot after crt animation, i finally have gotten it to work, so let us begin
1st off we need to decompile services.jar and open up smali/com/android/server/PowerManagerService$ScreenBrightnessAnimator.smali
look for this line (code in LIME might look different in your smali)
Code:
.line 2716
.restart local[COLOR="Lime"] v1 [/COLOR] #turningOff:Z
:[COLOR="Lime"]cond_e[/COLOR]
add this after the code, note color in LIME might be different in your smali
Code:
iget-object v4, p0, Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;->this$0:Lcom/android/server/PowerManagerService;
const/16 v3, 0x10
#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$[COLOR="Lime"]7100[/COLOR](Lcom/android/server/PowerManagerService;I)V
to make sure what access$ yours is, open up PowerManagerService.smali and look for somethings that looks like this
Code:
.method static synthetic access[COLOR="Red"]$XXXX[/COLOR](Lcom/android/server/PowerManagerService;I)V
.registers 2
.parameter "x0"
.parameter "x1"
.prologue
.line 110
invoke-direct {p0, p1}, Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
return-void
.end method
NOTE the $XXXX in RED as this is what you should put in your PowerManagerService$ScreenBrightnessAnimator.smali
Finally it should look like this afterwards( code in RED is what we added and color in LIME is your access$ which in my case was 7100)
Code:
.line 2716
.restart local v1 #turningOff:Z
:cond_e
[COLOR="Red"] iget-object v4, p0, Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;->this$0:Lcom/android/server/PowerManagerService;
const/16 v3, 0x10
#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$[COLOR="Lime"]7100[/COLOR](Lcom/android/server/PowerManagerService;I)V[/COLOR]
iget-object v2, p0, Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;->this$0:Lcom/android/server/PowerManagerService;
const/4 v3, 0x1
#setter for: Lcom/android/server/PowerManagerService;->mWaitKeyguardDraw:Z
invoke-static {v2, v3}, Lcom/android/server/PowerManagerService;->access$2002(Lcom/android/server/PowerManagerService;Z)Z
now recompile and put classes.dex back to android.policy.jar.
and lastly download the attached zip add your android.policy.jar and flash it, or extract and push manually the files to their corresponding folders
reboot, or just run
pkill zygote
from terminal as root and voila you should have crt effect working now,
alternative way is framework-res.apk method, just decompile it and open up /res/values/bools.xml
look for somehing like
config_animateScreenLights
Click to expand...
Click to collapse
and change its value from TRUE to FALSE
and flash the zip, although this method will not show crt effect if your window animations speed is 0.5 and below while smali method crt will work regardless if you set your animations or not in developer settings
CREDITS TO
sorg - for his help in tipping me on whats causing the errors in my logcats
sphinx02 - i based this on his guide
Click to expand...
Click to collapse
Reserved in case I need it for something
Okay so I really did need this for something...
Anyway here is where ill put the devices that didnt work with it
1. Thl w7
the general is, it might not work on mt6577 running android 4.1.2, already have two reports on 4,1,2 as not working
Thats it for now, just report if it didnt work on your device guys
Sent from my H100 using xda app-developers app
thirdzcee said:
so after trying endless number of times including analyzing the smalis of a dozen guides for crt effect and the mysterious libsurfacelinger losing hwcomposer error in logcat which causes the phone to soft reboot after crt animation, i finally have gotten it to work, so let us begin
1st off we need to decompile services.jar and open up smali/com/android/server/PowerManagerService$ScreenBrightnessAnimator.smali
look for this line (code in LIME might look different in your smali)
Code:
.line 2716
.restart local[COLOR="Lime"] v1 [/COLOR] #turningOff:Z
:[COLOR="Lime"]cond_e[/COLOR]
add this after the code, note color in LIME might be different in your smali
Code:
iget-object v4, p0, Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;->this$0:Lcom/android/server/PowerManagerService;
const/16 v3, 0x10
#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$[COLOR="Lime"]7100[/COLOR](Lcom/android/server/PowerManagerService;I)V
to make sure what access$ yours is, open up PowerManagerService.smali and look for somethings that looks like this
Code:
.method static synthetic access[COLOR="Red"]$XXXX[/COLOR](Lcom/android/server/PowerManagerService;I)V
.registers 2
.parameter "x0"
.parameter "x1"
.prologue
.line 110
invoke-direct {p0, p1}, Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
return-void
.end method
NOTE the $XXXX in RED as this is what you should put in your PowerManagerService$ScreenBrightnessAnimator.smali
Finally it should look like this afterwards( code in RED is what we added and color in LIME is your access$ which in my case was 7100)
Code:
.line 2716
.restart local v1 #turningOff:Z
:cond_e
[COLOR="Red"] iget-object v4, p0, Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;->this$0:Lcom/android/server/PowerManagerService;
const/16 v3, 0x10
#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$[COLOR="Lime"]7100[/COLOR](Lcom/android/server/PowerManagerService;I)V[/COLOR]
iget-object v2, p0, Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;->this$0:Lcom/android/server/PowerManagerService;
const/4 v3, 0x1
#setter for: Lcom/android/server/PowerManagerService;->mWaitKeyguardDraw:Z
invoke-static {v2, v3}, Lcom/android/server/PowerManagerService;->access$2002(Lcom/android/server/PowerManagerService;Z)Z
now recompile and put classes.dex back to android.policy.jar.
and lastly download the attached zip add your android.policy.jar and flash it, or extract and push manually the files to their corresponding folders
reboot, or just run
pkill zygote
from terminal as root and voila you should have crt effect working now,
alternative way is framework-res.apk method, just decompile it and open up /res/values/bools.xml
look for somehing like
and change its value to TRUE
and flash the zip, although this method will not show crt effect if your window animations speed is 0.5 and below while smali method crt will work regardless if you set your animations or not in developer settings
Click to expand...
Click to collapse
goid one bro, i will try...
but for editing framework-res.apk
actually we have to change, true to false... afaik.... btw it doesn't work in my device.... (jb)...
Sent from my IRIS_501 using xda premium
akash akya said:
goid one bro, i will try...
but for editing framework-res.apk
actually we have to change, true to false... afaik.... btw it doesn't work in my device.... (jb)...
Sent from my IRIS_501 using xda premium
Click to expand...
Click to collapse
Oh I wasnt sure, will recheck again as I was just basing it on memory
But
It should work after flashing the zip which contains a more completely built hwcomposer, youll notice if you previously had hwcomposer issues in logcat before theyll go away after flashing the new one
Sent from my H100 using xda app-developers app
thirdzcee said:
Oh I wasnt sure, will recheck again as I was just basing it on memory
But
It should work after flashing the zip which contains a more completely built hwcomposer, youll notice if you previously had hwcomposer issues in logcat before theyll go away after flashing the new one
Sent from my H100 using xda app-developers app
Click to expand...
Click to collapse
working like a charm bro...
akash akya said:
working like a charm bro...
Click to expand...
Click to collapse
Great:thumbup::thumbup::thumbup:
Sent from my H100 using xda app-developers app
Thanks for guide...
Got working on my MMX A110........
thirdzcee said:
so after trying endless number of times including analyzing the smalis of a dozen guides for crt effect and the mysterious libsurfacelinger losing hwcomposer error in logcat which causes the phone to soft reboot after crt animation, i finally have gotten it to work, so let us begin
1st off we need to decompile services.jar and open up smali/com/android/server/PowerManagerService$ScreenBrightnessAnimator.smali
look for this line (code in LIME might look different in your smali)
Code:
.line 2716
.restart local[COLOR="Lime"] v1 [/COLOR] #turningOff:Z
:[COLOR="Lime"]cond_e[/COLOR]
add this after the code, note color in LIME might be different in your smali
Code:
iget-object v4, p0, Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;->this$0:Lcom/android/server/PowerManagerService;
const/16 v3, 0x10
#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$[COLOR="Lime"]7100[/COLOR](Lcom/android/server/PowerManagerService;I)V
to make sure what access$ yours is, open up PowerManagerService.smali and look for somethings that looks like this
Code:
.method static synthetic access[COLOR="Red"]$XXXX[/COLOR](Lcom/android/server/PowerManagerService;I)V
.registers 2
.parameter "x0"
.parameter "x1"
.prologue
.line 110
invoke-direct {p0, p1}, Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
return-void
.end method
NOTE the $XXXX in RED as this is what you should put in your PowerManagerService$ScreenBrightnessAnimator.smali
Finally it should look like this afterwards( code in RED is what we added and color in LIME is your access$ which in my case was 7100)
Code:
.line 2716
.restart local v1 #turningOff:Z
:cond_e
[COLOR="Red"] iget-object v4, p0, Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;->this$0:Lcom/android/server/PowerManagerService;
const/16 v3, 0x10
#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$[COLOR="Lime"]7100[/COLOR](Lcom/android/server/PowerManagerService;I)V[/COLOR]
iget-object v2, p0, Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;->this$0:Lcom/android/server/PowerManagerService;
const/4 v3, 0x1
#setter for: Lcom/android/server/PowerManagerService;->mWaitKeyguardDraw:Z
invoke-static {v2, v3}, Lcom/android/server/PowerManagerService;->access$2002(Lcom/android/server/PowerManagerService;Z)Z
now recompile and put classes.dex back to android.policy.jar.
and lastly download the attached zip add your android.policy.jar and flash it, or extract and push manually the files to their corresponding folders
reboot, or just run
pkill zygote
from terminal as root and voila you should have crt effect working now,
alternative way is framework-res.apk method, just decompile it and open up /res/values/bools.xml
look for somehing like
and change its value from TRUE to FALSE
and flash the zip, although this method will not show crt effect if your window animations speed is 0.5 and below while smali method crt will work regardless if you set your animations or not in developer settings
Click to expand...
Click to collapse
THANKS A TON!!!!!!!!!!!!!!!!:good::good::good::good::good::good::highfive:
WORKS LIKE A CHARM !!!!!!!!!!!!! AWESOME!..............
Screen Lights On
I tried and working good.
Thanks a lot.
But getting lil bug.
If I screen off in locked screen, it give crt effect screen of den again its light on.
even in any msg light got on even i turned of notification lights.
can you tell me how to fix?
Thank a lot for this mod.
jigarmpattani said:
I tried and working good.
Thanks a lot.
But getting lil bug.
If I screen off in locked screen, it give crt effect screen of den again its light on.
even in any msg light got on even i turned of notification lights.
can you tell me how to fix?
Thank a lot for this mod.
Click to expand...
Click to collapse
Yes it is the only bug as of now , unfortunately I still have not found the proper line where to add the codes in smali due to difference in Samsung framework from ours, but if you leave screen alone screen timeout will just turn screen off without screen turning on again
Sent from my Nexus 7 using XDA Premium HD app
akash akya said:
working like a charm bro...
Click to expand...
Click to collapse
@akash akya buddy can u please make crt effect flash zip for stock 4.1.1 v1.11 jb ... canvas2 .. it would be wonderfull
Thanks
Awesomely Working! Just That When Lock Button Is Pressed After The CRT Again The LockScreen Appears! This Is Surely Gonna Be In My Next Release! Keep Up the Good Work Bro!
ankurbata said:
Awesomely Working! Just That When Lock Button Is Pressed After The CRT Again The LockScreen Appears! This Is Surely Gonna Be In My Next Release! Keep Up the Good Work Bro!
Click to expand...
Click to collapse
Yes but not pressing power and leaving screen alone to timeout will turn screen off without turning on again, will update this when I get the fix for it working
Sent from my H100 using xda app-developers app
One more goodie I have got as temporary solution....
Of there is a button on statusbar for power with keycode value=26 then its not turning the screen.
Like I did in my ui in the screenshot....
"""Hitting Thanks Don't Cost You Anything So Why Don't You Try Hitting It......."""
Sent From Mind Blowing Canvas Using SUVI-Heart Rom.....<3<3<3
BOND1987 said:
One more goodie I have got as temporary solution....
Of there is a button on statusbar for power with keycode value=26 then its not turning the screen.
Like I did in my ui in the screenshot....
"""Hitting Thanks Don't Cost You Anything So Why Don't You Try Hitting It......."""
Sent From Mind Blowing Canvas Using SUVI-Heart Rom.....<3<3<3
Click to expand...
Click to collapse
You can actually use the lidroid toggles lock now toggle instead of adding keycode
Sent from my H100 using xda app-developers app
But then again it would be much easier to put the keycode if you dint have lidroid toggles,,, thanks for the tip bond
Sent from my H100 using xda app-developers app
Guys , instead of editing services.jar .... only edit framework-Res.apk I.e in values / bools --> change config_animatescreenlights = false "
And then compile and flash it the zip containing hwcomposer.mt6577.so given by thirdzcee
Sent from my Micromax A110 using XDA Premium HD app
Akhilendra1711 said:
Guys , instead of editing services.jar .... only edit framework-Res.apk I.e in values / bools --> change config_animatescreenlights = false "
And then compile and flash it the zip containing hwcomposer.mt6577.so given by thirdzcee
Sent from my Micromax A110 using XDA Premium HD app
Click to expand...
Click to collapse
that is already posted in op as the alternate method but be advised if you set your animations speed to x.5 or off crt effect wont show
thirdzcee said:
that is already posted in op as the alternate method but be advised if you set your animations speed to x.5 or off crt effect wont show
Click to expand...
Click to collapse
Actually sir I'm just giving my opinion if someone did not try by framework-res method . And yep by this method as u said setting animation speed off or x.5 then animation won't be shown .
Sent from my Micromax A110 using XDA Premium HD app
so sad..it can't work on JB 4.1.2...can anyone share their hwcomposer of 4.1.2 which already have been edited for crt effect..
Btw, thanks thirdzee for your reply....

[oreo] WifiDisplay fix

[oreo] WifiDisplay fix
WfdService.apk
smali\com\sonymobile\wifidisplay\WFDSessionHelper.smali
Remove red
.method public monitorForegroundApp()V
.locals 3
.prologue
.line 107
const-string/jumbo v0, "user"
sget-object v1, Landroid/os/Build;->TYPE:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/ObjectZ
move-result v0
if-nez v0, :cond_0
.line 108
const-string/jumbo v0, "1"
const-string/jumbo v1, "persist.debug.wfd.appmonitoring"
const-string/jumbo v2, "0"
invoke-static {v1, v2}, Landroid/os/SystemProperties;->get(Ljava/lang/String;Ljava/lang/StringLjava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/ObjectZ
move-result v0
.line 107
if-eqz v0, :cond_0
.line 109
const-string/jumbo v0, "WFDSessionHelper"
const-string/jumbo v1, "Disable foreground application monitoring"
invoke-static {v0, v1}, Lcom/qualcomm/wfd/Log;->d(Ljava/lang/String;Ljava/lang/StringV
.line 110
return-void
.line 113
:cond_0
new-instance v0, Ljava/lang/Thread;
new-instance v1, Lcom/sonymobile/wifidisplay/WFDSessionHelper$1;
invoke-direct {v1, p0}, Lcom/sonymobile/wifidisplay/WFDSessionHelper$1;-><init>(Lcom/sonymobile/wifidisplay/WFDSessionHelperV
invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/RunnableV
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
.line 140
return-void
.end method
Click to expand...
Click to collapse
system\etc\wfdconfig.xml
Modify 1 to 0
<!-- enable HDCP by default -->
<ContentProtection>
<Valid>1</Valid>
<!--
Valid values WFD_HDCP_2_0,
WFD_HDCP_2_1 and WFD_HDCP_2_2
-->
<Version>WFD_HDCP_2_2</Version>
<CPPort>6789</CPPort>
<!--
turn on/off audio encryption
-->
<EncryptAudio>1</EncryptAudio>
</ContentProtection>
Click to expand...
Click to collapse
system\build.prop
Delete persist.debug.wfd.enable=1
Add persist.debug.wfd.appmonitoring=1
Hi, thanks for the method, but could you explain how to remove red in
"WfdService.apk
smali\com\sonymobile\wifidisplay\WFDSessionHelper. smali
Remove red"?
M-Rom said:
[oreo] WifiDisplay fix
WfdService.apk
smali\com\sonymobile\wifidisplay\WFDSessionHelper.smali
Remove red
system\etc\wfdconfig.xml
Modify 1 to 0
system\build.prop
Delete persist.debug.wfd.enable=1
Add persist.debug.wfd.appmonitoring=1
Click to expand...
Click to collapse
Please share modded apk? My apktool not work.
Can you provide me moded file that you made?
What is exactly do and more info please ??!
Verstuurd vanaf mijn G8231 met Tapatalk
sensei_sai said:
Hi, thanks for the method, but could you explain how to remove red in
"WfdService.apk
smali\com\sonymobile\wifidisplay\WFDSessionHelper. smali
Remove red"?
Click to expand...
Click to collapse
Find the method, then delete the lines who are in red.
Envoyé de mon F8331 en utilisant Tapatalk
Pandemic said:
What is exactly do and more info please ??!
Verstuurd vanaf mijn G8231 met Tapatalk
Click to expand...
Click to collapse
It fix wifi display
Envoyé de mon F8331 en utilisant Tapatalk
Nimadroid said:
Can you provide me moded file that you made?
Click to expand...
Click to collapse
Here's mine. Confirm it is working !
drive.google.com/file/d/1f9F9mGxpre104AuYsx-S7JpZzvR34AyZ/view?usp=drivesdk
Bye !:good:
Guys please help!
I am trying to edit my WfdService.apk file but can't find "smali" files in there?
I am using Apk Editor on Android and I have also tried with Apk Studio on Windows but just can't find where "smali\com\sonymobile\wifidisplay\WFDSessionHelper. smali" is.
For all other steps I completely understand what I have to do but this step is a bit confusing for me so please give some hints
Thanks!
Here is a link for my stock WfdService.apk file in case someone wants to take a look:
https://drive.google.com/open?id=14zVKweaA6LaGQTgKg2euEKSXwePtEX6B
(Xperia X F5122 with rooted Oreo 34.4.A.0.364)
I solved screen mirroring issue by restoring my DRM keys with unofficial "rootkernel" and "ta poc"!
https://forum.xda-developers.com/showpost.php?p=74724162&postcount=2793
Now have rooted stock Oreo with all DRM functions working...
linpe said:
Guys please help!
I am trying to edit my WfdService.apk file but can't find "smali" files in there?
I am using Apk Editor on Android and I have also tried with Apk Studio on Windows but just can't find where "smali\com\sonymobile\wifidisplay\WFDSessionHelper. smali" is.
For all other steps I completely understand what I have to do but this step is a bit confusing for me so please give some hints
Thanks!
Here is a link for my stock WfdService.apk file in case someone wants to take a look:
https://drive.google.com/open?id=14zVKweaA6LaGQTgKg2euEKSXwePtEX6B
(Xperia X F5122 with rooted Oreo 34.4.A.0.364)
Click to expand...
Click to collapse
VTLO said:
Here's mine. Confirm it is working !
drive.google.com/file/d/1f9F9mGxpre104AuYsx-S7JpZzvR34AyZ/view?usp=drivesdk
Bye !:good:
Click to expand...
Click to collapse
PLease reupload!
echo124 said:
PLease reupload!
Click to expand...
Click to collapse
Hello !
Now you should be able to get it !
Please report !
https://drive.google.com/file/d/1dQ5smDIGgk3cvJWsAqkIMu1hYZU4BQX0/view?usp=drivesdk
here is my modified WfdService.apk from stock 41.3.A.2.157 ftf and of course i deodex that before modifying
but after i replace the original one i cannot connect to my tv,however it was only not support HDCP before
anyone can test it?
slsamg7112 said:
here is my modified WfdService.apk from stock 41.3.A.2.157 ftf and of course i deodex that before modifying
but after i replace the original one i cannot connect to my tv,however it was only not support HDCP before
anyone can test it?
Click to expand...
Click to collapse
Use the one posted previously.
VTLO said:
Use the one posted previously.
Click to expand...
Click to collapse
didn't notice that.thanks a lot!:good:
Confirmed working fine edited apk in attachment just replace and edit permissions then complete the steps :good: :good:
Hi, Can anyone tell why I am not able to find smali\com\sonymobile\wifidisplay\WFDSessionHelper. smali
XZ .192

Categories

Resources