[SOLVED!] Password/ Pattern Incorrect! any fix without losing data? - Xiaomi Redmi Note 4 Questions & Answers

Hi friends, I had recently used Lineage OS but I wanted to return back to xiaomi.eu weekly rom. I have restored my data backup partition afterwards I flashed my ROM using twrp. Now my password is not working, it shows me incorrect password. The problem is that I cannot use my FP(It's obvious as it happen on every boot/ reboot).

through twrp fileexplorer go to data/system/ delete two files with extention .key and three files with keyword 'locksettings'. reboot.

[email protected]!$h said:
through twrp fileexplorer go to data/system/ delete two files with extention .key and three files with keyword 'locksettings'. reboot.
Click to expand...
Click to collapse
thanks

Need Help!Twrp password not working,cant access storage.any solutions???

Same issue, not solved!
Hello,
I have the same problem. It took me all day to finally install twrp recovery since I hadn't turn USB debugging on. I finally was able to do it and i deleted the 5 password files - but now my phone is in a bootloop. I wiped the usual data like Dalvik and cache, but it didn't change a thing.
Also, after I deleted this and took a lot on my File Storage, and navigate to /data/system, where i deleted the password files, there is NOTHING but one thing called "storage.xml".
What am I supposed to do now? I dont know what to do anymore, I have so many things already.

shoerri said:
Hello,
I have the same problem. It took me all day to finally install twrp recovery since I hadn't turn USB debugging on. I finally was able to do it and i deleted the 5 password files - but now my phone is in a bootloop. I wiped the usual data like Dalvik and cache, but it didn't change a thing.
Also, after I deleted this and took a lot on my File Storage, and navigate to /data/system, where i deleted the password files, there is NOTHING but one thing called "storage.xml".
What am I supposed to do now? I dont know what to do anymore, I have so many things already.
Click to expand...
Click to collapse
Flash a new Rom . Or you can ask for files in data/system from anyone to upload it on cloud from there you can download and copy those files into system folder it might work without losing a byte of data.

smarty1 said:
Flash a new Rom . Or you can ask for files in data/system from anyone to upload it on cloud from there you can download and copy those files into system folder it might work without losing a byte of data.
Click to expand...
Click to collapse
I found a solution now, it didn't boot because of the DM verity. I installed a package to solve that via installing in twrp and then it worked, but all my data was gone.

Just flash this file with the TWRP and you're done!
The file is not mine, it was extracted from the PitchBlack Recovery Project.
http://www.mediafire.com/file/2pm115wdhj7851z/rmpass.zip/file
I'm sorry for uploading the file to mediafire but I could not upload it directly to XDA

laguillo said:
Just flash this file with the TWRP and you're done!
The file is not mine, it was extracted from the PitchBlack Recovery Project.
http://www.mediafire.com/file/2pm115wdhj7851z/rmpass.zip/file
I'm sorry for uploading the file to mediafire but I could not upload it directly to XDA
Click to expand...
Click to collapse
Thanks bro.. worked! :fingers-crossed:

Related

[HELP] HTC Desire VC - accidentally formatted the /system folder with recovery mode

My HTC Desire VC (T328d) was rooted and running Android OS 4.0.3 (ics).
In recovery mode, I accidentally formatted /system folder (from internal phone memory).
This is because the recovery mode is all in chinese language and I did a huge mistake.
The phone cannot boot showing HTC logo screen and no boot sound.
I've downloaded the kernel for this device at htcdev.com and I don't know how to use it and what it is for.
Fortunately, I can enter recovery mode. My friend has the same device and his is not rooted yet. Maybe I can get some files from him.
Any solution, please?
Learn Chinese?
Flash a rom?
You should ask in a Desire forum tho
zeppelinrox said:
Learn Chinese?
Flash a rom?
You should ask in a Desire forum tho
Click to expand...
Click to collapse
I can't find the rom ... can u please help me?
There is no forum for my device. Only for Desire, Desire HD, Desire V ,.........
Looks like your best shot is to root your friends phone, do a nandroid backup, restore it to yours, then reset to factory defaults.
Don't forget to use V6 SuperCharger afterwards... lol
please tell me
zeppelinrox said:
Looks like your best shot is to root your friends phone, do a nandroid backup, restore it to yours, then reset to factory defaults.
Don't forget to use V6 SuperCharger afterwards... lol
Click to expand...
Click to collapse
Thanks for your advice. But, I don't know how to do nandroid backup. The instructions say that it is apk app. I can't even boot my phone and how can I use apk ? In addition, now I installed a recovery from china site (for Desire VC specifically) and it contains backup and restore function. Is it the same with Nandroid Backup or CWM ?
Can you instruct me in some steps, please ?
erizchen said:
Thanks for your advice. But, I don't know how to do nandroid backup. The instructions say that it is apk app. I can't even boot my phone and how can I use apk ? In addition, now I installed a recovery from china site (for Desire VC specifically) and it contains backup and restore function. Is it the same with Nandroid Backup or CWM ?
Can you instruct me in some steps, please ?
Click to expand...
Click to collapse
Yes, the backup option you see in recovery is Nandroid backup. Please be carefull in formatting system, it would wipe your ROM. Always take nandroid backup before you playing with other Rom.
Here you go,
1. Take nandroid backup of your friends ROM
2. Place the backup into your sd card( backup available in clockwork folder in ur friends mobile. Just copy the entire clockwork folder and paste in ur sd card. Now mount the sdcard in ur mobile)
3. Reboot in recovery.
4. Wipe cache and dalvik
5. Restore from nandroid.
Let me know this helps..
Cyb0rgz said:
Yes, the backup option you see in recovery is Nandroid backup. Please be carefull in formatting system, it would wipe your ROM. Always take nandroid backup before you playing with other Rom.
Here you go,
1. Take nandroid backup of your friends ROM
2. Place the backup into your sd card( backup available in clockwork folder in ur friends mobile. Just copy the entire clockwork folder and paste in ur sd card. Now mount the sdcard in ur mobile)
3. Reboot in recovery.
4. Wipe cache and dalvik
5. Restore from nandroid.
Let me know this helps..
Click to expand...
Click to collapse
What does "dalvik" mean ?
I've never heard of it. Can u explain me a little?
erizchen said:
What does "dalvik" mean ?
I've never heard of it. Can u explain me a little?
Click to expand...
Click to collapse
Dalvik is virtual machine that runs Android Apps on Android. Dalvik-cache is the cache area for Dalvik VM, it is created when the Dalvik VM optimizes your app for running.
Dalvik is the virtual machine that is used by Android. It is generally thought of as a java virtual machine, although this is not precisely correct. It uses an object model that is identical to java, and it's memory model is also nearly equivalent. But the
Accordingly, it uses a completely different bytecode than java. However, the Android SDK includes the dex tool to translate java bytecode to dalvik bytecode, which is why you are able to write Android applications in java.
When you install an application on Android, it performs some modifications and optimizations on that application's dex file (the file that contains all the dalvik bytecode for the application). It then caches the resulting odex (optimized dex) file in the /data/dalvik-cache folder, so that it doesn't have to perform the optimization process every time it loads an application.
Cyb0rgz said:
Dalvik is virtual machine that runs Android Apps on Android. Dalvik-cache is the cache area for Dalvik VM, it is created when the Dalvik VM optimizes your app for running.
Dalvik is the virtual machine that is used by Android. It is generally thought of as a java virtual machine, although this is not precisely correct. It uses an object model that is identical to java, and it's memory model is also nearly equivalent. But the
Accordingly, it uses a completely different bytecode than java. However, the Android SDK includes the dex tool to translate java bytecode to dalvik bytecode, which is why you are able to write Android applications in java.
When you install an application on Android, it performs some modifications and optimizations on that application's dex file (the file that contains all the dalvik bytecode for the application). It then caches the resulting odex (optimized dex) file in the /data/dalvik-cache folder, so that it doesn't have to perform the optimization process every time it loads an application.
Click to expand...
Click to collapse
Thanks alot for your explanation.
But, I don't have any setting to clear dalvik. Anyway to do so?
These are in my list of recovery menu:
1 - Reboot the system
2 - Select Update
3 - Restore the factory
4 - Empty the cache
5 - Backup and recovery
6- Mount storage
7 - Advance
- Empty the battery status
- Reporting errors
- Keys test
- Card partition
- Permissions repair
8 - Shutdown
I wish to succeed with nandroid backup and restore method.
erizchen said:
Thanks alot for your explanation.
But, I don't have any setting to clear dalvik. Anyway to do so?
These are in my list of recovery menu:
1 - Reboot the system
2 - Select Update
3 - Restore the factory
4 - Empty the cache
5 - Backup and recovery
6- Mount storage
7 - Advance
- Empty the battery status
- Reporting errors
- Keys test
- Card partition
- Permissions repair
8 - Shutdown
I wish to succeed with nandroid backup and restore method.
Click to expand...
Click to collapse
Your recovery is not CWM recovery.
You must flash CWM recovery first. With CWM recovery, you can find "wipe delvik cache"
under Advance menu.
erizchen said:
I wish to succeed with nandroid backup and restore method.
Click to expand...
Click to collapse
It's easy. Just try to do all steps with patience. If you have any doubts, please do clear it. Don't assume anything just few mins of Googling will solve major issues..
I will help as much as I can to get things works well in your desire cheers
Cyb0rgz said:
It's easy. Just try to do all steps with patience. If you have any doubts, please do clear it. Don't assume anything just few mins of Googling will solve major issues..
I will help as much as I can to get things works well in your desire cheers
Click to expand...
Click to collapse
Millions of Thanks to you all ... I can do it successfully :victory:
I just backup my friend's ROM (which was updated by him).
And I restored all of his ROM.
My device is being well now ..... but still problem there are errors for wifi and bluetooth
I can't switch on wifi and bluetooth.
Below the "wifi" text, it shows "error".
:angel: :angel:
I've tried the ways from here and there , but it didn't work
Please help me with this again.
Am I a problem maker ?
erizchen said:
Millions of Thanks to you all ... I can do it successfully :victory:
I just backup my friend's ROM (which was updated by him).
And I restored all of his ROM.
My device is being well now ..... but still problem there are errors for wifi and bluetooth
I can't switch on wifi and bluetooth.
Below the "wifi" text, it shows "error".
:angel: :angel:
I've tried the ways from here and there , but it didn't work
Please help me with this again.
Am I a problem maker ?
Click to expand...
Click to collapse
Try all basic things, like clearing RAM, Booting your phone etc. If its not solved, try to flash the kernel via recovery. Please ensure that you are s-off for this. Even after flashing the kernel that issue persists, please check your radio (baseband) is latest. Else update the radio. I guess, flashing kernel will solve the issue.
Please let me know whether you are s-off and rooted.
Tips: its my personal advice to be s-off (your warranty voids)
Edit:
If you are HTC.dev unlocked and s-on then follow below steps to flash the kernel.
http://forum.xda-developers.com/showthread.php?t=1752270
Cyb0rgz said:
Try all basic things, like clearing RAM, Booting your phone etc. If its not solved, try to flash the kernel via recovery. Please ensure that you are s-off for this. Even after flashing the kernel that issue persists, please check your radio (baseband) is latest. Else update the radio. I guess, flashing kernel will solve the issue.
Please let me know whether you are s-off and rooted.
Tips: its my personal advice to be s-off (your warranty voids)
Edit:
If you are HTC.dev unlocked and s-on then follow below steps to flash the kernel.
http://forum.xda-developers.com/showthread.php?t=1752270
Click to expand...
Click to collapse
My device is not s-off yet. I've just unlocked with htcdev. I searched s-off for this device but i can't find and don't know how to.
I have kernel downloaded from htc official web. Can i flash it with s-on ?
PRE REQUISITES:
1. ROOTED/UNLOCKED Phone.
2. HTC Sync Drivers (Install HTC Sync, it will install necessary drivers; Make sure HTC sync is not active; Just Exit from HTC Sync if its running)
3. Android SDK/Fast boot and Adb installed.
4. ES or ROOT Explorer (Available in google play)
*
<<PLEASE TAKE NANDROID BACKUP>>
1.* Follows Steps 1 to 5 from This thread, http://forum.xda-developers.com/showthread.php?t=1752270
2.* Extract the bcm4329.ko from the your kernel.zip
*
[ with Root Exploror or ES Explorer ]
1. touch Mount R/W
2. copy bcm4329.ko to /system/lib/modules
3. long press on the bcm4329.ko and select Permissions then check read, write for owner, read for group and read for others, click ok
4. long press again on the bcm4329.ko and select Change Owner, then pick 0-root for owner and pick 0-root for group, click ok
*
-----I am not responsible for any problems caused to your mobile-----
Cyb0rgz said:
PRE REQUISITES:
1. ROOTED/UNLOCKED Phone.
2. HTC Sync Drivers (Install HTC Sync, it will install necessary drivers; Make sure HTC sync is not active; Just Exit from HTC Sync if its running)
3. Android SDK/Fast boot and Adb installed.
4. ES or ROOT Explorer (Available in google play)
*
<<PLEASE TAKE NANDROID BACKUP>>
1.* Follows Steps 1 to 5 from This thread, http://forum.xda-developers.com/showthread.php?t=1752270
2.* Extract the bcm4329.ko from the your kernel.zip
*
[ with Root Exploror or ES Explorer ]
1. touch Mount R/W
2. copy bcm4329.ko to /system/lib/modules
3. long press on the bcm4329.ko and select Permissions then check read, write for owner, read for group and read for others, click ok
4. long press again on the bcm4329.ko and select Change Owner, then pick 0-root for owner and pick 0-root for group, click ok
*
-----I am not responsible for any problems caused to your mobile-----
Click to expand...
Click to collapse
From where do I have to find "boot.img" ?
I have only back up folder (ROM) from my friend's phone. And I just restored it (including boot.img) with CWM nandroid backup.
Is that the same with your instruction from step 1 to 5 ?
I can selectively restore "boot.img" with CWM nandroid recovery. Is that the same ?
In addition, the version of Kernel I downloaded is the same with my phone currently. I downloaded it from http://htcdev.com/devcenter/downloads
I got primodd-ics-crc-3.0.16-ead8920.zip file. When I extract it, I just found "bcm4329" folder under "primodd-ics-crc-3.0.16-ead8920/drivers/net/wireless" path. I can't find "bcm4329.ko"
Do you mean the driver in my system is not compatible with my phone after restore ?
erizchen said:
From where do I have to find "boot.img" ?
I have only back up folder (ROM) from my friend's phone. And I just restored it (including boot.img) with CWM nandroid backup.
Is that the same with your instruction from step 1 to 5 ?
I can selectively restore "boot.img" with CWM nandroid recovery. Is that the same ?
Click to expand...
Click to collapse
Boot.IMG is consists of kernel and ramdisk. They both necessary to start up the device, initializing the hardware, phone etc.
Since you are s-on, while placing the boot.img from nandroid, its not well placed. S-0N means, security on that doesn't allows to flash boot.img from nandroid.
I guess, every time you flash the via recovery boot.img is not placed in correct partition.
So, you have alternative method which allows to place the boot.img in correct path.That's why asked to do it via fastboot mode. Hope you understand.
In addition, the version of Kernel I downloaded is the same with my phone currently. I downloaded it from http://htcdev.com/devcenter/downloads
I got primodd-ics-crc-3.0.16-ead8920.zip file. When I extract it, I just found "bcm4329" folder under "primodd-ics-crc-3.0.16-ead8920/drivers/net/wireless" path. I can't find "bcm4329.ko"
Do you mean the driver in my system is not compatible with my phone after restore ?
Click to expand...
Click to collapse
Since you have problem only with WiFi and Bluetooth. You can skip fastboot method. bcm4329.ko is same as what you found in the kernel that you downloaded from HTC dev. (Just right click and check the file extension from your pc)
Your friends WiFi and Bluetooth are working fine. bcm4329.ko is responsible for WiFi and Bluetooth. Since you used recovery to restore nandroid, the bcm4329.ko is not placed in the system/lib/modules path. So manually you are placing it
To make it easier do the following
1. From your friends mobile, goto system/lib/modules copy bcm4329.ko file into your pc (use root file explorer)
2. Place that file in your sd card.
3. Then use root explorer and follow the steps mentioned in previous post.( 4 steps under root explorer)
Please let me know if this works.
PS: take nandroid before performing. No warranty for any tips provided. Please do search on google regarding kernel, android partition, bcm4329.ko etc.
Since I don't have pc, I can't help you more with respective links to other sites. Yes, It took much time to compose in my android touch screen.
Any shine on your WiFi / Bluetooth? Just curious to know about it..
Trying
Cyb0rgz said:
Any shine on your WiFi / Bluetooth? Just curious to know about it..
Click to expand...
Click to collapse
What does "shine" mean ?
My friend can't find "bcm4329.ko" such a file under /system/lib/modules
So, I'm trying to take matching the files under /system/lib/modules to know the missing files.
Any idea ?
My friend told me he has same files as mine in /system/lib/modules
These are the file list
bluetooth.ko
bnep.ko
btwilink.ko
cfg80211.ko
compat.ko
fm_drv.ko
hidp.ko
kineto_gan.ko
mac80211.ko
rfcomm.ko
wl12xx.ko
wl12xx_sdio.ko
He has only those files (not include "bcm4329.ko")
What should I do now ?

[Help]Cannot remove datafiles chrome

Goodday,
A buddy of mine has a i9300,we have rooted the phone and installed twrp recovery on it.
The problem is twrp is not working because it is giving a error:unable to stat data data chrome bla bla.... We have tried different recoverys Philz,CWM and TWRP and they giving the same error.So we tried to remove the folder in that path with Rootexplorer and can't remove it,also all the files are missing in the chrome folder.We tried to copy paste the missing files from another phone but it will not paste the files.So the question is how we can fix the problem to get recovery to work.
Thanks in advance ?

Need help saving data from bootloping S2

Hi,
I'm running the last cyanogenmod 12.1 ROM on my S2. There is no custom kernel or recovery. The only thing I did was a repartition to 1GB system. This setup ran since 2016 feb. without problems. Tuesday morning got a notification from the play store, that there are updates to some of my apps, so I set my phone to update them all and left it there. I came back after 20min and then came the problem:
The phone is bootlooping. The booting animation finishes, then it starts optimizing my apps, every time different amount of apps. After it finishes it starts booting again... rinse and repeat. I tried to leave it there for a very long time, with no success. The phone is very hot in the CPU area and the battery gets hot too when it's bootlooping.
I am able to go in recovery and download mode. My recovery is the stock cyanogen recovery unfortunately. I tried putting it in download mode and since I have Android Studio installed on my pc, I tried to establish an adb shell (with adb shell command) with the adb tool that came it. Unfortunately it does not find my device (neither with adb devices). I might do it wrong though. Fortunately Odin 3.04 seems to recognize my phone, so I might be able the flash something, but I'm afraid that my internal memory is starting to fail and that is causing all these issues, so the flash would fail. First I'd like to try to save data without flashing if possible.
I have most of my user data on my sd card, so the most important thing would be to save is my contacts, messages and call history. No, I don't sync it with google, yes I know it's stupid. It used to mess up my contact list so I dropped using it.
Any help and advice would be appreciated, thanks in advance!
N7Gabe said:
Hi,
I'm running the last cyanogenmod 12.1 ROM on my S2. There is no custom kernel or recovery. The only thing I did was a repartition to 1GB system. This setup ran since 2016 feb. without problems. Tuesday morning got a notification from the play store, that there are updates to some of my apps, so I set my phone to update them all and left it there. I came back after 20min and then came the problem:
The phone is bootlooping. The booting animation finishes, then it starts optimizing my apps, every time different amount of apps. After it finishes it starts booting again... rinse and repeat. I tried to leave it there for a very long time, with no success. The phone is very hot in the CPU area and the battery gets hot too when it's bootlooping.
I am able to go in recovery and download mode. My recovery is the stock cyanogen recovery unfortunately. I tried putting it in download mode and since I have Android Studio installed on my pc, I tried to establish an adb shell (with adb shell command) with the adb tool that came it. Unfortunately it does not find my device (neither with adb devices). I might do it wrong though. Fortunately Odin 3.04 seems to recognize my phone, so I might be able the flash something, but I'm afraid that my internal memory is starting to fail and that is causing all these issues, so the flash would fail. First I'd like to try to save data without flashing if possible.
I have most of my user data on my sd card, so the most important thing would be to save is my contacts, messages and call history. No, I don't sync it with google, yes I know it's stupid. It used to mess up my contact list so I dropped using it.
Any help and advice would be appreciated, thanks in advance!
Click to expand...
Click to collapse
Ok, did you try dirty flashing the ROM using CyanogenMod recovery?
And then wiping cache and dalvik cache?
MigoMujahid said:
Ok, did you try dirty flashing the ROM using CyanogenMod recovery?
And then wiping cache and dalvik cache?
Click to expand...
Click to collapse
First of all, thanks for the advice, I didn't think of that. I assume this means there is probably no solution without flashing. Do I need to flash gapps too?
N7Gabe said:
First of all, thanks for the advice, I didn't think of that. I assume this means there is probably no solution without flashing. Do I need to flash gapps too?
Click to expand...
Click to collapse
No, no need for that, just the ROM, and it won't delete anything.
MigoMujahid said:
No, no need for that, just the ROM, and it won't delete anything.
Click to expand...
Click to collapse
So, I went to recovery, pressed apply update, searched for the cm12.1-20160203-nightly rom (same I had installed), flashed it without error messages, then I pressed wipe cache partition, then reboot system now. Now the phone starts to boot, the boot animation is playing for a few minutes, then the phone turns off. Tried it multiple times, with and without charging. I can still get into recovery.
N7Gabe said:
So, I went to recovery, pressed apply update, searched for the cm12.1-20160203-nightly rom (same I had installed), flashed it without error messages, then I pressed wipe cache partition, then reboot system now. Now the phone starts to boot, the boot animation is playing for a few minutes, then the phone turns off. Tried it multiple times, with and without charging. I can still get into recovery.
Click to expand...
Click to collapse
Ok, we will try another thing, can your phone be recognized using adb in recovery?
If so you can pull the data(contacts, sms) using adb pull command.
The data usually is stored there:
/data/data/com.android.providers.telephony/databases/mmssms.db
And there:
/data/data/com.android.providers.contacts/databases/contacts.db
If you were able to do it then fine, if not, there is luckily another solution!!
You have the latest cm12.1 build which is Feb 3rd build, so your build support iso-rec TWRP recovery, so you can flash TWRP recovery zip provided by the.gangster using CM recovery and reboot recovery so it will replace the CM recovery with TWRP, in TWRP you can mount system and data using "mount", and using the file manager there you can access the above mentioned directories and copy the files manually in the external sdcard(or the internal sdcard), then you can clean flash and copy them again after that.
That would be the ultimate solution
MigoMujahid said:
Ok, we will try another thing, can your phone be recognized using adb in recovery?
If so you can pull the data(contacts, sms) using adb pull command.
The data usually is stored there:
/data/data/com.android.providers.telephony/databases/mmssms.db
And there:
/data/data/com.android.providers.contacts/databases/contacts.db
If you were able to do it then fine, if not, there is luckily another solution!!
You have the latest cm12.1 build which is Feb 3rd build, so your build support iso-rec TWRP recovery, so you can flash TWRP recovery zip provided by the.gangster using CM recovery and reboot recovery so it will replace the CM recovery with TWRP, in TWRP you can mount system and data using "mount", and using the file manager there you can access the above mentioned directories and copy the files manually in the external sdcard(or the internal sdcard), then you can clean flash and copy them again after that.
That would be the ultimate solution
Click to expand...
Click to collapse
In recovery I can see my device with adb, but every command runs into a device unauthorized error.
Code:
D:\Android\sdk\platform-tools>adb devices
List of devices attached
0009bd0863c43f unauthorized
Code:
D:\Android\sdk\platform-tools>adb shell
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
etc.
So I assume I flash TWRP with odin. Is it possible to save data to a PC through USB connection with TWRP? I'm asking, because I'd still prefer a full backup if possible (I don't have the space for it on my external sd). Second question, if I'm able to save mmssms.db and contacts.db, how do I extract the data from it, or maybe reimport it (even to a different phone/ROM)? I don't entirely understand isorec, but let's say I manage to flash TWRP and save my data. Can I flash the latest LOS 14.1 and keep the isorec TWRP? Or after the LOS flash, I need to flash TWRP again? As I mentioned I already have the 1GB system partition, so that shouldn't be an issue. It would be a nice two birds with one stone, saving my data and updating my obsolete ROM to a isorec TWRP+LOS 14.1 combo.
Lastly, this is the recovery you mentioned, right?: recovery-the.gangster-IsoRec-TWRP-3.1.0-0-i9100.zip
N7Gabe said:
In recovery I can see my device with adb, but every command runs into a device unauthorized error.
etc.
So I assume I flash TWRP with odin. Is it possible to save data to a PC through USB connection with TWRP? I'm asking, because I'd still prefer a full backup if possible (I don't have the space for it on my external sd). Second question, if I'm able to save mmssms.db and contacts.db, how do I extract the data from it, or maybe reimport it (even to a different phone/ROM)? I don't entirely understand isorec, but let's say I manage to flash TWRP and save my data. Can I flash the latest LOS 14.1 and keep the isorec TWRP? Or after the LOS flash, I need to flash TWRP again? As I mentioned I already have the 1GB system partition, so that shouldn't be an issue. It would be a nice two birds with one stone, saving my data and updating my obsolete ROM to a isorec TWRP+LOS 14.1 combo.
Lastly, this is the recovery you mentioned, right?: recovery-the.gangster-IsoRec-TWRP-3.1.0-0-i9100.zip
Click to expand...
Click to collapse
First, TWRP won't be flashed with Odin, it will be flashed with CM recovery that you already have, and yes i meant the one you mentioned.
Second, the contacts.db and mmssms.db won't take that much space, and anyway it's OK to copy them to internal sdcard, not obligated to external, and no need to access them, after you flash another ROM like LOS 14.1, you can re copy them back to their directories.
Third, if you flash the latest LOS 14.1, you can keep the iso-rec TWRP it won't be removed.
MigoMujahid said:
First, TWRP won't be flashed with Odin, it will be flashed with CM recovery that you already have, and yes i meant the one you mentioned.
Second, the contacts.db and mmssms.db won't take that much space, and anyway it's OK to copy them to internal sdcard, not obligated to external, and no need to access them, after you flash another ROM like LOS 14.1, you can re copy them back to their directories.
Third, if you flash the latest LOS 14.1, you can keep the iso-rec TWRP it won't be removed.
Click to expand...
Click to collapse
Okay, so I need to find an SD card reader then, to put the recovery on it. Or is there another way to get it on the phone?
By the way, thank you for taking your time and helping me, I'm really grateful!
N7Gabe said:
Okay, so I need to find an SD card reader then, to put the recovery on it. Or is there another way to get it on the phone?
By the way, thank you for taking your time and helping me, I'm really grateful!
Click to expand...
Click to collapse
No pb bro, you're welcome.
Yes, you will need to get the recovery in the phone somehow, or you can put your memory card in another phone and use the phone to put the recovery in the sdcard, then place it in your phone again.
That would be an alternative if you don't have a sdcard reader.
MigoMujahid said:
No pb bro, you're welcome.
Yes, you will need to get the recovery in the phone somehow, or you can put your memory card in another phone and use the phone to put the recovery in the sdcard, then place it in your phone again.
That would be an alternative if you don't have a sdcard reader.
Click to expand...
Click to collapse
I managed to get it on the phone and flashed it. The phone was plugged in to my pc, and I could acces my internal SD so I managed to back that up. But here's the thing, TWRP file manager showed my /data to be empty, and not long after, the phone just shut down. My battery is only a few months old, so that should not be the issue, and the phone was also charging from the PC.
After this shutdown, I had a very hard time to get into recovery, because the phone thinks the battery is dead. I couldn't start booting normally either. Only download mode was available, but it only said, it can't get into download mode, because the battery is low. (when I plug in the charger the phone shows 100% battery) I changed my battery to my old weak one, I managed to get into recovery with it, after multiple tries. (I think it had nothing to do with the battery but was lucky) Now I check my /data through adb and it shows empty aswell:
Code:
D:\Android\sdk\platform-tools>adb pull /data/data/com.android.providers.telephony/databases/mmssms.db
adb: error: remote object '/data/data/com.android.providers.telephony/databases/mmssms.db' does not exist
D:\Android\sdk\platform-tools>adb shell
~ # 
~ # ls
and-sec init.recovery.service.rc selinux_version
boot init.recovery.smdk4210.rc sepolicy
boot.txt init.recovery.usb.rc service_contexts
cache license sideload
charger mnt supersu
data proc sys
default.prop property_contexts system
dev recovery tmp
etc res twres
file_contexts sbin ueventd.rc
fstab.smdk4210 sdcard0 ueventd.smdk4210.rc
init sdcard1 usbotg
init.rc seapp_contexts
~ # cd data
/data # ls
/data # 
Do I have to mount it somehow maybe? (Oh and twrp always ask at start to mount sys in read-only or R/W. I always mounted it in R/W.) I'm afraid if I start moving in TWRP the phone will shut down as it always did. If I use adb or windows explorer to acces the phone it does not shut down.
N7Gabe said:
I managed to get it on the phone and flashed it. The phone was plugged in to my pc, and I could acces my internal SD so I managed to back that up. But here's the thing, TWRP file manager showed my /data to be empty, and not long after, the phone just shut down. My battery is only a few months old, so that should not be the issue, and the phone was also charging from the PC.
After this shutdown, I had a very hard time to get into recovery, because the phone thinks the battery is dead. I couldn't start booting normally either. Only download mode was available, but it only said, it can't get into download mode, because the battery is low. (when I plug in the charger the phone shows 100% battery) I changed my battery to my old weak one, I managed to get into recovery with it, after multiple tries. (I think it had nothing to do with the battery but was lucky) Now I check my /data through adb and it shows empty aswell:
Do I have to mount it somehow maybe? (Oh and twrp always ask at start to mount sys in read-only or R/W. I always mounted it in R/W.) I'm afraid if I start moving in TWRP the phone will shut down as it always did. If I use adb or windows explorer to acces the phone it does not shut down.
Click to expand...
Click to collapse
You should go to "mount" in TWRP, and tick "data" and "system", i said that already earlier.
MigoMujahid said:
You should go to "mount" in TWRP, and tick "data" and "system", i said that already earlier.
Click to expand...
Click to collapse
After I sent the message and before I read yours just now, I managed to mount, save and even make LOS run. So I was wrong, the battery is probably dead. I guess the lot of heat it produced while bootlooping killed the battery. I switched back to my old original wore out battery which is humpy and everything, but I managed to do everything with the phone. Now my problem is after I put back the .db files in their place, when the phone start it constantly crashes android.process.acore, the messaging app and the caller app. I think it might be a permission issue, but I have no idea how to fix it.
N7Gabe said:
After I sent the message and before I read yours just now, I managed to mount, save and even make LOS run. So I was wrong, the battery is probably dead. I guess the lot of heat it produced while bootlooping killed the battery. I switched back to my old original wore out battery which is humpy and everything, but I managed to do everything with the phone. Now my problem is after I put back the .db files in their place, when the phone start it constantly crashes android.process.acore, the messaging app and the caller app. I think it might be a permission issue, but I have no idea how to fix it.
Click to expand...
Click to collapse
Download ES file explorer from play store and grant root access for root explorer and set permissions to the 2 files as (rw- rw- ---) as described in screenshot, then reboot.
MigoMujahid said:
Download ES file explorer from play store and grant root access for root explorer and set permissions to the 2 files as (rw- rw- ---) as described in screenshot, then reboot.
Click to expand...
Click to collapse
This method worked with the contacts db, but not with the messages db. Actually I did not find any databases when I first copied it there, even made the databases folder. Thanks though, I'm almost done!
N7Gabe said:
This method worked with the contacts db, but not with the messages db. Actually I did not find any databases when I first copied it there, even made the databases folder. Thanks though, I'm almost done!
Click to expand...
Click to collapse
Ok, i seem to know the problem here, i looked at my own mmssms.db file and found it in this path:
/data/data/com.android.providers.telephony/databases/mmssms.db
(not the same path for the contacts.db file)
So you should move it there and add the same permissions that you added to the other file, that will do the job for you
MigoMujahid said:
Ok, i seem to know the problem here, i looked at my own mmssms.db file and found it in this path:
/data/data/com.android.providers.telephony/databases/mmssms.db
So you should move it there and add the same permissions that you added to the other file, that will do the job for you
Click to expand...
Click to collapse
This is the path you told me the first time, and this is where it doesn't work. That databases folder was not even there, until I made it. I don't even have any other files in the folder but the mmssms.db that I copied there.
N7Gabe said:
This is the path you told me the first time, and this is where it doesn't work. That databases folder was not even there, until I made it. I don't even have any other files in the folder but the mmssms.db that I copied there.
Click to expand...
Click to collapse
I don't know what is the problem...I've ran out of ideas here
At least you got your contacts back :silly:
MigoMujahid said:
I don't know what is the problem...I've ran out of ideas here
At least you got your contacts back :silly:
Click to expand...
Click to collapse
No problem, I got lucky, run a search in the data partition for mmssms.db and it appears that now it is located in /data/user_de/0/com.android.providers.telephony/databases. I backed it up, then overwrote it, fixed the permission, rebooted and now it seems to work, so all is well.
In the end I managed to not only save my data, but to fix my phone and even upgrade it to the latest LineageOS, thanks to you! I wish you a good life!
N7Gabe said:
No problem, I got lucky, run a search in the data partition for mmssms.db and it appears that now it is located in /data/user_de/0/com.android.providers.telephony/databases. I backed it up, then overwrote it, fixed the permission, rebooted and now it seems to work, so all is well.
In the end I managed to not only save my data, but to fix my phone and even upgrade it to the latest LineageOS, thanks to you! I wish you a good life!
Click to expand...
Click to collapse
Thanks for the tip, i have a marshmallow ROM right now, it seems that the location was changed in Nogut, I'll keep that in mind.
Have a good life too.

My device broke after installing cm 11.....please help me

:crying:
I did not backup my rom as the device had no space
I use a Samsung Galaxy Tab 4.7.0 (SM T230NU)
TWRP 3.1.0
So I recently downloaded Cyanangen MOD 11 from a friend I met on XDA. It is file more than 900 MB- I downloaded this to my tablet and Flashed it using TWRP 3.1.0.
Before I flashed the .zip file
I wiped Dalvik Cache, Cache, and system
When these were being wiped I got the message Failed To Mount Cache and system
I did the usual thing everybody did and changed the file system to exfat 4 and fat etc.But I did not wipe one-thing because I was too lazy to change the file system
I flashed the rom and everything went fine, then it said Looking for md5 file or something and then it said skipped md5 file for some reason
It rebooted and I though it would show something, but after 4 hours nothing happened.
I went into the recovery and changed the file system of everything that should be wiped but when I pressed install the rom.zip file was nowhere to be seen and now there is no software for it to run
Every time I reboot it, its stuck on the boot logo and there is no boot animation.
Please Help Me My mother and my brother are very angry at me:crying::crying::crying::crying:
Thedark night in the dark said:
:crying:
I did not backup my rom as the device had no space
I use a Samsung Galaxy Tab 4.7.0 (SM T230NU)
TWRP 3.1.0
So I recently downloaded Cyanangen MOD 11 from a friend I met on XDA. It is file more than 900 MB- I downloaded this to my tablet and Flashed it using TWRP 3.1.0.
Before I flashed the .zip file
I wiped Dalvik Cache, Cache, and system
When these were being wiped I got the message Failed To Mount Cache and system
I did the usual thing everybody did and changed the file system to exfat 4 and fat etc.But I did not wipe one-thing because I was too lazy to change the file system
I flashed the rom and everything went fine, then it said Looking for md5 file or something and then it said skipped md5 file for some reason
It rebooted and I though it would show something, but after 4 hours nothing happened.
I went into the recovery and changed the file system of everything that should be wiped but when I pressed install the rom.zip file was nowhere to be seen and now there is no software for it to run
Every time I reboot it, its stuck on the boot logo and there is no boot animation.
Please Help Me My mother and my brother are very angry at me:crying::crying::crying::crying:
Click to expand...
Click to collapse
You don't need to change file systems. Put the .zip in a SD Card, and advanced wipe everything, except External SD Card. I would recommend flashing back to stock and re-root it.
secretwolf98 said:
You don't need to change file systems. Put the .zip in a SD Card, and advanced wipe everything, except External SD Card. I would recommend flashing back to stock and re-root it.
Click to expand...
Click to collapse
I do not have an sd card can I use my PC
Thedark night in the dark said:
I do not have an sd card can I use my PC
Click to expand...
Click to collapse
yea, use adb.
secretwolf98 said:
yea, use adb.
Click to expand...
Click to collapse
Can you tell me how to use it.
Try this from my early post .
#Method 1
1. Install Smart Switch on your PC : https://www.samsung.com/global/download/smartswitchwin/
2. From rest fallow this video to follow easy : https://www.youtube.com/watch?v=9QhJngOuLQ4
#Method 2
1. Make Free account on sammobile.com
2. go here https://www.sammobile.com/firmwares/galaxy-tab4/SM-T230NU/
put your region from where the phone you bought. Use latest Version of OS
3. Extract (unzip) the firmware file to the desktop or what ever is easy for you to locate firmware
4. Download Odin v3.12.7 from here: https://dl.sammobile.com/Odin3-v3.12.7.zip
Extract Odin ZIP file
Open Odin v3.12.7
5. Reboot Phone in Download Mode (press and hold Home + Power + Volume Down buttons)
Connect phone and wait until you get a blue sign in Odin
Add the firmware file to AP / PDA
Make sure re-partition is NOT ticked
Click the start button, sit back and wait few minutes
If you are still not sure how to do , follow this video : https://www.youtube.com/watch?v=7SK3IMprKVQ

cant locate zip rom file in twrp

its my first time rootnig my phone (galaxy a5 - SM-A520F ) and all ive done so far is installed TWRP. I downloaded supersu.zip but the files i see in the android's file explorer are diffrent from those that the twrp explorer shows so i cant find the zip file in twrp. I dont have an sd card to move it on. What can i do?
anastbogia said:
its my first time rootnig my phone (galaxy a5 - SM-A520F ) and all ive done so far is installed TWRP. I downloaded supersu.zip but the files i see in the android's file explorer are diffrent from those that the twrp explorer shows so i cant find the zip file in twrp. I dont have an sd card to move it on. What can i do?
Click to expand...
Click to collapse
R U sure you selected zip and not img from twrp? Twrp might be looking only for img if that is so.
File manager in twrp is no different than standard file manager , only zips or img are visible.
jason_l367 said:
R U sure you selected zip and not img from twrp? Twrp might be looking only for img if that is so.
File manager in twrp is no different than standard file manager , only zips or img are visible.
Click to expand...
Click to collapse
From what i read online (but could be totaly wrong) twrp files are the system files whereas android file explorers are internal storage.
I figured out how to access my system files but its read only so I cant paste in zip
anastbogia said:
I figured out how to access my system files but its read only so I cant paste in zip
Click to expand...
Click to collapse
Need to "swipe to allow modifications" when you first time start TWRP
You'll be able to flash SuperSU then.
jason_l367 said:
Need to "swipe to allow modifications" when you first time start TWRP
You'll be able to flash SuperSU then.
Click to expand...
Click to collapse
My problem is that I cant modify the system files from android not from twrp
anastbogia said:
My problem is that I cant modify the system files from android not from twrp
Click to expand...
Click to collapse
Place the SuperSU zip file in 'Downloads' directory on your phone (there's no way it won't be visible in TWRP) do button combo ,enter twrp -swipe to allow modifications (so it's not 'read only') ,navigate to Downloads , select the 'supersu . zip ,swipe to install. There's literally no way it can fail.
jason_l367 said:
Place the SuperSU zip file in 'Downloads' directory on your phone (there's no way it won't be visible in TWRP) do button combo ,enter twrp -swipe to allow modifications (so it's not 'read only') ,navigate to Downloads , select the 'supersu . zip ,swipe to install. There's literally no way it can fail.
Click to expand...
Click to collapse
I cant mount data folder in TWRP without wiping first so the data is empty and i cant see no downloads
I got an sd card and now I can locate the file, I flashed it but it failed and my phone couldn't boot so I install the Samsung firmware with odin. Will wiping before flashing fix this?
anastbogia said:
I got an sd card and now I can locate the file, I flashed it but it failed and my phone couldn't boot so I install the Samsung firmware with odin. Will wiping before flashing fix this?
Click to expand...
Click to collapse
If it were my phone , upon booting to twrp I'd wipe system data and cache(s) formatt data and flash a rom /root!
Since you got twrp ur bootloader is unlocked so u should be good to flashmagisk or latest SuperSU without issue. I'm not an expert. Sorry for the delayed responses this oppo phones are crap.
jason_l367 said:
If it were my phone , upon booting to twrp I'd wipe system data and cache(s) formatt data and flash a rom /root!
Since you got twrp ur bootloader is unlocked so u should be good to flashmagisk or latest SuperSU without issue. I'm not an expert. Sorry for the delayed responses this oppo phones are crap.
Click to expand...
Click to collapse
I watched a tutorial and the guy in the vid doesnt wipe before flashing but after supersu is install he taps on the "wipe cache " or something like that. So I have to do that and will my data be erased?
anastbogia said:
I watched a tutorial and the guy in the vid doesnt wipe before flashing but after supersu is install he taps on the "wipe cache " or something like that. So I have to do that and will my data be erased?
Click to expand...
Click to collapse
You phone should be rooted if you have twrp and flash the root zip. You don't have to wipe cache
The device may reboot 1-2 times after you flash the root.zip but you should be ok.

Categories

Resources