yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 Questions & Answers] jascolli:
What's worked for me is:

1. Put the rom zip and twrp installer zip on your phone.

2. From your PC, fastboot boot twrp.

3. Now once twrp boots on your phone, do a normal swipe wipe.

4. Then install rom zip and twrp zip

5. Reboot and set up.

6. Be sure to enable advanced reboot.

7. Boot into twrp and install magisk

Done
[Google Pixel XL Questions & Answers] Novakingwai:
I did the 1st install when it came out. Jan 2017. Since that there were a few updates, until June 2017. Can I just download the latest one and install it? Or will I have to update the vendor image and radio things too?
[Google Pixel XL Questions & Answers] Homeboy76:
Have you tried the Android 8.1.0 ROMs?

This thread: [Guide] Pixel XL Android 8.1.0 (OREO) Unlock/Lock Bootloader + Install Stock Images/Custom kernels/TWRP Recovery/Systemless ROOT + June Security Patch # 11.

Why? The [ROM][Pixel-XL][7.1.2_r24]★ Pure Nexus ★ Substratum | Fi | WiFi Calling ★[07/25/17] by BeansTown106 thread is closed (no support).
[Google Pixel XL Questions & Answers] Novakingwai:
I just wanted something simple. I figured since I already have this ROM just updating it would be easier than trying to do a fresh install of a new OS version.
[Google Pixel XL Questions & Answers] Homeboy76:
Understand, but that means your firmware is out of date.

Which means your carrier service is probably not functioning at its best. Additionally, the Pure Nexus thread was the best place to post your question. :)
[Google Pixel XL Questions & Answers] Phalanx7621:
Remember as you said , thread closed down. I considered flashing it too but I don't wanna go back to Nougat
[Google Pixel XL Questions & Answers] Homeboy76:
I remembered "Additionally, the Pure Nexus thread was the best place to post your question." :)
[Google Pixel XL Questions & Answers] Phalanx7621:
BURN.
[Google Pixel XL Questions & Answers] Novakingwai:
How do you update the vendor image? I downloaded it from the thread. Its been so long
[Google Pixel XL Questions & Answers] Phalanx7621:
Flash in TWRP, but this ROM itself will never be updated again I'm thinking.
[Google Pixel XL Questions & Answers] Novakingwai:
That's fine. Do I just flash it under install just like I'm flashing the ROM? Or is there a special palce to install it?
[Google Pixel XL Questions & Answers] Phalanx7621:
Install, but there's an option for Image you have to click on.
[Google Pixel XL Questions & Answers] Homeboy76:
Just curious

Are you going to flash an 8.1.0 vendor.img on a 7.1.2 ROM?

The last valid vendor.img for Pure Nexus was N2G47J_vendor.img.
[Google Pixel XL Questions & Answers] Novakingwai:
I thought I did it right. I downloaded from the link in the Pure Nexus Thread. Now when I booted my phone it gave me an error about wrong vendor image and a bunch of ____ has stoopped messages keep popping up.
[Google Pixel XL Questions & Answers] Homeboy76:
I know you want Pure Nexus but my suggestions are:

a. First, Upgrade to Android 8.1.0 firmware/factory image. Go to this thread: [Guide] Pixel XL Android 8.1.0 (OREO) Unlock/Lock Bootloader + Install Stock Images/Custom kernels/TWRP Recovery/Systemless ROOT + June Security Patch

Do #4 Keep Data , then do #7 to root.

b. Second, look at the ROMs in #11, click the links read about them and decide which one you would like to install. Then click the link for it and follow the instructions in the OP to install it.:)
[Samsung Galaxy S8+ Questions & Answers] izimen:
Hi i updated my baseband to CRE3 with the installation of the custom rom renobate ice and now i want to downgrade my baseband to CRD7 it is possible ?

Sorry for my english
[Windows Mobile Development and Hacking General] tmz:
Looking for one of our great developers here. Possibly to take on the task of

creating a new app. A program to remap the start button the one With the windows icon.

Everything under the start menu is most likely already loacted somewhere else.

Like your cube, quicklaunchers, shortcuts and so on.

