yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] NNNexX:
Hey guys,

after dropping my beloved Nexus 4 to the concrete floor in May, I bought a new S4 mini in the electronic market because of it's decent size and all the fuzz about having a very good price-performance-ratio.

After a few weeks I already was fairly disappointed.

On an average work day (without WiFi) and little use (~30min OSD) the battery wouldn't last a full day. I tried the usual things like turning off GPS, bluetooth and using Wifi whenever possible (turning it off, when not in range), etc. I also used the App greenify which boosted my deepsleep in Wakelock Detector to stable 85+%.

When using GMaps/navigation my phone is getting hot (~50°C) and battery is drained within minutes. When trying to navigate out of the city (<15min navigation) one day my phone was discharged within 3 hours after a full charge. I got Wakelock Detector, Better Battery Stats and Battery Monitor Widget installed.

The only thing I found out, that when I am connected to Wifi the drain is a lot lower 1-2%/hour compared to when I am using 3G/H+ which results in 7-15%/hour (both when not using the phone), although there is no problem with signal quality. Recently my phone started to bottoming out rly hard when hitting the 20% mark. From there I can watch the battery dropping to 0% within a few minutes.

Things I tried so far:

- turning off features that are not in use (GPS, bluetooth, Wifi when not in range)

- make sure phone gets into deep sleep/greenify apps

- recalibrate akku

- reduce brightness & disable auto-brightness

Setup:

GT-I9195 bought in May 2015 from electronic market chain

CM 12.1 (Android 5.1.1, serranoltexx)

Standard CM Kernel

Baseband I9195XXUBML4

I can provide Screenshots from BMW, WD and BBS. Any ideas how to solve this or what else I could do?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] chris42too:
Probably you should use something like better battery stats, to check

- if a service is going mad, then turn it off with disable service to test (most times happens with unclean flash)

- if you have an app with wakelocks

If you can't find anything that way, might be a hardware fault.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] RuffBuster:
Personally if I came across this problem I would return the phone to stock Android and do some tests, see if the same happens again. CM12.1 can have issues across different same model phones. Try the Samsung Phone Info app to see how old your phone is. I'm guessing it was second hand? Some older revisions of the Mini had battery problems. Maybe a new battery is needed? Maybe.. As for the battery draining 20%-0% in minutes I have also suffered this on a brand new March 2015 device. Not all the time though it only happens with randomly once a week. But I put that down to the battery not been fully calibrated and then drained and recharged over the next 3 4 days, as I use a spare battery and swap out the batteries regularly which means my battery is very rarely calibrated.

All that said though I can easily get through an entire day if not 2. And using stock I'm able to get 4 and a half hours on average every time, maybe 4 hours of screen on time when using 3G a lot and GPS etc.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] xtspot:
I have had the same problem as you.

I return twice my phone to vendor. But they could do anything.

I solved it with undervolting and underclocking my phone (only the low frequency).

I read from someone, you can undervolting 150 millivolt.

My experience, is undervolting 125 milivolt. and underclocking the low frequency at the minimum.

You didn't feel any difference, behalves that the phone is cooler and battery live is better.

My WiFi and Bluetooth are always on. I don't have to recharge my phone during the day.

It is so effective en transparent that I don't understand why Samsung didn't do it natively.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] NNNexX:
Hey,

I tried to apply some of your advice and flashed the newest stock rom for S4 Mini (Kitkat ...COE4).

In that process I recognized that the Baseband is not updated by CM and that the one that was installed when I bought it was fairly old (from 2013). Do you think that this might be part of the problem? (I sort of hate the Samsung Rom)

This week when working and not having Wifi all day, I managed to get 2h of SOT and still had around 25% left which I couldnt have gotten before imo. I only lose 1-4% per hour when the phone is not used. But still thats not pretty good, when ur saying you can get 4h with GPS and everything. I also didnt use GPS. And today when I restarted my phone it just went from 40-ish % to 15% without any reason. Any more ideas?

I installed BetterBatteryStats today and will try to give some more insight the next days. Wakelock detector said that I had 85% deep sleep (timeframe 1 day 2 hours).

No I bought it new from a electronic store (Media Markt). The app says that is was made on Oct 19th 2014 in Vietnam and that it is original/not refurbished.

How much do you gain by undervolting (SOT or % per hour when idle)?

How do you do it?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] Loulou-13:
maybe the best way is to downgrade by flashing CM11 for example ...

(another way with stock + Alexax kernel + own debloat&freeze ... )

