quick question as to if this would work-
i grabbed 2 apk's out of Skyraiders rom (VzWBAClient.apk and VzWBAService.apk)
if i put these 2 files in the same location on CM's rom (/system/app) and reflash, would backup assistant be installed at that point?
or can i just add them in using astro/andExplorer and not even need a reflash?
I don't think it will work, but Nandroid and try it. Worst case, it borks something and you have to restore. It probably won't hurt anything even if it doesn't work.
Let us know how it goes.
I would never use the VZW backup, but I still want to know the results.
i dont even need it anymore, i restored to a rom that had my contacts still, exported a vcard file and then put it on my cmoputer and synced them all with my gmail, now ALL my contacts are on my gmail acct, vs before only some of them.
but i did try with the HTC flashlight thats included in skyraider and it wouldnt let me drop it in the /system/app folder using Astro. i guess i can try and put it in that folder on my pc, nandroid, and try and reflash the rom with that apk included
Astro doesn't run with root rights, so you can't modify /system with it no matter what you do. EStrong's File Explorer will run as root though. Every time it exits though, I have to Force Close and Wipe Data or it doesn't work the next time I start it up.
downloading now and trying to add flashlight.apk in
wont let me paste it in the system/app folder
Related
I was told I can download handcent sms to fix a timestamp issue im having (because it automatically displays texts in the order they're received instead of using timestamps). However, I had the program and deleted it once before, but after reading up on it I still have a file somewhere on my phone called com.handcent.newsms, and having that somewhere on there is preventing me from installing handcent. I checked in titanium backup and its one of the files with a line through it (aka-its been deleted supposedly), and my phone has been searching my files using ES File Explorer since about 7 hours ago with 0 progress. Any ideas on where this file might be?
Same problem with the XDA Forums app. Had it, deleted it, but after searching Titanium Backup theres still a file being displayed called com.quoord.tapatalkxda.activity and i'm assuming thats the reason I can download but not install the app. And idea where to find this one?
back everything up, boot into recovery and wipe data/cache. then reinstall everything
ive wiped several times when installing new roms (before i knew i even had this issue).
are you restoring the same rom after wiping? if you wipe then install a new rom there should be nothing leftover to give you issues
nope, ive installed a new one every time (to be more specific- miui, cm6, evozone.pure, evozone.riptide). and ive tried searching for the file on my file explorer and it just stays at 0% (on hour 8 now). It shows the files (the handcent one and the xda one) at the very bottom of Titanium Backup with a line through it.
when you touch that line does it not give you the option to delete it? if it is just a line that means that you have a backup for an app that is not currently installed
nope, and it says that theres no backup for it. it has the yellow sign with an exclamation mark in it next to it, which after i looked means theres "nothing"? this is doing a fantastic job of irritating the piss out of me.
in titanium backup, hit menu then clean dalvik, then reload app list, if still there then with a file explorer go into the titaniumbackup folder and delete the files associated with those entries
cleaned dalvik, still there. and thats the problem, i cant find any files associated with them.
ewingt22 said:
cleaned dalvik, still there. and thats the problem, i cant find any files associated with them.
Click to expand...
Click to collapse
Have you ever copied your SD card to your PC? If so - you can go into the TitaniumBackup folder on your SD from previous manual backups and just reinstal the apk from there... I do that all the time. When I flash a ROM, First I make a NAND backup of said ROM, restore all apps and info (Texts,Contacts,Emails etc) then I do a TB back up and a MyBackUpPro Backup and then I copy all the files from my SD (which will contain all the backups you just made)to safely keep all the back ups you just made safe on your PC...If you dont alredy do that kind of thing, maybe its a good idea to start for these types of problems
hope that helps, if not - I do have the Apks for both apps your looking for - I can email them to you if you want
make a backup of your sd card on your computer, then format it and put only a rom .zip file, wipe everything multiple times, install the rom from sd card
check if handcent or xda will install, if yes, replace the files on your sdcard that you copied before format.
if no you have successfully gotten somebody else as frustrated with your phone as you are
Worked, thanks a ton for the help
Sent from my PC36100 using XDA App
Ok, these are specifically for MIUI, but they can easily be adapted to any other rom by editing the shell scripts. I'll explain how they work and it should be fairly apparent how one would need to modify for their particular rom/needs. Don't know if anyone will actually use these, but I thought I'd share. I also think it's a really good example of how CWM can be used for more than just flashing stuff.
So I've been running MIUI for a while now and I'm really happy. One little issue that popped up was every Friday when the rom was updated, the OTA update app icon gained a little "1" badge, indicating an update was available. While it's nice to be notified of the update, I occasionally didn't have the time or interest in updating so the little badge remained. I put that app in a folder, but then the folder had the little 1 badge. After a while, I started deleting the update app after install since I could always download and install updates through ROM Manager just as easily. Then I started deleting the update app from the downloaded ROM zip, along with several other apps I didn't want (Facebook, Twitter, the MIUI FileExplorer, etc) before flashing it. But this entailed downloading the Friday update on my phone, transferring it to my desktop, opening the zip in 7 Zip, deleting the unwanted files, uploading it back to my phone and then flashing. Quite a PITA.
Another issue I ran into was that the built-in MIUI backup app failed to backup my SMS/MMS messages. Actually, I don't know if it was failing to back them up, or failing to properly restore them, but at the end of the day, it wouldn't keep my text messages. I know I could avoid this by just installing each update over the current ROM, but I've always believed cleanly installing an OS helps avoid issues. I prefer to wipe everything, install clean and then restore my data.
So, the solution(s) I came up with was to mod the downloaded ROM zip file right on the phone, and manually backup and restore my data. While it took a little while to get set up, I find it actually works considerably faster and smoother than using MIUI's backup/restore app. I now have 3 simple shell scripts that are run through Clockwork Recovery just like installing any zip - one to mod the ROM after downloading, and two to backup and restore my data. Here they are:
MIUI-Mod.zip
This contains a shell script and a zip binary to handle the adding and deleting of files to/from the downloaded rom zip. When run through CWM, it copies zip and the script to /tmp and runs the script. Because the ROM zip is named differently every Friday, I figured the easiest solution was just to rename it manually. So, this script assumes the ROM zip is named "miui.zip" and is located in the root of the SD card. It's a simply matter to download the ROM on Friday, move it to /sdcard and rename it miui.zip. Here's what the script does in 2 commands:
/tmp/zip -d /sdcard/miui.zip /data/app/Twitter.apk /data/app/Facebook.apk /system/app/Email.apk /system/app/FileExplorer.apk /system/app/Gmail.apk /system/app/MIUI.us_Forums_1.1.2_AdSupported.apk /system/app/Superuser.apk /system/app/Updater.apk /system/app/MIUIStats.apk /system/media/lockscreen/* /system/media/wallpaper/*
/tmp/zip /sdcard/miui.zip /system/app/Gmail.apk
Click to expand...
Click to collapse
The first line simply opens the zip and deletes the listed files: Twitter, Facebook, Email, etc. It also removes all the wallpapers for the lock and main screens (I don't use them, so I didn't want them, but it's a good example of the use of wildcards like *).
The second line adds in the Gmail.apk from my current ROM. The latest versions of the Gmail app included in MIUI lock the mail database, which conflicts with a widget I use, so I just replace it with an older version. Every time I run the script, it removes the included Gmail app and adds in my current one. If you didn't want to add anything to the ROM, you could just delete this line entirely.
Data-Backup.zip
This just runs a shell script that creates a tar file in the root of your sdcard containing the listed files and directories. Tar files retain file permissions and owner information, so everything can be restored seamlessly. Here's how it works, it's pretty simple:
tar -c -f sdcard/backup.tar data/app/com.adobe.flashplayer-1.apk data/data/com.adobe.flashplayer data/app/com.speedsoftware.rootexplorer-1.apk data/data/com.speedsoftware.rootexplorer data/app/com.touchtype.swiftkey-1.apk data/data/com.touchtype.swiftkey data/data/com.android.browser data/data/com.android.deskclock data/data/com.android.launcher data/data/com.android.mms data/data/com.android.phone data/data/com.android.providers.contacts data/data/com.android.providers.settings data/data/com.android.providers.telephony data/data/com.android.providers.userdictionary data/data/com.android.thememanager data/data/com.android.vending data/data/com.google.android.gsf data/data/com.miui.camera data/data/com.miui.notes data/data/com.noshufou.android.su data/system data/misc/wifi
Click to expand...
Click to collapse
This creates the tar file and includes Adobe's Flash player and it's data, Root Explorer and it's data, and SwiftKey and it's data (I paired it down to just these three for this example). After that, it backs up a bunch of other data directories which include the current Browser settings, alarms, launcher settings and home screen layouts including widgets, phone logs, the current theme settings, any MIUI notes, current Wifi connections and, yes, SMS and MMS messages.
Obviously, you'd want to add in your specific apps and data directories. Sure, it takes a little work to set this up, but as I said, backing up is very quick and easy afterwards.
Data-Restore.zip
This just runs a shell script that restores all the files from the backup.tar on your SD card:
tar -xf /sdcard/backup.tar
Click to expand...
Click to collapse
Doesn't need much explanation.
So, the process is:
1-Download the Friday update through ROM Manager, move it to the root of my SD card and rename it to miui.zip
2-Reboot into CWM and run Backup-Data.zip to back up my apps and data
3-Run MIUI-Mod.zip to modify the downloaded MIUI rom
4-Wipe everything (cache/data/system)
5-Install the modded MIUI rom
6-Run Data-Restore to restore apps/data
7-Reboot
It's literally about 5 minutes after downloading the ROM and I'm updated and rebooted with a CLEAN os install and all my apps, data and settings intact, my home screen layouts, keyboard, wallpapers, wifi settings and everything retained.
Some notes:
1-Before running these in CWM, you have to make sure you have system, data and sdcard mounted since the scripts will be reading and/or writing to all of these. When you first reboot to CWM, just go to mounts and manually mount each one. The scripts could certainly be set up to mount them automatically, but mount points vary from phone to phone, and it's not difficult to mount through CWM. Also, after flashing a ROM, the ROM install script may unmount some of these, so before you restore your data, you might have to manually remount.
2-If you're adding anything from your current ROM to the zip (like how I add in my current Gmail.apk), make sure you wipe everything *after* running the mod script, otherwise you're deleting everything and then trying to copy file(s) that were just deleted.
3-I would highly recommend using Notepad++ to edit scripts, since it properly saves Unix line breaks.
4-as always, use at your own risk and a full CWM backup is highly recommended before messing with these.
That's pretty much it. Again, it does take a little while to get set up, but once it is, it's really simple. If you install a new app between updates, you just have to edit the backup script, or you can just keep the scripts maintaining a base setup and reinstall various apps through the market each time. This specific process is probably most useful for ROMs that are updated regularly - nightly or weekly, although I'm sure people can find other uses for running scripts through CWM.
Hope someone might find these useful.
This is really cool. I run Miui and would really like to be able to do a fresh install each week, but hate the hassle of resetting up my phone, even using Titanium backup, it's still a time consuming process. So needless to say, I flash the new rom over top of the old version without wiping just to save time.
So, basically I can open up the data restore zip in 7 zip, add in a few of my apps/data such as Tasker and so forth, close it and flash? If so, that will be great.
Thanks for sharing this!!!
You don't need to touch the Data-Restore.zip, all that does is extract the backup.tar file created with the backup script. What you'd do is open the Data-Backup.zip and edit the backup file (it's just a text file). Add in any of your apps and their corresponding data directories and when you flash the Data-Backup.zip in CWM, it'll back up those files/folders.
To find the files you want to backup, use something like Root Explorer and look in /data/app. There you'll find all the 3rd party apps you've installed. Add each one to the tar command in the backup file just like the ones I included. Then go into /data/data and find each app you want to back up's corresponding data folder. Add them to the tar command too.
Save the file, re-zip it and when you flash it through CWM, it'll back up the new files.
Just what i wanted
I also always install everything from clean system so setting up everything is a pain.
Would this work for Internal storage? I have a Motorola RAZR XT910 and running JBX roms.
Google does install all the apps when i sign in into the new rom but then i always had to move each folder to the correct destination manually using some file explorer. was thinking of making something like this but didnt know how to start. Thanks, I will now try and mod these to suit my phone :good:
So I made an update.zip before I went from my 4.1 ROM to a 4.2 ROM. However whenever I try to flash my update.zip file it makes my phone not boot. Unfortunately I was stupid and didnt make any other backups. Is there a way to restore individual apps/data from the update.zip file?
Could have something to do with how titanium created the file.
Does the .zip only contain the tibackup app? Or others as well?
Sent from my Galaxy Nexus using xda premium
It contains a large list of apps. When I created the zip I went through the long list of stuff and only backed up what I wanted (none of the red system stuff).
All in all its not a huge deal. Was mostly wanting my SMS/Call Logs/Wi-Fi
All the other stuff would be nice but can be redone
File and directory structure has changed in 4.2.
Sent from my Nexus 7 using Tapatalk 2
najaboy said:
File and directory structure has changed in 4.2.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Yep I dont think thats the cause though as it also happens if I try going back to my 4.1 ROM (JBSourcery).
I went through my update.zip file and removed a bunch more stuff that I likely didnt need and it worked!!! Obviously I backed something up into the zip that was causing the issue. There was also some system apks/files in there that I am positive I didnt choose for the update.zip... not sure if it auto-adds some or if I just spaced out but so far so good!
EDIT: Well it kind of worked... I got some of the apps but some didnt show at all and it didnt restore my SMS messages
Just to update if anyone else runs into this...
As I said above I got it to work by manually editing the .zip file to remove some stuff that I didnt need but it didnt restore my SMS/Call logs or anything like that (Wi-Fi APs as well).
I then went into the .zip and removed all the SMS/Call Log/Wi-Fi lists and then put them in the TitaniumBackup folder on my phone (overwriting my old ones) so it will allow me to restore. I also tried removing all files from my .zip file except the SMS/Call Log/Wi-Fi stuff and will see if reflashing helps
It would be a really great addition to TiBu to have the ability to restore from your .zip file from within TiBu. I dont think it would be super hard to implement but I'm not a dev so thats just speculation.
I will update again later if my workaround does the trick.
Not sure if you've ever heard of it, but grab the app named "App2zip". It will do just that. You select apps that you want installed back on your ROM after flashing a new one. When finished hit the OK button and it will make a flashable zip of all the selected apps. It also keeps all user & system apps on separate pages so you don't accidentally backup a system app that might cause issues. Another good thing is that it works for 4.2! I used it to restore over 150 apps on Mmuzzy's first build after 4.2 dropped and everything restored properly. Just know it zips only the apps, no data. If you want your app data backed up use TiBu and restore data after you flash your ROM & apps zip.
i was able to restore my apps using the update.zip from tibu, it then restored data after i booted the OS. I had to mount /system before i flashed the update.zip because if i didn't mount it first, it wouldn't restore my apps at all. The only problem is my phone lagged like an SOB after restoring the data. I just use tibu to restore apps and data after i boot the phone, keeps the problems off my phone.
RoyJ said:
Not sure if you've ever heard of it, but grab the app named "App2zip". It will do just that. You select apps that you want installed back on your ROM after flashing a new one. When finished hit the OK button and it will make a flashable zip of all the selected apps. It also keeps all user & system apps on separate pages so you don't accidentally backup a system app that might cause issues. Another good thing is that it works for 4.2! I used it to restore over 150 apps on Mmuzzy's first build after 4.2 dropped and everything restored properly. Just know it zips only the apps, no data. If you want your app data backed up use TiBu and restore data after you flash your ROM & apps zip.
Click to expand...
Click to collapse
Yep I have used App2Zip. TiBu has basically replicated that functionality.
So as is normally the case the problem here was my own stupidity.
I thought that by choosing the option to make an update.zip and then choosing all the programs I wanted it would make a current version backup of the apps I selected. However I think how it works is that it only makes the .zip file out of an existing backup. So I should have run a full TiBu backup before making my .zip. I verified this by going through the xml file with my text messages and verifying that it was old stuff.
So in the end it was my fault for not understanding how the program worked. I still think the ability to restore directly from the update.zip from within TiBu would be a welcome addition though.
I accidentally deleted the contents of my SD card when installing a rom, and then I reverted back to CM 10.1. This obviously deleted all of my data, backups, ect but I had TB set up to sync with dropbox, so I had the backups. I wiped the phone and installed TB. I put the backups back onto the SD card and set the location in TB preferences. Now it will only detect a few of the backups. I've tried everything that I can think of or that I found on line but to no avail. Does anyone know a fix for this? I really don't want to lose all of my data.
bump
Did you install the Dropbox app and then enable Dropbox in TB's preferences?
Edit: Nevermind, I misunderstood. Usually when something like this happens to me it's do to apps being filtered out somehow. Make sure you have "All" selected for all the "Filter by..." options.
goodtimes50 said:
Did you install the Dropbox app and then enable Dropbox in TB's preferences?
Edit: Nevermind, I misunderstood. Usually when something like this happens to me it's do to apps being filtered out somehow. Make sure you have "All" selected for all the "Filter by..." options.
Click to expand...
Click to collapse
Thanks for the reply! Yeah, that was the first thing that I checked. There are no filters on. I even tried to reinstall TB and delete the settings file on the SD card, but it still won't recognize the backups.
I'm also gonna try to install CM 10 and see what happens. I don't have much hope though.
Ok, more info. I tried installing CM10, but it didn't do anything. When I set it to the backup directory, it only finds 13 backups, but there are well over 100 in the folder.
bump
I'm running out of hope, but bump.
Sorry man, but you gotta bite the bullet.
Grab a drink, go to play.google.com and reinstall the apps you want.
Has happened to me twice... makes a quick, simple flash on Sunday night turn into a tired lug to work/school on Monday morning.
My guess would be that the Dropbox sync in TB was never able to complete. Uploading gigs of files can take some time, even on a decent connection.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Greycloak42 said:
My guess would be that the Dropbox sync in TB was never able to complete. Uploading gigs of files can take some time, even on a decent connection.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
I had something like this happen. I put a new rom on and even though I didn't do anything to my backups now in Ti backup it says im missing a ton of them. There more backups then it claims I have apps.
Anyway I deleted all the history for the app, clear all pref , reinstalled and its working now use Ti backup to uninstall its self lol
Seeeveral months later, but I had the same problem. No version of my backups would be detected, etc. Happened after an incident while redoing a ROM. And this is the only thread anywhere that seemed to say anything about the issue.
What ended up working, for whatever reason: I cleared everything from my SD, probably not entirely necessary, just remove TB and it's folder. Reinstall, update TB. Do a new backup of everything. Then I hooked the phone to the computer, copied my old stuff into the folder, overwriting the many that asked for it. When I went back to TB and did a batch restore, it picked up all the previous programs.
Unfortunately, I did have to sit with my phone, and most applications would ask if I wanted to install it, click Install, then Done, then it would move on to the next. Or if it was a system application, just hit cancel and it would skip it.
But it fixed it. So, I'm not complaining too much.
Next step is to delete all backups, do NEW backups, then go forward from there. Will probably see about doing a full wipe and TB backup, which I sure hope works.
My fix
I logged in through adb as root and found that the external SD card was being hidden from Titanium. So I just copied the files as root onto a directory next to the existing Titanium back up (the one just created that it could see) via bash command
Code:
jfltexx:/ # cp -a /storage/6163-6233/TB_orig/ /mnt/sdcard/
I think each new release the Google people decide to move around the SD card and generally make it hard for old data to be seen by Apps on the new system in the name of security or some fancy new feature.
Painful but as I could see the SD card when plugged into my laptop I knew it was really there.
How would I do this?
Is it possible to clear data and copy paste my apk over the other one?
Have root.
Thanks
If you have root just use titanium backup to uninstall it. Go into tibu preferences and clear dalvik. Then install the new apk. If it's not an installable apk then before you uninstall the old one find out where the app is in a file browser. Then uninstall it and place the new apk where the old one was, fix permissions, and reboot.
Unfortunately that doesn't work. It even deletes it from system\app but it still appears in my app drawer and I cannot install the older version.
any ideas?
Are you restarting your phone after? Try going into recovery and clearing cache and dalvik.
Spookymyo said:
Are you restarting your phone after? Try going into recovery and clearing cache and dalvik.
Click to expand...
Click to collapse
It's somehow built into the rom. But if anyone has a verizon g4 and wants to see if they can completely remove slacker, let me know.
On Android, you don't need to install apk's as they will install on bootup if you place it in the correct location.
For slacker on the G4, not sure if this is a lollipop thing or a LG thing, you cannot replace the one in /system but rather, what you want to do is out the new version in /data/app since if you mess with the /system version, it will show up as uninstalled on the device.
In /system/priv-app/SlackerRadio directory, you will see:
SlackerRadio.apk,
lib which consists of:
arm folder which has the file librsjni.so
Don't touch any of those and make sure it is stock.
You want to install the new Slacker apk in /data/app/com.slacker.radio-1 folder as base.apk, it will install when you reboot so don't worry about installing it
delete the folder /data/data/com.slacker.radio
delete all the things in /data/dalvik-cache/arm and /data/dalvik-cache/arm64 and reboot.
If you wanted to completely remove Slacker, then all you would do is delete /system/priv-app/SlackerRadio and delete /data/app/com.slacker.radio* with * being anything that can be after it.
I'm not sure why titanium backup isn't working for you. I had slacker and tibu worked perfectly, I'm also on the Verizon g4. It doesn't matter if it's built into the rom. With tibu you can delete any app. But if that doesn't work the steps Almighty1 listed is the long way around but works.
And I see that you're on the Verizon g4, that means you don't have a custom recovery.