Nothing under the start menu is finger friendly, like were trying to make the rest of our functions on our phones.

I tend not to use the start menu at all. It seems to be a waste of a softkey.

I hope there are others who might feel this way. And show some support so maybe someone might be interested in taking on this task.

Thanks so much, T M Z

P.S I posted this at ppcgeeks,But know takers..
[Windows Mobile Development and Hacking General] chunga168:
AEButtonPlus allows you to remap start button.

Start menu becomes more finger friendly if you install Large-Start-Menu
[Windows Mobile Development and Hacking General] Michaelr219:
your best bet is wisbar andvance or lite... by the time some freeware is released by a generous developer. days or weeks could pass. your best bet is to spend 5 to 10 bucks and get the two programs mentioned. I have mine mapped to mortbuttons... it allows for a much finger friendlier start menu with my own personalized shortcuts and submenus... the best part is it matches my theme and its very easy... hope that helps
[Windows Mobile Development and Hacking General] tmz:
The softkey start button on the screen with the start icon?
[Windows Mobile Development and Hacking General] chunga168:
ohhh... apologies!

Didn't realise you mean the softkey at the top left corner...

If so... wisbar advance will probably be the way to go

Or the new FTouchFlo (forgot the name of it... SLTouchFlo or something?) may be the way to go, since that allows you to remap the 4 corners of the screen
[Windows Mobile Development and Hacking General] tmz:
Not what i'm looking for, but Thanks T M Z
[Windows Mobile Development and Hacking General] tmz:
Bump.. Bump..
[Huawei P10 Questions & Answers] EwOkie:
:crying:

Removed bloatware on my P10 L09

Added a kernel

Now have issues with getting permissions

To SD Card

Is the attached image for the app

DocumentsUI apk?
[Huawei P10 Questions & Answers] nmlng:
Did you delete the documentsUI? U need that in order apps to interact with your phone storage.
[Huawei P10 Questions & Answers] EwOkie:
Checked my files looks like I may have accidently did this do you have the apk file?
[Huawei P10 Questions & Answers] nmlng:
Here you go. Uncompress it and put it in system/privapp https://drive.google.com/file/d/1v4PgipvDR39gKWDRgV3zbZ-udcWovqD9/view?usp=drivesdk
[Huawei P10 Questions & Answers] EwOkie:
You need permission

Whats that link for?
[Samsung Galaxy S7 Questions and Answers] chuchinh0:
Hi, I need a tutorial on how to downgrade from android 8.0 to android 7.0, my cell phone is an S7 g930f.

I ask your help and excuse the translation I am doing my best.
[Samsung Galaxy S7 Questions and Answers] mor_1228:
can u tell why u want to downgrade ? any problem with 8.0 ?
[Samsung Galaxy S7 Questions and Answers] chuchinh0:
Yes, I have problems with an application called Parallel Space so I want to download to version 7.0 where I had no problem.

Can you help me, please?

That I need to do the downgrade from 8.0 to 7.0
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] syl0n:
I have tried pretty much all AOSP ROMs and I am finding that all of them have huge number of wakelocks. At night my phone is awake for about 1.5 to 2 hours out of 7-8 hours and drains 7-10% battery over this time. Even with clean install and only minimum apps installed.

In battery useage apps they show up as Kernel (Android OS) and Linage OS System in battery usage apps. Any idea how to find and resolve this?
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Fran Montero:
same for me!
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] h0ttentot:
This only happens on AOSP roms? Not on Lineage OS?
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] syl0n:
I included Lineage OS and everything else in AOSP - non MIUI ROMs.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] h0ttentot:
So this doesn't happen in stock rom? I'm getting my Redmi 5 Plus today and i plan to flash a custom rom because i don't like bloatware and gapps, but if this is a big issue i don't know if i should for now.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] syl0n:
I don't think so. Stand by on Stock ROM was much better for me. Lost 0% overnight.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Meerk4t:
same happens to me.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] noamazulay24:
Same for me.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Fran Montero:
same here. 1% lost every hour overnight, just mobile signal, no wifi, no bluetooth no gps
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] :
Try using AppOps to deny the following permissions for the apps you have installed - keep awake, auto start, run in background. Exclude messaging, clock and dialer apps from this procedure.

