Factory reset on forgotten pattern - Xperia Z5 Q&A, Help & Troubleshooting

You know by default Sony phones have no recovery installed so if you forgot the unlock security pattern mistakenly. Or if you buy a used Sony mobile with previous users recorded security pattern and you don't know about it. This will annoy you and there's no chance of entering into the phone or by pass the pattern security. Specially when phone isn't rooted and any custom recovery like twrp aren't installed.
But if you don't wanna flash the device and you wanna keep that rom and wanna perform factory reset. Open the flashtool click on flash sign and choose any self-made Ftf extension and when options dialog appears, uncheck or exclude all the tar and other options except wipe box (user data, apps log) and now move forward.
This will perform a factory reset on device and you'll end up by entering into the same rom with all the user data and internal memory wiped. Though you'll lose data and apps but still it should be interesting to you.......

Related

HELP!!! my nexus s I9023 is locked by the ROM XenonHD

I have installed the XenonHD few weeks ago so i am not using the most updated version.
http://forum.xda-developers.com/show....php?t=1667442
today when i am using the phone as normal, it suddenly rebooted.
when it is started, it didnt show any launcher screen or wallpaper but it required me a password to start up the phone.
It shows " Type password to decrypt storage".
As i remember there is a button for activating the encrypt storage function in the system setting/ rom setting.
I am 100% sure that i didnt press it. This function is activated somehow after the sudden reboot......
Is there a way to get the password or extract the data from the phone before i flashing a new rom.....
maybe you should try wiping dalvik cache, or just randomly try to unlock, eventually it should ask you what your google account is, and you should be able to unlock. or else you have to do this: make a nandroid backup, then, flash a new rom, use titanium backup to extract the apps and their data from the nandroid. hope this helps.

[Q] Details regarding Unlocking Bootloader, Rooting and Deleting apps from rom

