[Q] Restore system app deodexed rom - Galaxy S II Q&A, Help & Troubleshooting

Hello
I uninstalled the memo app, but I need it back
System /app contains 0kb. Apk files and. Odex files.
The Apk are shortcuts to /preload /symlink /system /app or something like that.
How do I restore the memo app so that it works?
Just putting the secmemo.apk into /system/app doesn't seem right since rom is deodexed
Please advice how to restore the app. I have the rom zip file to extract the files from just not sure how

would have been cool if this post would have gone somewhere. Looking for similar info.

aliendna999 said:
Hello
I uninstalled the memo app, but I need it back
System /app contains 0kb. Apk files and. Odex files.
The Apk are shortcuts to /preload /symlink /system /app or something like that.
How do I restore the memo app so that it works?
Just putting the secmemo.apk into /system/app doesn't seem right since rom is deodexed
Please advice how to restore the app. I have the rom zip file to extract the files from just not sure how
Click to expand...
Click to collapse
Have a look here
Don't bother, the reference is no longer valid, but I may have found something - checking it out first.....
Sorry but I can't recommend what I found. There are many similar and better apps anyway.

Related

ok some help understnading apk files

please help this windows guy/android noob figure this out. ok i'm thinking an apk file is equivalent to an msi file.
i download an app from the android store...
it downloads as apk file to /data/app...
ok so is that the final home for the apk file or does this extract and "install" files and folder in other locations on the internal memory or sdcard?
does the app run from this location? when uninstalled, is it removed entirely or are there orphan files that can be left behind? where is the data associated with that app saved? same folder /data/app/?
when titantium backs up an app, does it just copy the apk files from /data/app?
thanks
mark
http://en.wikipedia.org/wiki/APK_(file_format)
thanks, i already saw your link. doesn't really address my questions though. and yeah i do google questions prior to posting.
markkal123 said:
please help this windows guy/android noob figure this out. ok i'm thinking an apk file is equivalent to an msi file.
i download an app from the android store...
it downloads as apk file to /data/app...
ok so is that the final home for the apk file or does this extract and "install" files and folder in other locations on the internal memory or sdcard?
does the app run from this location? when uninstalled, is it removed entirely or are there orphan files that can be left behind? where is the data associated with that app saved? same folder /data/app/?
when titantium backs up an app, does it just copy the apk files from /data/app?
thanks
mark
Click to expand...
Click to collapse
I was in a hurry when I posted the link and that was the best I could do at the time.
apk is more like a java jar file (in fact you can sign your apk with jarsigner in java) or self extracting zip. Don't quote me on it, but you need both the files in /data/app and /data/data to run the application. Some gets left inside the container, and files that get modified a lot are extracted to /data/data (along with data that personalizes the app for you, such as settings and profiles).
The xml manifest file in the apk tells it what permissions to ask for and what systems it can run on and such. If you get this http://code.google.com/p/android-apktool/ you can reverse the apk so you can make sense of the files inside of it.
Titanium backup takes both the app and the data and stores them on the sdcard (unless you only tell it to backup the app, then it only takes from /data/app). The files located under /data/app are the entire application itself though and that will run if you give it to someone else as if you downloaded it from the market.
thanks for the great response.

Stock ROM APK

I've some stock ROM APK that I have saved and now I'm using Miracle ROM, how do I import it to work with Miracle ROM?
With titanium backup, or putting it in System/apps with Rwrr permissions and rebooting. Just make sure its deodexed (no odex file with it).
Also, with adb Shell (Google)
Sent from the other side... of the screen
dxppxd said:
With titanium backup, or putting it in System/apps with Rwrr permissions and rebooting. Just make sure its deodexed (no odex file with it).
Also, with adb Shell (Google)
Sent from the other side... of the screen
Click to expand...
Click to collapse
The Memo has an seperate .odex file, how do I make it to deodexed?
Can someone guide me to an tutorial that shows how to convert stock ROM APK file to be compatible with custom ROM or could someone do it for me as I'm not an expert on this
flash it with odin ....and is your rom's file extension really apk ?
Dragonoid said:
flash it with odin ....and is your rom's file extension really apk ?
Click to expand...
Click to collapse
You got an tutorial on how to do it with Odin? The Memo is an APK file with an seperate .odex file

where to place apps in custom rom

