Every time I flash a nre version of my ROM I need to copy an app folder (Snap, FM2 in this case) to /system/app. How should I edit (or make a new one) script in addon.d to backup and restor those files when a ROM is dirty flashed?
I tried tu add those files in 50-cm.sh, 81-Xposed.sh, 91-cm.sh (new file) but when ROM is flashed apps are deleted
Related
I created a flashab;e zip or flashing TB after a fresh install.
There are two options to create ZIP to install TB as user or system app.
I see that there is an additional file in the flashable zip when i select to install it as a system app.
/system/lib/libtitanium.so
My question is
What is the diffeence between installing tB as user/system and whats the use of the additional .so file.
.so library is a native compiled (binary) library. What is it used for? I don't know, some faster functions of Titanium. Why is it in one ZIP and not it another? Because user .apk has its libs included and they're unpacked by system automatically into its own /data/data/<appname>/lib directory, while system app is expected to have its libs with the rest of system libs, and it doesn't unpack anything.
When the app is installed in /system, it doesn't take place in /data, and (AFAIK) it automatically inherits system permissions. That's about the only difference I'm aware of.
Jack_R1 said:
.so library is a native compiled (binary) library. What is it used for? I don't know, some faster functions of Titanium. Why is it in one ZIP and not it another? Because user .apk has its libs included and they're unpacked by system automatically into its own /data/data/<appname>/lib directory, while system app is expected to have its libs with the rest of system libs, and it doesn't unpack anything.
When the app is installed in /system, it doesn't take place in /data, and (AFAIK) it automatically inherits system permissions. That's about the only difference I'm aware of.
Click to expand...
Click to collapse
Bang on, thanks
Sent from a Desire S waiting for Kernel 3. WAKE UP HTC!!!!
I'm running a custom rom (CM7.2-RC3-APOCALYPSE-BAREBONE v12-06-12, by itasoulas, based on CM7.2 RC3 by vo-1 v31-05-12) on my Galaxy Ace (GT-S5830D). I'm about to flash a newer version of the custom rom, but I wanted to add Titanium Backup and S2E to the rom, so that my ext partition is mounted automatically after flashing, and Titanium Backup is already on and ready to restore.
I have the apk files for S2E & Titanium, do I just add them to the system/app folder in the rom zip? Or do I put them in the data/app folder, in which case I'd have to create said folder in the rom zip? Please let me know, as it would let me eliminate a whole 2/3 steps in the flash/restore process (flash->install S2E->reboot to mount ext->install Titanium->restore becomes flash->restore).
Any help would be greatly appreciated. I'd post this in the CM7.2-RC3-APOCALYPSE thread, but this is my first post and I'm not allowed to post there yet.
As you can see, I didn't get any response from my post, so I rolled the dice and went for it.
So here's how it works for those who don't know:
To add system apps to a rom, place the apk files in the system/app folder in the zip. If you want the apps installed as user apps, place them in the data/app folder in the zip. Worked like a charm. I flashed, booted, configured S2E (installed w/rom), rebooted, ran Titanium Backup and restored everything.
BTW, I was also able to add the APN info for my carrier into the rom. You can do that by editing the apns-conf file in the system/etc folder in the zip. This is handy because when I flash a custom rom I have no APNs set up, as well as no wireless networks saved, so by doing this I was able to run the initial setup when you first reboot the phone (instead of just skipping it, missing Gapps, and adding my account later).
Hope this helped for anyone who is interested.
Neat. Though I'd likely keep titanium as a user app, I'm definitely going to try this.
Sent from my U8150 using XDA
There is an app to move apps from users space to system space available on the google play. It is called app-mover. It is simple tool. If you are already using link2sd then there is a menu option for moving the apps.
I would like to create a zip I can flash that will replace the contents of the /system/media/audio/ringtones folder. Basically if I delete everything (except the META-INF folder) I don't need from a ROM zip I have and copy the files I want into that folder will that be ok to flash?
Sometimes I flash a ROM before deleting ringers I don't want.
You should delete almost everything in updater-script except mount/unmount system and package_extract_dir ("system" "/system".), then you put what you want in system/media/audio (in the zip), then you should be able to flash it in recovery.
Sent from my Sensational phone
Cant delete PDF's from "Supercharger Starter Kit" From Older Skyhigh rom installs.
Have been flashing so many custom Roms for ages like most of you..
And back to stock JB just now.
Noticed i have a directory storage/sdcard0/0/0/0/0/0/0/0/0/SuperCharger_Starter_Kit.
The 0/0/0/0/0/0/0 thing is from flashing many danielHKs 4.2 roms and should delete no worries as now not used in 4.1.2.
The problem i have is cant delete the supercharger kit folder with 2 PDFs inside so the 0/0/0/0/0/0/0/0/0 also cant be deleted.
This Folder came from the 4.04 Skyhigh Rom Install I Flashed ages ago and noticed every thing I try'd it wont delete.
Anybody have any idea what program or app to use to delete these files with?.Ive tried ES File Explorer but doesnt delete and also on Stock JB Rom just at moment and stock File Explorer wont delete the folder either.
I tried out 2 different Skyhigh Roms and have another folder also with the same Supercharger_Starter_Kit folder that cant delete in another directory aswell.it has the same PDF files.
Just want some help to delete this and clean up the Tab of uneeded files and want it to look properly stock again.
FOUR easy options I can quickly think of;
1. a) Copy important files from internal sdcard to PC
b) Boot into recovery
c) Depending on which recovery you use, format your internal sdcard
d) Copy files back from PC
2. Boot into TWRP recovery File Manager and delete the folder
3. There is an Aroma File Manager you can flash in CWM recovery also, search for it
4. EASY WAY -
a) use a root type file explorer app and navigate to data/media/.../SuperCharger
b) remove all permissions
c) delete folder
Cheers,
UITA
Sent from my GT-I9500 using xda premium
Thanks for the reply..
Used TWRP recovery to delete it..
All Good Now
Normally, to restore SMS or MMS from an old backup, one can just restore the nandroid backup, use a third party SMS backup program to backup the data to sdcard or gmail, restore or install new rom, then restore the SMS from the third party backup software.
However, in my case, I had a nandroid with data on it that I wanted to keep but that wouldn't boot.
So I did some searching and others have had this problem before but I figured I'd put it here for others that may have the same problem. I am not taking credit for this I just found various pieces of info around the web and xda.
Requirement:
1. Winrar.
2. CWM backup
3. Windows
4. Brain
Here's the process:
To restore SMS/MMS from a CWM backup using MS Windows:
1. Install Winrar on your system
2. Open CWM backup folder
3. Now extract data.ext4 on your system
4. The contents of the data.img will be extracted to this folder. Wait for extraction to complete
5. Browse to data\data\com.android.providers.telephony\databases in the extracted folders
6. copy mmssms.db, mmssms.db-journal, to sdcard
7. use root explorer to copy these three files to \data\data\com.android.providers.telephony\databases
To restore contacts/call log from a CWM backup:
Repeat above process for \data\com.android.providers.contacts\databases
contacts2.db, contacts2.db-journal
Note: Be aware that replacing the existing files with those extracted from the backup will remove the existing data so if you're not 100% sure what you're doing, change the names to mmssms_OLD.db or otherwise back them up before pasting the files from the backup.
NOTE : You can also use Nandroid Browser , Nandroid Manager
Sorry to say.....not worked for me....
good work
Thank you, it works on my Samsung Galaxy S2 Gt-I9100,
you are my Hero.
I had no luck with this as the app versions seemed to differ. But there's this awesome python tool on github -- github.com - t413 - SMS-Tools -- which let's you export the db file's content into an xml file which can then be restored with "SMS Backup & Restore". That worked!