Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Angry [PORT/PATCH][JB] Patching your ROM to look like Xperia 2013 with Almost All Features

OP Rizal Lovins

25th May 2013, 04:15 PM   |  #1  
Rizal Lovins's Avatar
OP Recognized Developer / Recognized Themer / Recognized Contributor
Flag Bandung - The Girl Next Door
Thanks Meter: 15,007
 
1,469 posts
Join Date:Joined: May 2012
More
ABOUT ME
WHO IS MASTER RIZAL LOVINS ???

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




Hello XDA community ...

First time, I ported to the ranks Xperia 2011

Finally, i successfully ported almost all features for all devices from Sony Xperia 2013,

And now offering a patch ROM Xperia 2013 build 12.0.A.1.211 for the CUSTOM JELLY BEAN ROM 4.1.2 & 4.2.2 All Device like CM10/CM10.1/AOKP/ParanoidAndroid/PAC

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 Patch
* 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
- 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 Slideshow
- Photo Editor in Album
- 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 
- Friend's & Music in Walkman 
- Latest TrackID Mod with Customized added 
- Xperia Z Launcher
- New Theme Stock Xperia (Lovins Xperia Theme) Theme Chooser

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

CHANGELOG :

Code:
Changelog Version 1.0 For All Device :
- Initilal Release for all device
- Full Compatibility for CM10/CM10.1/AOKP/ParanoidAndroid/PAC
- And All features mentioned on Features Working


Changelog Version 3.0 From Xperia 2011 line :
- 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 
- ZipAligned
- Signed


Changelog Version 2.0 From Xperia 2011 line :
- 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)
- 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


Changelog Version 1.0 From Xperia 2011 line :

- 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
- Updated Google Play Store 4.0.27 Blue Black Edition

DOWNLOAD :

NEW Version

Download Patch v.1.0 Official JB ROM Xperia 2013 for All Device

Download GAPPS For JB 4.2.2 from Goo.im

Download GAPPS For JB 4.1.2 from Goo.im

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

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



HOW TO INSTALL :

- Download 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
- Make sure you have a backup
- Reboot into Recovery
- Wipe data
- Wipe cache
- Wipe dalvik cache
- Format system
- Install the ROM you want to use
- Install Patch
- Install Gapps
- Reboot


ENJOY!!!


NOTE : PLEASE ALWAYS BACKUP BEFORE FLASHING THIS PATCH!!!

THIS PATCH DOESN'T SUPPORT BASED STOCK ROM (OFFICIAL ROM)

FOR LOW END DEVICES, PLEASE MAKE SURE YOU HAVE FREE SPACE ON SYSTEM ROM!!




CREDITS :
Code:
    * abcdjdj For Xperia SP system dump Here
    * ra3al  For Xperia Z Launcher Here
    * erorcun For Original Socialife Here
    * My brother ibanez7
    * Thanks to SONY for Awesome Media apps on Xperia 2013 
    * All Member XDA-Developers
    * All Member Official FB Group Galaxy S II / Galaxy S 4 & Galaxy W
    * All Member Official FB Group Xperia Indonesia

      Excuse me if i forgot someone, just post in this thread or PM me
Last edited by Rizal Lovins; 26th May 2013 at 01:51 AM.
The Following 54 Users Say Thank You to Rizal Lovins For This Useful Post: [ View ]
25th May 2013, 04:16 PM   |  #2  
Rizal Lovins's Avatar
OP Recognized Developer / Recognized Themer / Recognized Contributor
Flag Bandung - The Girl Next Door
Thanks Meter: 15,007
 
1,469 posts
Join Date:Joined: May 2012
More
SCREENSHOTS































Last edited by Rizal Lovins; 25th May 2013 at 05:44 PM.
The Following 13 Users Say Thank You to Rizal Lovins For This Useful Post: [ View ]
25th May 2013, 04:17 PM   |  #3  
Rizal Lovins's Avatar
OP Recognized Developer / Recognized Themer / Recognized Contributor
Flag Bandung - The Girl Next Door
Thanks Meter: 15,007
 
