yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Android Development] showlyshah:
First of all, buddy.. This is not the QA thread. There is another thread for it. But any way, i will give u a quick answer. In future, if u have doubts, use the other thread for questions and answers.

1) cyanogenmod requires its own kernel, and stock kernel wont work, this hack is currently done with stock kernel ( for a full speed qc-2.0 speed), but u can implement this on cm too if you want. But its little bit complicated, as cm builds may not contain hvdcp module, so when we will finish working with stock kernel ( still little works to be done for limiting high current spikes for the full battery life protection) we will add support to cm or another non stock based custom rom.

2) working on z3 with qc enabled kernel means there is also z3 kernel with QC HACK implimented, so both z2 and z3 have qc kernel. You need to flash those according to your device, ie use z3 qc kernel on z3 / z2 qc kernel on z2.

As far as the script is concerned, its works with both z3 and z2. Just flash it.

Sorry to mess up with your understanding, i did specific mentions about z2 because, this is z2 forums. But still it works with z3 too.
[Xperia Z2 Android Development] Haldi4803:
Exactly. Thats what it's made for :)
[Xperia Z2 Android Development] kiet.nguyen:
I have an idea, [MENTION=856195]Jackos[/MENTION], can you build a .apk, that people can turn on QC when they need and turn off when they dont?
[Xperia Z2 Android Development] TheFerhatKing:
Use a QC charger if you need it and a normal charger if you don't need it?

Sony Xperia Z2
[Xperia Z2 Android Development] Jackos:
I could try to replace the sysmon file using an application then restart the daemon. However this wouldn't completely enable or disable the QC2.0, because it's a kernel thing. Also, if you only use my modified flashable script without the AndroPlus kernel then there would be no need to disable this, because there is no way this would damage the battery. If you're worried you could just manually remove the increased batt_warm_temp limit.

It would be better to have a kernel that allows to enable/disable the QC2.0 feature on the go, but since AndroPlus discontinued the QC2.0 project you'd need someone else that compiles kernels to proceed your request.
[Xperia Z2 Android Development] Haldi4803:
And because everyone loves graphs :D Numbers just suck.
[Xperia Z2 Android Development] efrant:
Let's stop the bickering and keep the thread on-topic.

Thread cleaned.
[Xperia Z2 Android Development] Budgiemanr33gtr:
Quite satisfied...

I recently purchased the Aukey charger and have to say that even at the stock 1650mah it is sufficient enough to charge at slightly over 2 hours (much better than 4 hours).

I might unlock my bootloader eventually but I just cannot be bothered.
[Xperia Z2 Android Development] kumbangdesa:
[MENTION=856195]Jackos[/MENTION]. Can v5 be flash on .200?.
[Xperia Z2 Android Development] Jackos:
Yes. It's fully compatible.
[Xperia Z2 Android Development] bycannn:
I saw lt too that great for us
[Xperia Z2 Android Development] faizdaniel:
flash form existenz premium

OP ! Can i flash this from exixtenZ Premium ROM ?
[Xperia Z2 Android Development] niaboc79:
Yes

This is working with all stock based rom.

Envoyé de mon D6503 en utilisant Tapatalk
[Xperia Z2 Android Development] Haldi4803:
[MENTION=591147]Entropy512[/MENTION]

Here we go, Official QuickCharge 2.0 by Sony, tested on a Sony Xperia Z3c

We don't have that 60% Current Drop on our Z2 :(
[Xperia Z2 Android Development] AndroPlus:
If we change

qcom,step-thresh-soc = <101>;
qcom,ibatmax-ma-under-step = <1600>;

in arch/arm/boot/dts/msm8974pro-ab-shinano_sirius_common.dtsi

to

qcom,step-thresh-soc = <60>;
qcom,ibatmax-ma-over-step = <1600>;
qcom,ibatmax-ma-under-step = <2150>;

Z2 will get same 60% current drop.
[Xperia Z2 Android Development] lywyn:
If this is true and there if data to prove it I would like to see Sony respond to this. I love the Sony phones but if they are restricting features by software so the next flagship can sell then this will be the last Sony phone I own.
[Xperia Z2 Android Development] Jackos:
Every company does that.... You got what you paid for ;) Sony never promised QC2.0 for Z2.