https://xdaforums.com/android/general/guide-extreme-battery-life-t3095884

https://xdaforums.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588

These guides can help, but are most likely not longer necessary past Android 7.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] syl0n:
I am doing a test by clean flashing, not installing any apps and not even installing Gapps to see if the same drain happens. Will report back.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] syl0n:
Cleaned flashed, NO GAPPS, NO other apps, left phone for 8 hours, lost 8%. "Significant motion detector" was awake for 2.5 hours. Same wakelock on all ROMs, seems like an issue with this phone. I don't know if it happens on MIUI but I guess no?
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] dfkt_:
It might be because all the ROMs are based on the initial work of mdeejay and tingyichen, as I understand it. All the AOSP ROMs are basically the same, only varying in tiny amounts of superficial stuff that is added to them.

Did you try the unofficial OmniROM build? It's the only non-Lineage ROM that's developed from scratch (by ex-CM devs), and to me it does feel different than all the rest, in a positive way.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] NeerajBhatt:
use better battery stats for understanding the culprit. i am on 8.1 AEX and overnight drain is 0.5%. 0n miui it was 1%.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] syl0n:
What phone do you have ? 3/32 or 4/64? And what baseband firmware? I ask because I had same 1% per hour drain on aex too. I wonder if having encryption on makes a difference?
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Fran Montero:
I am tired of trying new roms and kernels but all behave the ssme. 35% time awake :(
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] sigma392:
Can you try to post a Better Battery Stats log? Is your WiFi turned on during idle?
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Fran Montero:
No, everything turned off, only mobile signal. Also tried in airplane mode.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] sigma392:
Please post a Log from Better Battery Stats. The only thing I can think of is that weak signal is draining your device's battery.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] syl0n:
Not possible if its happening even in Airplane mode.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] h0ttentot:
People are telling you since June 16th to install BetterBatteryStats, wait a few days and post the log so we can see what's causing the wakelocks. Why are you not doing this? You need to provide more info, just complaining here will not solve anything.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
Hi, I have the same issue, my phone loosing battery when I don't use it, it shows android system 6% consumed 845 mAh in 22 hours and android OS 4% with 527 mAh.

I have a redmi note 3 which never had this battery drain.

Doesn't matter which ROM, I will use miflasher to flash global miui to see if it fixes the issue. I've attached a log file from betterbatterystats
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] jes0411:
After some time using custom roms I start suffering idle battery drain, about 50% time screen off device is active. Maybe it was after flashing baseband from leaked miui 9 oreo but I'm not sure. Also sometimes battery doesn't charge to 100%.

Yesterday I flashed latest global stable miui fastboot with miflash to see if it solves the issue but not.

On custom roms betterbatterystats doesn't show well the wakelocks that cause idle battery drain. On miui it shows netlink and [timerfd] (about 50% each). Sometimes also another wakelock 7000000.ssusb that some people said is related to otg but I don't use it, I don't have otg adapter.

Tried with and without wifi, 4g and 2g only and also flight mode without difference.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
Yes, been having the same issue since I bought the phone about one month ago, every single ROM I tried has idle battery drain, I even tried without gapps.

Only sailfish os and flyme os remain to be tested, but still, I doubt those could avoid this drain. Starting to think that there is some hardware problem since not many people seem to be bothered by this.

I fixed the incomplete battery charging using latest EU MIUI and several reboots while keeping phone plugged, idle drain is still there. 20 minutes 2% drained with Android System and Android OS both with about 40% consumption. It's insane. Slowly loosing hope here.

Redmi 5 Plus isn't mine, ordered it for my mother, my Redmi Note 5 Pro will arrive next week, I'm afraid now that it will have same battery drain.

I got Redmi Note 3 Pro since 2016 and never had any issues with it, flashed tens of ROMs and it's still kicking today. Two year old RN3 battery backup is better than one month old R5Plus :(
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] jes0411:
In my home we have another 2 r5+ with locked bootloader and never modified, that 2 doesn't drain in standby..

