Missing back-up/phone locked/weird sd-card behaviour - Moto G5 Questions & Answers

Hi together,
just as a disclaimer, I don't really have knowledge in this field (custom roms etc), but I'm willing to learn and understand what is going on.
I have the Moto G5 as my daily phone with the unofficial lineage 17 from the xda-forum. It's not rooted. Now i saw that the g5 got official support for LOS18, so I wanted to upgrade. However, I had some important files on my phone, so I wanted to do a backup (with twrp), which i did on a different sd-card than the one I was using as storage. Or so i thought. The upgrade itself wasn't really a problem, at first i forgot to wipe the phone, but i realized right after the installation, wiped it accordingly to the instructions and did the installation again. The phone booted without a problem and everything seemed fine. I encrypted the phone accidently, i thought it was the lockscreen pin. But it wouldnt recognize the sd i used as storage on the previous version. Because i had pictures, music etc on the card, i wanted to restore my backup to use the phone as before. Well... to my surprise, on the sd i used to back up i couldn't find it, but strangely there were now two versions of a backup i made some months ago, only different in the timestamp (not the date) in their filename. I didn' know if one of them was the one i made, or if i had made two backups back in the days. I was confused, but i chose on of them at random and restored it. It seemed to have worked, it booted to the familiar lockscreen i set up a while ago. But then: it wouldnt accept the pin, even though i knew it was the right one - at least for the system i have used the same morning. I had to delete the lockpin.db (or how it was called) via twrp to acces the phone again. The former uncompatible storage sd now got recognized and worked, the phone showed all the apps i had before, i was still logged in in all of them etc. But: i made a photo, wanted to look at it in my gallery app, and i briefly saw my albums - then they vanished and only the photo i had taken was there. So now all the pictures, music are gone from the sd. Some funky things are different, the swipe directions for the "recent apps" and "back" buttons on the fingerprint sensor are switched and i cannot find the menu to change them. That's the story.
Here are my questions:
The backup i made - why wasn't it called with the proper date and time? Or have i deleted it somehow due to my wiping mistake? but it was on the sd... ?
I now assume i restored the old backup with a different lockscreen pin, and thats why the pin i thought was correct didn't work. But some apps which i hadn't installed at the time i made the backup where there and with all the recent data. Doesn't that mean the sd has some kind of image of the system or rather the apps themselves stored? but why are the pictures and the music gone? Is there any chancce to get it back? Can I upgrade to LOS18 and use the same sd as storage without the need to format it?
I'd like to learn what the mechanisms behind all these happenings are and would be glad if someone could explain it! Thanks in advance!

Twrp backups do no backup personal files - This includes music pictures and documents. These must be backuped up yourself to a pc, external device or the cloud.
TWRP backups do backup the following for example
System - your current rom
Data - apps and their data of your current rom, phone settings
Boot - Kernel
Never restore data on a different rom. The data contains apps and settings for your current rom and restoring this on a different rom will likely lead to a bootloop or an unstable device. This is why you had issues with passwords.
In regards to personal files - if you have formatted data of an encrypted device then it removes encryption and thus formats internal storage. Anything on this will be lost.
If you are changing roms you need to format data and then install everything again via the playstore (or manually via apk)
You can use 3rd party apps that backup apps and data but I advise against this as what it restore may be unstable on a different OS
As with the twrp date I assume twrp assigns the correct date. The file would be lost if you backup up to internal storage and your formatted data. I don't know what happened to it if you backed up to an external device.

Related

HTC Restore Problem