I have the same consumption problem with Resurection Remix LP too ..... very strange !

Lollipop is supposed to be less angry than Android 4.X.X ... but it seem have problem somewhere for our S4-mini sources maybe ,i don't know ...
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] NNNexX:
This night I did some BBS tests:

Setup:

Stock Rom I previously installed (see posts above)

charged phone during evening

set up custom timepoint before I went to sleep

WLAN disabled

all apps greenyfied except those I deemed significant that they keep running (Whatsapp, calendar, Swiftkey, BBS, BMW, etc). Forgot newly installed app hoomn.

I had to upload the logfile to pastebin because it was too long for the xda forum: pastebin.ca/3256568 (I am not allowed to post URLs, sorry)

I lost 14% of battery during 9hrs (-1,6%/h). That's probably not too bad?

93% deep sleep, 33min awake time

Weird things I discovered/things I did not understand:

- negative Voltage loss?

- Wifi runtime 100% although I disabled it

- dominant wakelocks (count > 100, all of them < 30s): Alarm Manager, RILJ1, *net_scheduler*, GCM_CONN, ContextManagerWakeLock, Event Log Service, AlarmManager (com.sec.spp.push.Samsung Push Service), SyncLoopWakeLock, GCM_HB_ALARM

- dominant KWLs (count > 100): ril-fd (25min), bam_dmux_wakelock (13min), radio-interface (7min), PowerManagerService.WakeLocks (3min), mmc1_detect (1min), alarm_rtc, alarm, sec-charger-monitor, smdcntl0, pm8921_soc_lock, power-supply, KeyEvents, smsm_snapshot, qmuxd_port_wl_0, qmuxd_port_wl_1, smdcntl1, mmc0_detect

- Alarms (>20): ccc71.bmw (Battery Monitor Widget), android, com.google.android.gms, com.sec.spp.push

any ideas/assessments?
[Nexus 6P Android Development] Shawn5162:
I have decompressed the Nexus 6P factory images and extracted the system.img and and converted it into a TWRP recovery flashable zip. Enjoy :)

Instructions:

Download ROM

Copy to phone

Boot into recovery (TWRP, etc.)

Make a backup

* Wipe system, data, delvik cache, and cache (if coming from non-stock ROM)

* Wipe devlik cache and cache (if coming from a stock ROM)

Flash ROM

Reboot

Downloads:

Latest Build: 6.0.0-MBD08K

Android 6.0.0

Build MDA89D: LINK

Build MBD08K: LINK

NOTE: These ROM are based on an UNMODIFED version of the stock factory images! NO CHANGES IN ANY WAY WERE MADE to the stock firmware :)

XDA:DevDB Information

[ROM]Nexus6P Stock ROMs, ROM for the Huawei Nexus 6P

Contributors

Shawn5162

ROM OS Version: 6.0.x Marshmallow

Version Information

Status: Stable

Created 2015-10-27

Last Updated 2015-10-26
[Nexus 6P Android Development] Shawn5162:
Reserved

Reserved because I can :)

Probably never going to use this post but it seams to be a tradition by XDA devs :)
[Nexus 6P Android Development] galaxys:
You've been busy in the XDA kitchen! :) :cool:
[Nexus 6P Android Development] kingmikel:
Thanks for the hard work! My 6P arrives tomorrow :)
[Nexus 6P Android Development] Danish2980:
What's the difference between the two? (I feel like I should know this already) ☺
[Nexus 6P Android Development] bradputt:
Is TWRP out for nexus 6p?
[Nexus 6P Android Development] vanydotk:
Let the cooking begin!
[Nexus 6P Android Development] Shawn5162:
Nope :)...Thought I would release this before though.

I am working on a custom TWRP build as we speak though. I will probably release it within a few days.

Also [MENTION=912474]Dees_Troy[/MENTION] is working on official TWRP which should also be coming out within the next few days.

Shawn
[Nexus 6P Android Development] dontbeweakvato:
how long did yours say "pending"?
[Nexus 6P Android Development] kingmikel:
It said "pending" for about a week, then it switched to "processing" for a little over a day, then finally "shipped" :good:
[Nexus 6P Android Development] ggeralds:
Yes please I'd like to know as well.....I've done some unsuccessful searching for this as well.
[Nexus 6P Android Development] Shawn5162:
Ok. So basically when Google updates the AOSP sources (with multiple commits) they push a new build. These new builds also contain security patches and bug fixes (very minor ones). These updates don't add new features most of the time (if they are based on the same android OS version). I have added a new line in the OP where I write the build number for the latest build. This should help people find the latest build faster.