They need to sell new devices (more pricey) to make profit.
[Xperia Z2 Android Development] TheFerhatKing:
Maybe we just need the kernel from the japanese firmware..

Gesendet von meinem SM-T230 mit Tapatalk
[Xperia Z2 Android Development] Lasantha:
Nice work OP
[Xperia Z2 Android Development] showlyshah:
Ya.. Just like z1 with no 4kand slomo cam
[Xperia Z2 Android Development] showlyshah:
quick charge 2.0 charging pumps up the battery 1%/minute upto 30% and then after that 1%/2minute. The max battery temp while charging is 46degrees and later it seems settled down to 38degrees. now i am at 92%, and it shows 18 minutes more for a full charge. i will post the log when it is fully charged .
[Xperia Z2 Android Development] kumbangdesa:
Can you link the all file that you use (firmware and kernel) here. I believe there any many user want to try. (of course at their own risk). Thanks.
[Xperia Z2 Android Development] showlyshah:
Its just normal ftf from SO-03 f, the same can be downloaded using Xperia firmware downloader, there is only one ftf for SO-03f.
[Xperia Z2 Android Development] kumbangdesa:
You had made a flashable zip with remove many docomo bloatware. Can you share with us?
[Xperia Z2 Android Development] showlyshah:
Ya of course... i will upload it soon.
[Xperia Z2 Android Development] Haldi4803:
Just ordered an Aukey charger, will join the fun in a few days.

http://m.aliexpress.com/item/32352104854.html
[Xperia Z2 Android Development] showlyshah:
Guys... What about leaving the old firmware and try to make it work on current version. I just want to prove that the hardware can support qc 2.0, thats why i downgraded the software.. Still i havent changed it.. So can we try making it work for newer versions.. we can make it work on newer version kernel..
[Xperia Z2 Android Development] TheFerhatKing:
I think only the kernel has to be modified, maybe we can use the japanese kernel as base kernel to get QC2.0

Gesendet von meinem SM-T230 mit Tapatalk
[Xperia Z2 Android Development] showlyshah:
files added. check op.
[Xperia Z2 Android Development] showlyshah:
yes, i too think so. that is from kernel side, i havent found any special files from system, nor any service, but still i am not that expert in kernel section, so i might be wrong. thats why i request [MENTION=5169444]AndroPlus[/MENTION] and others to take a look. The 4.4.2 docomo Kernel is 3.4.0 . and i forgot what it is on android 5.0.2, is it same, if so i will try flashing it on latest 5.0.2 rom.

Also if anyone got a good knowledge in disassembling kernel.sin, and editing it, adding and removing files,drivers etc.. pls send me an instruction by pm. i will try it for 5.0.2.
[Xperia Z2 Android Development] Haldi4803:
uhm, when you flash the Kernel only from SO-03F onto D6503 system, would that work ?
[Xperia Z2 Android Development] TheFerhatKing:
No, kitkat kernel doesn't boot on lollipop, but maybe SO-03F kernel boots on D6503 4.4.2 kitkat ;)
[Xperia Z2 Android Development] showlyshah:
extracted ramdisks

I am attaching ramdisks of docomo kernel and [MENTION=5169444]AndroPlus[/MENTION] kernel v59a here. any one interested can take a look. please be noted that ramdisk files are just for reference, do not copy or duplicate these files. especially [MENTION=5169444]AndroPlus[/MENTION] v59a, since it is his work and property. (i am giving him full respect and credits for his work). you can use those to analyze the possibilities to implement QC-2.0 to his/new kernel. you should only post suggestions, don't copy or modify another persons work. please show respects to his hard work.
[Xperia Z2 Android Development] kumbangdesa:
Some feedback. Just tested this kernel on 4.4.2 (402). Stuck at Sony logo but at the same time still received the notification from whatsapp and facebook.

Tested it later with Docomo firmware but data and wifi connection not stable. :)
[Xperia Z2 Android Development] showlyshah:
Which kernel? Androplus?
[Xperia Z2 Android Development] Haldi4803:
[MENTION=5169444]AndroPlus[/MENTION]

