yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Sigh ... :rolleyes:

For the record - there is no "glitch in Orange Fox" that would cause this problem - but if you are convinced that it is an OrangeFox "glitch", you are quite free to use another recovery that has no such "glitch".

At the end of the day, whatever you are experiencing is almost certainly the result of user error - but since I do not have your phone, I cannot help you diagnose it without very specific details of what exactly you have done that got you to this point. Having supplied no logs, and having provided insufficient specific details, there is little that I can say.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] okAndrea:
First of all, thank you for this excellent ROM, truly.

Then, "glitch" because if I use the exact same procedure with the same backup on the same ROM and version and, every other time it worked flawlessly and now I have an issue where the backup restores perfectly except that I can't get back in... I call it a glitch. To be precise I tried with 3 different backups all with the same results.

Its certainly possible that all this is due to user error no doubt I just have a hard time understanding the cause as the ROM and Backup have not changed at all... worked 10 times before, this last try not.

Perhaps I was expecting some help not in "absolute terms" but in things I could try to solve this problem with the full understanding that I could "roast" my backup if I tried the proposed solution.

Of course it difficult to diagnose the problem without logs, that I understand, but its a little bit difficult to provide them if I am locked out of the phone.

Anyway, its always a pleasure to work out problems with friendly, down to earth people. Thank you.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Crikey! Do you want help or not? :eek: Perhaps if, instead of writing long stories, you actually responded to the

very first query

that I raised (ie, "at which point the prompt for login appears, and whether this happens only on booting up the system or whether it also happens when you boot up the recovery") then one might be able to offer you some options?

And while we are at it, you might want to read this very carefully - https://xdaforums.com/showpost.php?p=79771469&postcount=3
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] okAndrea:
Actually I did and that is why I backed up my data partition and kept the original ROM (the backup was made with) handy.

I did tell you in my previous post but as it may be "too long" it may have slipped.

Let me recap again, everything is perfect with the restore... I even see the all the notifications on the lock screen as well as the animated background "in animation". I also tried calling the phone and it rings! So I know that everything is perfect with the backup made, the problem resides with the lock screen (login screen) that when I use my login sequence (connecting the dots) there Android tells me that its not correct.

Also, as said in the previous post, I googled the log in sequence problem and official support says that after 5 failed attempts I should get the option to reset and I don't it just gives me infinite tries with only a 30 second stop after a diminishing number of attempts.

If you want me to make a video of the exact sequence of events I can do that as well.

Thank you
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
OMG! I don't need a video! I only need an answer to a query that I have raised at least twice now (the second time, in italics) - "

whether this happens only on booting up the system or whether it also happens when you boot up the recovery

".
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] okAndrea:
Sorry, you are right... it only happens when booting in system.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Boot up OrangeFox, go to /sdcard/Fox/FoxFiles/ and flash "PassReset.zip". This should clear the ROM password, and you should be able to enter the system without being asked for a password (ie, if the problem really is a login problem, rather than a borked encryption).
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] okAndrea:
I would... if I only could! :D

Seriously though, I have nothing in that path other than the BACKUPS directory one directory up (/sdcard/Fox/), i.e. no /FoxFiles directory.

I also have a Fox directory on "internal storage" with .foxs and lastrecoverylog.log but I doubt that is relevant.

Cheers mate for helping out!
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
1. Internal storage is the same thing as /sdcard/

2. And, yes, I would like to see the lastrecoverylog.log
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] okAndrea:
Will post (or send) shortly, I am in the middle of backing up my SDcard, the physical one! ;)

Do you wish to continue this part on telegram or pm on xda or here?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
We can continue it on tg - but there will be a need to post the final outcome here, so that the discussion here can have proper closure, and others may be able to learn something ...
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] okAndrea:
absolutely, I sent you a PM :)
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] ssaikia3:
I see you're unable to unlock your phone because your pattern is wrong, right? I had similar issue, a while back. What did solve my problem is that I deleted the "locksettings.db" file located in /data/system/. Apparently doing this deletes your lock, may it be password, pin etc. As you already have a backup, why not give it a try.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] okAndrea:
First of all I would like to thank DarthJabba9 for his immense help to get me back on track and restore my phone.

Basically it turned out that my phone had lost a Fox directory that had the option to remove my password/log in sequence on restoring my ROM.

This is what I did to resolve the problem with DarthJabba9's supervision:

1) Reinstall Orange Fox in order to restore the missing Fox folder

