APK's in rom Force Close - Android Software/Hacking General [Developers Only]

I have a few APK's that when in the rom Force Close They work fine when manually installed, its just when adding to the /data/app fodler they force close. I have tried copying the dalvik-cache file associated with the apk but its the same thing. Can someone please tell me a more proper way to install these files by using a update script or is there a file im missing?

Related

Transfer apk from different firmware

I installed adp1.5 today but i kept on getting force closes and whatnot.
Is there a way to copy an apk (for example camera.apk or browser.apk) into a previous firmware with JF on it?
Simply copy and pasting the apk's doesn't work
a wipe can fix most issues. you didnt mention which 1.5 build you are using or what the force closes are for. you need a file manager like oi file manager to install .apk and you need to check the box in settings>applications>allow unknown sources to install an apk. you should 1st search the thread for the build you are using for known issues before posting a new thread. that is why 10 people have viewed this thread so far and i am the only one to reply.

[Q] Application PORT from other roms

I like the backup and DND application of MIUI. so
1) I copied those application by using root explorer.
2) Copied those apps in Computer and changed extension to .zip
3) opened that app using winrar
4) removed META-INF folder
5) Resigned app using my key
6) again copied to SD card
7) Finally i got success to install that to my phone(Desire S stock ROM)
Now, When i try to open that backup and DND application, It shows Force Close message. What is Wrong? Please Help.
I also used Backsmali to deodex some system applications and made classes.dex and packed into apk and resigned, but program is not installing and if it installs, then not working. can someone help me to port system apps from another ROM to my stock ROM?

[Q] Google Maps installation issue

I tried updating google maps today and it kept saying the package was not signed correctly. Upon researching the issue, I decided to delete the Maps.apk and Street.apk from system/app and trying to install from market after reboot. I tried to install and I got the code "unknown error code during application installation "-8"". I tried to move the downloaded apk from cache to system/app and renaming it Maps.apk and rebooting and that didn't work. When I try to hit install, it asks me if the permissions are ok, I hit install and it says application was not installed. I've deleted the com folders and every trace of maps I could find through root explorer to try to start fresh and no such luck. Can anyone help out?
Use the non signed version, it has always worked for me, but don't install it as a regular app, just copy the Maps.apk to system/app , change permissions to rw--r--r and reboot, all the applications should appear...
most like its because the modded rom you flash uses the unsigned version so it can't be updated. If I were you I would have stick with the unsigned version. If you don't want to reflash, you could extract the unsigned map.apk from the rom you flash and manually install it. It SHOULD work.

[GUIDE] Merging updated system apps with old one, GET MORE FREE MEMORY!!

(Preface for noobs : /system and /data are two different partitions. Freeying up /system won't get you more intrenal memory, but /data does. Old apks rest in /system and updated versions placed in /data. You can replace the old apks using newer versions)
I heared Titanium Backup PRO does something like, but you can do this with any File Explorer with ROOT access. Its works 100% for Android Gingerbread 2.3.x , try on other versions.
### Do it on your own risk, I am not responsible for anything ###
1. Update the desired app to the latest version from Google Play Store
2. Open File Manager, Enable ROOT_ACCESS, remount /System as writable
3. Goto /system/app and backup the desired apk to sdcard
4. Goto /data/app and copy updated apk
5. Paste into /System/app
6. Note down the filename of old apk and delete the old apk
7. Rename the new apk into the old filename
8. You may encounter a FORCE CLOSE if the app was running in background
9. The updated apk in /data/app will be removed automatically
10.Restart your device, Done!
I replaced Playstore, Maps, Google Search ect..
Example: For PlayStore, updated apk will be com.android.vending-1.apk, and old apk is vending.apk
Hit thanks it it works, Thanks
thanks, nice guide! All is ok (PlayStore, Terminal Emulator), but if I merge last version of "Google Play Service", then Gmail or Maps shows the message "Unknown issue with Google Play services" when I open them... do you know how to solve? thanks in advance
p.s. configuration in signature
Better use Link2SD. It makes the integration of updates into system seamless. Rebooting the device is optional (restart only if you encounter errors).
thank you for your suggestion! I tried TitaniumBackup but it gives me the same error, then now I'm trying with Link2sd and it works well, BUT the new apk file is in system/app instead of system/priv-app, and its name is "com.google.android.gms-1.apk" instead of "PrebuiltGmsCore.apk"... can this create some problems in future?
EDIT: I tried moving to the priv-app folder and renaming the apk to be identical as before and it seems to work... for now...
It's the package name, it won't create any problems. There is no need to rename the app to match the old one. Default location when converting to system app is in /system/app. I don't know if you can change the location, but you can move it manually to /system/priv-app thru root explorer. Just restart the device afterwards to eliminate FC errors.

chrome broken, how to fix?

Greetings everyone:
Yesterday, I updated to the latest Chrome on the RAZR HD MAXX with whatever the last Verizon software version is and then I used Titanium Backup to integrate into ROM so it replaced /system/app/ChromeSystemBrowser.apk with the new one, however when I open Chrome, I get the following message before Chrome just closes unexpectly:
"critical functionality required to run chrome is missing either your chrome installation is incomplete or not compatible with this version of android"
Replacing ChromeSystemBrowser.apk with either my previous version or even the one from the thread below still has the same exact error:
http://forum.xda-developers.com/showpost.php?p=33546113&postcount=10
Does anyone know how to fix this? As I already tried clearing data.
Have you tried moving Chrome back to a user app? I think I saw this on another device and had to move it back to a user app for it to work.
dbeedle said:
Have you tried moving Chrome back to a user app? I think I saw this on another device and had to move it back to a user app for it to work.
Click to expand...
Click to collapse
Already tried that but no luck, the ChromeSystemBrowser.apk in the other thread is supposed to be the stock on in /system/app although I don't know for sure if it's the right one for the latest Verizon Wireless software version of ICS or not which may be the problem. Seems like some apps will only work as a user app with the original stock/shipping version in system.
Almighty2 said:
Already tried that but no luck, the ChromeSystemBrowser.apk in the other thread is supposed to be the stock on in /system/app although I don't know for sure if it's the right one for the latest Verizon Wireless software version of ICS or not which may be the problem. Seems like some apps will only work as a user app with the original stock/shipping version in system.
Click to expand...
Click to collapse
Can someone who has the newer chrome installed in /data/app but the original Chrome that came with the ICS 4.0.4 upload their /system/app/ChromeSystemBrowser.apk file? Thanks!
Almighty2 said:
Can someone who has the newer chrome installed in /data/app but the original Chrome that came with the ICS 4.0.4 upload their /system/app/ChromeSystemBrowser.apk file? Thanks!
Click to expand...
Click to collapse
This is the one that came with Rogers ICS 4.04... might be the same. ^.^
http://dl.dropbox.com/u/38382953/ChromeSystemBrowser.apk
EdwardN said:
This is the one that came with Rogers ICS 4.04... might be the same. ^.^
http://dl.dropbox.com/u/38382953/ChromeSystemBrowser.apk
Click to expand...
Click to collapse
Thanks, the problem is not the apk as I tried your apk with the same problem so what I did was did a uninstall and then reinstalled it from Google Play so first it worked fine in /data/app before I moved it to /system/app to make sure it works again before renaming the file. So it appears for whatever reason, even after a clear data, a lot of things were missing in the /data/data/com.android.chrome folder which were needed. Strange the apk didn't install them until a uninstall/reinstall.
Chrome in system vs app folder
Almighty2 said:
Thanks, the problem is not the apk as I tried your apk with the same problem so what I did was did a uninstall and then reinstalled it from Google Play so first it worked fine in /data/app before I moved it to /system/app to make sure it works again before renaming the file. So it appears for whatever reason, even after a clear data, a lot of things were missing in the /data/data/com.android.chrome folder which were needed. Strange the apk didn't install them until a uninstall/reinstall.
Click to expand...
Click to collapse
Ok, so I'm probably a little dense - so please excuse that.
I'm having the same problem with Chrome; runs fine in the data/app folder ... but refuses to open when in the system/app folder. Tried it as a odex'd file ... as well as the apk. Did the full uninstall, reboot, reinstall thing - as well as using two separate cache deleting programs ... and it still crashes on me when in the system/app folder (but continues to run perfectly if it resides in the data/app folder).
HELP! (thanks, in advance, for your assistance)
{And while I know I could leave it in the data/app folder, I'm looking forward to the JB update from VZW, and figure it'll crash if all the right apk's aren't where they're supposed to be}
Think I found my own answer
drtrask said:
Ok, so I'm probably a little dense - so please excuse that.
I'm having the same problem with Chrome; runs fine in the data/app folder ... but refuses to open when in the system/app folder. Tried it as a odex'd file ... as well as the apk. Did the full uninstall, reboot, reinstall thing - as well as using two separate cache deleting programs ... and it still crashes on me when in the system/app folder (but continues to run perfectly if it resides in the data/app folder).
HELP! (thanks, in advance, for your assistance)
{And while I know I could leave it in the data/app folder, I'm looking forward to the JB update from VZW, and figure it'll crash if all the right apk's aren't where they're supposed to be}
Click to expand...
Click to collapse
I think I discovered a solution - that may help others. It appears that, in the system/app folder, a number of programs have BOTH an APK and an ODEX file present. I dropped the 4.0.4 Google Chrome apk into system/app, then installed the app from there. Then I moved the data/app installed version of Chrome to the system/app folder as an ODEX file (thus there's the Chrome apk AND odex file in the system/app folder). With both files present, the updated Chrome application runs as an updated system app.
odex
drtrask said:
I think I discovered a solution - that may help others. It appears that, in the system/app folder, a number of programs have BOTH an APK and an ODEX file present. I dropped the 4.0.4 Google Chrome apk into system/app, then installed the app from there. Then I moved the data/app installed version of Chrome to the system/app folder as an ODEX file (thus there's the Chrome apk AND odex file in the system/app folder). With both files present, the updated Chrome application runs as an updated system app.
Click to expand...
Click to collapse
Where did you get the two files from? the Odex and the APK i am running into an issue trying to do the update and believe this is the source of my issue? ( I uninstalled the stock chrome browser)
thank you
drtrask said:
I think I discovered a solution - that may help others. It appears that, in the system/app folder, a number of programs have BOTH an APK and an ODEX file present. I dropped the 4.0.4 Google Chrome apk into system/app, then installed the app from there. Then I moved the data/app installed version of Chrome to the system/app folder as an ODEX file (thus there's the Chrome apk AND odex file in the system/app folder). With both files present, the updated Chrome application runs as an updated system app.
Click to expand...
Click to collapse
You may be correct but what is the name of the ODEX version of the file in /system/app since I was thinking about that before but never found an odex file since I did noticed the apk's people provided as stock is less than 8MB while the Google Play version is like closer to 20MB.

Categories

Resources