Are you completly done with QC2.0 or could you create a v66 testing Kernel with this, and 2000mA under-step?

(don't realy feel well with 2150mA the spikes do look worse on 2150mA than with the ROM limited to 12W, but that's just a gut feeling.)
[Xperia Z2 Android Development] kumbangdesa:
[MENTION=5169444]AndroPlus[/MENTION]. Could you make qc enable for Kitkat?.
[Xperia Z2 Android Development] AndroPlus:
I'll do it when I have time (currently I'm busy with building working TWRP for Z4T and new kernel for .200...),

so you should try building it by yourself.

My guide is here

http://xdaforums.com/crossdevice-dev/sony/how-to-build-custom-stock-kernel-linaro-t3066916
[Xperia Z2 Android Development] Entropy512:
Finally back from vacation...

OK, so looks like you're fairly far away from the CC/CV transition point (4.2v or so? Graph is a little hard to read) when the Z3c drops from 0.7C down to 0.5C charge rate.

The battery voltage drop makes perfect sense. The battery voltage is elevated due to charging, so it drops when you reduce the charge current. The faster you charge the battery, the earlier (in terms of percentage state of charge) you hit the CC/CV transition point. Looks like it's around 80-82% for 0.5C charge rate on the Z3c.

General method for charging a Li-Ion:

Constant current up to the battery's voltage limit

Constant voltage once you hit that limit - 4.2v for most cells, but many newer phones have high-energy-density cells that can safely handle 4.35v/cell

Charge termination occurs when charge current drops below a certain threshold - trickle charging past this point can also damage a battery quickly. (If you want to make a battery last longer in terms of charge cycles at the cost of a little bit of capacity - Increase the termination threshold current to terminate charge earlier.)

If you charge the battery extremely slowly (at your desired termination current), you can simply terminate charging immediately at the maximum voltage.

Sony's step charging algorithm immediately reduces current when a given state of charge threshold is reached, resulting in that little drop in battery voltage at the transition point.

The old step charging algorithm I used on the Samsung Infuse had transition points set based on voltage, not SoC percentage, but I included some hysteresis to prevent the voltage drop from causing flip-flopping of the algorithm

Apple's step charging algorithm sets the charger to use a lower than normal voltage cap - looked like the first step may have been 4.0v for a 4.2v battery. Once this step is hit, it enters a CV phase until the current drops below the threshold for the next step in the charging cycle. At this point, the current limit is kept at that value but the voltage cap is raised a step. I think this was done every 0.05v from 4.0v to 4.2v
[Xperia Z2 Android Development] Haldi4803:
Hope you had an enjoyable holiday.

For our Z2 this 60% Battery Level might actually hit the beginning of 4.35V pretty well.

The Graphs are a little hard to read because of Excel! Haven't managed to show assistance lines in the X axis ~.~

Gonna read myself into kernel building and try to get a v63c with 2000mA and 60% step. Might take some while ^^ always tried to avoid this until now.

About trickle charging, I haven't noticed any happening.

Connected my phone for longer than 5h when it was fully charged and it only has drawn 0.1A which the phone needs and the App never mentioned the Battery drop lower than 100%

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

Gesendet von meinem D6503 mit Tapatalk
[Xperia Z2 Android Development] TheFerhatKing:
Guys if you need one to compile the Kernel, I can do it, dit it successful.

Sony Xperia Z2
[Xperia Z2 Android Development] kumbangdesa:
Cool mate.. hope can create qc support for kitkat since many people still using it.. :fingers-crossed:
[Xperia Z2 Android Development] TheFerhatKing:
Sure mate, I'll do it with stock KitKat kernel and lastest AndroPlus Kernel for KitKat

Sony Xperia Z2
[Xperia Z2 Android Development] Haldi4803:
Here we go....

The 60% Step and switch to max 1600mA does not really make a difference in Charging time!
[Xperia Z2 Android Development] Haldi4803:
uhh.... oh.... well.... ah.... seems like we're a tiny wee bit above the 40°C qualcomm mentions :(

