yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] :
Awesome! Will try to implement it on Moto G this weekend! Cheers buddy! :) Btw, can you also try porting the systemui? Or some guide to port the systemui of xperia to cm12?
[Sony Cross-Device General] Kianush:
So isnt anyone gonna tell me why my framework.jar is only 309 bytes with no classes file?

i didnt find anything on the web

----

edit: I also took framework.dex from boot.oat and converted it to .jar bat after extracting there was an error and many files were extracted but there want any classes.dex yet!!!!!!!!!!!!!!!

please someone help me through

even if I get framework.jar from boot.oat how do i put it back in the end

the guide says for cm12.1 so why doesnt it work?!
[Sony Cross-Device General] :
Guide of Porting SystemUI > http://xdaforums.com/crossdevice-dev/sony/port-xperia-z5-systemui-particle-effect-t3206206
[Sony Cross-Device General] TeamMex:
awesome mate :D keep the good work :D

testing on XPerience ;D
[Sony Cross-Device General] Vynikal:
Same error..
[Sony Cross-Device General] :
Use	SomcInCallAdapterExtend smali that i Uploaded on #13 post
[Sony Cross-Device General] Vynikal:
I've tried that too, still problem with both apktool and romtools
[Sony Cross-Device General] :
Again De-compile classes.dex , then again Re-compile or do fresh start

I think you mashed somthing
[Sony Cross-Device General] mayank22:
What should I do to get it on a odexed rom?

My framework odex files are bundled in boot.art
[Sony Cross-Device General] Kianush:
DeOdex it I guess!:good:
[Sony Cross-Device General] xperiaz2:
use deodexer tool to deodex rom :)
[Sony Cross-Device General] xperiaz2:
wow thanks alot mate ;) :) cheers
[Sony Cross-Device General] xperiaz2:
yeah ;) i started working on that :)
[Sony Cross-Device General] mayank22:
Already tried it but deodex rom itself gives bootloop.

Isn't there a way to get it on odexed rom?
[Sony Cross-Device General] Kianush:
yeah I had the same problem on cm12.1 after deodexing and flashing the zip in was stuck on boot animation, any idea guys?
[Sony Cross-Device General] slipsystem:
Getting android.process.acore has stopped will try and logcat tomorrow.
[Sony Cross-Device General] Nicklas Van Dam:
error on phone.smali?

sir, please help me, i've got error in phone.smali when try to recompiling? am i miss something? or may be false in some part? :confused:

error.log

C:\Users\Nickl\Downloads\apktool>apktool b framework.jar.out

I: Using Apktool 2.0.1

I: Checking whether sources has changed...

I: Checking whether sources has changed...

I: Smaling smali_classes2 folder into classes2.dex...

framework.jar.out\smali_classes2\android\telecom\Phone.smali[828,4] Error for in

put '.parameter': Invalid directive

framework.jar.out\smali_classes2\android\telecom\Phone.smali[829,4] Error for in

put '.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)

and this all of requirement file that i mod it, hope you can fix it sir :confused: [MENTION=5491189]xperiaz2[/MENTION]
[Sony Cross-Device General] TeamMex:
:c I have some issue

Apparently everything works, but when entering the phone app restarts me, there is something else I should do?
[Sony Cross-Device General] :
Do wipe Data folder / Factory Reset
[Sony Cross-Device General] TeamMex:
I did and the continuous reboot, but now resets every 40s
[Sony Cross-Device General] Black_Eyes:
Logcat Maybe??
[Sony Cross-Device General] xperiaz2:
apply this superusermod

.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 9

const/4 v0, 0x0

return v0
.end method

&

invoke-static {v4, v0}, Lcom/android/server/pm/PackageManagerService;->compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I

move-result v4

if-eqz v4, :cond_c

;)
[Sony Cross-Device General] xperiaz2:
clear contacts storage data in settings/apps/all :)
[Sony Cross-Device General] :
Guys here is Tutorial , If you have Cyanogen build >> http://xdaforums.com/crossdevice-dev/sony-themes-apps/sign-apk-platform-keys-to-unlock-t3207136
[Sony Cross-Device General] slipsystem:
Thanks that worked like a charm.
[Sony Cross-Device General] sebastiandg7:
[MENTION=3877121]slipsystem[/MENTION] I have also got the same error.... And also when I open Phone app the device reboots. I am in cm12.1

Can you help me? [MENTION=5491189]xperiaz2[/MENTION]