2) backup my internal storage (the data partition I already have as its the one that was not allowing me to login to phone once restored)

3) Format Data partition

4) reboot to Recovery (important step)

5) Install ROM

6) Boot into ROM so that it encrypts the data partition again

7) Upon successful boot into ROM reboot into Recovery

8) Restore both the Internal Storage (so you get back the Fox directory that was wiped from device, at least in my case) and the Data partition.

9) When Restore ends, press the button "reset password"

10) Reboot into system

11) Profit!

I am sure that if I made some error in my post DarthJabba9 will correct it :)

Again I want to thank DarthJabba9 for all his help!
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
All good - except "3)" should be;

3)

Format

Data partition.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] okAndrea:
It's actually what I meant, it just came out wrong!! :angel:

Just wait to be my age! :D

Updated original post to reflect your correction, thank you again :good:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Dheeraj Menon:
[MENTION=5850987]DarthJabba9[/MENTION]

So I tried the 'twrp decrypt password' method in Orangefox terminal and it doesn't work

Any other workaround other than that

Currently on Aosip Derfest Xmas build
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Did you format your data partition after flashing the ROM? If not, then you need to do so.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] souhail39:
when i enter to fox recovery it ask me to enter Password ( Recovery is protected against unauthorized access) and i never put a password for Fox recovery how can i clear it
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] VincentJoshuaET:
New stable build up!
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
OrangeFox R10.1 Stable released

I have released OrangeFox R10.1 Stable for lavender.

Downloads

:

OrangeFox download site: https://files.orangefox.tech/OrangeFox-Stable/lavender/

Bugs

: Chinese font is broken. This will soon be fixed.

Changelog (General for R10.1)

: https://wiki.orangefox.tech/en/changelog#orangefox-r101

Device-specific changes

:

-support for MIUI incremental OTA

-full system-as-root implementation

-support for wiping /vendor

-support for backing up of EFS

FAQ and Guides

: https://wiki.orangefox.tech/en/guides

Incremental MIUI OTA

:

There is now full support for incremental MIUI OTA updates. However, setting this for the first time requires a

very intricate process

. For further information, see the relevant part of our Guides and Frequently Asked Questions.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] agritux:
Finally efs backup. Thank you!
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] iPAQ 6515a User:
Brilliant news and even more brilliant job.

A quick question, as I am not sure if I understood correctly your instructions.

I would like to setup OTA but do not want to lose all my data. If I backup data and then follow your instructions to the letter, can I then restore the system and data backup to restore my setup, apps, files, docs etc. Or shall I start setting everything up from scratch?

This one thing is not too clear to me, all the rest perfectly understood.

Thanks in advance for your time to answer
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Yes, that should work.

If you are going to flash

exactly

the same ROM that you are currently running, then you only need to dirty-flash the ROM (ie, no need to wipe anything). This will create the necessary OTA files (and it would avoid the rigmarole of format->flash->boot->dirty-flash->boot). After that, you can restore your system_image backup if you want (but not if you had disabled dm-verity the first time). Your data should be intact. However, with lavender, anything can happen at any time - so you would be

very well advised

to have a complete backup of your data and internal storage.

BTW: all this relates to

stock

Xiaomi MIUI ROMs, and

stock

Xiaomi incremental OTAs -

not

to any ROMs that are only based on MIUI (for those others, don't even try). That is, if the ROM is not

directly from Xiaomi

, then none of this will work. Even with stock Xiaomi MIUI, incremental OTAs can be a hit or miss affair ...
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Thanks, I was about to ask the same question too ...
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] leszekk:
Guys, where is the flash/install in the menu...? I don't see that...