1,469 posts
Join Date:Joined: May 2012
More
GUIDE Xperia SP Lockscreen Only For JB 4.1.2 (JB 4.2.2 currently doesn't support)

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/ComponentNameZ

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

    .line 241
    if-nez v4, :cond_2

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

    move-result-object v4

    .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

    .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/ComponentNameZ


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
    if-eqz p1, :cond_0

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

    move-result-object v2

    if-eqz v2, :cond_0

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

    move-result-object v2

    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

    .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

    if-nez v2, :cond_2

    .line 143
    const/4 v1, 0x1

    goto :goto_0

    .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
.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;

.field private mIsExternallyLoadedLockScreenEnabled:Z

.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

    const/4 v0, 0x0

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

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

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

Code:
      .prologue
    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

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

    .end local v0           #lockView:Landroid/view/View;
    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
     .restart local v0       #lockView:Landroid/view/View;
    :cond_0
    invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->initializeTransportControlView(Landroid/view/View;)V

    .line 1275
    return-object v0

    :cond_1
    const/4 v1, 0x0

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

Thanks to Arsaw for the Guide
Last edited by Rizal Lovins; 25th May 2013 at 04:24 PM.
The Following 17 Users Say Thank You to Rizal Lovins For This Useful Post: [ View ]
25th May 2013, 04:18 PM   |  #4  
Rizal Lovins's Avatar
OP Recognized Developer / Recognized Themer / Recognized Contributor
Flag Bandung - The Girl Next Door
Thanks Meter: 15,007
 
1,469 posts
Join Date:Joined: May 2012
More
ABOUT SONY MEDIA APPLICATIONS



WALKMAN (Music Player) :



Walkman music player which has been in existence in the world music lovers ... why I call already in existence? .. since about 1979 the Walkman has been born ...

Year after year continues to change physical walkman and software, and finally of DAP (digital audio portable) perched on a phone is the SE W800 to W995 is a very powerful sound for the size of the phone in his time .. due to the use of technology ClearAudio (Clear stereo and clear bass), Around the year 2011, Sony released the Android Smartphone that in the mix with Walkman, the first time the W8 and continue to Live With Walkman.

in 2012 Sony released the new Walkman ... that in injek into Smartphone Xperia S.. proved the existence of technology ClearAudio ... and in the end Sony released the Walkman features in almost all implanted into a smart phone Xperia V with ClearAudio+ (Clear Bass, Clear Stereo, Dynamic Normalizer, Surround Sound VPT, xLoud, ClearPhase & s-Force Surround)



MOVIES with BE 2 :



Movies is a pretty good video player, with features similar to the sound of the music player (Clear Stereo, Clear Phase, xLoud & Surroundsound VPT) and with feature download video info, automatically your video title will be the same with video from You Tube if available in youtube



ALBUM with BE 2 :



Album to open the picture or photograph you with a unique look, and you can display your photos contained in social networks like FB, Twitter, Picasa
Last edited by Rizal Lovins; 26th May 2013 at 02:01 AM.
The Following 7 Users Say Thank You to Rizal Lovins For This Useful Post: [ View ]
25th May 2013, 04:21 PM   |  #5  
Mtakween's Avatar
Senior Member
Flag Dubai
Thanks Meter: 1,193
 
961 posts
Join Date:Joined: Nov 2012
Donate to Me
More
Great work

keep up ur Good Work

when i saw SS i was thinking about a Sec that this is an xperia device lol
26th May 2013, 12:08 AM   |  #6  
TexasLTE's Avatar
Senior Member
Flag Texas
Thanks Meter: 3,996
 
5,438 posts
Join Date:Joined: Apr 2011
Donate to Me
More
This Looks Like It Might Be Cool ...
26th May 2013, 02:37 AM   |  #7  
zeyadhan's Avatar
Senior Member
Flag tripoli
Thanks Meter: 130
 
486 posts
Join Date:Joined: Jul 2012
More
great work keep it up
26th May 2013, 04:32 PM   |  #8  
vanitea's Avatar
Senior Member
Flag bandung
Thanks Meter: 59
 
214 posts
Join Date:Joined: Jan 2012
More
Overall it's work fine on my phone except
1. I have to disable sound enhancment
2. Fb music like just stuck on creating post
I try to clear data xperia music like.apk but no data saved on it,
Any idea for that?



Sent from my innos i6c using xda premium
26th May 2013, 06:53 PM   |  #9  
de.rach29's Avatar
Senior Member
Flag Bogor
Thanks Meter: 116
 
268 posts
Join Date:Joined: Jan 2012
More
Xda Indonesia...good job bro.
Sent from my LG L9 using Tapatalk 2
The Following User Says Thank You to de.rach29 For This Useful Post: [ View ]
26th May 2013, 10:10 PM   |  #10  
mrpeev's Avatar
Senior Member
Thanks Meter: 56
 
189 posts
Join Date:Joined: Mar 2013
will this work on Sense based rom ?

edit: ahhh sry my JB version is 4.1.1 so it will not work definetly
Last edited by mrpeev; 26th May 2013 at 10:12 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes