yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] mihran_thalhath:
We’re really excited to announce the release of Paranoid Android Pie betas.

On the first launch, you’ll notice a clean setup with a beautiful wallpaper from Hampus Olsson, who teamed up with us again to create several beautiful pieces of artwork. For those who are unfamiliar, Hampus is a multi-disciplinary artist whose design stands for itself and we’re glad to have him onboard. We also added further UI touches that we believe enhances the overall user experience.

The beta builds include adjustments and improvements on top of the stock Android CAF base. The Paranoid Android team and contributors are focusing on squashing existing bugs, and implementing and improving features.

Device-specific issues

None as of now.

Note: Custom kernels are NOT supported!

Download

Get the latest Xiaomi Redmi Note 5 Pro build HERE.

Changelogs

Keep an eye on our Twitter account, @paranoidaospa , as we will be posting about new features getting included in the beta builds.

Paranoid Android Pie beta released

Instructions & requirements

Reboot to recovery (TWRP recommended)

Wipe -> Swipe to Factory Reset

Install AOSPA zip package

Install [optional] a Google Apps package of your choice is advisable, but stock and super variants are not recommended!!!)

Important / Useful links

OpenGapps

Paranoid Android Twitter

Paranoid Android Channel (Telegram)

Paranoid Android Community (Telegram)

Help us improve PA by submitting good bug reports possibly with a log attached. Learn how to take logs here.

Our device maintainers for Xiaomi Redmi Note 5 Pro are @akhilnarang and @mihran_thalhath. Mention (@) them if you need some assistance and/or when reporting bugs.

Cheers and #StayParanoid!

XDA:DevDB Information

Paranoid Android, ROM for the Xiaomi Redmi Note 5 Pro

Contributors

mihran_thalhath, akhilnarang, herna, jhenrique09

Source Code: https://github.com/akhilnarang/whyred

ROM OS Version: 9.x Pie

ROM Kernel: Linux 4.x

Version Information

Status: Beta

Current Beta Version: BETA-20190221

Beta Release Date: 2019-02-21

Created 2019-02-21

Last Updated 2019-02-21
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] mihran_thalhath:
Reserved
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] onliner:
Camera is broken for me, logs and more logs.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Rishi2906:
Which is the unbuilt camera and launcher?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] xdarkstar:
Micam and quickstep

---------- Post added at 03:45 AM ---------- Previous post was at 03:44 AM ----------

Can u tell what is broken specifically

---------- Post added at 03:48 AM ---------- Previous post was at 03:45 AM ----------

No need for much aggression. Let's calm down, shall we? Profanity only make your point weaker( even if it might be correct).
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] meldroyd:
Really appreciate that you have decided to get this ROM for Whyred. Good job
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] http43:
Thanks for a good rom
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] prospektus:
Thanks New rom.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] mihran_thalhath:
Which camera app? Have you tried other cam apps in play store like footej? Are you clean flashing?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Lupin The Third:
Guys, it's a freshly opened thread, and I had to clean it already for comments not related to development and some were borderline offensive.

I kindly ask you to note the comment made in the OP

So, please stay on topic. Post respectfully and don't be demanding like you deserve people to serve you. Help the development. Don't post if you don't have meaningful things to say, report or post. Report offending posts to the moderators to handle. Don't engage in useless discussions that brings you nowhere.

I hope this will be your only advice and there will be no need for a mod to come back here. :)

Take care,

Lupin The Third

Forum Moderator
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] onliner:
Stock camera, yes I tried but without luck "Can't connect with the camera", that logs are from the stock app, and yes I clean flashed two times.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] mihran_thalhath:
Have you tried other camera apps? Camera works fine for me and all my testers and other users in telegram group.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] lulzBoB:
maybe you only tested with indian versions? are you sure you had atleast one tester with a global / china phone who checked the cam or vice versa?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] mihran_thalhath:
Asking for the third time I think, did you try with other cam on play store like footej?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] dileepxdn:
:D Hail [MENTION=6422464]mihran_thalhath[/MENTION] Sahdran , CAF is love <3 Thanks for your hardwork mihran,akhil,henrique ....

Will get #Paranoid_Soon .
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] forid:
Hope this gonna be the best rom for whyted
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] lulzBoB:
I am not the guy reporting cam is not working. i just shared an opinion why it could differ from user to user.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Ashokk8:
Waiting to see if someone posts screenshots of the much awaited Rom
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] nikhiler47:
some screenshots and a quick review would be great. :)

just wanna know it this build could be a daily driver.
[General Questions and Answers] enthusiasticGeek:
It's probably nothing, but my friend has been hearing a strange sound outside his home. It sounds like a data burst mixed with morse code or something. I'm not sure where else to ask other than on xdadevelopers so yeah. He recorded an audio clip of it. Does anybody know what it is? The original is named "Strange-Sound.mp3". But because it is pretty quiet, I made another version of it thats louder named "Strange-Sound-Louder.mp3". Thanks!

(I have not made 10 posts yet but i swear I'm not spamming...)

dropbox {dot} com/sh/xfac6cbt04wcyve/AAAlZ4LOFHrl50zKP520SQINa?dl=0
[General Questions and Answers] VenkatNishanth:
Some might be fooling around with your friend nothing else.
[General Questions and Answers] Droidriven:
I fail to understand how this question has anything to do with Windows mobile and android devices or custom Windows and android software development.

This forum is for questions related to these subjects, it is not for questions like you posted.

Go to Reddit or some other generic forum to ask your question.
[LeEco Le Max 2 Questions & Answers] Jose98avila:
This is my 1st thread :o

Hello everyone Do i loss schedule power off if i install a kernel and another ROM in my Le eco le max x820?

thanks to all !!!
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
This morning I've just received the February 2019 security update, I've downloaded it but when the installation starts then it fails. Any idea why this happens?

Somebody has the same issue?

Thanks
[Xiaomi Mi A2 Lite Questions & Answers] locovibe:
Restart, connect charger and start again when above 60%.
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
I'm going to try and then I'll let you know.

Thank you very much!
[Xiaomi Mi A2 Lite Questions & Answers] Xmata:
Not work for me. Since January I have this problem.
[Xiaomi Mi A2 Lite Questions & Answers] wenna.speedy:
You need to reflash whole rom with miflasher and unlock bootloader.
[Xiaomi Mi A2 Lite Questions & Answers] marstonpear:
Some people solved the issue by stopping the download, turning on mobile data and resuming download on mobile data. Don't forget to turn off your WiFi. Try this before flashing the stock rom again and losing all your data.
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
Check the log and reflash touched partitions

I had the same even after reflashing (fastboot flash boot boot.img) of boot image: I do use Magisk. I checked what is happening during the failing update by

adb logcat -e update_engine

It will report you where and what is failing.

In my case it was complaining on system checksum:

02-20 10:06:56.298 2188 2188 I update_engine: [0220/100656.298722:INFO:delta_performer.cc(386)] Applying 4096 operations to partition "system"

02-20 10:06:56.409 2188 2188 E update_engine: [0220/100656.408950:ERROR:delta_performer.cc(990)] The hash of the source data on disk for this operation doesn't match the expected value. This could mean that the delta update payload was targeted for another version, or that the source partition was modified after it was installed, for example, by mounting a filesystem.

So I reflashed system and the update went on well.

Thus you need a computer with adb and fastboot available and stock image from http://en.miui.com/download-354.html of the same version as currently installed.
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
Does this format all data?
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
Unlock of bootloader will format all partitions and erase all my data, right?
[Xiaomi Mi A2 Lite Questions & Answers] wenna.speedy:
reflashing rom lock your bootloader. it will erase your data.

unlocking bootloader via adb erase your data again.
[Xiaomi Mi A2 Lite Questions & Answers] IO13:
if you have rooted phone you can't use OTA
[Xiaomi Mi A2 Lite Questions & Answers] Ansh@1234:
Finally i have also got feb security update after a long waiting period.
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
No my phone isn't rooted. I'm still with locked bootloader
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
I've tried to download the entire update without WiFi, using mobile data but nothing to do :(
[Xiaomi Mi A2 Lite Questions & Answers] Mansil234:
Of course you can,

read this:

https://xdaforums.com/mi-a2-lite/how-to/guide-install-magisk-proper-support-ota-t3836952

I followed the instructions and updated my phone.

I had no problems
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
Of course, not.

Reflashing of boot or system partition doesn't touch you data partition.

---------- Post added at 07:21 PM ---------- Previous post was at 07:04 PM ----------

It depends how you reflash. Some scripts provided with the stock ROM do contain bootloader lock command. Some do erase data. The performing actions follow from script names. If you are not sure, open a script and check the commands inside.

In a case you have a problem with the OTA update, it is unlikely connected to your data partition. So no need in reflashing it/reflashing entire phone and loosing your data.

---------- Post added at 07:31 PM ---------- Previous post was at 07:21 PM ----------

There is a way to unlock bootloader on this phone without loosing data, see https://xdaforums.com/mi-a2-lite/how-to/guide-how-to-unlock-bootloader-erasing-t3878453

You do not have to unlock bootloader if you want to flash stock ROM images.
[Xiaomi Mi A2 Lite Questions & Answers] zeneszjaras:
Something interesting

I've had done something interesting recently. I'm not a "pro" user, just a normal. I couldn't install the February update through OTA, every time the install failed.

I had download from the new dump post the full rom. (Sorry i'm a new user and i can't url posting)

I have saved all my datas in my phone, then in the pc unzip all the files what i downloaded and installed the new rom with this method in fastboot mode.

After that when my phone first rebooted, the most interesting thing was for me, all of my files and apps were in my phone, anything lost, and everything is working. I don't understand why, the new rom works good, and no need restoring.

Only the magisk wasn't good. With the magisk manager I had made a patched boot img file from the full rom files. Then I booted the new patched boot img with fastboot, and then the magisk is perfect too. (but in magisk everything had to reinstalling)
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
Do you think a factory reset (done from the attached image) without flashing the Rom could fix the problem?
[Xiaomi Mi A2 Lite Questions & Answers] bedencic:
I had same problem. Something broke when I used Adaway adblocker.

Unlocking OEM with volume down button didn't work.

And than I downloaded this image http://bigota.d.miui.com/V10.0.3.0....0.PDLMIXM_20190114.0000.00_9.0_e8d8d4a6d0.tgz

This is January image.

All other images here are for months before. 10.0.3 is Jan, 10.0.2 is Dec and so on

https://xdaforums.com/mi-a2-lite/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824871

Unzipped with 7zip this image

_________________________________________

step 1: install adb and fastboot. ( On windows follow this link https://xdaforums.com/sho....php?t=2588979 )

enable the developer menu on your phone (launch settings, go to system->"about phone" and press repeately on build number)

from the developer options ( launch settings, go to system->"about phone"->developer options ) enable adb and allow bootloader unlock

connect the phone to your PC and give adb permissions to your PC. here I used in cmd

adb devices

so it would ask for permission from PC

turn off the phone

reboot by pressing power + vol down

_________________________________________

Then with adb in recovery I used:

fastboot oem unlock

then i repeated step 1, becouse of factory reset with unlocking oem

fastboot getvar current-slot

if i got A i used A in next string, if B, i used B, where ? is used

fastboot flash boot_? boot.img

fastboot flash system_? system.img

fastboot oem lock

Rebooted phone and

then I updated, and everything worked as it should.
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
No, it will not: Data partition is not being checked during the update process.

What you can do:

(a) try to find out the reason why the update is failing. It is as simple as starting adb logcat during the update and watching through strings containing update_engine for "error" or "fail" words. Then you will know for sure what is wrong in your phone.

or

(b) reflash your current android version with flash_all_except_storage.bat (if you are under Windows) or flash_all_except_storage.sh (if you are under Linux) script which are part of the whole package http://bigota.d.miui.com/V10.0.3.0....0.PDLMIXM_20190114.0000.00_9.0_e8d8d4a6d0.tgz

Most likely you will be able to download and perform the update after this.

or

(c) wait for a few hours: Xiaomi must grant a download link for February 10.0.4.0 version at http://en.miui.com/download-354.html and then do what is in (b) option above with the newer version. You will get updated system right away. Or at your own risk use a dump of this version that someone has already provided (find the link above in the same forum).

Wish you success.
[Xiaomi Mi A2 Lite Questions & Answers] cmdalhog:
just updated my phone and works fine.
[Xiaomi Mi A2 Lite Questions & Answers] Xmata:
Not work for me.
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
Can you please explain to me how to use "adb logcat" ? And if it works also if my phone has the bootloader locked?

Thank you very much!
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
You are welcome! In fact, the simplest Internet search request might help you. Please read this:

https://www.xda-developers.com/what-is-adb/

and this:

https://developer.android.com/studio/releases/platform-tools.html

When everything is ready, connect the phone, start from the computer adb logcat -e update_engine and initiate update on the phone.
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
Here is the logcat output made using the command that you suggested. The word "error" appears several times but honestly I din't understand what the error can be :(

I've found also this:

C:\Android>adb logcat -e ERROR:delta

--------- beginning of system

--------- beginning of crash

--------- beginning of main

02-27 19:54:21.282 900 900 E update_engine: [0227/195421.282867:ERROR:delta_

performer.cc(990)] The hash of the source data on disk for this operation doesn't match the expected value. This could mean that the delta update payload was targeted for another version, or that the source partition was modified after it was installed, for example, by mounting a filesystem.

Do you have any idea what the problem can be?

Thank you very much!

Do you have any idea?
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
Well done! You are close. The log file provided is not full, it does not even contain the string you cited. In the full log made with update_engine filter search for ERROR and FAIL words (what you did) and then analyse neighboring strings, you will find details about the error. The partition name is mentioned, etc.

Then simply reflash that/those partition/s with fastboot in the active slot, which is used be the default. In other words, do not specify "_b" or "_a" with the name of the partition. The image source and the command were mentioned earlier in the same thread.
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
Ok I understood. Sorry for bothering you again I just want to be sure that I will do the right operations.

Based on your previous message where you wrote:

====YOUR INSTRUCTIONS=====================================================================================================================================

reflash your current android version with flash_all_except_storage.bat (if you are under Windows) or flash_all_except_storage.sh (if you are under Linux) script which are part of the whole package http://bigota.d.miui.com/V10.0.3.0.P...e8d8d4a6d0.tgz

====END YOUR INSTRUCTIONS==================================================================================================================================

I've downloaded the entire official ROM image file as you provided the link: http://bigota.d.miui.com/V10.0.3.0.P...e8d8d4a6d0.tgz

once I decompress it I found the "flash_all_except_storage.bat" file (see attached screenshot).

My questions are:

1. Do I have to open cmd shell as administrator then just run the "flash_all_except_storage.bat" (obviously I think I need to reboot the phone in bootloader recovery with Debugging USB enabled)

2. Does this operation work even if my phone has the bootloader locked?

3. Does this operation format my Data partition? I mean I will lose all the data and applications?

Thank you very much for your time :)
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
I understood.

I've downloaded the ROM file from your link and decompressed it and I found the "flash_all_except_storage.bat" (see attached image).

Sorry for bothering you again but I would like to be sure about the activities that I'm going to do.

So here are my questions:

1. Do I have to run a command shell on Windows (as administrator of course with the phone restarted in bootloader recovery) and run the "flash_all_except_storage.bat" only? This will start to flash the system partition only?

2. Does this operation work even if my phone has the bootloader locked? Or do I have to unlock the bootloader first?

3. Does this operation format all the data partition also? I mean my data and application will remain on the phone?

Thank you very much for your patience. :)
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
You are welcome, NP.

1. I am not sure if your Windows will require running the script with admin privileges. It is always good to try first with regular access level. Yes, you have to reboot into fastboot mode (if you have adb set up, simply run adb reboot bootloader). The script will reflash quite a number of partitons in both slots (see what the script contains, it is always good to check what you are going to run :)), but will leave phone storage (or user data) intact. That is why it is called "flash_all_except_storage". It is useful to run the script from the command prompt window, not by double click in Explorer, as it leaves the tracks of what you started. For example, something goes wrong and you see error messages in the command window after.

2. Yes, it works with locked bootloader the same way as with unlocked one. You do not have to unlock the bootloader.

3. No, it will not format data partition. All your data and apps and settings and photos, etc. will not be touched if you run flash_all_except_storage script. BTW, I think it's very beneficial to compare this script contents with others in the same folder (which do erase data).

But, of course, full fresh backup is always good to have :)
[Xiaomi Mi A2 Lite Questions & Answers] Bechamel:
this fixed it for me, thanks!
[Xiaomi Mi A2 Lite Questions & Answers] killerplauze:
I get the following line

2019-03-01 21:08:59.069 2498-15242/? E/SystemUpdate: [Execution,NonStreamingAbApplyAction] Installation failed with error code: 20.
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
Watch neighboring strings for the reason.
[Xiaomi Mi A2 Lite Questions & Answers] ukey89:
My error

No idea :/
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
It is evidently not full log, what is attached just INFO statements. Probably better would be to attach log in a separate file. You can generate log by

adb logcat -e update_engine > full_log.txt

(and initiate update and wait for the finish with error; Ctrl+C for the command and attach full_log.txt file here)
[Xiaomi Mi A2 Lite Questions & Answers] killerplauze:
Error Message on Update

My error log:
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
So reflash system now. Why the system was mounted in RW mode - another story. In my case official TWRP made it during full backup.
[Xiaomi Mi A2 Lite Questions & Answers] ukey89:
Hmm i remove my sdcard and update was done without a problem. And no wake up delay :)
[Xiaomi Mi A2 Lite Questions & Answers] Mr.Mechano:
Fails with battery <60%

Same problem, but after charging battery over 60% the update was successful.

Big update needs more battery charge.
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
Dear Yakovopl,

I've tried many times to reflash system partition with my bootloader locked, but it seems that it cannot be done until you don't unlock the bootloader :(:(:(:(:(

I'm not an expert but in my opinion it makes sense: you cannot write in the system partition if your bootloader is locked for safety reasons.

The problem is that the bootloader unlocking erases all data :(

For example the batch file "flash_all_except_storage.bat" included in the official ROM has these 3 commands at the beginning:

fastboot %* erase boot_a || [MENTION=279333]ECHO[/MENTION] "Erase boot_a error" && exit /B 1

fastboot %* flash modem_a %~dp0\images\modem.img || [MENTION=279333]ECHO[/MENTION] "Flash modem_a error" && exit /B 1

fastboot %* flash modem_b %~dp0\images\modem.img || [MENTION=279333]ECHO[/MENTION] "Flash modem_b error" && exit /B 1

in my case it fails at the first command: fastboot %* erase boot_a || [MENTION=279333]ECHO[/MENTION] "Erase boot_a error" && exit /B 1

and I think this obviously fail because my bootloader is locked hence the erase boot_a cannot be performed.
[Xiaomi Mi A2 Lite Questions & Answers] yakovpol:
Dear konan82, you are right. I am very sorry I brought you to the confusion.

I have just checked what is happening with the locked bootloader:

$ fastboot getvar unlocked
unlocked: no
finished. total time: 0.004s
$ fastboot getvar current-slot
current-slot: b
finished. total time: 0.001s
$ fastboot erase boot_a
erasing 'boot_a'...
FAILED (remote: device is locked. Cannot erase)
finished. total time: 0.020s
$ fastboot flash boot_a images/boot.img
target reported max download size of 534773760 bytes
sending 'boot_a' (27239 KB)...
OKAY [ 0.901s]
writing 'boot_a'...
FAILED (remote: Partition flashing is not allowed)
finished. total time: 0.918s

It probably means you cannot upgrade/fix your phone without unlocking the bootloader.

The good news is: it is possible to unlock the Mi A2 lite bootloader without loosing your data, see here
[Xiaomi Mi A2 Lite Questions & Answers] konan82:
First of all thanks for your patience :)

I'm going to read your link.

In case I unlock the bootloader and then reflash system partition, can I then continue to receive official OTA updates?

Thank you :)