Hi guys
I recently factory restored my HTC Desire and the built-in backup prompted me to restore my settings, which I did, but for some reason my SMS messages were not restored.
I checked the SD card, and there is a backup there, but of course the files are encrypted. Is there any way to read these files, or to restore my messaging SMS?
Thanks in advance!
Am I right in saying that the backups's hashes are salted with the device serial #? If that's the case then decryption should be quite possible.
I have had the exact same problem today. Had to return my Desire as it was faulty for a straight swap (kept the same SIM and SD card). The SD card has restored all contacts and music, but SMS messages have not transferred over. I've looked at every possible option in the settings but can't seem to see how to do this.
I'd be grateful for any advice or info. Thankyou.
slightly old thread, but relevant to my problem....
have been playing around a lot with my desire over the past week, and managed to delete the wrong nandroid backup and lost all my sms. I have a sense auto backup form a day or so earlier, but cannot for the life of me get the phone to read these - there's no option to restore just backup.
So, tried factory reset from recovery, copied the 'old' backup to the sd, and booted. Nothing was restored. Have tried all sorts of combos to try and get the backup to be read, but no joy at all. Even completely wiping everything, flashing the original rom i was using (modaco 3.1) and restarting, but still sense doesnt see the backup.
I definitley remember it doing it once during all the crazy rom swopping of the last few days, and the sms, wifi key etc all restored, but I can't get it to do it again.
Any ideas about 'forcing' the restore? I know that the backup is handset specific (tied to the serial/imei?) but it should restore on any rom using sense yeh?
all help greatly appreciated
ta.
another small thought, there may be an app idea in here for anyone thats interested - reading the sense backup and applying it by force? i know quite a few people tend to backup their sd card regularly, so it could be useful as a last resort option.
I guess there's not much I can help you but to avoid this problem in the future you might want to use SMS backup (by Cristoph Studer, there are 2 others on the Market with the same name) - backs up your sms's to your Gmail account, works great. I love the Cloud!
I have used sms backup in the past, didn't bother this time as i had the nandroid backup. Kicking myself as I'm usually pretty careful about what files i'm getting rid of, and have got all my sms for about the last ten yrs (minus the 2 months i just lost) for blackmail purposes time to crank the delete button paranoia up a notch again
edit: solved tok everything off the sd card, made sure i had the backup set from the date range i wanted, wiped absolutely everything from recovery, reflashed the rom i was running when the backup was taken & rebooted. the backup was picked up fine, all settings, sms etc back with no problems.
the small trick to getting this to occur seems to be just let the phone sit for a minute when it reboots - i assume that if you go into the setup wizard before the sd card is correctly moutned and read that you bypass the restore. i had done the same procedure to try to get it to restore before and it didn't, the pause to allow the sd card to be read was the only thing i did differently.
I'm having the same issue, I want to restore a back-up from my SD card, but cannot see any way to do it. I've tried a factory reset, but still no luck.
Can a restore be forced? The 2.2 upgrade seems to have removed Settings>Privacy
Same problem here, Froyo won't restore my backup.
I tried to downgrade to Eclair, but the installation failed with "Error 140: wrong bootloader version".
I guess my backup is pretty useless now...
Frojo wont restore settings after hardreset
I asked HTC about this, and here's the answer:
Thanks for your question regarding backup of your device. The former feature backup to SD card is missing in this newer version. This is due to Google, which has developed backup feature in the software, changed the system in 2.2, then back out to their servers instead. This applies to the Google devices, such as NexusOne. When your device is the HTC brand, we have some backup features as before. However, you can take backup in the following way (as with older versions of Android): Contacts: You can save contacts via Outlook when they are created as telephone contacts. For this you need HTC Sync and Outlook on your computer. HTC Sync, see your device's SD card. To open the map, select Mount in the device, your device is displayed on the computer as an external disk drive. Then you find the program through your computer's Windows Explorer, and also integrates it on your computer. You can now sync. You can also download HTC Sync from our website under Support tab. If you use Google contacts they can be retrieved back when you set up your email again. If you have configured an Exchange server, you can also download contacts onto the device again. Calendar appointments: These are transferred in the same manner as contacts. Emails: These can be synchronized over again through your Exchange server, or if you have Google mail. Data files: These can be transmitted via computer Explorer when you select Mount as previously described. You can then transfer your files to a folder on your computer. SMS and MMS: Those you can not backup.
Blueyed1
Way to go HTC.... hurray
The more I learn about Google and HTC's way of handling my data I get more determined to Root my phone to get full access of my phone, and to control what data and in what way that data is transferred to either google or HTC.
When you compare to the way Apple is controlling it's sheep herd, Google is not any better when it comes to data gathering and data sniping.
Blueyed1 said:
SMS and MMS: Those you can not backup.
Click to expand...
Click to collapse
WTF????????????????????????????
DRMON said:
WTF????????????????????????????
Click to expand...
Click to collapse
Backup not possible with previeus build in backup, that is..