Might be due the starting temperature of 38°C.... i'll check that out the next time i charge.

(from their QuickCharge 3.0 Promotional Video)
[Xperia Z2 Android Development] xfri:
When I install this two FLASH Z2_AndroPlusKernel_v63c_QC2.0_2150.zip FROM RECOVERY and FLASH Jackos_QuickCharge2.0_rev5.zip

I use this http://dl.androplus.org/DANGER_QC2.0/Z2_AndroPlusKernel_v63c_QC2.0_2150.zip because the one on the post is dead link is this correct kernal to use?

I got softbrick.
[Xperia Z2 Android Development] Haldi4803:
On what ROM did you flash this?
[Xperia Z2 Android Development] Jackos:
The flashable ZIP is compatible across different ROM builds, but the kernel is not (compatible with only .580 and .546).

Also, I think you should wait for an updated kernel, [MENTION=4754591]TheFerhatKing[/MENTION] is working on one that is way more safe for the lifespan of the battery.
[Xperia Z2 Android Development] TheFerhatKing:
I need to wait to [MENTION=5169444]AndroPlus[/MENTION], because his sources are not for .200 firmware, but I could do a stock .200 kernel with QC2.0

Sony Xperia Z2
[Xperia Z2 Android Development] Jackos:
There are already official Sony kernel sources for .200.

AndroPlus already mentioned in the kernel thread that he is waiting for .232 sources, because they have new kernel, SF fixes etc.
[Xperia Z2 Android Development] TheFerhatKing:
Sure I know that they are released already, thats why I said I could do a stock kernel with QC2.0 :D I'll do it maybe today or tomorrow

Sony Xperia Z2
[Xperia Z2 Android Development] Jackos:
Damn, sorry I did not read your reply careful enough :D

EDIT: I guess it would be nice to have both AndroPlus kernel and stock kernel with QC2.0 enabled. Also we could test new configuration without the need for AndroPlus, which is already busy with a lot of stuff.
[Xperia Z2 Android Development] TheFerhatKing:
No problem for me, got time to do this, free to help out [MENTION=5169444]AndroPlus[/MENTION]. Just say what you want guys I'll do it.

Sony Xperia Z2
[Xperia Z2 Android Development] Haldi4803:
.200 is not fully .232 compatible, or at least it's slightly different. .200 is outdated, no stagefright fix. Should not use such a thing.

Btw, just did a retest and got 43°C Battery Temperature (with 21°C Room Temperature).... Not sure what's the TempLimit for Battery, 60°C is the Maximum, but Qualcomm states that with quick Charge 3.0 they try not to go above 40°C......
[Xperia Z2 Android Development] TheFerhatKing:
We need a proof with a real device with QC3.0 how hot it gets not a video my friend :) I think thats just a bit ad I don't think so that it will charge with 40°C max temp.

Sony Xperia Z2
[Xperia Z2 Android Development] xfri:
[ROM][LOLLIPOP][LB/UB][5.1.1] eXistenZ Premium | 3.5.0

I see.
[Xperia Z2 Android Development] TheFerhatKing:
Waiting for .232 source, make more sense than doing a kernel for .200

Sony Xperia Z2
[Xperia Z2 Android Development] .LEONARDO.:
I use to have the same problem... So I put a widget on status bar to monitor battery temperature. I live in Brazil, Manaus. Temperatures here use to be between 30-35°C during the day to 28-24°C at night. While driving and using waze with my Z2 connected to my car charger, it slowly drain battery instead of charge. I noticed that battery temp was always above 45°C.

Simple fix: turn on your air conditioner and direct it to the phone. Battery Temperature will reduce drastically and it will charge even while gps is on and brightness level set to 100%.