---------- Post added at 02:12 PM ---------- Previous post was at 02:09 PM ----------

I have the same problem of our buddy....

I already have applied that superuser mod but im still getting the phone rebooted when opening phone app..

Help :( !
[Sony Cross-Device General] slipsystem:
I booted into recovery. Wipe Data, Cache and Dalvik
[Sony Cross-Device General] sebastiandg7:
It worked wiping data! Thanks
[Sony Cross-Device General] vandiaz_sairavinz:
hmmm

I change the language of Indonesian to English phonebook, InCallUI also fc, Restore Constants fc,

awaited his master fix ... thanks

on aicp build 30
[Sony Cross-Device General] MoazSalem:
[MENTION=5491189]xperiaz2[/MENTION] i got it working but if i called anyone there is no in callui it just gets me back to the dialer i can hear a sound but i cant reject or any thing what to do :confused:
[Sony Cross-Device General] sebastiandg7:
It would be great if you add the lockscreen Emergency call UI!

---------- Post added at 04:34 PM ---------- Previous post was at 04:25 PM ----------

It happened to me. You need to install the zip and then wipe data.
[Sony Cross-Device General] mms6430:
Anyone tried on cm11?
[Sony Cross-Device General] saved-j:
the same.

wiped everything twice. re-patched services. tried Serajr Xposed superuser mod (hack). in-call UI doesn't appear.

Phone and Google Services - FC when trying to make a call. After that, I hear the voice and can talk, but in-call UI doesn't appear to display.
[Sony Cross-Device General] MoazSalem:
try to make an clean install for cm12 than directly flash it after it ;) and did u do the hix code part ??
[Sony Cross-Device General] dekefake:
Hello mens ! I tried to port InCallUI too, using your method. Did the framework.jar trick, and installed apps. Now, everythinng is working except the most inportant : Calls.

When i dial a number, the phone just returns to bootanimation. Of course, i provided a logcat here : http://pastebin.com/2BWvCann

Hope [MENTION=5491189]xperiaz2[/MENTION] and other members will help me to find the problem. I tried to factory reset, without results.
[Sony Cross-Device General] devilmaycry2020:
Thanks op , I flash your file for CM12.1. but I got fc every time. Here is my logcat
[Sony Cross-Device General] dekefake:
Java.lang.NoSuchMethodError: No virtual method getVolumeType(Ljava/lang/String;)Landroid/os/storage/StorageManager$StorageType

Seems you need to port SEMC Storage stuff to get it working. Decompile framework.jar and goto smali/android/os/storage and copy and replace smali files inside the StorageManager.zip attchment.

java.lang.NoSuchMethodError: No virtual method getVoicemailString()Ljava/lang/String; in class Landroid/telephony/TelephonyManager

You skiped this step :

Go to android/telephony/TelephonyManager.smali add this method before .method public handlePinMmi

Of tutorial for porting Framework.jar before flashing InCallUI stuff
[Sony Cross-Device General] devilmaycry2020:
Thanks, sorry for my mistake, I haven't mode framework.jar yet before flash your file for cm12.1 so this could be I've got these errors,

Anyway you said skip step 2 or I have to follow all step,if something go wrong I must skip step 2, right?
[Sony Cross-Device General] dekefake:
Lol yeah you need all steps ofc
[Sony Cross-Device General] devilmaycry2020:
Please fix

classout\android\os\storage\StorageManager$ListenerDelegate$1.smali[26,4] Error for input '.parameter': Invalid directive

cause i'm using latest smali-2.1.0. Thanks
[Sony Cross-Device General] devilmaycry2020:
Just follow all step by OP, i've got FC android.process.acore. please help.
[Sony Cross-Device General] dekefake:
Hmm remove /data/com.android.contacts.prioviders

and other folders relating to phone
[Sony Cross-Device General] devilmaycry2020:
i didn't find out where it is.

---------- Post added at 11:59 PM ---------- Previous post was at 11:56 PM ----------

me too reboot everytime dial anumber. can't add contact, can't import contact
[Sony Cross-Device General] dekefake:
use a root explorer and goto data/data, and you will see app folders. remove the phone related ones.

For reboot, i figured out installing stock Dialer solved the problem, but inCallUI of Sony AND aosp one appears and its so annoying
[Sony Cross-Device General] FlamingPotato:
Did anyone try yet? I'd like to port it if it's possible but some help would be required.
[Sony Cross-Device General] devilmaycry2020:
Yeah,it's seem noone here mod successful because it's not working. OP