[Q] Whole phone's gone crazy.. Apps seemingly disappeared

Hi,
I was just trying out a few ROMs, and after flashing CyanogenMod (The stable release, can't remember the exact name) and then doing a full wipe and restoring my LeeDroid Nandroid backup, I ran into a bit of a kerfuffle...
After booting up, I was greeted with blank homescreens - which was a bit annoying, but nothing too bad - and so went to get started on repopulating them.. only to find hardly any apps were present. I put this down to some of them not having synced yet, until I noticed that even system apps were missing; Market, Music etc - not a single downloaded/sideloaded app is present. They appear under the "Manage Applications" section of the Settings menu but only Data and Cache are present, not the Application themselves.
I reflashed the Nandroid backup again (and again), and was met with the same, only Astro File Manager had miraculously appeared so I could at least install some apps from my SD Card using that. So after installing the Market and Root Explorer from there, I could see that the System Apps were infact there, but required manual installation. I can't even re-download all of the lost Apps, as even attempting to select one in the Market leads to a force close.
I can effectively do nothing, except use the tiny array of Apps that are actually there, which at least does include Messaging and Phone. Does anyone have any idea how I can fix this, or a partial-solution at least?
Thanks
Ok, just as I finished typing this the Factory Reset finished and everything loaded. It seems everything is working now, but still, I'm just left with System Apps and with no sign of my other apps syncing/downloading.
After the wipe factory reset did you do nandroid install again straight after?
Sent from my leedroid v1.3a DhD via xda app
Yeah, and the same happened again. I tried various nandroids from all sorts of ROMs, and I would just get the same, even restoring the Stock ROM.
That said, the thread may as well be closed, I just went and did everything manually and everything's fine now. It took many hours, but it's in a usable state now.
i expect u will face the same problem soon as long as ur apps list will grow and be installed on ur device, this is a big issue i faced and still experimenting to get the best solution for, but currently the most effective cure is to mount ur sd card to a card reader, and go to the folder android_secure, cut some bunch of files ther(maybe half of them) and past to ur desktop, mount back the sd to ur device, ur phone will bahave normally now, this will work great after ur nandroid backup, when u see it work, try again the previous step and start to add files to android_secure folder from ur desktop, untill the bad behaviors start to occur.
hope this will help

[Q] help recovering with TWRP after failed ROM flash

I've found myself stuck trying to flash a ROM. I'm a newbie, this was my first attempt at something like this, I though I read enough about the process but I guess I screwed up something. I will try to be to the point.
Phone: Samsung Galaxy S3 AT&T i747
Rooted phone with Casual, installed ROM Toolbox and purchased the pro upgrade.
installed TWRP 2.5 and made a nandroid backup, the only place this backup existed was in internal storage.
used ROM toolbox to backup user apps and user data
selected cyanogenmod 10.1 RC5 from within ROM Toolbox and there was a requester for gapps and a checked the box for that also. When the DL was complete I installed the ROM queue with those two items and I checked the boxes Wipe Data & Cache and Wipe dalvic-cache.
Phone went to recovery mode (i guess) and appeared to clear the memory and load the new rom, the phone rebooted and I got the cyanogenmod boot screen but then it went to a requester saying:
Unfortunately , the process com.google.process.gapps has stopped.
When you hit ok you get:
Unfortunately, setup wizard has stopped.
this requester never goes away, just keeps popping up when you hit ok.
So I removed the battery and booted the phone in recovery mode and try to restore but the restore nandroid file in not shown. If I hit the center button in the restore window it says "updating partition details" but never returns.
Whenever you power it up normally now you end up in this gapps loop.
My searching suggested I may have tried to install the wrong version of google apps somehow. What are my options for trying to recover from this? Does my backup still exist somewhere?
If process.gapps is your only warning you can try to reflash the gapps zip from here. http://goo.im/gapps/gapps-jb-20130301-signed.zip If this does not fix your problem, you will have to head deeper into the rabbit hold
You can look for your back with a file explorer. Should be in sdcard/TWRP/BACKUPS/******** (random number). If you dont see them here, check your ext-sd in the same location. If you don't see them, they are gone. Do a Nandroid backup now just to be sure you have one. You should chose to back it up to external in TWRP. As for your FC problem, it would appear that you have not wiped fully. You will likely need to factory reset. the problem is this will remove everything. Titanium back up is a great product for situations like this. If you have used it, you can transfer your backup from the internal storage while connected to your pc. Also copy your DCIM folder as it will contain your photos. This is why you will need to do another Nandroid, because worst case scenario, you can just restore this one.
Thanks for the reply. I will try to reflash the gapps file from the external as soon I can download it, the site is having some trouble right now. I made another Nandroid of the phones current state and stored it to external. I did also have Titanium backup and had backups of the whole system with it. Unfortunately they are also only on the internal storage.
Re-installing the gapps zip file off the extSD from within TWRP did the trick. All the data and backups I created are also still there and are now backed up in several places.
Something that compounded the problem was the 64GB sd card I have for the phone. I was not able to mount it on either of my linux mint machines or an XP machine. Some oddness with the exFAT file system on it, I used a 4GB card I had laying around and it worked fine.
Thank you for the help, the phone is now running CM which is what I wanted and I learned a few things too.
theaxis695 said:
Re-installing the gapps zip file off the extSD from within TWRP did the trick. All the data and backups I created are also still there and are now backed up in several places.
Something that compounded the problem was the 64GB sd card I have for the phone. I was not able to mount it on either of my linux mint machines or an XP machine. Some oddness with the exFAT file system on it, I used a 4GB card I had laying around and it worked fine.
Thank you for the help, the phone is now running CM which is what I wanted and I learned a few things too.
Click to expand...
Click to collapse
I just bought a 64GB card as well. You may be having troubles mounting it due to a partition that comes factory in the SD. If this is the case, you can look at post #57 on the following page http://forum.xda-developers.com/showthread.php?t=1915385&page=6
It helped me tremendously.

Second Space backups, what are our options?

Dear all,
Since at this time TWRP does not seem to work well with any sort of Work Profiles/Users, which Second Space feature from MIUI is, I was wondering if any of you already had reliable backup solutions for all Second Space settings to share?
As far as I remember I always used TWRP backups for my devices when that was possible or even full SP Flash Tools backups, but I never used any backup apps from within Android OS itself because that was not needed.
Being new to MIUI devices too and not had any use for work/user profiles before, I start fresh here when some of you might already have tried a few things on their own, on this device or some other Xioami with Second Space, which worked (to some extent) or not.
If possible that backup solution will not require root, and be FOSS.
It would backup LOCALLY all Second Space userdata + all apps and their own settings (meaning no need to reenter all logins/password or any configuration made for any of those individual apps). There can be an option to backup on the cloud if encryption is available, but option to back up locally is mandatory
It is NOT an issue to have to backup from WITHIN the Second Space profile itself and save it somewhere else afterward, but it needs to bring back everything as it was before with 1 click after we delete the Second Space, and create it again fresh and new.
I will start trying some things over the week-end and share back my findings, but if any of you already have some heads up or ideas, I'd gladly take them
Thanks all!
Regards,
Good morning dear, I have the same issue. Have you got a solution?
Muad.Dib said:
Dear all,
Since at this time TWRP does not seem to work well with any sort of Work Profiles/Users, which Second Space feature from MIUI is, I was wondering if any of you already had reliable backup solutions for all Second Space settings to share?
As far as I remember I always used TWRP backups for my devices when that was possible or even full SP Flash Tools backups, but I never used any backup apps from within Android OS itself because that was not needed.
Being new to MIUI devices too and not had any use for work/user profiles before, I start fresh here when some of you might already have tried a few things on their own, on this device or some other Xioami with Second Space, which worked (to some extent) or not.
If possible that backup solution will not require root, and be FOSS.
It would backup LOCALLY all Second Space userdata + all apps and their own settings (meaning no need to reenter all logins/password or any configuration made for any of those individual apps). There can be an option to backup on the cloud if encryption is available, but option to back up locally is mandatory
It is NOT an issue to have to backup from WITHIN the Second Space profile itself and save it somewhere else afterward, but it needs to bring back everything as it was before with 1 click after we delete the Second Space, and create it again fresh and new.
I will start trying some things over the week-end and share back my findings, but if any of you already have some heads up or ideas, I'd gladly take them
Thanks all!
Regards,
Click to expand...
Click to collapse
I am also dissapointed by the way Xiaomi designed it, I desperately need that feature, however I only have two workarounds which unfortunately don't meet your requirements:
1. Nandroid backup - with this you are guaranteed to have everything as it was both 1st space and 2nd space respectively.
2. MIUI cloud backup - somewhat reliable because it restores all previously installed apps PLUS miui settings, widgets, shortcuts, local settings.
What if I want backup only from 2nd space?
I just want to backup 2nd space, reset all data, and restore all files from 2nd space, and it will become like one space.
Yes you can choose to back up data from 2nd space only and be able to restore it, using Mi Cloud backup (create one for 2nd space if you don't have it already)

Question Backup and transfer Data and Wifi/BT Settings

Hello,
since Titanium Backup which I used for years seems to not work anymore, I am now looking for any other possibilities to transfer my apps+app data and also some system settings like wifi passwords/APN data, BT connections and such.
With TB this was always well working for me.
What I have tried:
OAndBackupX -> I enabled "special backups" and tried to backup wifi, but sadly it just creates a new folder for the wifi backup (special.wifi.access.points) with a properties file. However the subfolder, where the backup should be present is empty.
So this solution doesn't seems to work, at least not on my phone with Android 8.
I also tried to do backups of some apps, however it looks a bit strange to backup an app that shows as 25mb and the base.apk which gets created for it is only 9mb (and no other file besides that, although everything was ticked for backup)
How is everyone here doing this when switching from one phone to another (especially for access point data and data of apps)?
Syncing wifi passwords to google cloud I somehow do not want (even if they're encrypted) and the issue with app+app data is still present then.
Annil said:
Hello,
since Titanium Backup which I used for years seems to not work anymore, I am now looking for any other possibilities to transfer my apps+app data and also some system settings like wifi passwords/APN data, BT connections and such.
With TB this was always well working for me.
What I have tried:
OAndBackupX -> I enabled "special backups" and tried to backup wifi, but sadly it just creates a new folder for the wifi backup (special.wifi.access.points) with a properties file. However the subfolder, where the backup should be present is empty.
So this solution doesn't seems to work, at least not on my phone with Android 8.
I also tried to do backups of some apps, however it looks a bit strange to backup an app that shows as 25mb and the base.apk which gets created for it is only 9mb (and no other file besides that, although everything was ticked for backup)
How is everyone here doing this when switching from one phone to another (especially for access point data and data of apps)?
Syncing wifi passwords to google cloud I somehow do not want (even if they're encrypted) and the issue with app+app data is still present then.
Click to expand...
Click to collapse
This was the biggest pain in the ass. I tried plugging my old phone into the new phone but my old phone died midway through so I basically just started fresh. it sucks I have been doing it all last night and this morning and haven't finished. I did use sms back up & restore to get my text messages other than that everything is fresh and annoying.
No one else facing issues with backup/transfer? How is everyone transferring nowadays their appdata and access points and such? Really curious....
Got two phones here (Pixel 6 + Pro) waiting for transfers and I am still not sure how to accomplish completely...
Glad about any inputs!
A lot of people are recommending Swift Backup which is supposed to be the successor to Titanium Backup. I haven't tried it myself though.
If I understand correctly, Swift Backup also requires root to restore app data, network settings etc.
The best backup/restore solution I found was Google One's built in. It just works (albeit not as well as, say, iOS, and definitely not up to the level of Swift/Titanium). Without root, sadly, you won't have many options as you're limited to the APIs Google provides, which themselves are limited. Swift works this around by "manually" backing up all the files/folders for every app.
I do have google one, but sadly most apps I would require, get only backed up for the APK but not the data
Is Titanium Backup now deprecated for latest Android? I have Android10 on a car head unit with a very customised oem Launcher. I managed to root it with universal root from here and Magisk (Thanks). Titanium shows me all the installed apps and bloat with sizes - great!. I want to make a backup of an App in the oem system folder before deleting it. I seem to be able to create a backup on mnt/sdcard, but I can't delete the oem app?
I have 2 system folders, System\ and system (root). They appear mirrors of each other and if I go to system(root) /oem/app/*My bloat app, I can delete it with FX root file browser. But not if I go to folders inside System\. Is this something to do with how Magisk roots and can restore to non root by creating a mirror folder? I used TB to make a backup of this bloat app and it worked. But after deleting the app successfully with a file browser the TB backup folder was empty - is this normal? With one pre-installed (Russian!) nav app I didn't need or trust, I recovered 4.5Gb of memory with more oem apps to look at.
For now I can use TB to locate bloat apps I want to remove with a file browser but I really wanted to back them up first and delete from within the app. Is TB trying to delete from system\ where access seems denied, rather than system(root) where I can delete files with a root explorer? Any help appreciated - Thanks
TB is pretty much dead...
i started using Swift.. and also https://forum.xda-developers.com/t/...mate-app-manager-debloat-tool-tweaks.4147837/
Thanks, I was guessing that from the age of posts in this thread. I started off thinking I wanted a full Nandroid backup but that requires a customised TWRP partition and AFIK this car head unit with its OE launcher doesn't seem to follow the partition structure I'm used to in phones. It has 3 external USBs and I can't get it to do anything with adb and a pc connected. The USBs are only active towards the end of boot. However, their factory image and unversal root seems to get picked up with the same 'Upgrade' screen messages from the folder Isec_updatesh. I don't know what I'd do if I bricked it, although I have found the OE Boot.img file packed in their update folders.
Thanks for the link to bloat removal. Nandroid backup creates a full rom image whereas most other backup apps seem to only backup apks and not system files. Android car head units are heavily customised with many added hardware based peripherals so a full backup is important to me. Adb might offer a solution, but as I said, even in developer mode I can't get the USBs to talk to a pc which I assume is because there isn't the usual recovery mode, unless it's on button press combos I haven't found yet? There is a recovery to factory reset, but it's an option in their launcher so I'm guessing it's not in the usual Android recovery partition?
OK I took a quick look at ADB AppControl. First I need to establish an ADB link from PC and I'm struggling with that. Second it does what some other non-root apps do which is to hide the bloatware and stop them running when my objective is to take the 16Gb+ memory they filled from 32Gb and recover memory by deleting bloatware and apps I don't need. There's a tendency now to sell these Chinese car head units with all the GAPPS and many more pre-installed. Unfortunely, most require a mobile network connection to function. I'm not interested in their Satnav, Google maps, Facebook or other social media apps they threw in. The one thing going for me now is I'm running AFwall+ which is the best reason for rooting a Chinese sourced device to stop data leaks to them or Google.
As I ran their factory 'update' I could see all these apps getting installed. If I was clever enough to understand how the Android 10 install 'Manifest' (my words) worked, I would prefer to edit out entries for OE apps in their installer, if it was possible?

Categories

Resources