Editing stock APK to work with CM10 - Android Q&A, Help & Troubleshooting

Can anyone explain or point me in the direction to the information about how and what to edit in a stock APK to work with a custom ROM. Basically what I did was take the stock swype APK from my SGS2 and try to put in on my wifi GT10.1 running CM10. It seemed to install correctly but when trying to make it my default keyboard it says it failed or is closed.

Related

[Q] dialer/contacts screwed up in ICS?

I remember the dialer before i upgraded to ICS had a tab at the top for contacts, i could click that and find the contact i wanted, hell i could even send a SMS from there by swyping the contact name to the side...
The new dialer for ICS has contacts listed under the menu button, meaning its one more keypress to get there. It just doesnt "flow" as well, if that makes sense.
Im wondering, has anyone else noticed this? how can i get back the old dialer? Are there any good tweaked ICS roms that have this (and other) improvements? Im sorry but search didnt come up with anything and this place is crazy (two android development sections!?!) i couldnt find anything when i searched that met what im looking for.
Im currently running XXLPQ stock
hey there, i am using resurrection remix 1.4 w/ siyahkernel3.1rc6, and the dialler app for ics has contacts at the top of the dialler if thats what your looking for? its got 3 tabs, dialler, recent calls, contacts
That's exactly what inn looking for, any chance you can post the dialer apk for me?
i will do a titanium backup and see if i can get hold of my apk
EDIT: the two files i attached, put it in sd card, titanium backup... i THINK this will work, i would to a nandroid backup just to be sure, then try restoring the apps (search for phone in titanium)
pm me if i dnt reply to this thread
No go on the titanium backup, didn't wanna show up in my list, i cleared my titanium folder so there was nothing else, put the files in, restarted, start TB, no backups found for the dialer.
Try using root explorer and finding your dialer apk and post that? I can manually replace the file
thats the thing its not called dialler lol, its called phone, and seems to be fragmented into two parts =S lol let me see if i can find someting else
EDIT: try un g zipping the file so it shows an APK file and try pushing it to the system maybe? or installing it
EDIT 2: i managed to extract these apk's from the resurrection remix rom:
contacts, contactsprovider, phone, phonesky
hope it helps
Perhaps both Phone.apk (and .odex if applicable) and Contacts.apk (and .odex if applicable)?
my bad let me find .odex
EDIT: cant find .odex but try push the above found in system (on the rom.zip)
emofishcake said:
my bad let me find .odex
EDIT: cant find .odex but try push the above found in system (on the rom.zip)
Click to expand...
Click to collapse
You don't have Phone.odex and Contacts.odex? That means YOU'RE on a deodexed ROM... But IF the other guy who is requesting the files is on an odexed ROM, he will have an extra step of removing the applicable .odex files. But he may already know that. (and it's always recommended to back anything up that you may end up needing again if you remove it)
pileot said:
I remember the dialer before i upgraded to ICS had a tab at the top for contacts, i could click that and find the contact i wanted, hell i could even send a SMS from there by swyping the contact name to the side...
The new dialer for ICS has contacts listed under the menu button, meaning its one more keypress to get there. It just doesnt "flow" as well, if that makes sense.
Im wondering, has anyone else noticed this? how can i get back the old dialer? Are there any good tweaked ICS roms that have this (and other) improvements? Im sorry but search didnt come up with anything and this place is crazy (two android development sections!?!) i couldnt find anything when i searched that met what im looking for.
Click to expand...
Click to collapse
I had that problem with "Resurrection rom 1.1" and believe me you better re-flash the ROM than s***ing with .apk-s... Didn't work for me so if you don't want to flash again you may use exDialer from the market, it's a good app, has the "swipe" functions and ICS themes, I used it for a week before switching to RR 1.4.
Ya def need one with an odex file...
pileot said:
Ya def need one with an odex file...
Click to expand...
Click to collapse
No... you don't.
Back up the .apk file you intend to replace, along with their corresponding .odex file. Then REMOVE the .odex file and replace the .apk.
For example, if he gives you Phone.apk, and you have Phone.apk and Phone.odex, then COPY your original copies of Phone.apk and Phone.odex to a safe place, then delete Phone.odex, and replace your existing Phone.apk.
I've done this before, and used a deodexed Phone app on my odexed firmware.
Tried that but it didn't seem to work, after restart i lost service and couldn't dual out and had several other services complain on me, perhaps it's not comparable with my system?
pileot said:
Tried that but it didn't seem to work, after restart i lost service and couldn't dual out and had several other services complain on me, perhaps it's not comparable with my system?
Click to expand...
Click to collapse
If his version of Android is different than yours, then his apps probably wouldn't work for you.
Going back to read the thread, he said he is on Resurrection Remix 1.4. Looking at the thread for that ROM, it is AOKP based, with elements from CM9. What firmware are you on? You said you're on ICS, but you never mention specifically what ROM. Are you on stock? Then yeah, his apps probably won't work for you.
damn a shame it wouldnt work, try out go dialler tho if you want quick contacts access, from the dialler you just have to swipe to change to contacts... i used to use it but the themes arent as good as the ones we have lol
That would explain it I'm running LPQ stock...
pileot said:
That would explain it I'm running LPQ stock...
Click to expand...
Click to collapse
I've not seen any mods for stock ICS to have this. A quick google search also turns up nothing for stock ICS.
So if you absolutely want this in ICS, you will need to flash a custom ROM.
EDIT to add: I should rephrase; you also have the option of using a third party dialer that has contacts integrated. But if you want to have the dialer that is included in the ICS ROM to have the contacts tab, you'll need to flash a custom ROM.
ctomgee said:
I've not seen any mods for stock ICS to have this. A quick google search also turns up nothing for stock ICS.
So if you absolutely want this in ICS, you will need to flash a custom ROM.
EDIT to add: I should rephrase; you also have the option of using a third party dialer that has contacts integrated. But if you want to have the dialer that is included in the ICS ROM to have the contacts tab, you'll need to flash a custom ROM.
Click to expand...
Click to collapse
I would be fine with a custom rom based off one of the samsung sources but i dont frequent this side very often (usually on the asus transformer forum) to know which are good and which to avoid. Any suggestions?
pileot said:
I would be fine with a custom rom based off one of the samsung sources but i dont frequent this side very often (usually on the asus transformer forum) to know which are good and which to avoid. Any suggestions?
Click to expand...
Click to collapse
Not from me, I'm on stock.
Dialer messed up
I don't know others , but this really bother me.
Any solution without using a custom ROM ?

[Q] [Importing/Overvriting System's apk]

Hi all,
I'd like to change the contacts application I have in my ICS Rom with another one modded apk, I've tried with Root Explorer (replacing, changing permissions), with Titanium Backup (removing contacts and trying to install this apk), and replacing the contacts.apk in the system/app folder in the Rom flashable zip, but nothing was worth it. All i get is an error message that the application couldn't be opened.
What should I do to get it work? There's any particular procedure to overwrite a "default" application that come with the rom with another one?
How do I create a flashable zip to install it from CWM? Is it just enaugh to have the *.apk or I have to compile it in another way?
PS: I've also tried simply installing the new contacts.apk but it says "application not installed"
Thanks to everyone!
I could be mistaken/misunderstanding (but I researched when I wanted to replace battery icon) - but I think you would have to make sure you were on a de-odexed ROM..
Although when I tried to replace the camera.apk with the modified Gingerbread one on here, I got the same issue - so make sure the contacts apk you are trying to replace it with is for ICS also!
Yeah, I explain, I'm trying to import the contact.apk that came with the Foxhound ICS rom in my Resurrection ICS rom.
Both of them are ICS based
prinzollo said:
Yeah, I explain, I'm trying to import the contact.apk that came with the Foxhound ICS rom in my Resurrection ICS rom.
Both of them are ICS based
Click to expand...
Click to collapse
Yeah, but FoxHound is stock based, and Resurrection Remix is AOKP based. I don't think that will work.
You're right, I thought that too, but the contacts app is the stock one on the Resurrection, even if it's based on AOKP. So, in theory, the substitution should be possible..
If you have a custom rom just open the rom with winrar and delete what you want and add to replace then close winrar and flash .
jje
Theory doesn't always work in practice.
@ctomgee: ahahahah I know that
@JJEgan: I've already tried that, but even when I flash the Resurrection (with new contacs in the flashable zip file) I got an error when opening contacts, furthermore android.acore process die after tot seconds..
prinzollo said:
@ctomgee: ahahahah I know that
@JJEgan: I've already tried that, but even when I flash the Resurrection (with new contacs in the flashable zip file) I got an error when opening contacts, furthermore android.acore process die after tot seconds..
Click to expand...
Click to collapse
In that case its a non compatible apk for your firmware .
jje

All amaze 4g devs stumped with replacing stock dialer/contacts on leaked ICS.. help?

We have managed to replace all of the stock apps with AOSP versions- I did QUITE a bit of research and found two POSSIBLE solutions, but I'm missing something to make it work.. first what apks do I need to get to replace the stock dialer/contacts of HTC roms? I know contacts(isn't dialer included in this?), I'm assuming ContactsProvider.apk.. what about dialer.apk or phone.apk? Where would be a good source to get the aosp apks for our 4.0.3 rom? We got ours from post 7 and 12 here, but I think we are missing some.. they worked flawlessly with every other app replacement though.
Then how do I get them to work properly? I found two possible methods:
Here http://forum.xda-developers.com/showthread.php?t=1219029 it describes how to get the packages.xml just fine, and I have mine(attached in thread) but I can't seem to figure out what I need to change, or decompile the manifest.xml for the files I have tried to replace..
Another thread explained that the replacement files need to be signed by the same key, so I scanned all the APKs and found out which had the same key, signed those with the apps I was trying to install, and it WORKED.. sort of. Either I didn't properly remove the htc dialer/contacts or I didn't find the right aosp apk's to replace them with-- it booted, but the contacts and dialer didn't show up at all(it did however associate phone and contacts with 3rd party replacements I had installed)
You wouldn't be helping JUST ME- no one has been able to do this successfully yet. If anyone can give me a definitive method, or even a good direction to go, this will help all of us in multiple ways(may even help me with building our CM too)!

[Q] AOSP 4.2 Messaging (mms.apk) on 4.0+?

Is it possible to install the 4.2 mms.apk on a previous build, specifically 4.1.1 Sense?
I've downloaded several AOSP ROM's and extracted the mms.apk and mms.odex files from /system/app, then pushed them to /system/app on my phone, changed permissions, and rebooted. Nothing at all happened.
If it helps, the icon for the .apk isn't displaying in root explorer, just the stock bugdroid icon. Also if I try to install the apk through conventional means it tell me "there was a problem parsing the package."
I installed this stock 4.1 messaging app and it works great so I think it's possible, but it's based on 4.1 and doesn't have the group messaging feature that I'm after. I really like the stock app and would rather not use a third party, they just don't work for me.
I attached the specific .apk I'm trying to install.
You ha e to be careful as not all aosp apps built from source will be able to be used on your device. I could give you mine but unless your on the same device you will get the error. Also most Roms no longer use an odex file. The group messaging feature is already built into the 4.1 CM messaging app. Other then that the simple answer is no as you don't have the proper frameworks needed to support the apk.
Please search before opening a new post.
This has been covered hundreds of times.
Batcom2

[Q] Cannot revert back to stock mms.apk the reverted one.

Dear friends, I want to revert the inverted mms.apk to original white backgound on my n.e.a.r. rom, however when I try to replace the inverted mms.apk with the stock one it tells me that the app has stopped. Any ideas on how can i revert back to stock. Another question is why some apks install without problems and others cannot be installed. I mean if for instance i want to take a camera apk from one rom and place it to another it will not install correctly. Why is that.

Categories

Resources