yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] enilkcals:
After updates around 5.1.* my phone started playing up and was taking longer and longer to boot, eventually getting stuck with the four coloured dots swirling around.

Time to root the phone which I duly achieved with chainfires CF-Auto-Root via fastboot (since the phone wouldn't boot up/start). I then installed TWRP and sideloaded via adb the Cataclysm ROM (both the last Lollipop and the new Marshmallow versions), performing a full factory reset first, then for good measure making sure to wipe cache and dalvik cache again (should have wiped during factory reset).

All looks good, but on booting after optimizing the applications it hangs on "Cataclysm is installing... Starting apps" and will not progress any further. I left it five hours and no progress. Powered off and rebooted and back to where I started, hangs with the four coloured dots swirling around. This was with the Lollipop version of Cataclysm so I decided to give Marshmallow a go, same result, currently stuck on "Starting apps" now for 40 minutes.

Wiping cache and dalvik cache again just results in the the applications needing to be optomised each time.

Any thoughts, advice, suggested ROMs, kernels, tricks to try or ideas on how to recover the phone would be very much appreciated.

Thanks in advance,

enilkcals
[Nexus 4 Q&A, Help & Troubleshooting] NEXUSg4:
Wipe from TWRP and Install just the Rom but do not install GAPPS. There may be problem with your GAPPS package. If the ROM boots perfectly, download and install different GAPPS package.
[Nexus 4 Q&A, Help & Troubleshooting] enilkcals:
Cataclysm includes Gapps so I've had a go at flashing MinimalOS (5.1.1) which doesn't (after wiping Cache, Data and Dalvik Cache of course). Still hangs on boot animation and I left it half an hour just to make sure.

Tried with XenonHD without Gapps and it too just hangs at the boot animation.

Pretty stumped now as to whats going on or how to solve it.
[Nexus 4 Q&A, Help & Troubleshooting] elonus:
Try flashing a factory image. That should return it to complete stock.

This guide tells you how: http://androidforums.com/threads/guide-how-to-flash-a-nexus-factory-image-manually.706533/

You should download the image from here though since the one in the guide is outdated. https://developers.google.com/android/nexus/images
[Nexus 4 Q&A, Help & Troubleshooting] enilkcals:
I'll give it a go, but it was on stock when the problem first arose and wiping cache/dalvik/data didn't help.

I'm slightly confused as to which to download though. There are only "occam" for Nexus 4 listed, so I guess its one of those (likely 5.1.1 (LMY48T) as its the most recent). But for the other ROMs I've been installing they've all been for "mako" and when I boot into Fastboot the display reads...

FASTBOOT MODE
PRODUCT_NAME - mako
VARIANT - mako 8GB
HW VERSION - rev_10
BOOTLOADER VERSION - MAKOz30f
BASEBAND VERSION - M9615A-CEFWMAZM-2.0.1701.07
CARRIER INFO - None
SERIAL NUMBER - 002fff0a560d4e29
SIGNING - production
SECURE BOOT - enabled
LOCK STATE - unlocked

Wary of flashing the wrong ROM and screwing up the bootloader, as the instructions you linked (and on the image page itself) suggest the bootloader will be flashed and if I get that wrong there seems a high chance it will brick the phone.

How do I go about reconciling the device I have with the images available?
[Nexus 4 Q&A, Help & Troubleshooting] elonus:
Occam is the right one. There is just several names for the device for some reason.
[Nexus 4 Q&A, Help & Troubleshooting] enilkcals:
Thanks for the confirmation/sanity check.

# fastboot devices -l
002fff0a560d4e29 fastboot usb:2-2
occam-lmy48t # fastboot flash bootloader bootloader-mako-makoz30f.img
sending 'bootloader' (2264 KB)...
OKAY [ 0.080s]
writing 'bootloader'...
OKAY [ 0.332s]
finished. total time: 0.413s
occam-lmy48t # fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.000s]
finished. total time: 0.050s
occam-lmy48t # fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1701.07.img
sending 'radio' (45537 KB)...
OKAY [ 1.445s]
writing 'radio'...
OKAY [ 2.540s]
finished. total time: 3.986s
occam-lmy48t # fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.000s]
finished. total time: 0.050s
occam-lmy48t # fastboot -w update image-occam-lmy48t.zip
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
archive does not contain 'vendor.img'
Creating filesystem with parameters:
Size: 6189744128
Block size: 4096
Blocks per group: 32768
Inodes per group: 8048
Inode size: 256
Journal blocks: 23612
Label:
Blocks: 1511168
Block groups: 47
Reserved block group size: 375
Created filesystem with 11/378256 inodes and 50366/1511168 blocks
Creating filesystem with parameters:
Size: 587202560
Block size: 4096
Blocks per group: 32768
Inodes per group: 7168
Inode size: 256
Journal blocks: 2240
Label:
Blocks: 143360
Block groups: 5
Reserved block group size: 39
Created filesystem with 11/35840 inodes and 4616/143360 blocks
--------------------------------------------
Bootloader Version...: MAKOZ30f
Baseband Version.....: M9615A-CEFWMAZM-2.0.1701.07
Serial Number........: 002fff0a560d4e29
--------------------------------------------
checking product...
OKAY [ 0.002s]
checking version-bootloader...
OKAY [ 0.002s]
checking version-baseband...
OKAY [ 0.002s]
sending 'boot' (6448 KB)...
OKAY [ 0.211s]
writing 'boot'...
OKAY [ 0.337s]
sending 'recovery' (7008 KB)...
OKAY [ 0.237s]
writing 'recovery'...
OKAY [ 0.401s]
erasing 'system'...
OKAY [ 0.813s]
sending 'system' (834934 KB)...
OKAY [ 28.409s]
writing 'system'...
OKAY [ 47.296s]
erasing 'userdata'...
OKAY [ 1.400s]
sending 'userdata' (98413 KB)...
OKAY [ 3.401s]
writing 'userdata'...
OKAY [ 5.233s]
erasing 'cache'...
OKAY [ 0.056s]
sending 'cache' (10984 KB)...
OKAY [ 0.377s]
writing 'cache'...
OKAY [ 0.629s]
rebooting...

finished. total time: 88.871s

Rebooted and sitting on the booting screen with four coloured dots swirling around. Off to bed, will see if anything has happened tomorrow. Thanks again.
[Nexus 4 Q&A, Help & Troubleshooting] cloneman1:
I think when this happened to be I had the wrong modem radio , I flash a new one appropriate for 5.1 and I was working after that.
[Nexus 4 Q&A, Help & Troubleshooting] enilkcals:
Left it over night and still stuck on the boot animation.

Any more suggestions/ideas of things to try would be very welcome, but its looking like this phone has given up the ghost which is a bit of a shame as it would have made a nice backup.
[Nexus 4 Q&A, Help & Troubleshooting] elonus:
Sadly, I don't have any other ideas.

In any case, good luck fixing it!
[Nexus 4 Q&A, Help & Troubleshooting] enilkcals:
Thanks for your suggestions and help, appreciated.
[Nexus 4 Q&A, Help & Troubleshooting] enilkcals:
Do you happen to have details of which modem radio you used? Not much for me to go on otherwise.

I've tried the official stock ROM from Google as theminikiller suggested and would expect that to have the correct modem radio included within it (which for 5.1.1 was the file radio-mako-m9615a-cefwmazm-2.0.1701.07.img that was bundled in with occam-lmy48t-factory-416938f1.tgz).
[Nexus 4 Q&A, Help & Troubleshooting] jaison thomas:
hi i too had a similar issue.it was somewhat similar.my battery was dying.i tried installing stock rom.it never gotten past optimising apps screen.i tried some custom rom without gapps which booted fine. i used it a few days without gapps then the battery eventually died.it couldnt get past bootanimation.it can however stay in stock/twrp recovery.

so if you can try booting up the phone with a charger connected then the battery may be the issue. if it still didnt bootup go to a local service center ask them to open up nd remove battery and connect it directly to a power source in battery terminals.if the phone boots up fine you can order a new oem battery.[emoji3]
[Nexus 4 Q&A, Help & Troubleshooting] enilkcals:
Hi,

Thanks for the suggestion, I have already tried booting with the charger plugged in (both USB from cable and a micro-USB charger from the mains).

I sent the phone back to LG last year and had the battery replaced under warranty then (just checked and last email communication was 2014-10-22) having bought the phone 2013-08-17. I guess since thats about a year its not unreasonable to think the battery could be worn out again. Not sure whether LG will replace under warranty and wary of throwing cash down the drain, but might see if can find one and replace it.

Thanks for the idea.

slackline
[Nexus 4 Q&A, Help & Troubleshooting] jimjamyaha:
Hi,

Had a very similar thing happen to me. Turned out the radio was dying - something basic about loading firmware to it during very early hardware boot up.

Figured this out after a long process - and solution was to keep on soft rebooting it until the firmware loaded successfully - then Android booted ok - otherwise it would hang at starting apps.

James
[Android Q&A, Help & Troubleshooting] droyd.014:
Hi

I created a backup at my external SD before flashing a custom ROM

i followed the guide on how to install the rom but i got status 7 error

and i decided to restore my backup but

i suddenly got this error at my CWM

i have this option before the error

my phone is Honor 6, H60-L04

cwm v6.0.5.0
[Nexus 6P Q&A, Help & Troubleshooting] pahardie:
Like a lot of people I charge my phone over night, but with the 6p I wake up in the morning (after a good 8hrs) and its sat on 96-98%. Even though it still says charging.

It's no big deal but when I unplug and plug back in it charges to 100% relatively quickly.

Anyone else see this? I'm using an older charger (from my nexus 4) so may try the proper one tonight.
[Nexus 6P Q&A, Help & Troubleshooting] mkouk:
Isn't this normal behaviour? Most phones stop topping up the battery even when connected on the charger to avoid wearing off the battery.

I used to have my HTC m7 connected overnight to the charger and even though it showed 100℅ in the morning, as soon as I disconnected it from the main the indictor would drop rapidly to ~95℅ which indicated the above behaviour.
[Nexus 6P Q&A, Help & Troubleshooting] pahardie:
I've not seen it before. My galaxy s6 always came off charge at 100% as did my nexus4 and the 5x I owned briefly.

If this is normal and happens to other 6p owners I'm happy with that :)
[Nexus 6P Q&A, Help & Troubleshooting] swyn01:
Mine is doing this as well. It seems to charge to 100%, stop charging, and not run off power at all. Since I use sleep tracking, in my case, I usually wake up to about a 90% charge. This is the first phone I have seen do this -- they usually charge to 100% and keep running off the charger. I haven't tried the stock 3A charger yet, as there really is no need for a quick charge overnight.
[Nexus 6P Q&A, Help & Troubleshooting] collinjm01:
How in the world are you using an old charger on a Type-C Connection? (or are you using a converter?... if so, that may be the reason)
[Nexus 6P Q&A, Help & Troubleshooting] pahardie:
Just using a USB A to USB C cable into the power brick from my old phone.

Pretty straightforward really.

I'll try with the proper charger at some point. It's not a big deal.
[Nexus 6P Q&A, Help & Troubleshooting] cynkrzy:
Mine hasn't done that. Got it Thursday and it's had a full charge each morning. Using the supplied charger
[Nexus 6P Q&A, Help & Troubleshooting] Gekko2:
normal behavior. it does that to protect the battery.
[Nexus 6P Q&A, Help & Troubleshooting] 318sugarhill:
Every phone I've ever had charges to 100% and stays running off the charger to stay at 100%. Last night (my first night with the phone) I plugged it in with 31% and woke up with it at 81%. It clearly charged....and then stopped charging only to run off the battery while still plugged in. Not normal for any other device I've owned. I would prefer it to stay at 100% until I'm ready to unplug it. Maybe using the supplied charger will do this. I used a USB A to C cable plugged into USB wall port. I have replaced several outlets in my house to ones with built in 2.1A USB chargers.
[Nexus 6P Q&A, Help & Troubleshooting] bobby janow:
I'm not understanding why anyone would not use the supplied charger and cable.
[Nexus 6P Q&A, Help & Troubleshooting] 318sugarhill:
Why should it matter? wattage is wattage. Does the phone charge differently with the stock charger? Do you always carry it in your back pocket? Do you ever use a car charger?
[Nexus 6P Q&A, Help & Troubleshooting] bobby janow:
Carry the phone in my back pocket? No, I don't but what does that have to do with the price of tea in China? I do not use a car charger either. As for wattage, I believe that the type C 3.1 chargers output at 100W and possibly 200W whereas the one you are using might deliver 18W. There might also be damage due to wiring with some of the 2.0 - 3.1 adapters but I'm still researching that.

So why wouldn't you use the type C charger? Besides, you can't plug it in backwards or upside down. And once you get a computer that supports type C the data transfer rates will be astonishing from what I've read.
[Nexus 6P Q&A, Help & Troubleshooting] 318sugarhill:
Do you carry STOCK charger in your back pocket.

Point is, sometimes I need to charge it at work, or elsewhere as I may use it heavily. That's why I would use another charger. Point is, why does it stop charging on the charger and not draw from the charger once it's full. Like I said, mine charged fully then stopped using the charger drawing from the battery. Kind of pointless if I leave it on the charger to be full when I leave in the morning if it's not going to be full.
[Nexus 6P Q&A, Help & Troubleshooting] pahardie:
I'm glad its not just me who finds this a bit odd.

I used the same charger with my nexus 5x, galaxy s6 and nexus 4 and always found the phone at 100% in the morning.

The 6p obviously works differently.
[Nexus 6P Q&A, Help & Troubleshooting] bobby janow:
I see what you mean. For a quick boost charge I can see you carrying a cord in your back pocket. I'm really trying to get a full 14-18 hours with this device no matter my usage. If I can't I really cannot justify this expense. I have 4 phones on my plan, a Samsung 5S, two iPhones 6s, and up until yesterday my N5. All other 3 got a full day plus even watching video and listening to music constantly. So no, I'm not carrying a charger, a cord or buying a car charger.

As for your problem of charging, have you tried the stock charger to see if you can get to 100%. I have already twice with no problem. Last night I wanted to unplug it once charged to see how much it drained overnight but I fell asleep at 93% and unplugged a few hours later. 6 hours off the charger it was still at 99% so I'm assuming it charged to 100 or close to it. Perhaps you can do a full charge overnight and then a spot charge during the day if you need. I'm thinking you might not.
[Nexus 6P Q&A, Help & Troubleshooting] gakio12:
I am also having this problem. I am using the included c to a cable to charge with. The phone stops charging around 95% and doesn't charge ever again until I unplug it and plug it back in.

These are the problems with this:

1. Cases where i do not have the included charger with me.

2. On long trips where my phone is plugged in all the time to prevent it from dying. (Streaming music, navigating, etc)

3. Sleep tracking

I'm using the Anker 5 port charging hub at 2A each port.
[Nexus 6P Q&A, Help & Troubleshooting] Gekko2:
once your battery gets fully charged 100% - the charging stops to prevent your battery from overcharging. since your battery is not charging - your battery will drop down. once it gets down to 95% - charging resumes until it gets back to 100%.

in other words - that is normal.
[Nexus 6P Q&A, Help & Troubleshooting] gakio12:
Every other phone I have ever had did not do this and instead trickle charged at 100% and ran everything off of the charging port, never had a phone that constantly drops to 95% then back to 100%, that would be a roller coaster during car trips. The problem I'm experiencing is not that situation either; the phone will stop charging and never get charged again, so it could drop to 80% while connected to the charger. It knows it's connected to a charger, but doesn't draw current from it. Doesn't show the charging icon or charging AC, but the lock screen shows the percentage of battery.

I do have possibly some positive observations however. Last night I decided to try it without my USB 3.0 extension cable, and only the measly 1 foot c to a cable Google provided. Without the extension cable my phone charged as it should, went to 100% and stayed there with the charging symbol still on the battery icon. Upon removal of the charger, the battery stats showed only 3 seconds of use, whereas before it would just show everything since last 100% (which was sometimes 50 hours even though i charge my phone every night). I'd have to keep observing this to see if it was indeed the extension cable.
[Nexus 6P Q&A, Help & Troubleshooting] pahardie:
That's interesting wrt the extension cable. I have a extension as well. Will get rid and see what happens. I keep meaning to try stock charger and stock cable but can't be bothered.

It's not normal behaviour or else it'd happen on other phones. I've had nexus 4 iPhone 4s htc one m8 Samsung galaxy s6 iPhone 5s and nexus 5x all using the same charger / extension all have charged to 100% and stayed there.. Except the 6p.

It's not a massive deal, typically it'll loose 1 or 2 percent over night once it's been to 100.
[Nexus 6P Q&A, Help & Troubleshooting] gakio12:
Just an update, it was the extension cable. Phone charges to 100 at stays there until unplugged as is expected behavior. Just don't use USB extension cables to charge devices :P
[Nexus 6P Q&A, Help & Troubleshooting] scuttlefield:
Yes, I've been noticing the same (or similar) thing. When I charge my Nexus 6P overnight using the stock a-to-c cord and an older charger (Anker 5-port, 2A), it seems to charge to 100% and then stop. However, it's not consistent, and also, I believe charging actually turns off (as opposed to something akin to trickle charging). I have a Tasker profile to turn off some notifications when my phone is facing down and charging (the state it's in while I'm sleeping) but the process ends when this issue comes up on my phone.

My guess is that it's going into something like a trickle-charge mode that lets it dip down to 95% or so, but it's strange because it seems to not think it's in charging mode and even the battery stats don't reset sometimes because of this. (I see that others have noticed this, as well.)
[Nexus 6P Q&A, Help & Troubleshooting] chichu_9:
Using my old Galaxy S4 Charger brick with a USB A to USB C charger cable for overnight charge and my phone shows 100% charged in the morning.
[Nexus 6P Q&A, Help & Troubleshooting] Th3Duck:
Hello,

I am using my nexus 6P since last friday. But since yesterday the phone sometimes just stops charging. I am using the stock C to C cord and block. Charging stops sometimes several times at different precentages. The block is connected to a extension cord (with three extra plugs), the extension cord is also plugged to another extension cord (with several plugs). I have charged the phone the same way several times without a problem. This is just the second charging time I noticed any problems.

But since yesterday I installed Gravity Box, could this be the problem?
[Nexus 6P Q&A, Help & Troubleshooting] Th3Duck:
I am trying to figure out what the problem is. Right now I suspect that the option agressive doze from greenify could be the problem. When turned on and charging and the screen goes off also my charging got interrupted, when the agressieve doze kicks in.

I turned the option off and charging goes on after the screen goes off.

Checked it this morning the problemen persists, so it is not greenify. Will keep testing.

The same problem exists with another block and the shorter A to C cable. Within 5 minuten it stopped charging several times.

Will unroot and Factory reset the phone this weekend if and check again.
[Nexus 6P Q&A, Help & Troubleshooting] Th3Duck:
I have watched my phone charging from 15% to 98% (in 1,5 hour, pretty normal). And it will charge on its own the whole time, but it will quit charging very often, over 15 times. The screen will turn on and then turns off after 30 seconds. Dont know if anybody else had this problem, or that I have to return it.
[Nexus 6P Q&A, Help & Troubleshooting] the.root:
I have a similar issue. My OEM charger and cable worked fine the first week I had it, would always wake up to 100%. Then for a couple days I was waking up to less - 80-95%. It had obviously stopped charging at some point overnight. Eventually it got to where it wouldn't charge at all usually, sometimes if I played with the cable enough and connected/disconnected it would go, but would stop again overnight. I used my old S4 charger with an iOrangle A-> C cable and it charged no problem, was waking up to 100% eveytime. I finally got a good CableMatters C-> C cable to test out the OEM charger again. I can confirm the OEM charger is at least not reversible (i thought that was supposed to be part of the USB TypeC spec?), and that the even cheaper OEM type C cable (which also isn't reversible and looks like it's missing all data pins) was the cause of my issue. So far my phones working fine with the CableMatters cable and the OEM charger although it's only been a couple days.

(prepare for side rant)

I contacted Huawei (bought the phone direct from there) to complain and get a new cable/charger. They refused to warranty the cable unless I shipped them the phone too - and said it'd be at least a 3 week turn around and I'd have to pay shipping both ways. The former is not a term stated in their warranty clause so legally I didn't feel that was right, additionally it makes no logical sense whatsoever. I asked to speak to a supervisor and they refused to transfer me. I asked for their name and they said they don't have to tell me. I called 3x and spoke to 3 different people and got the same story. They wouldn't even comment on if they had heard of this being a common issue. They were completely unwilling to awnser any question and did not want to help at all (I honestly don't think I've met a more rude and less courteous CS team). They actually said (all three of them) "You should buy a new charger off Google for 25$, because it will be easier then dealing with us". I talked to Google Support and they said it's a rare problem that has been reported and had I purchased it from them they would've shipped me both the next day, sadly his hands were tied to replace mine (understandable). Sigh.

(end side rant)

So if anyone's having the same issue as me I'd recommend trying a different USB C->C cable and maybe charger.
[Nexus 6P Q&A, Help & Troubleshooting] Grassinator:
Apparently this IS an issue with the USB C cables coming with this device shipped from China. I did the same (purchased directly from Huawei) and the device AMAZINGLY last me around 80 hours on first use. Of course, I let the phone go completely dead with intent to fully charge upon first use. Unfortunately, I had the device plugged in for over 4 hours last night while I slept before coming to work and awoke to a still dead phone. Unplugged, re-plugged, unplugged, re-plugged.... Flipped the USB C cable over, tried multiple outlets. Never saw ANYTHING to indicate the device was charging after multiple attempts. The only plausible comment hereafter = WTF!?!?!?!!????? :(:silly::mad:
[Nexus 6P Q&A, Help & Troubleshooting] ffhbuhjh:
Vb
[Nexus 6P Q&A, Help & Troubleshooting] GTiceman:
I have the issue as well. It seems when using the A to C cable the phone hits 100% stops and never resumes. Often wake up to 79% or slightly more. This is a problem. I use the A to C as it limits the plugs I need to carry when traveling.
[Nexus 6P Q&A, Help & Troubleshooting] 318sugarhill:
My first overnight charge this occurred. Charged to 100% and then drained like it wasn't plugged in. Woke up to 85%. It never occurred again until last night. Woke up to 83%

I keep the original charger downstairs because it's the fastest charger and best used for mid day boosts. Overnight I use a 2. 1amp charger with a USB A to C cable from One+