[Q] [Importing/Overvriting System's apk] - Galaxy S II Q&A, Help & Troubleshooting

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

Related

rom build issue : user apps disappearing on reboot

i am currently building a rom for the samsung captivate built off 2.3.5.
The base im using is stock - deodexed/ ziped / minorly changed
this base flashes and works just fine!
what i am doing to it:
remove bloat.
- at&t apps,
- protips.apk
- remove broken swype
- remove stock email (not gmail)
- removed stock launcher
change to hacked camera.apk
remove bootsound
remove shutdown sound
change bootanimation
added user apps in data/apps
added widget picker in system/app
changed default wallpaper in framework_res.apk
changed install script
changed CSC
custom twwallpaperchooser
everything works fine through the install.
but durring the "setup" on first boot " phone setup wizard " will force close right at the step where you setup your google sign in.
BUT THATS NOT THE PROBLEM, (just the first sign of it)
the real problem is any apps installed after flashing do not show up in data/apps
any apps installed through the flash are there, but any installed after ARENT.
and no they arent on the SD card.
the apps will slowly disappear after installing one by one.
when i reboot THEY ALL DISAPPEAR!!!
it seems that the apps install to cache or memory.
as the memory gets cleared or you reboot, they get wiped away!
i have tried various things to fix this
i have rebuilt my rom MANY times.
with and without my framework res changed file
with and without my custom install script
with and without removing stock launcher
with and without changed CSC files.
with and without twwallpaperchooser
if i flash the base i was working from again, all is good.
this only seems to be an issue when i flash data/apps from the zip file. however i have used a script from a rom that successfully flashed data/apps before without this issue, so i do not think it is a permission problem....
im stuck and lost.
more specific, rewritten description i emailed to a few friends
holy hell i bet youve been busy...
me too, i finally have my rom built. for KH2 KJ1 and KJ2 !!
have it down to an easy process now. install script working!
but im having one final issue and cant find any useful info on it anywhere and its very specific
**I know KJ1 and KJ2 install any app to the SD if possible by default. any app on SD will not be affected by this issue ***until it is moved to phone
if I build my rom to install apps to data/app (through cwm flash )- any app that gets installed after (through market or sideload) will slowly disappear after some use or immediately after reboot. they also will not show up in data/app or system/app when installed ** once again not including apps on SD. and if apps on SD are moved to data/app they do not end up there. they disappear.
this leads me to beleive that they are installing to cache or memory, as the memory gets cleared or the phone reboots. they are gone!
if i build my rom without user /data/apps (and without that part of the script).
everything is fine. any app installed after shows up in data/app and is still there after reboot.
i have also used unmodified scripts with and without the package_extract ("data", "/data")
that have been known to work with the original rom they were taken from. without the issue i am seeing.
so i do not think it is a script / permission issue not allowing the system to write new data to that location. but i could be wrong.
my rom is ready for release once i can get this last part figured out. otherwise ill have to release with no user apps... any input would be greatly appreciated.
thanks again!
Click to expand...
Click to collapse
one search i came across mentioned something about possibly not being converted to rfs, but I have flashed to stock with re-partitioning ( rfs for sure ) and the rom and kernel i am building does not support it so that shouldn't be an issue.
from what other rom builders have told me this is an issue with gingerbread roms.
have apps copied to SD card and ask users to install manually.
Dude just found this post....sorry i was busy with KJ2
glad you got a tempory fix
ya you gave me the fix in the PM! LOL
TRusselo said:
ya you gave me the fix in the PM! LOL
Click to expand...
Click to collapse
you just got spanked!!

[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 ?

few questions before i flash my SGP 5.0,do i need kernel?

Hi all
I rooted my Galaxy 5.0 player (YP-G70 US version running 2.3.5) using onesuperclick successfully. Im looking to put a good working ROM (one that has everything working until ICS ROM camera bugs are sorted out).For now I decided to try Eryigit-GB-2.3.6 G70ZCKPA Galaxy Player 5.0 For USA and INT (Rls:3.5) {UPDATED}.Is this the best room with everythign working?????
Also
I want to know do i need to flash with a kernel before i do this.or should i just chose the above rom to flash??
I see two kernels rj and entropy..what are they??are the kernels only needed for clockwork method??what is cwm?
And when ICS bugs are all sorted would i be able to just flash it with that ROM the similar way or do i need some kernel.??
one last question is there anyway to make a backup of my current stock firmware/kernel in case i want to roll back or something goes wrong.
Thanks for help in advance,
No, you can't backup your device as is, not to my knowledge. There is a copy of the stock ROM/kernel floating around somewhere here though.
With Eryigit, I believe that the kernel comes included in the ROM (hence, flashing the wrong variant [eg the INT'L version] will brick your device), so no- you shouldn't need to flash a kernel. check with the page though. ie If it says flash Entropys kernel before (Entropy= US SGP), do it. If not, don't.
alljokingaside said:
No, you can't backup your device as is, not to my knowledge. There is a copy of the stock ROM/kernel floating around somewhere here though.
With Eryigit, I believe that the kernel comes included in the ROM (hence, flashing the wrong variant [eg the INT'L version] will brick your device), so no- you shouldn't need to flash a kernel. check with the page though. ie If it says flash Entropys kernel before (Entropy= US SGP), do it. If not, don't.
Click to expand...
Click to collapse
Well, actually, flashing Eryigit Rom is quite safe... regardless of what device you have (INT or US)... The only thing is that if you flash the US version (Capacitive Home button) to an INT version (Hardware Home button) then your home button will not function... that is basically it.. no bricking will occur.
If you do flash the wrong version of Eryigit's rom, just simply flash the right kernel and you are good to go. No need to flash the whole rom over.
So... Eryigit's rom is quite good GB rom. I use it on two of my 5.0 players (INT) and it's quite stable and everything works...
Any of these current ICS roms (and future ones for that matter) will more likely contain the kernels as part of the rom... just flash the package and you should be set... Just make sure you read all the instructions carefully because a failure to do so WILL brick your device... ^_~
As for the backing up your stock rom... I believe there are a few stock roms (along with instructions) to be found in the devs section if you decide to go back. Your stock recovery will not allow you to do a nandroid backup.
thank you, can anybody post here the direct download link for that updated Eryigit rom. There are various links in that thread(http://forum.xda-developers.com/showthread.php?t=1465144) i don't know which one i need.
EDIT:
nevermind; i found it.
i was able to flash the Eryigit 2.3.6 rom after flashing with DD_01142012.tar without any problems.
Im having couple of probelma with the updated Eryigit rom. The music shortcut icon in the bottom left corner ont he main screen always force closes. (Although the program works in apps menu). the 2nd thing is the battery does not last longer.
Are these are known issues???
UBefore you flash to a new ROM,,ALWAYS no matter what you have to make a nAndroid backup.to do this install clockwork mod (search,its not very difficult.I can't tell you now how to do this) then reboot in recovery,backup and restore,backup.
This will make a rom just like your system.
If you can wait a few hours,I will upload a thread hot to install CWM for dummies
Don't forget to press the thank button!!!
Thanks for the correction, cvc.
If the program launches and works just fine in the app drawer, but the icon FCs consistently, it's might be due to a faulty file in either the /data/app folder and/or the /data/data folder.
Try deleting the shortcut first, then re-making it from the app drawer. If that doesn't work...
Backup your device with CWM before anything.
I'm assuming that the music app you're talking about came stock on the ROM, which means its in your /system/app folder. Since I don't know the name of that specific music player, look in those folders for a file that matches the name of your music player (all of those start with "com.") in the /data/app and /data/data folders with Root Explorer or Ghost Commander. Delete, then reboot. Remake the icon from the app drawer. If that still FCs, repeat, except that before you reboot, open the .apk file directly from /system/app folder.
thanks i will try that.
also one more problem
. no matter how long i charge the battery never goes more then 80%. is this a know problem.??
alljokingaside said:
Thanks for the correction, cvc.
If the program launches and works just fine in the app drawer, but the icon FCs consistently, it's might be due to a faulty file in either the /data/app folder and/or the /data/data folder.
Try deleting the shortcut first, then re-making it from the app drawer. If that doesn't work...
Backup your device with CWM before anything.
I'm assuming that the music app you're talking about came stock on the ROM, which means its in your /system/app folder. Since I don't know the name of that specific music player, look in those folders for a file that matches the name of your music player (all of those start with "com.") in the /data/app and /data/data folders with Root Explorer or Ghost Commander. Delete, then reboot. Remake the icon from the app drawer. If that still FCs, repeat, except that before you reboot, open the .apk file directly from /system/app folder.
Click to expand...
Click to collapse
it will charge up to 100% eventually i used to have this problem too, but that was with my old player.. i got it replaced with a new one and it didnt have that problem no more... so depending on whether you got an old version or new version this will happen...

[Q] Reinstalling stock phone app on Fujitsu STYLISTIC M532

I accidentally deleted phone.apk and phone.odex located in /system/app following circumstances that I won't explore here, and because of this, I no longer have mobile data connectivity. Now, I did offload phone.apk onto an external SD card before this happened, but phone.odex was lost, and now I need it back. Attempts at installing Phone.apk always end up failing with a message simply stating that Application was not installed, and trying to use adb to install it returned error [INSTALL_FAILED_DEXOPT]. I used the search engine to look for similar questions, but they all involve some sort of a custom ROM. The tablet is rooted and running stock ICS 4.0.3 (no custom ROMS for this device yet, as far as I'm aware). Is there any way to acquire the missing .odex file other than requesting someone with the same device to upload it here?
-SOLVED- found way to reinstall ROM
oddbehreif said:
Is there any way to acquire the missing .odex file other than requesting someone with the same device to upload it here?
Click to expand...
Click to collapse
No, man. The only way to get proper .ODEX, is get it from from original firmware. I recommend you to request both phone.apk and phone.ODEX, to 100% avoiding version mismatch.
here is phone apk & phone odex apk :good::good::laugh:
dackota said:
here is phone apk & phone odex apk :good::good::laugh:
Click to expand...
Click to collapse
Situation's already resolved, but thanks anyway!
-odd
How do reinstall the ROM
oddbehreif said:
I accidentally deleted phone.apk and phone.odex located in /system/app following circumstances that I won't explore here, and because of this, I no longer have mobile data connectivity. Now, I did offload phone.apk onto an external SD card before this happened, but phone.odex was lost, and now I need it back. Attempts at installing Phone.apk always end up failing with a message simply stating that Application was not installed, and trying to use adb to install it returned error [INSTALL_FAILED_DEXOPT]. I used the search engine to look for similar questions, but they all involve some sort of a custom ROM. The tablet is rooted and running stock ICS 4.0.3 (no custom ROMS for this device yet, as far as I'm aware). Is there any way to acquire the missing .odex file other than requesting someone with the same device to upload it here?
-SOLVED- found way to reinstall ROM
Click to expand...
Click to collapse
Dear friend
Please guide me to re-install the ROM.
sekaha said:
Dear friend
Please guide me to re-install the ROM.
Click to expand...
Click to collapse
Hey there,
Refer to this thread.
-odd

[DEV] Need help with porting the Samsung Optical Reader app from AT&T

hi guys, not sure exactly which forum this goes in. I was my hands on an AT&T Galaxy S4 and copy out the SamsungOCR2.apk and SamsungOCR2.odex files. I tried renaming the odex file to classes.dex and adding it to the apk file, but it won't install on my Verizon S4. I've searched around trying to figure out how to correctly build out an installable apk file from these two and haven't had any success. If I post the files, can someone else try and create an installable apk?
All I ever get is "application not installed" at the end. I'm running SynergyROM and I have allow apps from unknown sources checked and verify apps is unchecked.
Thanks in advance for your help.
(P.S. Yes, I know I can just use google glasses, or camcard, but I'd like to get this working and I'm sure others would like to try it out too).
Moved to Q&A and Help section
Do they work on an odex ROM (stock or modded without Samsung bloatware removed)? You'd most likely need to place them in /system/app and reboot. Most apps in system don't need to be "installed" perse, just placed there.
Edit: I see that even if I place it in /system/app, it does not show up with an icon, but I'm running CleanROM 1.5 R2, which gets rid of a lot of Samsung apps... so there might be another file that I need to make the icon for the app appear.
vacaloca said:
Do they work on an odex ROM (stock or modded without Samsung bloatware removed)? You'd most likely need to place them in /system/app and reboot. Most apps in system don't need to be "installed" perse, just placed there.
Edit: I see that even if I place it in /system/app, it does not show up with an icon, but I'm running CleanROM 1.5 R2, which gets rid of a lot of Samsung apps... so there might be another file that I need to make the icon for the app appear.
Click to expand...
Click to collapse
Thanks for the attempt. So would you recommend flashing back to stock/rooted and see if it works that way?
aarcangelo said:
Thanks for the attempt. So would you recommend flashing back to stock/rooted and see if it works that way?
Click to expand...
Click to collapse
Stock, but you'll need root to put in /system/app. If you just want to make a nandroid backup, one of the ROMs mentions it has it supposedly:
http://forum.xda-developers.com/showthread.php?t=2301724
Search for optical in that thread's first page
vacaloca said:
Stock, but you'll need root to put in /system/app. If you just want to make a nandroid backup, one of the ROMs mentions it has it supposedly:
http://forum.xda-developers.com/showthread.php?t=2301724
Search for optical in that thread's first page
Click to expand...
Click to collapse
Thanks! I'll give both options a shot!
Here is a flashable zip courtesy of the maker of CleanROM:
http://www.scottsroms.com/showthread.php?3616-Stock-App-7-6-2013-Samsung-Optical-Reader&p=24327

Categories

Resources