Mine didn't have the problem but after using some custom roms and kernels it started to drain a lot in standby. I don't know if it was something with roms or kernels or it was coincidence. Or maybe the charger and cable I was using in the night, they are old from another devices.

From yesterday afternoon that I let the phone shut down because battery empty and partially charged, the battery graph in miui (latest global stable 9.6) stops showing awake all time with screen off but the drain is the same and the wakelocks too.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] jes0411:
I tried flashing the first global estable 9.2.6.0 with fastboot but nothing changes.

Also tried without sim and microsd and again in airplane mode but nothing.

Battery only charge to 98%, if powered off it charges to 100% but when unplug charger it goes down to 99% immediately.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
I just can't understand how this is possible, it really seems like there's an external problem not related to software, or could it be kernel problem?

Also I found out that by summing the amount of mAh consumed by Android System, Android OS and the rest of the consumers, screen, apps, etc, it seems the values exceed the capacity of the battery.

I had 72% battery, that should be roughly 3000 mAh left and 1000 consumed, but Android System and Android OS which show up as top consumers had more than 800 mAh consumed with the rest being a realistic value of about 1100 mAh consumed. So it's impossible to be at 72% with approx. 1900 mAh consumed from a total of 4000 mAh battery.

Could it be that the measurement of the battery consumption is faulty? Or maybe it could be a bug in the software which shows incorrect values? Then why doesn't the phone sleep at all when idle? In MIUI the activity bar in the battery info looks like a barcode, like the phone wakes up every minute while it's idling. It's really something beyond my knowledge.

In my RN3, Android System consumed 82 mAh in two days, in R5Plus it consumed 400+ mAh in one day(22 hours) and Android OS 344 mAh, which doesn't even show up in RN3.

I don't even think I can RMA the phone, because the phone works ok and also unlocked bootloader :eek:
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] jes0411:
Mine is like a barcode too.

I don't think it's something kernel related because before with same miui versions it works well.

I think all this started after using custom kernels on 8.1 roms or after changing the modem to the one on leaked miui 9 8.1 to solve fingerprint issues on 8.1 roms.

Maybe battery level reported now by os is less than real and really is full charged but so reports that it doesn't and something goes crazy in so causing those two wakelocks (netlink and [timerfd]).

Only thing I didn't try is removing back cover, unplug battery and plug it again. Someone said it solves battery charging to 100%. I'm afraid can damage cover trying to remove it.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
I also wanted to try that, but failed and didn't want to force the cover, as you said it can damage not the cover, but those clamps on the phone's frame. Happened to RN3, now my cover doesn't fully close on the mid right side where the buttons are, power button press is registered twice sometimes because of that.

Now regarding the oreo baseband, I only flashed it recently to fix inaccurate fingerprint function on AOSP oreo ROMs. But the drain issues for me at least were present from the start. I don't remember exactly if they were present out of the box, but I think they were, one of the main reasons I started flashing was to fix MIUI battery drain, only to find out that every single ROM I flashed since had the same issue.

I also used MIFlash and fastboot MIUI rom with clean all option to make sure that everything went to stock, to my surprise bootloader remained unlocked after flashing, I knew that Miflasher locks the bootloader but not anymore it seems. Could it be an intentional thing done by Xiaomi to punish those unlocking bootloader? Seems very unlikely, but strange nonetheless.

I'll continue to experiment until I find something. I can't settle till this is fixed.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] jes0411:
There are option to "clean all" and to "clean all and lock", only the second one relocks the bootloader. It's at the bottom right of the program window.

I wonder if it's necessary to wait 360h again after relock or it will be instantly.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
Once you gain permission to unlock, your account will have that permission forever. I unlocked R5Plus with the account I used to unlock RN3. But I remember using MIFlash with RN3 with clean all which also relocked bootloader, now it seems Xiaomi fixed that with newer devices.