Shawn
[Nexus 6P Android Development] emiwonder:
Hah, glad to see Shawn here, developed such a good rom for Moto G 2014, hope you will continue your efforts for 6P as well :)
[Nexus 6P Android Development] Shawn5162:
Nice to see you here too ;)
[Nexus 6P Android Development] pittnuma:
IS this 1 rooted?
[Nexus 6P Android Development] NovaSlim:
New factory image with the November secruity patch :https://dl.google.com/dl/android/aosp/angler-mdb08m-factory-dbc17940.tgz

MDB08M
[Nexus 6P Android Development] djuniah:
Question about these images from google (first time nexus user, long time crack-flasher here). If i'm running stock and simply want to update to the new build, can i just extract the system image from that package and just flash it via fastboot or will that break things?
[Nexus 6P Android Development] defconoi:
Can't wait for latest build :) thanks for throwing these together!
[Nexus 6P Android Development] NovaSlim:
That won't boot(you be stuck on the google screen forever), you need to fastboot flash the vendor.img as well. For details:

http://xdaforums.com/nexus-6p/development/rom-cleancore-n6p-100-lean-stock-mbd08k-t3235306
[Nexus 6P Android Development] just4747:
Question about the Build: 6.0.0-MBD08K file in OP - I was having issues on my 6P and decided to factory reset and try flashing it in TWRP to start fresh. The only things I had modified on my phone is what was required for BL unlock, root, and custom recovery, as well as Elemental X's custom kernel.

However, when I flashed it, I got the red Google warning about OS being corrupted and it just hung at the Google logo after that.

The only way I could boot up normal was to restore my boot and system partitions from a backup I took when rooting.

What did I do wrong here?? I thought I could flash this to go back to stock/reset my phone, at any time?
[Nexus 6P Android Development] Avenue Blue:
Question, Im on MDA89D with root and bootloader unlocked, how do I flash this without corruption? I followed all the steps but its not working. I havnt flashed anything to android since kitkat so im a little rusty.
[Nexus 6P Android Development] Badger50:
You probably need to be on the O8K build before you flash the rom.
[Nexus 6P Android Development] cammykool:
Does anyone have a zip for the November update.
[Nexus 6P Android Development] vimmer77:
I would also like to know if this update will be made to be flashable via TWRP. TIA!
[Nexus 6P Android Development] jlinn75:
is this so we can maintain being rooted but also have the latest build?
[Nexus 6P Android Development] joedajoester:
When this gets updated for the M build, could I just fastboot flash the new vendor.img and then flash this rom and be good?
[Nexus 6P Android Development] micmars:
Depends on what you mean...you'll have the older radio, but the rest, yes, you'll have that which is needed.

Sent from my Nexus 6P, #WhiteUIsMustDie, #EndDarkAppOppression
[Nexus 6P Android Development] DaveHTC200:
Did the M version not get added just yet?
[Nexus 6P Android Development] grv00711:
getting cannot restore system...mounted read only ..tried fixing permissions ..not booting ..flashed a different boot image with chroma a while back.. croma rom boots on fresh install ..but cannot get back to stock for RMA on this device? fixed permissions in twrp on fresh install of chroma worked..
[Nexus 6P Android Development] :
Can OP make an MBD08M zip? Also, can you incorporate the vendor.img's into these zips or make separate flashable zips for each version? The system and vendor have to be from the same build or the phone won't boot.
[Nexus 6P Android Development] Mandoza:
Hello! I just wanna get things right so I get that I understand haha, if I put a custom ROM in my Nexus and then change my mind and I don't have a backup, so ur like sammobile firmwares but for nexus? Lol hahah

Another question, if I root my phone only and don't change ROM, can I still update on the nexus if Google drops new builds because I heard of 6.0.1, I'm coming from samsung and I know that you can't update
[Nexus 6P Android Development] Phazmos:
If you want to go back, you can always load factory images from Google. Back up your data first as this wipes the device.

Normal root kills official updates from Google. But if using a custom rom, it will also get updated pretty quick, so just flash the update and away ya go.
[Nexus 6P Android Development] Mandoza:
I'm used to samsung and this is the first non samsung device I go to so I'm used to Odin but now it's cmd.

