{RAY}[PORT/PATCH][JB] Xperia 2013 Patch ROM 4.1.2/4.2.2 (22-05-13)

Rizal Lovins

Recognized Developer / Recognized Themer / Recogni
May 30, 2012
1,612
15,924
153
Bandung
developer-rizal-lovins.blogspot.com
ABOUT ME
WHO IS MASTER RIZAL LOVINS ???

JUST FOLLOW ME OR ADD ME AS YOUR FRIEND ON SOCIAL NETWORKS




I'm not great Developer, I'm just share more choice for you guys :)
Everything you can feel like Xperia 2013 :p
Experience Everything SONY has embedded :cowboy:



Hello Xperia 2011 community ... :laugh:

I am now offering a patch ROM Official Xperia 2013 build 12.0.A.1.211 for the CUSTOM JELLY BEAN ROM 4.1.2 & 4.2.2 Xperia 2011

This patch is based from Xperia SP and from my Xperia V using Jelly Bean ROM

This patch not one apps will be replaced but will be removed some apps, this is for more free space on system ROM ... the Patch fully modified by me and some porting library to get it work almost all applications from Xperia 2013

This is very simple if you want flashing custom Jelly Bean ROM with almost all features from SONY Xperia 2013

DISCLAIMER
Code:
#include 
/*
* 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
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

FEATURES WORKING :

Code:
- Added SONY Media Applications Xperia SP
- Mobile Bravia Engine 2 for Enhance viewing Image Quality in Album & Movies
- White Balance Driver from Xperia SP for enhance display Quality
- Timescape Xperia V JB for FB & Twitter via Xperia
- Socialife Xperia Z Modified again by me for FB/Twitter/Youtube/Google Reader via Socialife
- Xperia SP Keyboard with fix smiley & symbol
- Movies with download video info
- Album with online photos
- Slideshow in Album but not SensMe Slidshow (SensMe Slideshow coming soon)
- Photo Editor
- Walkman Xperia SP
- Walkman Music extension for find info music on web
- Walkman ClearAudio+ fully working
- Walkman Music Widget 
- Walkman Visulaizer (only work in 4.1.2)
- Photos & Video Widget 
- FB Music Like (but no TrackID link)
- Friend's & Music in Walkman 
- PlayNow
- Latest TrackID Mod with Customized added 
- Xperia 2013 Bootanimation
- Xperia 2013 Charging Animation off 
- Xperia Launcher
- New Theme Stock Xperia (Lovins Xperia Theme)
- SONY Select link in Playstore

FEATURES NOT WORKING :

Code:
- xLoud in Walkman
- ClearPhase in Walkman
- S-Force in Walkman
- Small Apps 
- Edit/Download Music Info in Walkman
- SensMe in Walkman
- SensMe slideshow in Album 
- Camera Stock Xperia 2011 ( I think is very difficult to get it work )

CHANGELOG :

Code:
[B]Changelog Version 3.0 :[/B]
- Fixed compatibility kernel, so you can use all kernel for your device
- Fixed always reboot to recovery when install this patch
- Removed some framework stuff for fixing compatibility
- Removed some library, for fixing in all ROM original CM/AOKP/Paranoid/PAC & ETC
- Fixed line in build.prop, for improve performance SONY media apps 


[B]Changelog Version 2.0 :[/B]
- Removed AudioEffectService.apk (not installed)
- Removed SwiqiSettingService.apk (not installed)
- Removed all drm driver (for fixing Patch on JB 4.1 ROM)
- New media_profile.xml for better camera quality
- Disable buggy video 720p recording (on kernel supported 720p)
- Removed some stuff library for fixing Patch on JB 4.2
- Fix bug on some app (for more stable)
- Updated gapps
- Updated Google Now/Google Search & modified again, also added new lib for this, for fixing bug on Google Now
- Updated Google Play Store to 4.1.6 (Original not modified)
- Updated Google Play Service  
- Added Xperia SP Wallpaper picker
- Added Xperia SP Sound picker
- Added srcipt for deleting system>media>video
- Added script for deleting VideoEditor.apk
- All stuff signed 
- All stuff ZipAligned for better performance apps


[B]Changelog Version 1.0 :[/B]

- Initial Release
- Removed Bloatware Automatic
- Removed some CM/AOKP/PAC apps Automatic
- Ported Driver sound ALSA Fully working for better audio 
- All system framework from Xperia Z JB Deodexed
- New gps.conf Xperia 2013
- Optimizing led flash & torch 
- Latest driver sound from Xperia SP
- Patching SemcGenericUxpres.apk
- Fixed Walkman music extension not installed
- Fixed layout SoundEnhancement Xperia SP (Clear Audio EQ) 
- Fixed smiley & icon Xperia SP Keyboard
- Added build.prop line for SONY Media Apps
- Added sony optimized audio resampling
- New gapps inverted 
- Updated some gapps
- Removed face unlock in gapps
- Updated Google Play Store 4.0.27 Blue Black Edition

DOWNLOAD :

NEW Version

Download Patch v.3.0 Official JB ROM Xperia 2013 for Xperia 2011

Download Latest GAPPS For JB 4.2.2

Download Latest GAPPS For JB 4.1.2

Download Walkman Music Visualizer (only work on JB 4.1.2) Install Normally

Download Stock Xperia Theme (Lovins Xperia Theme/Theme Chooser)

OLD Version





HOW TO INSTALL :

- Download a ROM Original you want to use (JB 4.1.2 & 4.2.2) i mean like CM10.1/AOKP/PAC ETC without modifications
- Download This Patch
- Please Download GAPPS modified by me
- Make sure you have a backup
- Flash kernel
- Reboot into Recovery
- Wipe data
- Wipe cache
- Wipe dalvik cache
- Format system
- Install the ROM you want to use
- Install Patch
- Install Gapps
- Reboot


INSTRUCTIONS AFTER INSTALLATION :

First change this line in your build.prop with text Editor

Code:
ro.product.manufacturer=SEMC
TO
Code:
ro.product.manufacturer=Sony Ericsson
change this line in your build.prop

Code:
ro.com.google.clientidbase=android-google
TO
Code:
ro.com.google.clientidbase=android-sonyericsson

Reboot again ....

ENJOY!!! :p :good: :cowboy: ;)


NOTE : THIS IS NOT COMPATIBLE ON BASED ICS ROM!!! YOU WILL GET BOOTLOOP



CREDITS :
Code:
    * [URL="http://forum.xda-developers.com/member.php?u=4663391"][B]abcdjdj[/B][/URL] For Xperia SP system dump [URL="http://forum.xda-developers.com/showthread.php?t=2240516"][B]Here[/B][/URL]
    * [URL="http://forum.xda-developers.com/member.php?u=3085909"][B]ra3al[/B][/URL]  For Xperia Z Launcher [URL="http://forum.xda-developers.com/showthread.php?t=2103403"][B]Here[/B][/URL]
    * [URL="http://forum.xda-developers.com/member.php?u=4898631"][B]erorcun[/B][/URL] For Original Socialife [URL="http://forum.xda-developers.com/showthread.php?t=2229625&nocache=1"][B]Here[/B][/URL]
    * Thanks to SONY for Awesome apps on Xperia 2013 :good:
    * All Member XDA-Developers
    * All Member Official Group Xperia Indonesia

      Excuse me if i forgot someone, just post in this thread or PM me
 
Last edited:

Rizal Lovins

Recognized Developer / Recognized Themer / Recogni
May 30, 2012
1,612
15,924
153
Bandung
developer-rizal-lovins.blogspot.com
GUIDE Xperia SP Lockscreen Only For JB 4.1.2

Visit this thread for how to decompile >>CLICK HERE<<

Required file from Xperia SP

- Xperia SP android.policy.jar deodexed ( for source code ) Download in attachcement
- Download Xperia SP Lockscreen modified in attachcement



Instructions :


- Red (remove code)
- Blue (add code)
- Green (change/replace code)


Step 1
- Decompile Xperia SP android.policy.jar
- Go to smali/com/android/internal/policy/impl and copy ExtendedKeyguardScreen.smali and ExternalLockScreen.smali
- ExternalLockScreen.smali need to be editing

Find invoke-static {p0, v4}, Lcom/android/internal/policy/impl/ExternalLockScreen;->validateExternalLockScreen(Landroid/content/Context;Landroid/content/ComponentName;)Z

Code:
.line 238
    sget-object v9, Lcom/android/internal/policy/impl/ExternalLockScreen;->sLockScreenInfoLock:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v9}, Ljava/util/concurrent/locks/Lock;->unlock()V

   [COLOR="Red"] .line 241
    if-nez v4, :cond_2[/COLOR]

    .line 242
    invoke-static {p0}, Lcom/android/internal/policy/impl/ExternalLockScreen;->getExternalLockScreenPackage(Landroid/content/Context;)Landroid/content/ComponentName;

    move-result-object v4

    [COLOR="red"].line 246
    :cond_2
    invoke-static {p0, v4}, Lcom/android/internal/policy/impl/ExternalLockScreen;->validateExternalLockScreen(Landroid/content/Context;Landroid/content/ComponentName;)Z

    move-result v8

    .line 250
    if-eqz v8, :cond_3[/COLOR]

    .line 251
    invoke-virtual {v4}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v9
Find .method private static validateExternalLockScreen(Landroid/content/Context;Landroid/content/ComponentName;)Z


Code:
 .method private static validateExternalLockScreen(Landroid/content/Context;Landroid/content/ComponentName;)Z
    .locals 4
    .parameter "context"
    .parameter "info"

    .prologue
    const/4 v1, 0x0

    .line 131
   [COLOR="red"] if-eqz p1, :cond_0[/COLOR]

    invoke-virtual {p1}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v2

   [COLOR="red"] if-eqz v2, :cond_0[/COLOR]

    invoke-virtual {p1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v2

   [COLOR="red"] if-nez v2, :cond_1

    .line 132
    :cond_0
    const-string v2, "ExternalLockScreen"

    const-string v3, "External lockscreen name and package info has not been set correctly!"

    invoke-static {v2, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
[/COLOR]
    .line 147
    :goto_0
    return v1

    .line 140
    :cond_1
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    .line 141
    .local v0, pm:Landroid/content/pm/PackageManager;
    const-string v2, "com.sonyericsson.permission.EXTERNAL_LOCKSCREEN"

    invoke-virtual {p1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/pm/PackageManager;->checkPermission(Ljava/lang/String;Ljava/lang/String;)I

    move-result v2

   [COLOR="red"] if-nez v2, :cond_2[/COLOR]

    .line 143
    const/4 v1, 0x1

    goto :goto_0

   [COLOR="red"] .line 146
    :cond_2
    const-string v2, "ExternalLockScreen"

    const-string v3, "Validation of external lockscreen failed!!"

    invoke-static {v2, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0[/COLOR]
.end method
Save it!!!


Step 2
- Next extract your phone/rom android.policy.jar and decompile it with baksmali/smali program. From the output, copy and paste the ExtendedKeyguardScreen.smali and the modified ExternalLockScreen.smali to smali/com/android/internal/policy/impl
- Then open smali/com/android/internal/policy/impl/ LockPatternKeyguardView.smali

Code:
.field private mHasDialog:Z

.field mInfoCallback:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$InfoCallbackImpl;

[COLOR="Blue"].field private mIsExternallyLoadedLockScreenEnabled:Z[/COLOR]

.field private mIsTalkbackDrvModeOn:Z
Find # virtual methods.method public cleanUp()V

Code:
# virtual methods
.method public cleanUp()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    [COLOR="blue"]const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z[/COLOR]

    .line 1096
    iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreen:Landroid/view/View;

Find .method createLockScreen()Landroid/view/View;

Code:
      .prologue
   [COLOR="blue"] iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

    invoke-static {v1, v2}, Lcom/android/internal/policy/impl/ExternalLockScreen;->getLockScreen(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)Landroid/view/View;

    move-result-object v0

    .local v0, lockView:Landroid/view/View;
    if-eqz v0, :cond_1

    const/4 v1, 0x1

    :goto_0
    iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z

    .line 1038
    iget-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z

    if-nez v1, :cond_0[/COLOR]

    .line 1268
    new-instance v0, Lcom/android/internal/policy/impl/sec/LockScreen;

   [COLOR="blue"] .end local v0           #lockView:Landroid/view/View;[/COLOR]
    iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mConfiguration:Landroid/content/res/Configuration;

    iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

    iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

    iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

    invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/sec/LockScreen;->(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

    .line 1274
  [COLOR="Lime"]   .restart local v0       #lockView:Landroid/view/View;[/COLOR]
  [COLOR="blue"]  :cond_0[/COLOR]
    invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->initializeTransportControlView(Landroid/view/View;)V

    .line 1275
    return-object v0

   [COLOR="Blue"] :cond_1
    const/4 v1, 0x0

    goto :goto_0[/COLOR]
.end method
Save it!!! Recompile/compile, if done, download Xperia SP Lockscreen from here :
and install via recovery and put android.policy.jar modified to system framework

Thanks to Arsaw for the Guide :good:
 

Attachments

Last edited:

FEXTEZI

Senior Member
Jul 10, 2012
414
70
0
28
Just a small feedback for ROMS ! URUSHI
Working good with SJB 4.0 (4.1.2 android)-LuPuS v8(720p) AND FUSION 5.5
Working good with PACMAN nightly(4.2.2 android)-LuPuS v8(720p)

CM10 and SJB 4.0 NOT WORKING with 3.0.8 and 3.4 kernels from nAa(always going into recovery)
 
Last edited:

Rizal Lovins

Recognized Developer / Recognized Themer / Recogni
May 30, 2012
1,612
15,924
153
Bandung
developer-rizal-lovins.blogspot.com
Hello friends

new version released :good:

see new changelog at OP!! also download link :laugh:


Note : I don't want include Xperia Z Lockscreen for JB 4.1.2, because i don't have much time for this, and this need editing android.policy.jar on Your ROM, i know this is easy lolz :laugh: but make this patch not universal!!

maybe i'm just include guide for editing android.policy.jar to get Xperia Z Lockscreen working

Smallapps, this is need editing systemui, framework-res & all stuff in jar file to get it work, so make this patch not universal!! maybe i don't include forever in this patch :D
 
  • Like
Reactions: sh37413 and yonzz

Tan9890

Senior Member
Feb 9, 2012
166
38
48
Pune
Hi there...
I have a small request for Rizal...

Can you zip that only includes your camera?
Im guessing its not as simple as copy pasting the apk file in my system, considering that you have made an Overlay apk and other dependent files...

So...just a small request... It would be awesome if u did it...

Thanks a lot! I loved the cam...:)

Sent from my Xperia Ray using xda premium
 

Web_E

Senior Member
Sep 8, 2012
348
150
73
Bangalore / Kolkata
Hi there...
I have a small request for Rizal...

Can you zip that only includes your camera?
Im guessing its not as simple as copy pasting the apk file in my system, considering that you have made an Overlay apk and other dependent files...

So...just a small request... It would be awesome if u did it...

Thanks a lot! I loved the cam...:)

Sent from my Xperia Ray using xda premium
I support this. I don't want time-scape or fb inside feature.

Just want to ensure, if I install from here http://forum.xda-developers.com/showthread.php?t=2255797, will it be the same?
 

Rizal Lovins

Recognized Developer / Recognized Themer / Recogni
May 30, 2012
1,612
15,924
153
Bandung
developer-rizal-lovins.blogspot.com
New Xperia 2013 Patch released!!!

CHANGELOG :

Code:
[B]Changelog Version 3.0 :[/B]
- Fixed compatibility kernel, so you can use all kernel for your device
- Fixed always reboot to recovery when install this patch
- Removed some framework stuff for fixing compatibility
- Removed some library, for fixing in all ROM original CM/AOKP/Paranoid/PAC & ETC
- Fixed line in build.prop, for improve performance SONY media apps

DOWNLOAD :

NEW Version

Download Patch v.3.0 Official JB ROM Xperia 2013 for Xperia 2011

Enjoy!!! :laugh: ;)
 

fneelav

Member
Aug 11, 2012
47
0
0
Dhaka
Hi Lovins

I have tried to install your patch as you described over Racing Bean 3.1-9 (CM 10, 4.1.2), but Status Bar, Contact, Dailer, conversation (messaging) & Setting remain unchanged.
Gallery, Timescape, Movie, TrackID, Talk, Launcher, Walkman installed properly. Pls help me out.

Thanks for your work. :good: