i want to install an apk from system apps in one phone to another phone. copying the apk to /system/app and setting permissions made the app appear in app drawer, but when launching the app it force closes. so i want to modify the apk to be installable on other devices. any ideas/tutorials?
Kobro said:
i want to install an apk from system apps in one phone to another phone. copying the apk to /system/app and setting permissions made the app appear in app drawer, but when launching the app it force closes. so i want to modify the apk to be installable on other devices. any ideas/tutorials?
Click to expand...
Click to collapse
its a little hard to port apps especially if its someone like samsung, they are MADE for touchwiz and all the frameres and other crap so its really not worth that one app.
if there is libs in the app ,you should copy libs to /system/lib/
j.wolf said:
if there is libs in the app ,you should copy libs to /system/lib/
Click to expand...
Click to collapse
where do i find the libs? i only have the apk
Extract APK
You can extract to apk file and copy!
Related
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.
It seems that TB is good for integrating most updates but on a few important ones using Google services it seems to break the device.
What has everyone else done to integrate updates to save on space?
Hand76 said:
It seems that TB is good for integrating most updates but on a few important ones using Google services it seems to break the device.
What has everyone else done to integrate updates to save on space?
Click to expand...
Click to collapse
--Install root explorer
--Go to /data/app/ search for " com.google.android.gms-1.apk"
--Rename it to "PrebuiltGmsCore.apk"
--now cut the apk and then paste in /system/priv-app/
--make sure permissions are -rw--r--r
-- done
--hit THANKS
Sent from my Nexus 5
rahil3108 said:
--Install root explorer
--Go to /data/app/ search for " com.google.android.gms-1.apk"
--Rename it to "PrebuiltGmsCore.apk"
--now cut the apk and then paste in /system/priv-app/
--make sure permissions are -rw--r--r
-- done
--hit THANKS
Sent from my Nexus 5
Click to expand...
Click to collapse
Im guessing the procedure stays the same for most other apps? Except some get renamed and go in system/app?
Also what about apps with an odex file? Just move the app/apk the odex files doesn't get touched does it?
Hand76 said:
Im guessing the procedure stays the same for most other apps? Except some get renamed and go in system/app?
Also what about apps with an odex file? Just move the app/apk the odex files doesn't get touched does it?
Click to expand...
Click to collapse
the apps downloaded from play store or any other sites are always deodexed so if ur rom is odexed then delete the odex file u want to move apk of and then move apk ....like if u want to move prebuildgmscore.apk in odexed rom then 1st delete its .odex file in system/app and then move apk and set permissions and reboot and thanks :laugh:
I put KK launcher in my ROM.But,when i installed the ROM..A message apperared KK Launcher has crashed.Because it was not a system app,I dont really know that the reason for this crash is due to its lack of system permissions.
please help,i want to create a ROM.
Your Device Should Be Rooted!!
Go to Root Explorer and copy the apk file of launcher in system/app/
Or use link2sd.....
coolsuper13 said:
I put KK launcher in my ROM.But,when i installed the ROM..A message apperared KK Launcher has crashed.Because it was not a system app,I dont really know that the reason for this crash is due to its lack of system permissions.
please help,i want to create a ROM.
Click to expand...
Click to collapse
If u found the system/app method diddicult or cant do that way just install link2sd and the app then open link2sd then in option of the app convert it into system app ..............
Is your ROM deodexed? In particular, is your APK deodexed?
If so, decompile the APK. Search for a lib folder.
If there is, rejoice. If there isn't I can't help any further apart from finding a different launcher.
Okay, assuming your APK is deodexed(which it probably is) and has a lib folder, open the lib folder. Open the armeabi folder within. Copy all the libs inside to your ROM's /system/lib. Zip all, flash.
Do post the result. If any anomalies pop up, do post here as well.
Use link2sd . In the option there is one that is convert into system app. U can easily make anyapp into system app
Sent from my GT-S6102 using XDA Free mobile app
not sure if it matters but there is also the system/priv-app folder..
Sent from my SM-G900V using XDA Premium HD app
Can anybody tell me how to install apk from phone as system app
first move apk from /data/app to system/app
then move library files to /system/lib
what next???
I need full guide
Then reboot. If the app doesn't appear in your app drawer, go back to /system/app and install the apk like usual from that folder. Reboot again and see if it works.
Hi,
I've deleted the app Docs that was in system\app\DocumentsUI.
There was the file DocumentsUI.apk in this folder and a subfolder named arm with the file DocumentsUI.odex like every system app.
I'd like to know how can I restore this app. I've tried to put back in place all the files but Android don't recognise the app...
Thank
Sebacestmoi said:
Hi,
I've deleted the app Docs that was in system\app\DocumentsUI.
There was the file DocumentsUI.apk in this folder and a subfolder named arm with the file DocumentsUI.odex like every system app.
I'd like to know how can I restore this app. I've tried to put back in place all the files but Android don't recognise the app...
Thank
Click to expand...
Click to collapse
Have you set the permission of both apk and odex file? Both file must be given rw-r--r-- as permission.
Yes but it didn't change anything...
The phone recognise the app if I put the .apk in directly in system/app and not in system/app/DocumentsUI but then it can't find the .odex file even if I put it next to the .apk...
It'll work without the odex won't it?
Sent from my Nexus 5 using Tapatalk
Unfortunately no. It give a force close message...
You still on kitkat?
Sent from my Nexus 5 using Tapatalk
No, I'm on official 5.1.1
Still no help. Nobody know how I can restore a system app ?