[MOD] Phone.apk with complete caller image (4.3 odex/deodex)

shaftenberg

Senior Member
Jul 31, 2010
690
738
0
Cologne
Hi there,

I modded the Phone.apk so that the image of the caller is seen completely now. In addition I modded the call icons slightly so that you can see them regardless of the caller image color.

Push the .apk to /system/app, set the permissions to rw-r--r-- and delete Phone.odex if you have an odexed system!
Reboot and you are done, enjoy!
 

Attachments

Last edited:

Psychoferno

Senior Member
Mar 25, 2013
65
5
38
Porto Alegre
Thanks, I asked because I have not rooted Moto G and I wonder if this would be fixed in 4.4. Not yet my courage to root on my device, but as soon as I'll use your mod.

Thank you,
 

nightflame2

Member
Sep 20, 2013
11
2
0
Hi there,

I modded the Phone.apk so that the image of the caller is seen completely now. In addition I modded the call icons slightly so that you can see them regardless of the caller image color.

Push the .apk to /system/app, set the permissions to rw-r--r-- and delete Phone.odex if you have an odexed system!
Reboot and you are done, enjoy!
Hi can I ask a couple of questions:

1) Does this work on the Moto G XT1033 Dual SIM version

2) Did you compile this from the vanilla Google Android source, or some other method?

Thanks,

-S.
 

nightflame2

Member
Sep 20, 2013
11
2
0
velopnc Cordage

> 1) don't know...

I can confirm it works ok on a Dual SIM XT1033 purchased in Singapore. Thanks.

> 2) I decompiled the deodexed stock app with apktool

How did you do this exactly? I would like to do this for an Acer Liquid Z3 as well.

I had a go. I managed to deodex Phone.apk with apktool, and then used baksmali on Phone.odex.

./apktool if f/framework-res.apk

./apktool d Phone.apk Phone

./baksmali -a 18 -x Phone.odex -d f -o Phone/smali

I made the modification but when I tried to repackage I got the following error. Even if I make no modifications I get the same error when trying to build the .apk

./apktool b Phone Phone-deodexed.apk
I: Checking whether sources has changed...
I: Smaling...
[36,4] Error for input '.param': Invalid directive
[37,4] Error for input '.param': Invalid directive
[50,4] Error for input '.param': Invalid directive
[36,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[50,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: /home/mint15/root/a2/Phone/ap/Phone/smali/com/android/phone/CellBroadcastSms$MyHandler.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)

Any pointers would be really appreciated thanks.

-S.
 

im.itso

New member
Jun 13, 2014
2
0
0
And for the 4.4.2 odex
Hi Thanks a lot for the fix for 4.4.2
I have tried to install it to my Moto G, but unfortunately it did not succeded.

I have a stock phone and did not made any manual modifications to it.
What shall I do to install your fix?

Thanks in advance,
Itso
 

S0bes

Senior Member
Jan 1, 2012
870
967
133
Hi Thanks a lot for the fix for 4.4.2
I have tried to install it to my Moto G, but unfortunately it did not succeded.

I have a stock phone and did not made any manual modifications to it.
What shall I do to install your fix?

Thanks in advance,
Itso
Have you got gravitybox?
 

S0bes

Senior Member
Jan 1, 2012
870
967
133
Hi and thanks for your fast reply.
No i do not have gravity box (I have no root). Is there any possiblity to install this tweek without any root?

Thanks and regards,
You have two options:
1. Unlock your bootloader, root your phone, install xposed framework and gravitybox module. Gravitybox has possibility to fix call photo.
So, you still able to get OTA
2. Unlock your bootloader, install CWM, flash my patch through CWM.
Now you unable to install any OTA updates when their come. Because of editing system files.
It's up to you
 

satanas17

Senior Member
Jan 22, 2008
452
119
73
55
www.duckduckgo.com
And for the 4.4.2 odex
Hi all (and specially S0bes ;) )

Tried your patch...response of my G : "Android update" after install...test from a call, message is "Phone apk ended"...no issue to answer, but ring is the good one for contact but no answer possibility

Here is a short overview of my G's configuration :

Rom : Unofficial carbon rom (still in 4.4.2) : http://forum.xda-developers.com/showthread.php?t=2624111&nocache=1

Kernel : Latest Pink Kernel : http://forum.xda-developers.com/showthread.php?t=2634745

Full GAPPS with their updates...

I'm using full caller Id Pro...but it's a little bit buggy (nice but not 100%...) Would be nice to switch that ;)
 

S0bes

Senior Member
Jan 1, 2012
870
967
133
Hi all (and specially S0bes ;) )

Tried your patch...response of my G : "Android update" after install...test from a call, message is "Phone apk ended"...no issue to answer, but ring is the good one for contact but no answer possibility

Here is a short overview of my G's configuration :

Rom : Unofficial carbon rom (still in 4.4.2) : http://forum.xda-developers.com/showthread.php?t=2624111&nocache=1

Kernel : Latest Pink Kernel : http://forum.xda-developers.com/showthread.php?t=2634745

Full GAPPS with their updates...

I'm using full caller Id Pro...but it's a little bit buggy (nice but not 100%...) Would be nice to switch that ;)
If you'll give me a dialer.apk from your rom I can try to fix photo. But I'm preparing for exams now and I have not so much free time to use my PC (and this damn world cup every night...). So it can take some time
 
  • Like
Reactions: satanas17