[Q] can't take photos + read/write error - G 2014 Q&A, Help & Troubleshooting

rooted, stock lollipop 5.0.2, problem started out of nowhere this afternoon...
camera won't let me take photos as it asks for an SD card. even after i insert an SD card, the error persists.
opening quickpic gives me the following errors...
Code:
not an error (code 0) could not open the database in read / write mode
Code:
unable to open database file (code 14)
can't delete ANY files manually in ES file explorer even with root explorer enabled.
booted into TWRP and cleared cache and dalvik to no avail.
seems like the phone can't read or write any data, except installing/uninstalling apps via google play still works. seems to be the same problem addressed in this thread http://forum.xda-developers.com/galaxy-s2/help/read-write-errors-advice-solved-t2323801 although i don't know how to identify the corrupt file(s) and delete them or fix permissions...
help!!

...bump?

basically wen that happens is because a file or folder is corrupted, it maybe in any place on your phone really difficult to find. That usually happens after you flash some (app, script), restore a TWRP backup, or a app that have root access doing the wrong thing.
i had this problem two times.
In the 1°, i fix by going in the TWRP, and erased my internal memory, after reboot all good.
this case was very simple i copy every file to pc, erase, after restore the one i need, and everything was fine...
In the 2°, i try that and was not successful, i need to re install the stock rom via fastboot from xml rom file to completed clean my OS.
In both cases, i was not able to make a Titaniumbackup, so i lost some data of a fill apps in the second (because i make a backup every week, if i didn't have it i probably lost everything).
If you don't use titanium, and don't wanna to loose things and app files etc, you can try copy everything on internal and external memory, by plugin on the device to a PC, after a TWRP backup of yours data, after wipe, dalvik cache, data, internal storage, cache, system, re flash the same rom you are now, and after test and see if you can write, restore the data backup.
But that data may corrupted your phone again, because the problem maybe in that.
So if after restore the data all goes bad, redo everything and do not restore data, you will lose app and data, but app can be reinstated.
:good:

baybutcher27 said:
basically wen that happens is because a file or folder is corrupted, it maybe in any place on your phone really difficult to find. That usually happens after you flash some (app, script), restore a TWRP backup, or a app that have root access doing the wrong thing.
Click to expand...
Click to collapse
thank you, i used this as an opportunity to wipe and flash cyanogen. so far so good (seems much smoother too).

Related

How to do a complete backup? (lost apps on the internal SD)

So I had my phone working and decided to try a kernel found here.
I went on, flashed the kernel through cwm, and nothing worked (stuck at loading screen with continous reboots).
So I flashed my recovery image, rebooting stopped by stuck it was at the loading screen anyhow.
So, since I could not come out of it, I downloaded a stock rom (I was running stock by the way), flashed it (with smartflash), rooted it (superoneclick), installed cwm (now v5) and I'm back on.
So I flashed the recovery, and most of the data is back but I lost all the apps on the SD card.
The SD card is the same from which I flashed the recovery image through CWM, and all my music is still there.
So might it be possible that the apps are still there too?
What can I do?
Why all the SD apps disappeared?
Edit: ok maybe we're talking about internal SD card... may it be the CWM v5 doing recovery from a v4 zip?
had this problem very, very, often...
nobody really could help me, but i know, its because of problems with the android_secure folder.
so i´m not an expert and i really don´t know what s the reason, but i tried some things and sometimes it helped...
it can appear if something goes wrong when you install an app or move an app from phone to sdcard, or when you want to restore them with titanium or cwm.
the possibiltythat it happens increases when you do both at the same time or, move many apps at the same time p.e. with gemini or install many apps at the same time (p.e. with panda pc suite).
or if something goes wrong with a market update.
mostly, it starts that you can´t install apps anymore. after reboot all apps on sd are away.
with luck you can repair it and get the apps back.
-delete the market cache.
-delete file smdl2tmp1.asec in android_secure folder on sd card or in mnt/... secure.. damn forgot the path of the second folder where this file can be. gotta google for it.
-or create a new android_secure-folder. unmount sdcard. rename android_secure folder to something different, so that there´s no more an android_secure folder. put sdcard back in the phone, reboot the phone. there will be a new empty android_secure folder. shut phone down, put sdcard into pc again, copy all files from renamed folder to the new android_sd folder, put card back into the phone, restart it and wait. with luck, your apps are back again.
don´t now, maybe it helps when you delete dalvik cache and cache before restart. sometimes it worked, sometimes not.
in your case, your apps are away after restore and not because of install/move2sd issues... so in this case its important to completely delete android_secure folder before restore. make a fullwipe. and after fullwipe i would restart phone once, so that a new clean android_secure folder could be created. hope something helps.
edit:
i did a little trick, that my external sd is mounted as sdcard in my phone. so normally the internal sd card is the "sdcard" in the phone. so, cos you can´t put your internal sd into the pc, you gotta mount it with usb connection.
Thanks but I'm afraid in this case the content really got deleted after I reflashed the rom...
IS there a way to really save everything via cwm?
Or should I use another software?
Also if flashing baseband: what will get deleted?
Flashing baseband will wipe /data
Rusty! said:
Flashing baseband will wipe /data
Click to expand...
Click to collapse
And how does /data relate to my problem?
Is /data backed up by cwm or not?
What is not backupped by cwm and how to backup it?
Rusty! said:
Flashing baseband will wipe /data
Click to expand...
Click to collapse
but you can restore it with nandroid, right? it's going to be just as before?
punyategar said:
but you can restore it with nandroid, right? it's going to be just as before?
Click to expand...
Click to collapse
If you mean baseband then the answer is no. It restores your ROM and all the apps including their data.
punyategar said:
but you can restore it with nandroid, right? it's going to be just as before?
Click to expand...
Click to collapse
Assuming you remembered to back it up yeah.
My radio flash procedure is:
NANDroid backup
Smartflash radio
NANDroid restore
Push new RIL
Use phone
Rusty! said:
Flashing baseband will wipe /data
Click to expand...
Click to collapse
I don't think so.
Kdz tool and official updater didn't wipe data. (Aren't you ?)
They did change only baseband and systems.
But you have to nandroid backup to avoid bricked.
You may not think so, but it does.
kitty's_daddy said:
I don't think so.
Kdz tool and official updater didn't wipe data. (Aren't you ?)
They did change only baseband and systems.
But you have to nandroid backup to avoid bricked.
Click to expand...
Click to collapse
Definitely wipe /data
Both Rusty! And myself always test new basebands and it definitely wipe /data.
Edit: sorry I'm referring to smartflash.
temasek said:
Definitely wipe /data
Both Rusty! And myself always test new basebands and it definitely wipe /data.
Click to expand...
Click to collapse
I think you would be correct.
It's only my opinion.
i use kdz tool, no user data will lost, only system(happened on me 2 times). don't use smartflash it will wipe all data
kitty's_daddy said:
I don't think so.
Kdz tool and official updater didn't wipe data. (Aren't you ?)
They did change only baseband and systems.
But you have to nandroid backup to avoid bricked.
Click to expand...
Click to collapse
dont know about kdz, official updater didn't touch my /data at all. i mean, my apps were just as before, the settings...
just use titanium backup and make sure the save location is in the sd card
For certain apps that have their own way of saving data, it might not always work.
I just can't find the correct answer in the posts I've read so far.
If I flash a kernel that doesn't work, and then I restore a CWM backup, why it wouldn't boot again?
If I reflash the stock rom and then restore a previous CWM backup, why something won't be there?
What exactly should I do in CMW to obatin a complete backup?
Or should I use something else?