I thought I can only re-lock the bootloader using adb, but now that you mention the clean all and lock which I remember, it makes sense. I could try re-locking the bootloader while flashing a global stable rom, to check on battery drain.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] sigma392:
From the logs, it seems that the wakelock is from an abnormal proximity sensor. In theory, it could be a hardware problem OR a Kernel problem. As you see, almost all kernels are based from Mdeejay's base Kernel from our device. AFAIK the only other kernel that is different enough from this base Kern is the LH kernel. Try flashing that on AOSP bases ROMs then post your BBS logs after.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] jes0411:
But if it's a kernel bug it should stop when clean flashing miui global fastboot.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
Like "jes0411" said, with stock miui the drain shouldn't exist if it's kernel related. I can confirm that I tried everything, including LH kernel and Dark Ages. When I posted the stats, the phone was on RR rom, but no matter what rom or kernel the drain is the same. I tried to deactivate everything that could use sensors like pocket detection, ambient display, etc. Just leaving the phone on airplane mode without gapps installed and no root, Android OS and Android System appearing on top in battery stats.

I also noticed that lately Wifi started showing very high battery consumption as well, a thing that wasn't present before, at least on MIUI it wasn't. Wifi scanning is disabled as well as location assistance.

All this point to a hardware issue, maybe some sensor not shutting down when phone is sleeping, and android blames it on the system itself in the battery stats? Really got not clue. Also thanks for showing interest in resolving this issue.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] sigma392:
It can actually be Kernel related if Xiaomi swapped out the Proximity Sensor (Like they did in the past with their camera modules) but didn't update the source code to account for this change. But if that is the case, then I'd treat it like a hardware problem and request a replacement from the reseller.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
I doubt that the reseller would offer a replacement for such a "trivial" issue. They'll probably do a check in MIUI hardware test mode and return the device stating that it's functioning as expected.

Only thing left to do is to use miflash and lock the bootloader to see if that changes anything. Next I'll probably start praying to Android God :laugh:
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] sigma392:
Locking the bootloader shouldn't change anything but it doesn't hurt to try. :good:

Though, for the reference of others, could you try to see when your phone was manufactured? So we at least have data on what batches to avoid if ever. I have a MEI7 with a manufacturing date of 12/2017 for reference.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
On the back of the phone it's written Model: MEG7 and on the box it's written: 2018.03

Edit: Right now flashing fastboot rom from 22/03/2018 it seems, it's the most recent I could find and download

Edit2: Sadly nothing has changed, even miui updated itself over the air to latest version and the phone still doesn't sleep. Basically it's how it was out of the box. Think I'll just give up.

Tomorrow comes my RN5Pro, hope it doesn't suffer from the same issue.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
Sorry, I was wrong on this one, apparently I didn't know about the new changes made to the unlocking system, before you had to ask permission from Xiaomi for your account to unlock a phone.

That permission allowed you to unlock as many times you wanted, any device binded to that account.

Now it seems there's no need to ask for permission but you can only unlock one device per month, after I locked my bootloader yesterday to check if battery drain is still there, I couldn't unlock it, need to wait 360 days.

Learned about it the hard way. So it's around 15 days to unlock the same device.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] syl0n:
From my experiments what firmware/modem you use has a huge impact on this wakelock. I am trying the firmware from MIUI 10 oreo leak (Posted in telegram ). It is keeping my phone awake 99% of the time. Its a lot worse than the other firmwares.
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] jes0411:
Maybe my problem started after using that firmware.

The weird thing is that if I clean flash the full fastboot rom global stable that previously worked well (including the firmware) now it drains the same.

Maybe that leaked firmware damaged something...
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Fran Montero:
I suffer the problem and my phone is 4/64 Chinese version. Yours?
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] jes0411:
4/64 global version
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Saicoth:
The only thing left to do is to open the cover with a pry tool and disconnect the battery and reconnect it.

I tried it again today with no success. I don't have any tools and don't want to force it open.

Maybe something could be wrong there, disconnecting the power from the mainboard would be worth a try. But with the risk of bending or even breaking something, I'll leave it to someone with experience and suitable tools.

My RN5 doesn't suffer from this weird drain, it sleeps like it should when screen is off.