'''''''''''''''''''''

OK, in the files////
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] iPAQ 6515a User:
Thanks a lot for a quick answer. Will report back once done.

Btw, I found a mistake in your recovery it says 10.0.2 instead of 10.1. Not a big thing but thought you may want to know.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Hmm ... it doesn't say that here. Perhaps you might want to post the recovery log? Are you sure that you downloaded and flashed the correct file? Because if you flashed 10.0_2 instead of 10.1, then OTA will not work.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] iPAQ 6515a User:
Redownloaded the file, now all is good. I guess wrong file got downloaded. Oops, sorry for that.

****

Reporting back, flashing latest Fox via older Fox, dirty-flashing the very same ROM (Original MIUI) created zero problems. All good and now OTA folder is there. Hope it helps
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
That's good to know. So we now just to wait until a new incremental OTA arrives ...
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] nagesh nani:
Orange fox recovery 10.2 to 10.1 best edi what version perfect use ple
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hattorihansou:
Not shure... came from twrp with wiped data. If you don't mind losing data, do it.

Otherwise simply give it a try.

FAQ/ install guide
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] rakle:
..................

Same here by backup Boot, System, Data, and Vendor. Who knows what to do?:cyclops:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hattorihansou:
Found this in the twrp forum, maybe it works for OF too.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Bananabill0002:
I wiped and formatted user data , i went to fastboot and flash the img file of Orange Fox recovery , i went directly on the recovery and i haven't ant problema . But then i reboot to system (MIUI 10.3.3) and the recovery return the stock... I Need to have a customer rom to use a recovery avoiding the overwrite?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hattorihansou:
Try following the FAQ i linked a couple of posts before.

It says:

-flash .img with fastboot.

-boot to recovery

-flash .zip in recovery
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Bananabill0002:
I forget to flash the zip from the recovery
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Yes, it's the same, I just backed up and restored using OrangeFox.

Now, I don't know if it's a MIUI 10.3.6 or OrangeFox issue, but when I run the following command in a terminal emulator or a shell script, as root of course :

mount -o remount,rw /system

Results in an error :

'/system' not in /proc/mounts

So I am unable to edit files in /system at the moment. System is read-only in OrangeFox, but it also was read-only when I was using the other twrp and ha no problems with the command.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Have you tried "mount /system" ?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
I have done this a thousand times, with all sorts of ROMs, and I am yet to experience this problem. Unless you post the logs (after the backup, but before rebooting) then all that anyone can do is to speculate.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Ok, I tried and I get :

su

:/data/data/com.termux/files/home # mount /system

mount: bad /etc/fstab: No such file or directory

1|
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
You are running this from where? :eek:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Termux, or any terminal emulator. Do you mean from OF ? I did not have to check the box to mount System in previous TWRPs and same with OF where box is unticked by default.

I will try to restore other twrp and see if OF is the culprit or not. But having the error about fstab might be a clue that it is.

---------- Post added at 10:30 PM ---------- Previous post was at 10:05 PM ----------

Ok, just reinstalled lazyindian's twrp and still the same. So it might be miui 10.3.6. however, will restore nandroid backup before miui 10.3.6 just to be sure and find the real problem.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Why would you think that not being able to mount something within your ROM has anything to do with a recovery?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
It's because it all started after I installed OF, so must investigate first and not ignore. If not the problem, move on to next one. Just find out step by step, no stone unturned.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Well, what you can mount in your ROM depends

entirely

on your ROM's fstab and init scripts, and has absolutely nothing to do with a recovery.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Ok, noted. Anyway, I found the problem, but no clear explanation yet.

I just replace /system to / and all good. I found this out from here, for those having the same problem.

https://xdaforums.com/pixel-xl/help/mount-r-magisk-t3608374/page2

I need this mounting command as I have Tasker/Macrodroid tasks to change boot animation to different ones whenever I wish, or change some stuff in build.prop automatically (even if I use the MagiskHide Props module), etc. It works if I use a root file explorer, but of course I want it automated.

Anywya, thanks. I am going to use this OrangeFox going forward, it was the only one able to install MIUI 10.3.6
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
:cool:

PS: I haven't seen anything in the updater-script for 10.3.6 that should prevent any recovery from being able to install it.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Lazyindian's recovery gave me this :

https://xdaforums.com/showpost.php?p=79804048&postcount=150

which led me to OF.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Understood. :good:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] whalesplaho:
Yeah, same with me when flashing aosp extended rom so had to flash orangefox to flash rom.

But orangefox recovery doesn't have some feature, i got error trying to flash mount-system-lavender.zip and also no way flash boot.img like twrp.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
There is no 10.2. What you had is 10.0_2, and now we have 10.1
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] nagesh nani:
Anna Orange fox recovery how 10.1 version any bugs
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Dasemu:
that's right, nice job.

BTW it have a security unlocker??, i think it had that option in my ROSY.

i gonna try it in a few days.

thx for the work <3
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] iPAQ 6515a User:
I am still on MIUI10 and not much willing to go up a notch as one of my favourite progs does not work with Android Q.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] GarlicBreadFox:
Thanks, worked perfectly with the latest (as of now) Pixel Experience ROM, no hiccups whatsoever.

I flashed recovery IMG via fastboot and then installed the ZIP via OrangeFox itself.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] carry003:
Help need guid

I have miui 11 stock ROM 11.0.6 stable on Redmi note 7 with unlocked bootloader nothing else. I have confusion what are the files I need to flash after recovery IMG. like Vbmeta , DM Verity, DFE please reply

---------- Post added at 01:03 PM ---------- Previous post was at 12:57 PM ----------

Which version is latest stable??????? Any one name version number?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] carry003:
Can I flash orange fox recovery on miui 11 stock ROM and than flash custom ROM?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Of course.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Same, all good, OTA folder created. I probably won't use it as I always flash the full ROM when it comes out, always ahead of receiving any OTA notice from Xiaomi.

After dirty-flashing rom, rebooted back to OF recovery. I flashed Morfuz custom kernel and it ended up with Error 1. I thought I should reboot to system first, then back to OF, and flash kernel. All ok.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] vlouis:
I changed from 10.0_2 to new 10.1 version and when I tied to restore backup (AOSP rom, boot, system, data, vendor) created with 10.0_2 I got this message: Unable to locate partition by backup name: 'system' and the "System" partition missing in backup. Reverted back to 10.0_2 and restored the same backup without any problem.

To use open-gapps 10.0 package need to mount system and vendor before flashing (and now got bootloop - like when tried to flash without system/vendor mounted).

I don't know if bug... Or the "system" partition no more supported? :confused:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Yes. The device-specific changelog says "-full system-as-root implementation". This means that "/system" is no longer mounted - only "/system_root" is mounted.

There were bugs in the early updater scripts of opengapps for Android 10 - there were errors in how they handled SAR ROMs (bitgapps didn't have those bugs). But the most recent opengapps 10 scripts have fixed most of those bugs, and I have flashed them without any bootloops.

PS: if you want to mount /system temporarily in order to flash zips with updater scripts that are not properly configured for SAR, then go to /FFiles/Tools/system_sar_mount/ and flash the zip that is there - and then flash whatever you wanted to flash before.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
That's good to know. But I would be interested to see the logs for the first flash failure. All the historic logs will be in /sdcard/Fox/logs/ ("/sdcard/" here refers to your internal storage).
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Here is the log, search for Morfuz.

"Unpacking ramdisk failed. Aborting..."

I tried it twice, then decided to reboot to system, back to OF, flash again and it worked.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Thanks. I can see that the error message was from the Morfuz installer itself, not from OrangeFox (I downloaded Morfuz to see what's going on). It is not clear to me why it had a problem in the first place. I will look into this sometime, but it is not an urgent priority. At least there is a working solution! :good:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Ok, noted, thanks. Maybe it's the anykernel used to be able to have no need to reflash Magisk, I don't know.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] vlouis:
Thank you for answer!

I tried to find the "system_sar_mount" and the zip file, but in (sdcard) /Fox/FoxFiles/ no "Tools" or "system_sar_mount" folder. Can you guide me were to find it?

Also I tried to make a new backup, boot, data, system_image & vendor_image, and I got a "BIG" backup, 6.6GB (with "Enable compression" activated), versus 2.1GB (ofox 10.0_2, boot, data, system, vendor). I think I need a bigger SDcard :D
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
I am not sure where you got the idea of "Fox/FoxFiles". Look very carefully at where I said you would find the file (and you need to do this while in recovery mode).

Well, I am surprised that you were ever able to restore any working backups at all. You must not backup or restore system/vendor. You must backup system_image/vendor_image. If you do otherwise, you are entirely on your own. You need to read this very carefully - https://xdaforums.com/showpost.php?p=79771469&postcount=3
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] pedalracer:
First of all thank you very much for keeping this great rom up to date!

I am on Havo V2.9 and I like to "update" to the latest. I use Gaps and Magick and lots of settings set up. Normally I backup my apps and data with Migrate app and as second backup via Titanium.

I am asking how to "update" if it is possible? Or must I wipe everything and fresh install Havoc V3.x ? Thank you
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] bieojack:
I got error flash init..d on ofox addon
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
None of the addons is necessary. And you shouldn't flash any of them unless you absolutely need it.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
I think you have to ask the Havoc devs about that.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] bieojack:
I need to flash init.d bcs magisk init.d injecter doesn't work for me
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
I will need to see the logs that show the error that you spoke about.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] bieojack:
Deleted
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
I will move it to Anykernel3 base.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] usukuk:
It is a better option
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Yes, it is. But it required some additional code for system-as-root in order to work properly.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] usukuk:
Thank you,

Can you explain what are the additional codes for system-as-root and the process of how to make it work?