[Q] How can I restore a system app with .odex file ? - Nexus 5 Q&A, Help & Troubleshooting

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 ?

Related

[Q] Is it ok to delete apk files after installation? Please read further.

Hi. I just found out that apk files are kept in the device after installation of the app.
I just recently downloaded a file explorer app and I found out that the apk files of the free games which I downloaded and installed from android market are kept in this folder:
/mnt/asec (I'm using Samsung Galaxy Ace)
There are individual folders for each game, and in each folder are a lib folder and the apk file. For example:
Fruit Ninja folder (which is found in mnt/asec folder) contains a lib folder and an apk file.
Fruit Slice folder (which is also found in mnt/asec folder) contains a lib folder and an apk file.
My question is, is it ok to delete these apk files? Will the games still work?
Also, can I send these apk files to someone else via bluetooth so they may download the apps without having to visit android market?
yeah you can delete the apk file after installing any app for it to still function, I do it all the time. Yes you can send the apk file to your friend so they can install it. If you're still cautious, try doing a trial run with one apk file...send it to your friend first, then delete, see if it works.
The .apk files are like setup files for windows. Once installed, you don't need the apk, especially if you are backing up with Titanium or similar backup program.
follow up question
Hi. Thanks guys.
Is everything from the android market ".apk"? Is it possible that some have a different extension? I downloaded a dictionary app, I can't be sure but I think it's a .zip file.
Thank you.
pakattack
I tried to delete the apk file. It cannot be deleted.
However, I copied it to my sd card, uninstalled the app, re-installed it using the one already in my sdcard, and it installed just fine.
I still want to be able to delete the apk file that is in the system though (/mnt/asec).
Any ideas or do I just have to deal with it?
sending .apk signed with another device
PakAttack1994 said:
yeah you can delete the apk file after installing any app for it to still function, I do it all the time. Yes you can send the apk file to your friend so they can install it. If you're still cautious, try doing a trial run with one apk file...send it to your friend first, then delete, see if it works.
Click to expand...
Click to collapse
I agree with deleting it won't be a problem but sending to a friend?
sometimes I think there would be a message stating that its not sign
correctly.. correct me if I'm wrong Thank You
WillShaka, like I said, I tried to delete it. I can't. Not allowed.
I don't know why. I'm using ES File explorer
not sure if this works but have you tried unmounting the sd and delete?
WillShaka said:
I agree with deleting it won't be a problem but sending to a friend?
sometimes I think there would be a message stating that its not sign
correctly.. correct me if I'm wrong Thank You
Click to expand...
Click to collapse
Also, and I don't mean to veer out of topic (this question is often ignored in Q&A forum), if I use Odin to upgrade my stock firmware instead of using Kies, will it erase all my data? I have a feeling it will...
WillShaka said:
not sure if this works but have you tried unmounting the sd and delete?
Click to expand...
Click to collapse
Just tried it. Doesn't work, but thanks for suggesting. =)
Yes, you can delete the APK after installation. But the APKs in /system/app/ need to stay where they are to function appropriately
MarlonKaye said:
Also, and I don't mean to veer out of topic (this question is often ignored in Q&A forum), if I use Odin to upgrade my stock firmware instead of using Kies, will it erase all my data? I have a feeling it will...
Click to expand...
Click to collapse
MarlonKaye said:
Just tried it. Doesn't work, but thanks for suggesting. =)
Click to expand...
Click to collapse
yes odin your phone would wipe out all the user and data status.
your welcome sorry I couldn't help
All-In-One Toolbox App
MarlonKaye said:
WillShaka, like I said, I tried to delete it. I can't. Not allowed.
I don't know why. I'm using ES File explorer
Click to expand...
Click to collapse
I use the All-In-One Toolbox app to automatically find and delete all .apk files. It also has an automatic backup and restore function for apps.
So my daragon city and messenger are in the apk files I don't know if its backed by another zip folder my tablet is the amazon fire so if I deleted the apk files that is downloaded for an android would my appe still work the same

Editing an APK

So i want to modify the stock AOSP android browser. (Using a galaxy Note 2).
I removed the original secbrowser.apk out of the sys/app folder and copied it to my pc. Rebooted phone.
On my pc, I just want to take an image file out out of the apk. I renamed the apk to a zip. Deleted the file (while still unpackaged) and then put the apk back on the phone. (Per instructions i read on here)
However, for the life of me I cant get it back into the sys/app folder. Permissions for the file are rw -r-r just as the original file.
The original file is able to be moved in and out of the sys/app folder without trouble. The new one however, not so lucky.
Am I completely missing something here?
Sent from my SGH-T989 using xda app-developers app
Or try other (complicated but reliable) method.
Decompile with apktool.
Edit/Delete any PNG files.
Recompile by apktool.
Copy META-INF from original apk to new apk using 7zip.
Push and give permission 644(rw-r--r--).
Believe me I have done this hundreds of times. Not a single fail.
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands

Default gallery app

I just realized that the default gallery app is not installed on my phone. I can't remember if I somehow uninstalled it or if it was removed after updating my phone. My Galaxy core is on stock 4.1.2 and I've rooted it. How or where can I get the default 4.1.2 gallery app;?
Sent from my Galaxy Core
Anyone?
Sent from my Galaxy Core
bikey77 said:
Anyone?
Sent from my Galaxy Core
Click to expand...
Click to collapse
Is your rom deodexed?
It's the stock rom, I've simply rooted it.
Sent from my Galaxy Core
bikey77 said:
It's the stock rom, I've simply rooted it.
Sent from my Galaxy Core
Click to expand...
Click to collapse
Here U go
MirXas said:
Here U go
Click to expand...
Click to collapse
Wow, thanks! I'll let you know how it went.
bikey77 said:
Wow, thanks! I'll let you know how it went.
Click to expand...
Click to collapse
Copy both files to /system/app and set correct permissions to SecGallery2apk (see attachment), then restart phone.
MirXas said:
Copy both files to /system/app and set correct permissions to SecGallery2apk (see attachment), then restart phone.
Click to expand...
Click to collapse
In system/app the .odex file was already there. However, i tried copying both files to the /app dir and they fail to copy. I also tried to simply install the app and it also fails. I'm puzzled.
bikey77 said:
In system/app the .odex file was already there. However, i tried copying both files to the /app dir and they fail to copy. I also tried to simply install the app and it also fails. I'm puzzled.
Click to expand...
Click to collapse
You need root explorer (assuming the device is rooted). Do not install it, but copy it to /system/app, set permissions, restart phone. Everything until restarting is done in root explorer.
Strange thing happens. I've downloaded the files to my extsdcard, I copy them to system/app and I then browse the files to make sure they're there and only the odex file is present. I'm using Root File Manager.
Sent from my Galaxy Core
bikey77 said:
Strange thing happens. I've downloaded the files to my extsdcard, I copy them to system/app and I then browse the files to make sure they're there and only the odex file is present. I'm using Root File Manager.
Sent from my Galaxy Core
Click to expand...
Click to collapse
I think the odex file was already there, just the apk was deleted.
Actually, I don't know what's wrong. Try a different root explorer/root file manager to MOVE these two files to the system/app directory. Also before that, you have to mount the system partition as R/W, not R/O. U can do that in adb (command "adb remount") or with this app https://play.google.com/store/apps/details?id=com.speedsoftware.rootexplorer&hl=lt (I'm sure there are other ways to do that, but I prefer these two).
I'll give it a try
Sent from my Galaxy Core

[Q] How to make any app system app?

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't flash .so files?

Hey all,
I've been modding some apps, and for whatever reason, when I try to flash thev Xperia keyboard or the Backup &Restore app, they don't want to actually flash into the /system /app folder. I can install them normally, but unless I go in after and copy the lib folder manually the app force closes upon use... Is there any way to make these lib folders and their contents flash?
I've tried explicitly indicating the paths in my updater-script if that helps.
Thanks for any help!
Sent from my D6603 using Tapatalk

Categories

Resources