I want to modify the Phone.apk from teamhacksung CM9 B17 for Galaxy S.
What I want to do is to modify it that when I have an incoming call, to see the full picture of the caller. more precisely I want that the black rectangle where you have icon to answer or t reject, to be transparent.
It can be done. I got from the xda forum a moded Phone.apk for B16 where that rectangle is transparent.
I have attached a picture so that you understand what I'm talking about. i also have attached that transparent mod for B16.
Using Beyond Compare 3, I guess that I have to modify in the following file:
Phone.apk\res\layout\incall_touch_ui.xml and replace:
<com.android.internal.widget.multiwaveview.MultiWaveView android:id="@id/incomingCallWidget" android:background="@android:color/black" android:visibility="gone" android:layout_width="fill_parent" .......
with:
<com.android.internal.widget.multiwaveview.MultiWaveView android:id="@id/incomingCallWidget" android:background="@android:color/transparent" android:visibility="gone" android:layout_width="fill_parent" .......
Here comes the problem:
I decompile Phone.apk with Apk_Manager_5.0.2, change that word, save the file and the recompile.
After i install the phone.apk using a zip container from recovery, when I try to make a call or receive a call, I get the: "Voice calls not suported" error.
I tryed all the combinations for compiling: system app, signed/unnsigned; nonsystem app signed/unsigned. Same error.
What am I doin wrong? Any ideas?
Thanks.
similar problem here, but my Phone.apk just crashs
I've had similar issues on Samsung's GB ROMs. I had no problems with Contacts.apk, MMS.apk and DialerTabActivity.apk. I could easily recompile them and moded versions would work. But recompiled Phone.apk kept FC-ing so I eventually gave up.
I don't know what tools themers use to make it work.
After recompiling the Phone.apk open it with 7zip, extract the file that you have modified and put it in the original phone.apk.
Inviato dal mio GT-I9000 usando Tapatalk 2 Final
copying the file did work, thanks for that tip. However the mod did not work, the lower area is still black :-(
You need to change some files from the apk manager to compile android 4.0 files. I can upload my apk manager whitch works as soon as I get home.
those apk manager changes (it's actually not a single change in apk manager but just using apktools 1.4.1) are only related to the smali/dex files. layout/*.xml aren't influenced by that.
These are the changes that I was talking about:
"No problem I used Apk Manager 5.x(dont know exactly). But I've done this two things with the APK-Manager:
-deleted the original aapt.exe in /others and copied the one from the platform tools folder in from the sdk(has to be done if you work with ics apps)
-(de)compiled with Apk-tool 1.4.1 instead of 1.4.3 as the newer version sometimes causes some errors. Just delete the Apkttool.jar in /others and download 1.4.1 from the apk tool webite and paste it in /other
afterwards everything should work fine.."
i know those changes (see above), they don't solve the problem though.
apktool 1.4.1 + copy unchanged files (everything but ressources.arsc and incall_touch_ui.xml): FC
apktool 1.4.1 + don't copy: FC
apktool 1.4.3 + copy unchanged files: no FC but contact pic is still the old size
apktool 1.4.3 + don't copy: FC
same proble here with GS2.
this incoming call screen filled with black is very anoying...
any news on how to fiw that?
phone transparent incoming call
That app does wgat it is supposed, ask mr goodle, for i don't kjnow where i have found it
i made it AOKP build 37
Thats great, but can you explain how to do that?
Cause i' use GS2, and not GS, adn with different rom, we have to use differents phone.apk.
So instead of asking you every time, i'd like to learn how to do it.
Thanks!
Decompiled
Edited
Compiled
Signed
Hi. That's how I was able to do it:
First, copy your Phone.apk from the system folder inside your phone to your computer. Do not use any other Phone.apk, because it may be another version and it will not work. Or extract the Phone.apk from the rom that you flashed to your phone and use it.
You must make some changes to the apk manager to complie/decomplile Phone.apk.
Here is the list with the changes. If you follow it exactly, it should work:
-delete the original aapt.exe in /others and copy the one from the platform tools folder from the sdk(has to be done if you work with ics apps) - you must install android 4.0 sdk. Google it and you will find it easy.
-(de)compile with Apk-tool 1.4.1 instead of 1.4.3 as the newer version sometimes causes some errors. Just delete the Apkttool.jar in /others and download 1.4.1 from the apk tool webite and paste it in /other
afterwards everything should work fine...
Then, when you get the unsignedPhone.apk, rename it to Phone.apk, and put it in a zip file and flash via recovery. Do not copy it with inside the phone because it will not work. If you don't know how to make a zip file, just download any mod (perka, reloaded ...) and open the zip with 7zip, delete any apk's you find in it, and drag Phone.apk inside the System folder from the zip, and then flash it via recovery.
Good luck.
If it does't work, send me an email: [email protected], and I will send you my apk manager that is allready modified and works to compile/decompile.
Was wondering if there is a themeing form for dummies on how to theme galaxy s3, or a list of themes for blazer rom. I want to change colors of mms, icons in pull down, change carrier label, basically change the color theme of touch wiz to match the new sype beta red theme(white, black, and red), just need pointed in the right direction not asking for someone to do it for me. All the post i could find were for themeing samsung epic touch and so on. Thanks in advance and i will hit the button if helped.
First you need to set up apktool on your computer/laptop. Google "How to Set Up Apktool". I don't know what OS your home computer/laptop so you'll have to tailor your set up.
I use Windows, here is a decent guide for Windows 7 x64
After you install the prerequisites (java, sdk etc) go here and grab the modified apktool.jar AND aapt.exe and place them in your apktool directory (it will replace the older ones you used in the guide, the one I linked to is a new, updated version that works with TW and AOSP very well)
After you have everything installed and apktool is ready to go, pull these files from your ROM and place them into your apktool folder (you can use adb pull or simple copy/paste the apk's from your system onto your SD then transfer them to your computer). You will need:
Code:
-/system/framework/framework-res.apk
-/system/framework/twframework-res.apk
-/system/app/SecMms.apk
-/system/app/SystemUI.apk
Place all of these apk's into your apktool directory. Now open a new command prompt window and "cd" your apktool folder. For instance, mine is C:\apktool\ so I type
Code:
cd apktool
Next, type
Code:
apktool if framework-res.apk
apktool if twframework-res.apk
This will install resources so you can now decompile apk's that use framework-res.apk and twframework-res.apk resources
Next you can decompile all of those apk's. SecMms.apk is the messaging app, SystemUI.apk is the statusbar and the two framework files are the system framework
To decompile:
Code:
apktool d framework-res.apk
After you make changes you recompile (your new apk will be in the framework-res/dist folder):
Code:
apktool b framework-res
You can alter the folder names of each of these. For example if you want the decompiled framework-res folder labeled per ROM you could do
Code:
apktool d framework-res.apk framework-res-blazer
So, to make everything red and black your going to have to manipulate both xml's and png's. For png's I suggest Paint.NET or GIMP, both are free. I honestly prefer Photoshop and have been using it for quite some time, however it is expensive (I think they do a free trial and have discounts for students). Pay special attention on ".9.png's", these are stretchable images and need to be treated differently (Google some guides on that)
For XML's. in framework-res/res/values/ you will find plenty of colors to change, especially for TW. I would go to colors.xml and change the holo_blue_light and holo_blue_dark to a red color (I use this tool to find appropriate hex colors that android uses). If you see an "ff" in front of the color it just means that the color will be shown 100% (no transparency).
So I would dig through those apk's, the easiest parts will be modifying the images as sometimes colors can be tricky to mod in xml's, but like I said, those two holo colors do control a lot. Same in the SecMms.apk and twframework-res
After you recompiled you apk's you need to copy over the META-INF folder AND the AndroidManifest.xml from the original apk to your new one ( I use WinRar, however 7-Zip is free)
Here is a guide I made on how to make a flashable zip after you made your apk's, just follow that and make a backup before flashing
Good Luck!
Hoping an "apktool" wizard can help me resolve a compile error driving me up a wall. I've been using apktool for past 6 months successfully making various system and data apk changes, but this one has me stumped. Experimenting with making a few simple color changes in my active Gmail v4.5.2 (inverted theme) apk. It successfully decompiles, but cannot recompile. To eliminate any of my changes, I started over and decompiled the Gmail apk... then immediately recompiled, but get the "No resource identifier found for attribute..." error (attached). I updated my JAVA and re-installed apktool... same issue. Anyone have guidance on what the issue might be? attaching screenshot of my CMD window commands in both WORD and PDF formats. Thx
EDIT: SOLVED I got it solved thanks to recognized themer "Ticklefish" in the UK. Turns out, the apk I was editing included 4.2 code (WidgetCategory)... and apktools could not handle this during recompile with my 4.1.2 framework. I just edited the 4 xml files which had the 4.2 code and removed those lines... made my theming edits... and it recompiled flawlessly. Then signed the apk and pushed to /system/app. If anyone else runs into similar apktool compile errors, this is why and how to resolve.
Hi everyone. I own the Samsung Galaxy J3 2016 carrier Virgin Mobile. I am attempting to decompile android.policy.jar to do some smali editing. And oddly enough a number of the general jars we all edit regularly to add mods such as reboot menu,etc. are pretty much empty files on my J3. The android.policy.jar file is only 309 bytes with nothing in it except a Meta INF folder with MANIFEST file in there but noting else at all. No classes.dex. Now I thought ok maybe its because I am not deodexed. So I looked in the arm folder in framework and there are indeed odex files in there but none for android.policy.jar nor other typical modded jars we tend to mod. Is this normal across the board for newer Samsung devices like the S6/7 models? Also when I decompile an apk like SystemUI.apk there are no smali files included with the decompiled apk. But the apk seems to decompile correctly and I can edit whats there just fine and recompile it and use it successfully. I just added a center clock mod to SystemUI in fact and it works fine. Just confused about what I am missing here. I seem to have all of my tools up to date for decompiling. Can anyone point me in the right direction? Or give me some insight on these new changes. Thanks
Hello,
I need your help!!
I have been customizing my Galaxy Tab S, which I recently updated to Lollipop, and I have successfully customized SystemUI.apk, SecSettings.apk, etc. However, when I wanted just change a value in framework-res, I got many FC's. I cannot even open Settings.
So, I decompiled framework-res and recompiled it without changing anything. The result is the same. I got many FC's and not even the power button is working. And, I need to reflash original framework-res.
As I normally use Apk Multi-tool (with Apktool 2.2.2.), I tested Advanced Apktool (4.1.0). The result is the same and the recompiled framework-res is not usable.
What am I doing wrong? Maybe there is something special about this framework-res?
Maybe it is the version of Apktool? What is the version which works for framework-res?
Which tool do you use to work with framework-res from Galaxy Tab S (Lollipop)?
By the way, I did not have any problem with Kitkat framework-res from Galaxy Tab S. Neither did I with Lollipop framework-res for Galaxy Note 3.
Can someone help?