Quick question, if I flash official stock ROM from Google does my phone go back unrooted and ready for OTA updates?
[Nexus 6P Android Development] marcadam:
Yes, it becomes completely stock, unrooted and ready for ota updates.
[Nexus 6P Android Development] Mikey:
Ready for updates with a custom recovery hmmmmm
[Nexus 6P Android Development] meltdeck:
"System read only option: Devices that ship with 5.0 and higher as their initial OS are using block level OTA updates. With this style of OTA update, the update script checks to see if the system partition has ever been mounted read/write. Further, the script also usually runs an SHA sum of the entire system partition to detect if any changes have been made. If any changes have been made, the OTA update will refuse to install. Since not all OEMs and devices have factory images available, we have created a new feature in TWRP that detects if the system partition has ever been mounted read/write. If not, you will be prompted asking if you want TWRP to mount system as read/write. If you choose not to allow TWRP to mount as read/write, TWRP won’t prompt to install SuperSU and TWRP won’t try to patch the stock ROM to prevent TWRP from being replaced by stock recovery. The goal of this option is to hopefully allow the user to make a raw system image backup that they can use to get back to a state where they can take OTA updates again."

From twrp thread, quoted from badger's OP
[Nexus 6P Android Development] marcadam:
Last time I checked, which was last night, flashing a factory image overwrites the recovery. Unless I misread, and he wasn't talking about a factory image.
[Nexus 6P Android Development] Ovrclck:
Just so I understand correctly. I'm currently on stock rooted L with TWRP. Flashing factory image will kill root but allow ota updates while still maintaining custom recovery?
[Nexus 6P Android Development] jdub251:
Otas will fail with custom recovery. You want to upgrade to m correct?
[Nexus 6P Android Development] Ovrclck:
Correct. I'm rooted running Exposed - Gravity Box with ElementalX Kernal if that means anything.
[Nexus 6P Android Development] jdub251:
http://xdaforums.com/showthread.php?p=63761043

Go here. Grab de - odexed rom. It is a stick factory image flashable through twrp. It will flicker when it boots up the first time. Disable drive and all will be good. Delete it later and reinstall from play store. It's solid other than that.

http://xdaforums.com/showthread.php?p=63733546

Go here and get the flashable vendor and flash that. All will be good after that except radios. Those that come in the ota. Personally I would go download one of the toolkits and it will do everything for you, and bring you up to speed. And you'll keep recovery. Anyways, good luck. Just reflash all mods afterwards. I always boot the rom stock first, then swipe to awesome lol
[Nexus 6P Android Development] Ovrclck:
Thanks man for the reply, pre-rooted rom is nice, saves time :D .I'm comfortable with adb and will update the radios as well, I've never had luck with the toolkits in the past.
[Nexus 6P Android Development] airmark:
I have build MDB08K installed ota before I rooted. I have now rooted and installed TWRP. If I download and flash build MDA89D ROM will I lose my data or will it upgrade in place? Thanks
[Nexus 6P Android Development] Mandoza:
Hello again, I just bought my Nexus 6p from overseas I got the MDB08L version in my hand and I recognized that I didn't have 4G on some places I used to have my last phone in and it should be 4G there so I tried another place and same thing there but I get 4G in some places, I live in Sweden, maybe there is another official firmware from which I am from because this must be registered on another LTE bands, maybe u know what to do in my situation? Thank you!
[Nexus 6P Android Development] 1DvsBstrd:
Har rootat o uppdaterat min Nexus till den senast versionen o det verkar vara lite problem med att få igång o bibehålla 4G täckningen ibland. Så vet inte om det är samma problem som du har på din version men du kan testa att tryxka av o på flygplansläget. Då hittar min mobil 4G o behåller täckningen. Nexus mobilerna är regions fria för övrigt så finns bara en version tilla alla länder. Hoppas det läser sig.
[Nexus 6P Android Development] Mandoza:
Helt fel ,har tagit reda på att det faktiskt finns 2 versioner, så dom är inte regionsfria amerikanska versionen heter H1511 och internationella heter H1512, och man kan inte flasha in mjukvara utan det är ett hårdvaru problem och man måste lämna tillbaka den, enligt Google och XDA, så får att kolla vilken version du har behöver du gå in på om telefonen sedan regulatory information!
[Nexus 6P Android Development] y2kdread:
Hello,

Would it be possible to get a flashible stock file for the latest factor image (MMB29M)?
[Nexus 6P Android Development] Quasar83:
Will this get me completely back to stock and remove the custom recovery and stuff?
[Nexus 6P Android Development] bennyboy2120:
this wont remove twrp correct? and any side effects for dirty flashing ?
[Nexus 6P Android Development] rajarshi10:
Would it be possible to get a flashible stock file for the latest factor image (MMB29M)?
[Nexus 6P Android Development] bennyboy2120:
I believe I have a copy of it on my 6p
[Nexus 6P Android Development] rajarshi10:
Can you upload the same here? I would be really grateful to you.
[Nexus 6P Android Development] bennyboy2120:
Here's the post I got it from happy flashing