didn't help much.
[Sony Cross-Device General] xperiaz2:
its working use romtoolspc for compile & superusermod :)
[Sony Cross-Device General] devilmaycry2020:
I already modded superusermod, compiled no error but contact,phone call always got fc, and as I said before I couldn't add new contact,call a number got auto reboot the phone, why don't you mod Sony stock contact,phone call for cm12.1? It's worth for modding .thanks
[Sony Cross-Device General] -Mr.freeze-:
+1. I have this problem too
[Sony Cross-Device General] Tomi_Ohl:
Hello,

I'm getting errors when recomiling framework.jar:

..\3-Out\framework.jar\smali\android\telecom\Phone.smali[828,4] Error for input '.parameter': Invalid directive
..\3-Out\framework.jar\smali\android\telecom\Phone.smali[829,4] Error for input '.parameter': Invalid directive
..\3-Out\framework.jar\smali\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:378)
at brut.androlib.Androlib.buildSources(Androlib.java:305)
at brut.androlib.Androlib.build(Androlib.java:288)
at brut.androlib.Androlib.build(Androlib.java:261)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)

I'm getting this with normal apktool and advanced apktool also. I have tried to search for this romtoolspc, but all I found is an old tool for Galaxy Y and it's giving me hell lot of errors (I guess it's not the right one).

So, can you please link me this romtoolspc you are talking about?
[Sony Cross-Device General] -Mr.freeze-:
replace your method .method public final somcGetCommand to:

.method public final somcGetCommand(ILjava/lang/String;)Ljava/lang/String;
.locals 2
.param p1, "commandId" # I
.param p2, "option" # Ljava/lang/String;

.prologue
.line 384
const/4 v0, 0x0

.line 385
.local v0, "result":Ljava/lang/String;
iget-object v1, p0, Landroid/telecom/Phone;->mSomcInCallAdapterExtend:Landroid/telecom/SomcInCallAdapterExtend;

if-eqz v1, :cond_0

.line 386
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 388
:cond_0
return-object v0
.end method
[Sony Cross-Device General] sebastiandg7:
When I'm gonna make a call the device soft reboots.... has someone find a solution? I made it working in a cm12.1 from 2015-09-28... but now with 2015-10-30 is giving me this problem.... Need help.
[Sony Cross-Device General] mathewgx:
Please , can someone port it for RAY ? I'm using LegacyXperiaAOSP_urushi beta 2 from Gapinski : https://drive.google.com/folderview...Fb1Q5V09GVnpaQnJRVFpJTGh4Sk0&usp=sharing#list
[Sony Cross-Device General] verma.arun833:
Buddy how to fix soft reboot on dialer and fc import contacts
[Sony Cross-Device General] Tomi_Ohl:
Thanks, I'll try this when I get home, hope it will work :good:
[Sony Cross-Device General] sebastiandg7:
I'm in your same situation, try using a cm12.1 from september.

Enviado desde mi Moto G mediante Tapatalk
[Sony Cross-Device General] vwadam:
Edited classes.dex succesfully,recompiled without problem,installed new framework.jar with your EnfriarZ5Dialer.zip,phone is booted but i lost contacts and dialer app from menu,any idea? (using cm12 rom)
[Sony Cross-Device General] Tomi_Ohl:
Thanks, this really worked, it compiles without errors now.

First I had many FCs and soft reboot when launching dialer, but a factory reset solved it. So [MENTION=5812383]verma.arun833[/MENTION] [MENTION=5675575]vwadam[/MENTION] try making a factory reset, it'll help.

So after a factory reset, everything seemed to work flawlessly, no FCs, but soft reboot when trying to make a call. So it's an issue with incallui. I have replaced incallui from stock CM, now I don't have reboots, I can make calls, but actually nothing appears when calling. That means I can't pick up or hang up calls. Tried to remove the things added to framework.jar in step3, but didn't help.

So [MENTION=6091308]-Mr.freeze-[/MENTION] or [MENTION=5491189]xperiaz2[/MENTION] or anyone, could you help me to solve problems with incallui? Or at least could you tell me, how can I use stock one?

EDIT: Now removed 3., 4. and 5. step too, still the same problem (with stock incallui).

[MENTION=5764293]sebastiandg7[/MENTION] so you say it's working with build from 9.28. For me it's not working on 10.23. So we should find out what has changed between these two versions.

To capture a logcat, I think we should do it via PC using adb logcat.
[Sony Cross-Device General] sebastiandg7:
[MENTION=5120332]Tomi_Ohl[/MENTION] , I am in your same situation. The thing is... I succesfully ported this InCallUI in a cm12.1 from September 28, everything working perfect. Now I want to do it in a recent cm12.1 build... but I am getting this soft reboot when I want to call and when I receive a call.

Actually I'm not able to logcat this error... Could you do it?
[Sony Cross-Device General] -Mr.freeze-:
[MENTION=5120332]Tomi_Ohl[/MENTION]I read log when phone reboot, but I don't know how fix it.
[Sony Cross-Device General] vwadam:
[MENTION=5120332]Tomi_Ohl[/MENTION] thanks for idea,but factory reset not help,only systemui fc's after factory reset,but dialer and contact are not in menu
[Sony Cross-Device General] sebastiandg7:
[MENTION=6572046]wolfmannight[/MENTION] does this has something to do with the soft reboots when you make a call or receive one?
[Sony Cross-Device General] mathewgx:
I guess I'm not the only one who doesn't know how to decompile -recompile- sign apks.

Hope that someone could upload latest CM12.1 ROM for urushi , with all these ports included , as sony phonebook and dialer from this post , z4framework and camera from this post http://xdaforums.com/crossdevice-de...peria-z4-framework-sony-stock-t3154772/page73 , and systemui from here http://xdaforums.com/crossdevice-dev/sony/port-xperia-z5-systemui-particle-effect-t3206206.

It's time to enjoy our RAY running CM12.1 with sony's goodies.

If anyone has the abilities and the time to make such a ROM , I would be grateful "'
[Sony Cross-Device General] Tomi_Ohl:
Tried to add them as [MENTION=6572046]wolfmannight[/MENTION] said, causes error when recompiling framework-res.apk. It says 0x1040054 is not an integer value.

BTW tried this on yesterdays CM nightly, here I don't have soft reboot, but incallui doesn't appear. Can anyone confirm this?
[Sony Cross-Device General] :
Yup put InCallUI to /system/priv-app/InCallUI
[Sony Cross-Device General] sebastiandg7:
What cm12.1 date did you use? November 13?

Isn't it suposed InCallUI.apk is placed there by flashing the zip?
[Sony Cross-Device General] Tomi_Ohl:
It's there and I can find it even in Settings/Apps/All. Strange.

But what about those changes in framework-res.apk? Did they work for you?

Yes.
[Sony Cross-Device General] :
In Zip InCallUI is in /system/app/InCallUI/

So move it to priv-app

Then factory Reset
[Sony Cross-Device General] Tomi_Ohl:
Thanks for the idea, but no success.

I have moved the Incallui folder to priv-app, set permissions like for other apps (rwxr-xr-x on folder and rw-r--r-- on apk), now i get soft reboot on call.
[Sony Cross-Device General] :
hmm... Have you done this ? [ http://xdaforums.com/showpost.php?p=62120320&postcount=2 ]
[Sony Cross-Device General] Tomi_Ohl:
No I haven't (yet) but that one is for camera isn't it?

EDIT: okay I see it can fix an FC, maybe it could help in my case too, I'll try.

And I haven't modified framework-res.apk, what you said in #5th post, cuz it's giving error... Could it help?

And what about the one in #9th post?
[Sony Cross-Device General] :
Its not only for Camera , its require for Sony's app read and write storage compatibles

its also require for this port

#5 and #9 post is about AOSP , when you try to port for AOSP , those lines are not there , and public id also change.

but for CM12.x If you add the lines that [MENTION=5491189]xperiaz2[/MENTION] said are enough.
[Sony Cross-Device General] Tomi_Ohl:
Done, still reboot on calling. Wanted to get a logcat via adb, but can't.

Oh okay.
[Sony Cross-Device General] ak.akshay:
contact force close and when click on phone app mobile soft reboot

xperia sp cm12.1
[Sony Cross-Device General] yash989:
guys pls help me when i click on call my phone do soft reboot i mean make call
[Sony Cross-Device General] salah eltony:
+1
[Sony Cross-Device General] mayank22:
[MENTION=5491189]xperiaz2[/MENTION] i am getting soft reboot as soon as i call anyone or someone call me.

i have only done what you have written in the first post, do i need to do something esle too?
[Sony Cross-Device General] saved-j:
doesn't work with latest 12.1 builds.

Contacts app always FC.

Tried everything from here, everything compiles good, camera works fine, smallapps work fine, THIS doesnt.
[Sony Cross-Device General] Tomi_Ohl:
You should try to find with the help of logs, what file's missing. Use this guide. Thanks to [MENTION=6427265]Apexpredator[/MENTION] for the idea, he has been able to port this phonebook to more devices.
[Sony Cross-Device General] :
Lil Problem

Hi,

Huge Tnx To The Creator of The Guide...But I'm facing an issue...the dialer and contacts app works fine...calling is also functional but I'm constantly getting the message "com.android.process.media has stopped" My device is Android One 1st Gen (4GB variant) using CM-12.1 as base

Plz try to help me out..tell me what mistake have I committed?? tnx in advance :)
[Sony Cross-Device General] imalif:
got this

\3-out\framework.jar\smali\android\telecom\Phone.smali[828,4] Error for input '.parameter': Invalid directive

..\3-out\framework.jar\smali\android\telecom\Phone.smali[829,4] Error for input '.parameter': Invalid directive

..\3-out\framework.jar\smali\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
[Sony Cross-Device General] sebastiandg7:
Is this necessary? If it does, what hex value should I use? Can I use whatever I want wich is not being used?
[Sony Cross-Device General] mayank22:
[MENTION=6427265]Apexpredator[/MENTION]

sorry to bother you again but i couldn't figure out the error causing soft reboots. I am attaching the logcat captured on dialing a number. It will be very kind of you to have a look at it and help me.
[Sony Cross-Device General] sebastiandg7:
The problem is here:

E/AndroidRuntime( 2326): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.content.ComponentName.equals(java.lang.Object)' on a null object reference

E/AndroidRuntime( 2326):	at com.android.server.telecom.InCallController.bind(InCallController.java:333)

E/AndroidRuntime( 2326):	at com.android.server.telecom.InCallController.onCallAdded(InCallController.java:163)

E/AndroidRuntime( 2326):	at com.android.server.telecom.CallsManager.addCall(CallsManager.java:1423)

E/AndroidRuntime( 2326):	at com.android.server.telecom.CallsManager.startOutgoingCall(CallsManager.java:659)

E/AndroidRuntime( 2326):	at com.android.server.telecom.CallReceiver.processOutgoingCallIntent(CallReceiver.java:105)

E/AndroidRuntime( 2326):	at com.android.server.telecom.CallReceiver.onReceive(CallReceiver.java:43)

E/AndroidRuntime( 2326):	at android.app.ActivityThread.handleReceiver(ActivityThread.java:2642)

E/AndroidRuntime( 2326):	... 10 more

You need to decompile your Telecom.apk, then go to the smali file InCallController.smali and find ".line 333" there you need to erase the call of method equals.

Thanks to [MENTION=5262839]STRYDER~007[/MENTION] for this solution. :)
[Sony Cross-Device General] mayank22:
thank you so much brother, you made my day:o
[Sony Cross-Device General] sebastiandg7:
Glad it worked! :good:
[Sony Cross-Device General] Rehank:
i got this error help me
[Sony Cross-Device General] Jeik:
So....

The dialer app runs fine,but whenever I try to make a call,my phone reboots.

Also,Contacts FC,and because of the mod,I cant accpet the ADB permission question on my phone(SystemUI FC),so I cant adb logcat either. .-______-.
[Sony Cross-Device General] mayank22:
I too had the same problem. Here is the solution:

first apply superuser mod and then do as explained in this post http://xdaforums.com/showpost.php?p=64593174&postcount=105
[Sony Cross-Device General] Jeik:
Where is the "Telecom.apk"? o.o

Nvm...Priv-app

EDIT

Now I get FC on Contacts when I try to make a call
[Sony Cross-Device General] mayank22:
Have you applied superuser mod?
[Sony Cross-Device General] Jeik:
Yep,I implemented Small-apps(whole mod includes SuperUser Mod),and further modified the framework for the Phonebook.
[Sony Cross-Device General] mayank22:
Strange, me too got same problem but it was solved by superuser mod. May be you should post logcat so that some one can help.
[Sony Cross-Device General] mayank22:
[MENTION=5491189]xperiaz2[/MENTION] is there a way to do this for cm11 too?
[Sony Cross-Device General] MiyamuraNEET:
for android 6.0.1 too?