Reading this thread I realized why it happens... Software limitations to cut the charge when battery temp gets above 45°C. It seems this hack will solve this too, since it allows battery charging at 55°C. Anyway, I highly recommend to keep yours Z2 as cold as possible while driving. I have mine for one year and it started to give me the same headache as my old Xperia Z. Back glass cover lifting probably due to high temperatures melting the glue.
[Xperia Z2 Android Development] Jackos:
Yes, I agree as I had this same problem in my car. Unfortunately I like to keep my Z2 in portrait mode during navigation, so the cool air from the air-conditioner doesn't cool it as effectively as needed. That's why I tried to find out how to rise the temp limits. I'd rather exchange the battery after two years then risk that I have my Z2 discharged after I go off my car to an important meeting.
[Xperia Z2 Android Development] .LEONARDO.:
Excuse-me... Can I flash it on D6543 4.4.2 Rooted, LB? Flash it will wipe all data on the phone or requires factory reset?

Thank u!
[Xperia Z2 Android Development] Jackos:
You should update Android 4.4.2, because it's really old and has some serious issues.

I have no idea, if it is compatible with D6543 model.
[Xperia Z2 Android Development] olokos:
Tried it with my Z1 and TWRP says "Zip file is corrupt!" that's awkward... :/

Download failed, nevermind :)
[Xperia Z2 Android Development] beginner user:
Will it work on .232 BL?
[Xperia Z2 Android Development] Lasantha:
i belive that bulging is not glue melting. but battery bulging up.thats not good at all. i have z1c and its bughed same due to high temps.opend to see battery like a blow fish :(
[Xperia Z2 Android Development] koolkunz:
hi all im new to the z2 forums and have a question...

I am currently using a 5v 1a charger....If i buy a 5v 2/2.1 a charger...will charging time improve?? (i know it wont be quickcharge speed but still will it be faster) ?
[Xperia Z2 Android Development] nisarakramrocks:
yes

yes it will b fast.. check ur current charge rate using software called AMPHERE and the get a 2A charger and check it.. u can find the difference.. and yes ur phone should also support 2A charge
[Xperia Z2 Android Development] 23Six:
Odd because my device maxes out at 1A on Ampere using stock EP881 1.5A charger using stock ROMs and kernel. This same charger gives me 1.2A-1.4A speeds on CM12.1.

My 5V 2.1A power pack again limits to 1A on stock setup, lower than output on CM based ROM/kernel.
[Xperia Z2 Android Development] mestanr:
I have locked bootloader, 23.4.A.1.232, installed Jackos_QuickCharge2.0_rev5.zip and with Sony UCH10 QuickCharger detected 9V QC2.0 charging. :highfive:

Start charging: 9:45 - 4%, 10:15 - 32%, 10:30 - 44%, 10:45 - 58%, 11:15 - 82%, 11:45 - 95%

Whole time 1600mA and after 82% jump to 900mA and descent to cca 300mA around 98%.

After one hour of charging nearly 60% is very good.

Great job! :laugh::good:
[Xperia Z2 Android Development] xfri:
What kernel should I use? I am currently LP 5.1.1 eXistenZ Premium 4.2.5.

EDIT: I did flash Z2 AndroPlusKernel v63c and Jackos_QuickCharge2.0_rev5.zip planning to buy Aukey Quick Charge 2.0 18W USB Wall Charger.

EDIT 2: Quite buggy my wi-fi won't work now.
[Xperia Z2 Android Development] Jagermonsta:
Just finished searching the thread - I've found a few people who've said that WiFi no longer works after flashing this kernel - same with me unfortunately, so I'll be switching back to Nut's :)