I think I screwed my phone :(

I downloaded the HydracoreNirvana kernel and installed it through CWM.
Later I thought of installing the Ultimate N7000 XXLSZ JellyBean 4.1.2 v5.2 ROM but I read somewhere that the HydraCoreNirvana kernel was not supported so I download SpeedMod K5-1 and flashed it through odin. The phone Rebooted but it didn't restart. It only showed the "Samsung Galaxy Note" screen and won't turn on.
I managed to boot into recovery and install the SpeedMod kernel and then, as stated in the ROM's OP, I flashed it checking every step as I took.
ROM was installed successfully but after the Language selection screen it shows "Samsung SetupWizard has stopped". I tried reflashing the ROM but its still the same error.
How do I get past this??
Any help would be greatly appreciated.
boot into recovery... mounts and storage> format - system, data, cache and preload and install the rom again
nokiamodeln91 said:
boot into recovery... mounts and storage> format - system, data, cache and preload and install the rom again
Click to expand...
Click to collapse
Okayy. That worked. Thanks a lot!
But the phone is lagging a lot now. Its even worse than before (And I haven't even installed any apps myself yet!). Any way to correct that problem?
install Titanium Backup and remove some of the apps that you dont use.. clear some space and it should become smooth.. also as you have just installed the rom, wait for media scanner to finish... give it a couple of hours
Okay.. One last question, I backed up my Messages and Call Logs through Titanium Backup to an .xml file but now when I want to restore it it doesn't give me the option to select from card/phone. It only shows "DB text editor" and "Dropbox". How do I fix this?
check if your internal and ext SD is detected properly. also check in TB preferences for the location of the backup folder
Yes, the Ext. card and the SD card are detected properly. I copied the backed up .xml files to the existing back up folder for TB but it still doesn't give me the option to restore from the card.
did you try going to preferences>backup folder location> detect
It says "No backup location was found" even though I've set a backup location!
may be try reinstalling TB

Free disk space disappeared

I have a galaxy tab 8.9 with Cwm installed (Gt-P7310)
I've been trying out different rom's lately.
After returning to the stock Ics had noticed that only free memory 1 Gb. Before trying the Rom's had a free space of 6 gb.
The Sd folder has a size of 6 Gigas. I do not know where they might be the other 5 gb.
Is there any way to delete the entire contents of the tablet and re-install android? Something similar to format a pc?
I've tried installing with Odin, but the end had the same available space.
Thanks!!
Have you tried wiping the sdcard partition?
0. Before you do this make a nandroid backup and transfer that backup to your pc, along with any important files you want to keep.
Download a ROM.zip and Gapps.zip and put them on the sdcard partition.
1. In recovery, wipe system, data, cache, and dalvik.
2. Install a new ROM and Gapps.
This next part could be risky. If something went wrong with your flash, it might be a pain to get files back on to fix it, but if you know how to use ADB, it is easy enough. That being said, most flashes go fine, and you shouldn't have any trouble.
3. Wipe the sdcard partition. Reboot. When all is said and done, you should have around 10 or 12 gb of space.
Thanks for the tip.
I had already tried to wipe system, data, cache, and dalvik and install a new rom with no results.
But I found the problem:
The Camera folder was duplicated in: / data / media.
After removing it I was the free space que I expected.
Thanks for your help!

Xiaomi Mi A2 (jasmine) can I update stock ROM via TWRP

Good Morning, I want to upgrade brother device to new version of android (because he can`t install security updates for unknow reasons), but I affraid that he loose all apps and settings (he is a firefighter and have app from firefighter station which signals dangerous traffic etc.) So my question is can I update downloaded stock ROM via TWRP (adb sideload) without fears that he loose everything?
iHusky said:
Good Morning, I want to upgrade brother device to new version of android (because he can`t install security updates for unknow reasons), but I affraid that he loose all apps and settings (he is a firefighter and have app from firefighter station which signals dangerous traffic etc.) So my question is can I update downloaded stock ROM via TWRP (adb sideload) without fears that he loose everything?
Click to expand...
Click to collapse
The only thing that will take your fear, is a backup of all important partitions (boot, system, data, vendor, efs, persist), stored externally, plus a copy of the internal storage content, also stored externally.
With that you should be able to restore everything to the exact point it is at right now, so you'll really need to mess up hard to not come out of basically any situation with those partitions saved.
As for your inital question:
Why don't you just update via ota if you wanna stay on stock?
Phil_Smith said:
The only thing that will take your fear, is a backup of all important partitions (boot, system, data, vendor, efs, persist), stored externally, plus a copy of the internal storage content, also stored externally.
With that you should be able to restore everything to the exact point it is at right now, so you'll really need to mess up hard to not come out of basically any situation with those partitions saved.
As for your inital question:
Why don't you just update via ota if you wanna stay on stock?
Click to expand...
Click to collapse
Because, brother have error, while try install security updates, but he have from March this year
And this is not possible to make update, because after click backup (Data partition) I get error "cannot create data/media/0/TWRP
iHusky said:
Because, brother have error, while try install security updates, but he have from March this year
And this is not possible to make update, because after click backup (Data partition) I get error "cannot create data/media/0/TWRP
Click to expand...
Click to collapse
Okay, so maybe first copying internal storage content to your PC and backup important apps would be sufficient then.
For apps you can use Titanium Backup (good, but makes troubles on android 10 at the moment), Swift Backup (recommend by many others) and more.
These backup solutions save apps and app data on your phone, so copy that to an external place, or you might lose them if you need to format data (which I'll suggest).
After your "backups" are made, I would wipe every partition in each slot, which you can also achieve with a "fastboot -w", and then also format data - the one where you need to type "yes" (which will also erase all internal storage content, but most probably will also solve your troubles).
From here there are tools like miflash or fastboot images to reflash stock (inform yourself about them, before you start all that!).
Be sure to flash the latest one right away, so you won't be in the need of "dirty" updates immediately again.
Afterwards, you can copy back the internal storage content and the folder of the backup app, and restore the previously saved apps.
Phil_Smith said:
Okay, so maybe first copying internal storage content to your PC and backup important apps would be sufficient then.
For apps you can use Titanium Backup (good, but makes troubles on android 10 at the moment), Swift Backup (recommend by many others) and more.
These backup solutions save apps and app data on your phone, so copy that to an external place, or you might lose them if you need to format data (which I'll suggest).
After your "backups" are made, I would wipe every partition in each slot, which you can also achieve with a "fastboot -w", and then also format data - the one where you need to type "yes" (which will also erase all internal storage content, but most probably will also solve your troubles).
From here there are tools like miflash or fastboot images to reflash stock (inform yourself about them, before you start all that!).
Be sure to flash the latest one right away, so you won't be in the need of "dirty" updates immediately again.
Afterwards, you can copy back the internal storage content and the folder of the backup app, and restore the previously saved apps.
Click to expand...
Click to collapse
I tried MiFlash, but without wipe anything, and it don`t upgrade version of system
But if I must, flash 2 slots A/B using MiFlash or one slot (A) is for system?
You can just download the zip file with version u want from the site below and flash it via TWRP making cache and dalvik cache wipes and changing slots at the end.
https://mifirm.net/model/jasmine.ttt#zip-mif
pfss said:
You can just download the zip file with version u want from the site below and flash it via TWRP making cache and dalvik cache wipes and changing slots at the end.
https://mifirm.net/model/jasmine.ttt#zip-mif
Click to expand...
Click to collapse
So, I don't need
to flash second slot?
iHusky said:
So, I don't need
to flash second slot?
Click to expand...
Click to collapse
Just if u want. It's not necessary.
In october I updated mine this way but forgot to change the slot before rebooting to the system and realized that was in the old Android version. I just went to TWRP again and changed slot. After rebooting, the phone was in the updated Android One.
pfss said:
Just if u want. It's not necessary.
In october I updated mine this way but forgot to change the slot before rebooting to the system and realized that was in the old Android version. I just went to TWRP again and changed slot. After rebooting, the phone was in the updated Android One.
Click to expand...
Click to collapse
I tried using fastboot and MiFlash but after all it stuck on bootloader
iHusky said:
I tried using fastboot and MiFlash but after all it stuck on bootloader
Click to expand...
Click to collapse
I just updated mine to November patch downloaded from here: https://mifirm.net/downloadzip/4197
I entered fastboot mode, executed
Code:
fastboot boot my_twrp_image_file.img
In TWRP made de wipes, flashed the ROM, changed slot and rebooted phone. It looks like it's normal.

Soft bricked phone after trying to restore backup after LineageOS flash

I flashed the lineageOS 17 roms that is available and it worked but then i realized that gapps was not complete so i went into TWRP to restore my old Backup of ColorOS 6.1 (A.08 version), also it had magisk installed, but it then would show the first boot logo then restart and go into the recovery. I then tried formating everything except internal storage and also factory wipe and now my backup is gone and everything else on my phone. I can still boot into recovery and such but now it wont even ask me for the decryption password. File manager in TWRP shows 3 folders in the internal storage (in sdcard 0, obb and TWRP).
Any help? i dont wont to break things even more.
Edit: I just noticed that in the 0 folder in sdcard there is 65 gb of folders and files. Im assuming that are my old files but they are encrypted. Any way to undo that?
I guess you have to install a rom and set everything up from scratch. You lost all your files when you formated data, including backups, etc.
If you want to update or change your recovery, now it's the time - since there's no rom or files to lost.
johnnyjoe said:
I guess you have to install a rom and set everything up from scratch. You lost all your files when you formated data, including backups, etc.
If you want to update or change your recovery, now it's the time - since there's no rom or files to lost.
Click to expand...
Click to collapse
I didnt format the internal storage only data and i edited the post saying that i think i found all the data but still encrypted. Im guessing TWRP wont automatically decrypt it.
For anyone with a similar problem. I reinstalled LineageOS and it decrypted all the files.

Categories

Resources