http://xdaforums.com/nexus-6p/devel...ooted-v1-0-t3245907/post63766349#post63766349
[Nexus 6P Android Development] mkp52mkp:
is this the stock ROM we get while purchasing?? n will it get official ota updates?? (sorry for noob questions, new user of nexus) :P
[Nexus 6P Android Development] rogi19:
Is the radio flashed together with the zip?
[Nexus 6P Android Development] pahlerc1:
You have to flash the radio and/or bootloader via fastboot
[Nexus 6P Android Development] yumi1996:
Is there no way to get a link to this download again? I am having issues flashing the factory images myself, and I'm getting the corrupted error when I boot my device. A flashable stock ROM would be a godsend right now.
[Nexus 6P Android Development] DJBhardwaj:
That's the error that everyone with a locked bootloader will receive. Its persistent.
[Nexus 6P Android Development] yumi1996:
No, I am getting a "android is corrupted" message, not a "android can't be checked for corruption". Also, custom roms fail to boot completely after I install them. This is pretty frustrating, as I can't even get myself back to square one, which is stock. So far, only Cataclysm works right.
[Nexus 6P Android Development] DJBhardwaj:
Can't you restore your 6P back to stock, using factory images?

The error that you mentioned - 'Android is corrupted', I face it too, but only with my self-compiled AOKP ROM. But it still boots fine and works best.
[Nexus 6P Android Development] yumi1996:
Unfortunately, no. It just sits at the black and white "Google" boot screen after I flash the factory images.
[Nexus 6P Android Development] DJBhardwaj:
Okay, let's elaborate. What exact steps do you perform while flashing the factory image?
[Nexus 6P Android Development] yumi1996:
Using TWRP 3.0, I wipe the data, sytem, dalvik, and cache. After that, I boot into bootloader, and from the downloaded factory images, I:

fastboot flash bootloader bootloader.img (I renamed it for simplicity's sake)

fastboot flash radio radio.img (I renamed it for simplicity's sake)

fastboot flash system system.img

fastboot flash boot boot.img

fastboot flash recovery.img

fastboot reboot.

After this, the system hangs on the black and white "Google" boot screen for over 8 minutes, and never makes any progress.
[Nexus 6P Android Development] DJBhardwaj:
So now we know why it does hang. You have missed some partitions after all. Userdata, Cache, and Vendor. All three play an equally crucial part. I recommend you to start flashing the factory image from scratch. If you want, I could share the guide that I wrote. :cool:
[Nexus 6P Android Development] yumi1996:
Please do.
[Nexus 6P Android Development] coldheater:
Question, I have been out of the rooting game for a while now and decided to root my Nexus 6P phone and the day I did it, I now have an update. I did the systemless root so I thought that I could just simply install the updates. Is there a place here that I can find the updates and install them? I have android version 6.0.1 and build MMB29Q. ANy help will be beneficial. Thanks in advance.
[Nexus 6P Android Development] Badger50:
Here ya go :)

https://developers.google.com/android/nexus/images
[Nexus 6P Android Development] ultyrunner:
Don't ever have users flash the userdata img. The only time this is an option is if they happen to be on the 32gb model. If they are on the 64 or 128gb 6p, they'll lose a ton of storage. You can just format userdata instead of flashing it via fastboot or just wipe internal storage. Also, curious why you'd point people to external guides, when there's a very good guide right here that clearly shows all the steps for all different scenarios for returning to stock.

http://xdaforums.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928
[Nexus 6P Android Development] DJBhardwaj:
You don't loose any storage my friend, and to be precise you can't. Once you flash the userdata.img, you can simply perform a data reset via recovery or user fastboot format userdata to get back to display the actual storage. You could ask Heisenberg himself, if you may.

Why I would point? Because there is no harm in pointing out something that I myself wrote, since I prefer flashing from complete scratch. Don't prefer overwriting at all, so those who want the same are welcome. Others can simply head to Heisenberg's thread.

Besides I am not forcing anyone, it's there choice if they want to click on the link i mention. I am linking with the same intention, just to help.

Also there is no harm flashing userdata. It is meant to be flashed, that's why Google put it up there in the first place. While it could be a user's choice if he would want to flash it or not.