Though I have to say, it's really cool to have a quick charge 2.0 device :)
[Xperia Z2 Android Development] Jackos:
This modded kernel is quite old and shouldn't be used with new ROMs.
[Xperia Z2 Android Development] Jagermonsta:
I've switched back to my old (most recent from Nut) Kernel, for my d6503. I then flashed your zip Jackos and it's charging a bit quicker than with this threads kernel did. i'm still a happy customer. provided i can find the link i'll shoot you off a donation shortly
[Xperia Z2 Android Development] kingsasha:
im on 4.4.4 .167 ,,,, can i use this mod/hack?
[Xperia Z2 Android Development] ahmed1186:
Excuse me, but will this make any difference if i use sony's stock charger (non QC 2.0)?
[Xperia Z2 Android Development] sh4d1t0:
phisically it's not possible QC because the output CA it's not the same, you need a QC 2.0 charger for more mAh (you can see this data on charger)
[Xperia Z2 Android Development] dongdong:
newbie here with locked boot loader, LP 5.1.1, how do i flash the Jackos_QuickCharge2.0_rev5.zip without unlocking my boot loader?
[Xperia Z2 Android Development] RyTekk:
Root your phone by flash/downgrade to 5.0 firmware and use this to root then flash pre-rooted latest firmware (if you're using non-rootable firmware), then you can install XZDualRecovery by NUT, final just flash Jackos zip hack via recovery.
[Xperia Z2 Android Development] dongdong:
Thanks does the Z2_AndroPlusKernel_v63c_QC2.0_2150 work with new ROM such as eXistenZ Premium | 6.0.0 ?

Flash Jackos_QuickCharge2.0_rev5.zip in recovery, and use eXistenZ Premium | 6.0.0, Quickcharge 2.0 cannot work, getting voltage of about 3.85V.
[Xperia Z2 Android Development] Haldi4803:
What? 3.85V ? you're reading the wrong value!
[Xperia Z2 Android Development] RyTekk:
Agree, the minimum value should be 5V. Btw, you used hardware or software to calculate the value in your results?
[Xperia Z2 Android Development] dongdong:
I downloaded an app battery widget from the play store, and it has the voltage.

Below is the reading after connecting to Aukey quick charge 2.0 PA-U28 wall charger .

BTW which are the roms that you guys use for the quick charge hack? Stock 5.1.1 Rom? Or other customized rom?
[Xperia Z2 Android Development] myrums:
V63 is not compatible with .264 Rom, which existenz 6.0.0 is.

V70 works, but is not 100% compatible, since it's built for .200 roms, but it works quite well.

May be V63 works also, havent tried. Make backup and try.
[Xperia Z2 Android Development] dongdong:
Thanks for the reply. What's the rom that will definitely work with the quick charge hack? How do we know matching of the kernel and the rom? Is it in some release notes etc?
[Xperia Z2 Android Development] myrums:
Any rom based on .546 firmware will work with the v63 kernel.

https://kernel.andro.plus/shinano.html
[Xperia Z2 Android Development] dongdong:
seems like v63c has problem, based on the change log "v63b~d, v64a (don't use them as they contains "bad" patch)"

v65: Removed QC2.0 hack.

Wondering QC2.0 hack. is not back in v7?
[Xperia Z2 Android Development] myrums:
It was removed after some heavy argumenting earlier in this thread, about how safe the hack is. If you read this thread you'll find it.

About V70. I dont think It contains the hack, and I don't think it will come back anytime soon.

Read from page 32
[Xperia Z2 Android Development] Haldi4803:
AndroPlus decided to not include QuickCharge 2.0 in his Kernel anymore.

Don't bother him about it :)

But don't worry, as his kernel is Opensource we can easily Fork his kernel with QC2.0

When v71 (or whathever kernel based on 264 ROM) is here we will take a look.
[Xperia Z2 Android Development] dongdong:
ok will have to wait patiently then :)
[Xperia Z2 Android Development] saiorkrish:
Is it compatible with Build 6502 if so i have unlocked bootloader and running custom rom version: 23.4.A.1.236. Iam confused wich android plus kernel i have to install to support qc 2.0 in the mentioned link i fount lot of files with v63 v64 and so on please give me the link of specific file that support my firmware that iam running.
[Xperia Z2 Android Development] dongdong:
The hack for quick charge is no longer available, as there is concerned about the safety of the hack, so it is now taken out of the kernel.
[Xperia Z2 Android Development] huangjs:
so sad.

but i'll be patient and keep check for the new hack.

thanks.
[Xperia Z2 Android Development] Morteza893:
Please help me

Can i use this kernal?????my rom is 23.4.a.1.264

My bootloader unlocked

Z2_AndroPlusKernel_v63c_QC2.0_2150.zip

---------- Post added at 04:20 PM ---------- Previous post was at 04:19 PM ----------

Please help me

Can i use this kernal?????my rom is 23.4.a.1.264

My bootloader unlocked

Z2_AndroPlusKernel_v63c_QC2.0_2150.zip

:confused::(