Hello,
I will really appreciate if you can help to understand few basic issues:
1) When rooting the phone, is the boot-loader must be unlocked? i.e., if I've rooted the phone successfully using some 3rd party utility, it means that the boot-loader was unlocked during the rooting process or it was unlocked in advanced?
2) If the answer to the first question is "yes" (i.e. bootloader must be unlocked before rooting), how it is possible that my data wasn't wiped after rooting? This means that the boot-loader was unlocked in advance? Or maybe the 3rd party application backed up the data before unlocking the boot-loader and than restored it?
3) I heard that in order to install SU, the stock-recovery must be changed to a custom one. Is it necessarily true?
4) How can I check which recovery is installed on the phone?
5) If the recovery is changed to a custom one, does it mean that I stop receive OTA?
6) Can I backup up the stock recovery before changing it? Or how can I know which one it is to search on the net?
7) Do applications, like Titanium, change the recovery upon installation?
8) How applications, like Titanium, move apps, that are not supposed to move in regular installation,from ROM to SD? Can it harm the performance of the app?
9) When deleting apps from ROM (System or Data) manually, do I need to delete other files or folders besides .apk files in system/app or data/app? Is there any cache or other data to delete?
10) Do I need (or should I in case of lack of space) clean some cache files from ROM? (Like Dalvik or others...) If yes, which ones and how?
Sorry for the long post, but It will really help me to understand all these issues, once and for all.
Thank you in advance!
yuri_feigin said:
Hello,
I will really appreciate if you can help to understand few basic issues:
1) When rooting the phone, is the boot-loader must be unlocked? i.e., if I've rooted the phone successfully using some 3rd party utility, it means that the boot-loader was unlocked during the rooting process or it was unlocked in advanced?
2) If the answer to the first question is "yes" (i.e. bootloader must be unlocked before rooting), how it is possible that my data wasn't wiped after rooting? This means that the boot-loader was unlocked in advance? Or maybe the 3rd party application backed up the data before unlocking the boot-loader and than restored it?
3) I heard that in order to install SU, the stock-recovery must be changed to a custom one. Is it necessarily true?
4) How can I check which recovery is installed on the phone?
5) If the recovery is changed to a custom one, does it mean that I stop receive OTA?
6) Can I backup up the stock recovery before changing it? Or how can I know which one it is to search on the net?
7) Do applications, like Titanium, change the recovery upon installation?
8) How applications, like Titanium, move apps, that are not supposed to move in regular installation,from ROM to SD? Can it harm the performance of the app?
9) When deleting apps from ROM (System or Data) manually, do I need to delete other files or folders besides .apk files in system/app or data/app? Is there any cache or other data to delete?
10) Do I need (or should I in case of lack of space) clean some cache files from ROM? (Like Dalvik or others...) If yes, which ones and how?
Sorry for the long post, but It will really help me to understand all these issues, once and for all.
Thank you in advance!
Click to expand...
Click to collapse
Im sorry but Ive already answered all of these questions and one in fact could take a good couple paragraphs to explain.
Maybe tonight I'll answer or you could check out xda university.
yuri_feigin said:
Hello,
I will really appreciate if you can help to understand few basic issues:
1) When rooting the phone, is the boot-loader must be unlocked? i.e., if I've rooted the phone successfully using some 3rd party utility, it means that the boot-loader was unlocked during the rooting process or it was unlocked in advanced?
2) If the answer to the first question is "yes" (i.e. bootloader must be unlocked before rooting), how it is possible that my data wasn't wiped after rooting? This means that the boot-loader was unlocked in advance? Or maybe the 3rd party application backed up the data before unlocking the boot-loader and than restored it?
3) I heard that in order to install SU, the stock-recovery must be changed to a custom one. Is it necessarily true?
4) How can I check which recovery is installed on the phone?
5) If the recovery is changed to a custom one, does it mean that I stop receive OTA?
6) Can I backup up the stock recovery before changing it? Or how can I know which one it is to search on the net?
7) Do applications, like Titanium, change the recovery upon installation?
8) How applications, like Titanium, move apps, that are not supposed to move in regular installation,from ROM to SD? Can it harm the performance of the app?
9) When deleting apps from ROM (System or Data) manually, do I need to delete other files or folders besides .apk files in system/app or data/app? Is there any cache or other data to delete?
10) Do I need (or should I in case of lack of space) clean some cache files from ROM? (Like Dalvik or others...) If yes, which ones and how?
Sorry for the long post, but It will really help me to understand all these issues, once and for all.
Thank you in advance!
Click to expand...
Click to collapse
1) To my knowledge, yep. (Not much experience with locked bootloaders, sorry!)
2) But then again, different phones have different bootloaders, they might work In different ways.
3) Nope. Most (if not all) root tools install SU without custom recovery.
4) when your phone is powered-off, press Vol up, home and power button (this depends on your phone, this is Samsung standard, what phone are u using?
5) Go to download mode, (Vol down, home and power button, again Samsung standard) and check if: System Status: Official. If yes, OTAs can be taken. If System Status: Custom, you cant take OTAs.
6) U most probably can. Use Online Nandroid Backup, free from Google play store, and backup recovery only. That should work.
7) No.
8) Depends on the app.
9) Again, depends on the app.
10) Cache and dalvik cache can be wiped from recovery. The custom recovery will do it for u. Wiping dalvik cache from recovery won't be useful, as it recreates itself on reboot.
No problem with the long post, always glad to help
Smack that thanks button if I helped!
Note 2 LTE powered by Illusion ROM and Plasma Kernel.
Sent from dat small country called Singapore.
Thank You
Lgrootnoob said:
Im sorry but Ive already answered all of these questions and one in fact could take a good couple paragraphs to explain.
Maybe tonight I'll answer or you could check out xda university.
Click to expand...
Click to collapse
I would really appreciate if you could answer, or refer me to the correct paragraph in XDA university or give a me a link to your previous answers.
Thank you very much.
Irwenzhao said:
1) To my knowledge, yep. (Not much experience with locked bootloaders, sorry!)
2) But then again, different phones have different bootloaders, they might work In different ways.
3) Nope. Most (if not all) root tools install SU without custom recovery.
4) when your phone is powered-off, press Vol up, home and power button (this depends on your phone, this is Samsung standard, what phone are u using?
5) Go to download mode, (Vol down, home and power button, again Samsung standard) and check if: System Status: Official. If yes, OTAs can be taken. If System Status: Custom, you cant take OTAs.
6) U most probably can. Use Online Nandroid Backup, free from Google play store, and backup recovery only. That should work.
7) No.
8) Depends on the app.
9) Again, depends on the app.
10) Cache and dalvik cache can be wiped from recovery. The custom recovery will do it for u. Wiping dalvik cache from recovery won't be useful, as it recreates itself on reboot.
No problem with the long post, always glad to help
Smack that thanks button if I helped!
Note 2 LTE powered by Illusion ROM and Plasma Kernel.
Sent from dat small country called Singapore.
Click to expand...
Click to collapse
Thank You for your help.
Regarding the last issue: if I wipe the cache, something bad can happen to the applications ot their data? I mean, should I do it only when flashi rom or is it healthy to do it in a while in order to clean unnecessary files?
yuri_feigin said:
Thank You for your help.
Regarding the last issue: if I wipe the cache, something bad can happen to the applications ot their data? I mean, should I do it only when flashi rom or is it healthy to do it in a while in order to clean unnecessary files?
Click to expand...
Click to collapse
The cache is actually a temporary section of the disk that does not contain any application cachery but things along the lines of software upgrade files. It is only wiped merely to make sure there is space for other mod's temp storage.
The data partition contains the data for yourr applications and the 'cache' as you see in settings for apps is for imagery and stuff so regardless if that is removed it wont matter.
The dalvik cache is compiled bytecode for the dalvik vm for each app. (Look up Java vm to get an idea of what I mean and then look up odexing and deodexing on xda university)
Here is some info on the thread http://forum.xda-developers.com/showthread.php?p=48151745#post48151745
Lgrootnoob said:
The cache is actually a temporary section of the disk that does not contain any application cachery but things along the lines of software upgrade files. It is only wiped merely to make sure there is space for other mod's temp storage.
The data partition contains the data for yourr applications and the 'cache' as you see in settings for apps is for imagery and stuff so regardless if that is removed it wont matter.
The dalvik cache is compiled bytecode for the dalvik vm for each app. (Look up Java vm to get an idea of what I mean and then look up odexing and deodexing on xda university)
Here is some info on the thread http://forum.xda-developers.com/showthread.php?p=48151745#post48151745
Click to expand...
Click to collapse
Thanks a lot!
I have few more questions, please:
1) So what will be the best way to clear the cache partition? Only from recovery? Even from stock recovery?
Is there any other way, like a feature in some application or can I delete it manually?
2) Regarding the data partition, I guess I can go each application and clear its cache and/or data from application manager... Is there a better way? By away, if I delete the data of application (not the cache), I loose all the configuration and personal data. What I mean by "cleaning" is to erase some false data that remained by mistake, not to remove the necessary data of the apps. It is especially important for apps installed on ROM. What will be the best way?
3) Is sometimes remains unnecessary junk data in Dalvik Cache? If yes, how to remove it? (not the all Dalvik Cache)?
4) By away, what is the best way to check whether my bootloader is unlocked and to check which recovery is installed? (custom/stock)
5) If I want to mess with the start-up task manager, using some ROM application - what are the "receivers" that are connected to the apps? what is the difference between disabling an app/task/service and disabling receivers?
6) What is the difference between recovery boot mode and bootloader boot mode? When do I need to use the bootloader mode?
6) And another question, with your permission, is what kind of backups are exist beside nandroid? ADB is a backup? Do they back up all the ROM? I guess I will need a custom recovery to restore those backups.
yuri_feigin said:
Thanks a lot!
I have few more questions, please:
1) So what will be the best way to clear the cache partition? Only from recovery? Even from stock recovery?
Is there any other way, like a feature in some application or can I delete it manually?
2) Regarding the data partition, I guess I can go each application and clear its cache and/or data from application manager... Is there a better way? By away, if I delete the data of application (not the cache), I loose all the configuration and personal data. What I mean by "cleaning" is to erase some false data that remained by mistake, not to remove the necessary data of the apps. It is especially important for apps installed on ROM. What will be the best way?
3) Is sometimes remains unnecessary junk data in Dalvik Cache? If yes, how to remove it? (not the all Dalvik Cache)?
4) By away, what is the best way to check whether my bootloader is unlocked and to check which recovery is installed? (custom/stock)
5) If I want to mess with the start-up task manager, using some ROM application - what are the "receivers" that are connected to the apps? what is the difference between disabling an app/task/service and disabling receivers?
6) What is the difference between recovery boot mode and bootloader boot mode? When do I need to use the bootloader mode?
7) And another question, with your permission, is what kind of backups are exist beside nandroid? ADB is a backup? Do they back up all the ROM? I guess I will need a custom recovery to restore those backups.
Click to expand...
Click to collapse
1: Only recovery.
2: "Cleaning" is not possible So the application manager is the only way and yes it would basically reset an application if you delete its data.
3: Its not necessary but can save space for more apps to be installed if you have removed apps manually or with titanium backup. However if you have uninstalled with the app manager in the settings app then the dex files in the dalvik cache are automatically removed. "Unnecessary junk", I have exactly what you are looking for: use Titanium backup's feature in the menu to remove unsused dalvik cache elements and integrate system dalvik into rom. (In the same section when you press the menu button)
4: What phone? (This is neccessary because of the variation in phones.)
5: The only legitimate way of stopping tasks is to disable the intent of the task(I think that is the reciever ). To do this you could use Autostarts from the Play store or you could use the Bootmanager Xposed module. Don't use any task manager unless you want problems. Disabling an app in settings would actually completely freeze the application meaning you could also not start it manually and it wouldnt be started at boot.
6: The bootloader loads recovery or Android. The bootloader is usable depending on the features given by your phone manufacturer. You would know the difference when you use recovery and if you have a Nexus device when you are in bootloader mode. Samsung devices have Download mode which is technically part of the bootloader and allows you to load custom software such as recovery, data partition, system partition etc.
7: You will use recovery to backup/restore.(I don't think that there is any other way because you are using the data that you are backing up or restoring if you didi it while you were running android. Adb cannot backup either but you could pull a recovery backup with adb from the sd card. Adb has a sideload feature for loading software in recovery with your computer. Again I need your phone model.
It seems you seek info on recovery and backing up, This will help a lot: http://xda-university.com/as-a-user/android-dictionary Specifically the Nandroid and Recovery section.
I will be more than happy to expand on any of these topics.
@yuri_feigin
I revised my answer to better suit what you were asking.
Are you still with me?

Help! Soft buttons and notification bar disappeared after upgrade

After upgrading my shield tablet to Nougat, the soft buttons of home and recent, as well as notification bar all
disappeared. Without the notification bar I am stuck at USB for charging only so I cannot access it through adb either.
Could someone help me how to solve this problem? Thanks!
Most important thing here is that DO NOT PERFORM A FACTORY RESET in this situation. I'll be back soon with a solution for you. I repeat that DO NOT RESET FACTORY SETTINGS!!! If restore factory settings it will brick the device and you probably won't have access to the recovery. Brb
Thanks! I have *not* done factory reset. Looking forwards to your solution.
Reset Factory Settings From Safestrap Recovery or Restore/Flash the Stock ROM
This Solution Consist of 3 Possible Solutions... You Should Try Them 1 by 1. It Means That If first Method Does Not Work Then Try the Next One. First Method Is Not Risky, Second One Is Slightly Risky and Third One Is Risky. But If You Follow All The Steps of Any Method Carefully Then There Might Be No Risk.
But Just In Case I Request You Guys To Tag Any Developer Who Is Working On Safestrap TWRP Recovery To Approve The Second And Third Methods Of This Post, I Just Wanna Make Sure That Your Devices Are Safe. It Worked For Me On Amazon Kindle Fire HDX But In This Case We Are Working On Nvidia Shield Tablet.
NOTE for owner of this Thread...
If this solution works for you or not or if you don't wanna follow the steps below then please do not delete this Thread because it can help someone else.
Method #1
Well if you have access to playstore then download "GMD Autohide Soft keys" or any alternative app. You can activate Soft Buttons by using those Apps. in case you don't have access to Playstore or Those Apps do not work then try the next method.
Method #2 (Factory Reset From Safestrap Recovery)
You should follow this method only if you have Safestrap (TWRP) Recovery on your device. got it? ok..
Now make sure that you have a Backup of Stock ROM on your Device if you have made it in the past, you can find it in TWRP folder. And also make sure to download a .zip file of compatible Stock ROM. Actually we are gonna Restore Factory Settings from Safestrap Recovery, don't worry it is not as risky as you reset to factory setting from the Settings of your device. just make sure that you have a Backup or Flashable .zip file of compatible Stock ROM on Internal or External memory of your device. You can Download it by searching on Google or from other Threads related to Nvidia Shield K1. Got this stuff? ok now...
Boot into Safestrap (TWRP) Recovery (using ADB commands or any other method)
Once you are in Safestrap tap on WIPE... you will see 3 options...
1- Advanced Wipe
2- Format Data (never select this option, NEVER EVER!)
3- Swipe to Factory Reset
we are gonna select option number 3.
so in the bottom of screen you will see "Swipe to Factory Reset"... Swipe it to restore factory settings... is it done?
now go back to home screen of TWRP Recovery and tap on REBOOT... now tap on SYSTEM... your device will reboot to System (Android). Is your problem solved? it should be... if yes then congratulations
if not then follow the Method #3....
Method #3 (Wipe System and Restore or Flash it)
Again make sure you have Backup and .zip file of Stock ROM on internal or external memory. got it? follow me...
in this method we will Wipe (Delete) System and then Restore the Backup or Flash The zip file of Stock ROM. so...
Boot into Safestrap again.
Tap On WIPE
Advanced Wipe
(now you will see four available options to select)
1- Dalvik Cache
2- Data
3- Cache
4- System
Select System and Cache (do not select Data option)
now in bottom of screen you will see "Swipe to Wipe"
Swipe it and once it is done go back to home screen of Safestrap
Now you can do ANY ONE of the following two steps.... you can either Restore the Backup or Flash the .zip file. But do not do both of these steps, choose only one step!
Step #1 Restore Backup.
tap on RESTORE... it should directly take you to the Backup of stock ROM. Swipe to Restore... once it is done. Boot into System. if everything goes fine then your problem should be Solved now. Congratulations
Step #2 Flash Stock ROM.
tap on INSTALL (in Safestrap Recovery)
Now you will see some folders, so here find the .zip file of Stock ROM which you have downloaded. found it? ok now tap on it and you will see "Swipe to Confirm Flash" so swipe it. once done reboot to system. and congratulations you have solved your problem
hope it woks for you... if so then Subscribe to my channel on Youtube. Search Ali Ejea Mc and you will see my channel or videos on top. I am gonna change the name of channel so you better search Ali Ejea Mc
My Devices:
Nvidia Shield K1
Kindle Fire HDX
Just tried Method #1, it looks like I need to root the device to do it. Is that right?
yopology said:
Just tried Method #1, it looks like I need to root the device to do it. Is that right?
Click to expand...
Click to collapse
Name of the app is "GMD Auto Hide Soft Keys ★ root" and the description is:
"AHSK allows to hide navigation bar and auto show/hide it with simple swipe from bottom. It hides only navigation bar (soft keys) in Phone UI and does not hide notification bar.
Requires ROOT!"
My tablet is not rooted. It also has no TWRP installed.
The problem is, I cannot access the tablet from my computer, because the notification bar is gone
hence I cannot switch from USB for charging to file transfer...
Does that mean I cannot even follow the Method 3 by Ali Ejea Mc?
I should say that I have found some software that enables its own software keys without rooting. Still no notification though.
The problem is, the home button and recent button do not work, even though they are there. The only one that works is the "go back" button.
So it looks like the functionalities of Home and Recent are broken intrinsically.
I would fastboot flash the latest factory image (v1.5 for k1) from your computer and then let it update to v5.0 (Nougat). All your data on your internal memory will be gone afterwards! A fresh start is the best when updating to the next major version.
Did a factory reset. Problem solved. Thanks for the feedback.
yopology said:
Did a factory reset. Problem solved. Thanks for the feedback.
Click to expand...
Click to collapse
Well, I am glad to know that it is solved but what you did was really risky (as i told you that it bricks Amazon Kindle Fire HDX in this situation).
The Shield K1 is almost unbrickable. You shouldn't compare it to a crappy Fire tablet.
Same issue here
Does anyone have a solution without a full wipe yet? My sons shield tablet suffers the same issue. Only the back button is still there...? He has several games he doesn't want to lose his progress from... a full wipe would ruin his game progress... Thanks.

How to backup & restore Android 9/P/Pie with TWRP?

Because on https://twrp.me/google/googlepixel.html it says:
Decrypting Android 9.0 Pie when using a PIN / pattern / password does not work yet. We do not have an ETA for fixing decrypt. Restoring a backup made with an alpha using RC1 may result in loss of data including internal storage. If you need your backups from those versions, restore the backup using alpha2, then install RC1 and run a new backup with RC1.
Click to expand...
Click to collapse
I just flashed the official Android 9/P/Pie release (it did not fix the randomly dying microphone issue) and I want to do a full nandroid backup before I take my Pixel into UBreakIFix for a $0-80 fix because they require a locked bootloader and factory reset.
So do nandroid backups work or not?
SOLVED!
Answering my own question...
roirraW "edor" ehT said:
Since internal storage, where user apps and user and system app data are stored can't be decrypted, you'd definitely have to at least disable the pin/pattern/password, although you should confirm that doing so makes the storage readable in TWRP - it should.
Click to expand...
Click to collapse
According to this person, you must disable pin/pattern/password in order to decrypt the file system and allow nandroid backup & restore.
However, I just did a fastboot boot TWRP.img and it prompted me with my unlock pattern, and then it said "Data successfully decrypted". I checked, and I have access to the filesystem, and it even mounted to my connected laptop. So I'm testing this out. Backups completed successfully. I'll be trying a restore soon.
Archangel said:
The overwhelming response to what areas to tick when you back up has been system, boot, vendor and data,,,no images just the partitions. But that struggle is still on going LOL.
Click to expand...
Click to collapse
Backup & restore these 4 partitions (no images):
System, Boot, Vendor, and Data
(Note: for system and vendor you have to uncheck "mount system as readonly")
UPDATE:
Restoring my System and Vendor TWRP backups caused boot to hang at the G logo with an endless progress bar below the G.
However, doing a fastboot flash of System and Vendor factory images then restoring only my TWRP Data backup successfully restored my phone!
Except for one issue: fingerprints don't work. I think I may have screwed myself here by not disabling pin/pattern/password when I did the backup. For some reason TWRP had no problem decrypting then. But now, trying to restore, TWRP can't decrypt unless I disable pin/pattern/pass. It wont let me delete my old fingerprints or set new ones. Trying to unlock with fingerprint, it either doesn't respond at all or says "Fingerprint hardware not available"
UPDATE 2:
Followed instructions to clear the fingerprint data: [Guide] Delete fingerprint profils via TWRP. Everything is perfectly restored now! (Note: if you disable pin/pattern/pass before backup, you shouldn't need to do this)

Force decryption for user data?

Hi!
I think I managed to get two layers of encryption on my storage let me explain :
I had a pattern+fingerprint password. While changing my screen I also had to change the fingerprint sensor which lead to interface bootloop as I forgot to remove FP before changing sensor.
I tried a TWRP method to remove password from the device, consisting in removing some system files (which I didn't backup) without success, so I reopend th phone to plug the old sensor. This allowed me to remove my fingerprints and plug back the new sensor.
Now, I think my data is encrypted but the password is not prompted AND if i set the same password as before, I still can't access the data (even in TWRP as I think the encrypted data gets encrypted again)
Is there a way in TWRP (or other) to force a first decryption as I know both passwords?
Well, I removed my password and TWRP didn't prompt any pattern, and I can access my data.
However, My user remains encrypted with a password, and I can't figure it out.
I think the easy way is to copy my data and factory reset the phone.
Another way would be to clone full system partition to try recover the deleted files I think

Categories

Resources