Hello Guys,
I am trying to make/edit my first custom rom (forgive my noob mistakes). As base i am using the Oxygen rom. This rom has all his apps stored in system/app. I inserted an launcher(hololauncher), keyboard(custom htcime) and gallery(quickpick) apk in this folder, but after the rom is flashed these apps are causing fc's and the gallery app isnt even flashed.
I know that not every apk can be placed in the system/app folder, but how can i ensure that these apps will install correctly during flashing.
Depends on apps.
The most common mistake is forgetting to set the permissions to rw-r-r.
Also some apps need their lib files (usually end in .so) in a specific location, like quickpic that can't be turned into a system app just by putting it in system/app address.
Edit: you can ensure these apps are installed correctly by testing.
1 install them normally and convert them to system apps.
2 write down where each of their parts end up (some will always need stuff in data/app or something similar.
4 use a root explorer or adb to copy those files to your pc.
5 modify the flashable zip. Add the files you just copied and modify the updater-script to make sure those files get flashed to the correct location (you might need to include mount data commands if any of the files flash to data/)
6 test!
Some apps might require actual edition by decompiling them, but the above should work for most.
dxppxd said:
Depends on apps.
The most common mistake is forgetting to set the permissions to rw-r-r.
Also some apps need their lib files (usually end in .so) in a specific location, like quickpic that can't be turned into a system app just by putting it in system/app address.
Edit: you can ensure these apps are installed correctly by testing.
1 install them normally and convert them to system apps.
2 write down where each of their parts end up (some will always need stuff in data/app or something similar.
4 use a root explorer or adb to copy those files to your pc.
5 modify the flashable zip. Add the files you just copied and modify the updater-script to make sure those files get flashed to the correct location (you might need to include mount data commands if any of the files flash to data/)
6 test!
Some apps might require actual edition by decompiling them, but the above should work for most.
Click to expand...
Click to collapse
How can I convert it to a system app when it already is installed normally ?
I also saw the option to make a data/app folder, isn't that easier ?
(Take in consideration that I don't use kitchen or adb tools, just winrar and notepadcc )
Sent from my HTC Desire using xda app-developers app
Not talking about adb and kitchen.
there are many app managing apps out there (titanium backup, link2sd) that can convert apps to system apps.
The updater script is in META-INF of the flashable zip (can be edited with notepad).
You only need a rooted device to see where the apps keep their data and copy those files.
dxppxd said:
Not talking about adb and kitchen.
there are many app managing apps out there (titanium backup, link2sd) that can convert apps to system apps.
The updater script is in META-INF of the flashable zip (can be edited with notepad).
You only need a rooted device to see where the apps keep their data and copy those files.
Click to expand...
Click to collapse
Ok that is clear, thanks. What do you think about data/app. Will this work ?
Sent from my HTC Desire using xda app-developers app
winesh said:
Ok that is clear, thanks. What do you think about data/app. Will this work ?
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
Yeah, flashing to data app is an option, but if a data wipe or factory reset is applied after flashing the rom (to correct a bootloop for example), those apps are gone.

[Q] How to reinstall deleted apps. Both apk and odex?

I'm trying to reinstall some deleted apps to my Verizon GS4. I downloaded the big zip file with all the stock apk's but am confused now since there's also a ".odex" file for most of the ".apk" files. Do I need to install both the apk and odex? If so, how?
TMack1962 said:
I'm trying to reinstall some deleted apps to my Verizon GS4. I downloaded the big zip file with all the stock apk's but am confused now since there's also a ".odex" file for most of the ".apk" files. Do I need to install both the apk and odex? If so, how?
Click to expand...
Click to collapse
You need the odex files.
They go in /system/app just like the apk files.
tech_head said:
You need the odex files.
They go in /system/app just like the apk files.
Click to expand...
Click to collapse
Thanks. The next question is about how I'm installing the apps. Typically, I've just downloaded an apk to the phone, clicked on it and pressed "install". If I do that, then what do I do with the .odex? Do I manually copy/paste it into the app folder?
Also, with some of the apk's, i get a "application won't install" message. Any ideas why? These apk's are all from a huge master apk download of all stock Verizon GS4 apk's.

[Q] how to/should i add folders to backup scripts in addon.d

i want to save some custom apps that i have moved to system when i install CM updates. so i want to add them to a script in addon.d
these app folders seem to have the apk and an empty lib folder. adding the apk seems easy, but how exactly do i tell the script to also backup the 'lib' folder and restore it?
thanks.

Categories

Resources