yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Android Development] ch3mn3y:
So its working, but not implemented and without implementation it's not working, so there is no way to use it (if You are not dev), so basically it's not working.

Sent using XT1562 - Resurrection Remix/Optimus Kernel

C
[Xperia Z2 Android Development] pec0ra:
Yes, for the ones that don't know how to compile a kernel they won't have the full power.

But by the way, the performance of QC 2.0 without kernel support is already a great improvement compared to standard charging with the stock charger. And now that we have seen how easily a battery can burn ( -> Note 7 disaster), we should be even more careful.
[Xperia Z2 Android Development] ch3mn3y:
True. Do You (or anyone else) know if the zip makes any change with magnetic port? Don't think it even supports QC (I'm even sure about it), but maybe?
[Xperia Z2 Android Development] pec0ra:
Here is your answer :
[Xperia Z2 Android Development] ch3mn3y:
As I thought, but 30-40% seems better than I imagine (5-10%) :) Time to flash!
[Xperia Z2 Android Development] Haldi4803:
~.~ it's fully working.

And if you flash the zip it's implemented.

The Current Limitation in the kernel is something different. Completely unrelated to QuickCharge 2.0

It's a safety feature to preserve battery longevity.
[Xperia Z2 Android Development] don't try:
So if I want to use this hack I must roll back to Loop 5.0.1
[Xperia Z2 Android Development] ch3mn3y:
If You want full QC support than yes, if only partial than flashing .zip is enough.

Sent using D6503 - Resurrection Remix/RR N
[Xperia Z2 Android Development] dumpystig:
Is anyone having faster charging using the zip on Carbon ROM?
[Xperia Z2 Android Development] iqBaLcom:
can install in android 6/M
[Xperia Z2 Android Development] ch3mn3y:
[MENTION=4900302]dumpystig[/MENTION]

A little (100 mAh - ~600 -> ~700) when using magnetic port. Don't use USB, so cannot tell how it changed.

[MENTION=5865508]iqBaLcom[/MENTION]

Just .zip. Kernel is for stock 5.1 only.
[Xperia Z2 Android Development] dumpystig:
[MENTION=4254806]ch3mn3y[/MENTION] thanks

I've installed the zip. I only use USB, I'll report back if there's any significant increase in charge rate.
[Xperia Z2 Android Development] iqBaLcom:
link Z2_AndroPlus QC ENABLED KERNEL.zip dead -_-
[Xperia Z2 Android Development] Adriano-A3:
Would be good some dev build a MM kernel with QC 2.0 support

I haven't time for such hard thing. Would love have.
[Xperia Z2 Android Development] matibu06:
Dont work with stock Sony 6.0.1 :/
[Xperia Z2 Android Development] ganstab:
How about z2 docomo version ?
[Xperia Z2 Android Development] ShadowElite:
I have done, I just dont have time, end of semester... :(
[Xperia Z2 Android Development] Adriano-A3:
I'm with Mi Mix 2 now dude :)
[Xperia Z2 Android Development] wadoo24:
So what ??!
[Xperia Z2 Android Development] Adriano-A3:
I guess you r capable of reading https://xdaforums.com/showpost.php?p=76596315&postcount=799
[Xperia Z2 Android Development] ocliasom:
Kernel zip is not working

the androplus link is not working anymore, does anyone have a copy they can send me? please, i really want to try this
[Xperia Z2 Android Development] abinyakhansasyauqifaruq:
Yes, it work on my z2, 1.670 mA, and very quick. Less than one amd a half hour.
[Xperia Z2 Android Development] Haldi4803:
Bfore and after the command :)

Sadly my cut open USB cable on which i use to connect the VoltMeter does not send data and therefore does not activate QC2.0 :( it only drains 950mA and shows 830mA in Ampere.

Battery Graph incoming in.... latest 150 minutes from now :D
[Xperia Z2 Android Development] TheFerhatKing:
It took me about 2h 30 mins for full charge, it charged with "QC2.0" (which pumps a Note 4 to 50% in 30 mins and about 1h 20-40 mins to full), here is the proof that I charge with "QC2.0" Using the original Galaxy S6 charger..

Sony Xperia Z2
[Xperia Z2 Android Development] showlyshah:
Ya. It is so for me.. But have u seen how quickly it jumps to 30%, may be samsung is using different battery technology, thats why.. Btw.. We have a better charging now na..
[Xperia Z2 Android Development] TheFerhatKing:
No, I get exactly the same charge time with 5V 2A Samsung charger, I even find it a little bit faster. On Z3+ forums it charges in 1h 40 min or shorter I think. So I say that we don't unlocked QC really yet..

Sony Xperia Z2
[Xperia Z2 Android Development] Haldi4803:
Jup.... i second that. isn't faster in any way.

Normal 2A Chager vs Quickcharge hack activated:

I'ts 4 minutes faster on 30%, but thats probably because it started at 4% and not 1%.

But well... we also charge up to 80% in 90 Minutes.

Pretty funny tough to see the Graph with Battery Temperature dropping after 90 Minutes ^^
[Xperia Z2 Android Development] showlyshah:
Oh.. But we got qc activated, and the current flow doubled, so may be battery is not accepting it???
[Xperia Z2 Android Development] showlyshah:
May be there is lil more to do with current rating files... Will look on it..
[Xperia Z2 Android Development] Dilesh Perera:
saw this on androidauthority

maybe useful for someone going to buy new Quick charger with discounted rate

http://www.androidauthority.com/qua...k-charge-2-0-wall-charger-deal-amazon-631843/
[Xperia Z2 Android Development] Haldi4803:
Uhm... other question, do we have ANYONE here on XDA with a Japanese Z2, Firmware and a QuickCharger2.0 to know how fast it should be charging?

Do you guys know anyone we could hit up per PM and maybe even convince to spend these 9$ for a Quick charger 2.0 if not already in possession ?
[Xperia Z2 Android Development] vikrant7027:
Sorry offtopic question... Which theme or mod you are using?
[Xperia Z2 Android Development] gerarKIA:
The theme is Liysa Theme, you can find it in playstore, the status bar icons are the default ones on Existenz Y ROM (they're the AOSP icons I think), and for the tinting of bars I use the Xposed module called Flat style colored bars.
[Xperia Z2 Android Development] stayawake:
So, now I'm a little confused, if I try to use a charger like the Sony CP-AD2 (http://www.sony-asia.com/product/cp-ad2 5V, 2.1A), my phone will recharge faster only if I install this hack?
[Xperia Z2 Android Development] Jackos:
Nope. This charger isn't QC2.0 enabled.
[Xperia Z2 Android Development] ryandxter:
well till now idk exactly how this tweak (h#ck) work on our z2 but on my earlier post seems need to be proven

may I need some short explanation from this hack, I've read carefully every progress from this thread

at some point does this tweak work on my current LB using existenz 2.6.0? however my current head charger from SGS5 which had 5.3V with 2A it's fast enough give me faster charging time

my question is, do I already have quick charge mode? whereas I never (at least not yet) use this tweaks

here we go:
[Xperia Z2 Android Development] Jackos:
This is my solution for the Z2 international variant QC2.0 hack. Let me know, if this works. It's a flashable zip, flash in recovery. Do a full SYSTEM BACKUP, before flashing! This is experimental stuff and it messes with libs and other critical stuff!

Some background:

IMHO to get it to work you need to include system/lib/sysmon from the SO-03F build. Those libs control the charging process and they are different from the D6503 build.

Also, there is a file called sysmon.cfg in /system/etc that contains values for charging current and DC wattage. Here comes the tricky part: SO-03F build controls the current, while D6503 build controls the wattage! So basically unless you disable the limit the device won't go over 9W.

This flashable zip also changes chargemon, so you'll need to install your XZDR recovery once again.
[Xperia Z2 Android Development] TheFerhatKing:
Any instructions? I'm gonna test it now.

Sony Xperia Z2
[Xperia Z2 Android Development] Jackos:
Do a backup, flash, reboot, plugin the QC2.0 charger and look at the battery percentage. You could also try the

/system/bin/hvdcp

command in a terminal emulator. I'm quite unsure if my .sh script works properly.
[Xperia Z2 Android Development] Jackos:
For QC2.0 to work the kernel needs to have

\kernel\drivers\usb\dwc3\dwc3-msm.c
\kernel\include\linux\usb\msm_hsusb.h

included.

And probably some other commits :P

There was a AndroPlus kernel that had the QuickCHarge enabled for the Z2, it might be worth to check, if it would work with my modified system files from the SO-03F build.
[Xperia Z2 Android Development] TheFerhatKing:
I think it doesn't work.. it even didn't charged 30%(it charged about 25%) in 30-40 minutes but a Z4/Z3+ or the S6 or the Note 4 or the One M9 charges about 50% or more in 30-40 minutes

Using AndroPlus Kernel v59c LP5.0.2

Btw in the youtube video from the op qc2.0 worked I think because the app Ampere showed over 2A charging (it was around 2.2A I think) but I never reached over 1.6A charging on every charger I used.. So can anyone flash the japanese firmware (the downloadlink is in the op) and test with a qc2.0 charger how much time it takes from 1% to 50% and how much time it takes from 1% to 100%? Please guys

Gesendet von meinem SM-T230 mit Tapatalk
[Xperia Z2 Android Development] Jackos:
Thanks for the testing. Please revert back from the backup :)

Well, I think you need some system modules/libs together with a QC2.0 enabled kernel.

The bin/hvdcp execute command works - it connect to the charger and therefore some people reported that their QC2.0 charger changed their charging light to a green one indicating that QC2.0 worked. Unfortunately it doesn't have any effect as the phone doesn't charge faster at all. At least according to my knowledge :)
[Xperia Z2 Android Development] TheFerhatKing:
Yeah thanks for your help, I think we're getting closer to this, I hope we get it really 100% working, but lets see, I'm free to help.

Gesendet von meinem SM-T230 mit Tapatalk
[Xperia Z2 Android Development] showlyshah:
Thank you for the files. Well i have find that before.. While i was trying to figure out the differences.also what about the charger bin file.. We desperately need some who can take look at elf files, and a dedicated man who knows kernel building.. I will soon try messing up with sysmon.config file. Well there is ways to convert current into watt and vice versa, so that we can change the current values. Also take look at the files in system/lib/sysmon.
[Xperia Z2 Android Development] showlyshah:
I think dwc3.msm is already there.
[Xperia Z2 Android Development] showlyshah:
Yea, i have reached, and it still reaches, check ur usb cable, its a great factor. For me there is 1%increase in every one min, still in 5.1.1 frimware its so. And later its 1% in every 2 mins. I will post log, soon. Sady my battery is 99% now. So wait for a day..Haha.
[Xperia Z2 Android Development] showlyshah:
Ya the command works, and thats why it loads the module, and when that module loads, the phones usb port is able to send the request to the charger to provide 9v. And charger does so. And the phone revevies it, succesfully. And so now we have to look into section two. How the battery gets charge, how much volatage and amps. Does it accepts or simply refuse. Btw, do u think there is a difference in battery technology for Japanese z2?.. Have some one tried this on z3? And what about z3+, can any one post logs or screenshots from those phone, to know where we are stuck..
[Xperia Z2 Android Development] Jackos:
I don't think there is any difference. It's just the driver/kernel difference which limits the wattage draw from the USB port.
[Xperia Z2 Android Development] showlyshah:
May be we should start investigative development..

As..

1) we need to know the ma values that is been reported by apps like ampire or so from z3+/so-03f

2) we need the sysmon.cfg file from z3+/so-03f

3) we need uevent file from an z3+/so-03f corresponding to quick charging when it is plugged in a quick charger.

Most probably we shd get some volunteers from z3+ forums. Or just from so-03f owners.
[Xperia Z2 Android Development] Gmobilize:
To the guys who posted screens using Ampere, it only measures the charging current not the voltage, i can confirm that you can hit up to 1400 mA without any mods which is not qc 2.0, its just a normal charging but getting the needed 9V is a different story.
[Xperia Z2 Android Development] Jackos:
You got that in my flashable zip. I think I also compared it to the Z3C build and I think this files is same or similar.
[Xperia Z2 Android Development] showlyshah:
We are certainly missing a link here.. The battery files.. Current flow limits to battery. Will check soon. Btw.. Your flashable zip have no effect, i tried it. Just as usual. And ya.. The script seems not working. U should modify it and make it autostart and stop when "charger online" file value from 0 to 1 and back to zero from quick charge power section from sys.
[Xperia Z2 Android Development] showlyshah:
Guys.. I am lil bit confused now. Because, i have read the z3+ forum about quick charging.. They said they got full charge in 1.40 hours on single sim with 2200ma current ratings, and dula sim, though it pulls 9v ( qc-2.0 voltage) the current is low. (.77 amp).

http://xdaforums.com/showthread.php?t=3158603.

Now in our case, we have managed to unlock the qc.2.0 link, and the phone receives 9 v now, and with normal 5.1.1 kernel and os, it pulls 1700 ma ( which is more than double of what z3+ dual sim version pulls, and while on my testing with 4.4.2 docomo rom, i was able to get 2200+ ma ( u can see in my video) on qc ( which is equal to that pulled by official z3+ single sim with official qc- 2.0 support)

Now since this is the case, we can actually make this work, just because our phone support it, some crapy sony tricks is in the middle, we should remove it soon. Any and all findings are requested. ( and with optimistic mind!!!)
[Xperia Z2 Android Development] showlyshah:
May be i should go back to 5.0.2 and flash docomo kernel and post the results on how much current it pulls.
[Xperia Z2 Android Development] Haldi4803:
and how long it takes!

Best would be if you could provide a Log on which time it had which % charged.

Also the Battery Temperature is quite nice, you see when the Battery is hot aka much current and when it gets colder.
[Xperia Z2 Android Development] showlyshah:
Buddy i cant simply win this fight alone.. Hence i need a team.. I hope good peoples like u will try figuring out few things, i am an engineer, who have lot of real world works to do.. So insted of waiting for me to bring up things, any one or all can give a try.

Good news is i bought a backup phone now, so that i can deal communications even if my z2 is under experiments..
[Xperia Z2 Android Development] Haldi4803:
I totally understand you with this time problem ^^

BTW. Missed a trepn log...

But androplus Kernel v60

127min fully charged!

Thats faster than 157 minutes...
[Xperia Z2 Android Development] TheFerhatKing:
Did this now, nothing new, it does boot but the same charging speed, even with hvdcp in terminal, all same..
[Xperia Z2 Android Development] Haldi4803:
so we need a real japanese Z2 with Quickcharger 2.0 for reference....

How do we find one?
[Xperia Z2 Android Development] showlyshah:
You mean.. You flashed a docomo kernel over normal 5.0.2 d6503 rom??
[Xperia Z2 Android Development] TheFerhatKing:
Yep, flashed over Exitenz v2.6.0, I got the kernel from the lastest 5.0.2 Docomo firmware, got it from Xperifirm.

Sony Xperia Z2
[Xperia Z2 Android Development] Budgiemanr33gtr:
After entering the command into terminal my charging current went from 300mah to 750mah but now my phone won't connect to my PC through USB 3.0 so I can only use USB 2.0 what do I do now?
[Xperia Z2 Android Development] Haldi4803:
Reboot ^^
[Xperia Z2 Android Development] Budgiemanr33gtr:
Already did that twice...
[Xperia Z2 Android Development] fireheart2008:
So all i need to do is to connect QC2.0 charger to my rooted D6502 z2 then I open terminal emulator and type:

su

/system/bin/hvdcp

--------

without installing s0-03f like you did?

---------- Post added at 11:23 PM ---------- Previous post was at 11:21 PM ----------

and what's the best way to do backup before i do this ?
[Xperia Z2 Android Development] botanicfts:
i dont know this too, maybe can someone answer? because all is mixed and do not know what to do
[Xperia Z2 Android Development] dft601:
I am on [ROM][LOLLIPOP][LB/UB][.28] eXistenZ Y | 2.6.0 | 25/07 and I have installed [KERNEL][D6502/D6503/D6543] AndroPlusKernel ( at the Moment 59c)

I did not do any other changes on System. When I use Logcat Extreme I also have the Output:

l quickcharge: 9V request success

So I think you do not have to Flash additional files on that constellation.

Mike
[Xperia Z2 Android Development] showlyshah:
Buddy ask questions on q and a thread. This is for development discussion. There u have a better chance to get ans. Btw.. For now.. You just run the command after u connect qc charger , on which ever rooted stock rom you are. Dont need to flash anything.
[Xperia Z2 Android Development] showlyshah:
Can you flash version 61 and give a quick log?
[Xperia Z2 Android Development] dft601:
Yes I will do... I tested tonight with that 59c ( because next verions always NFC crashed) but I could not recognize an impovement for now !

I log every charging with 3C-Tools and tonight the highest charging amount was +1425 mA and this is what I also have without quickcharge...

I try the new kernel and if I do not see any difference I will flash the files... ( but probably not before Sunday)

Mike

---------- Post added at 08:24 AM ---------- Previous post was at 08:13 AM ----------

:( Same with version 61.. NFC crashes every 2 seconds... I even cannot enter my sim pincode so quickly I have crashes from NFC and android.process.media

On Sunday I can wipe my phone and try this on a fresh installation.... maybe this evening, but I will not promise....
[Xperia Z2 Android Development] S3R6PH:
Hi There!

Unfortunatelly is not working on my Xperia Z3 D6603 with lollipop 5.1.1 - 23.4.A.0.546. Northic ROM release Google play edition.

I have a Tronsmart Qualcomm Technology Quick charger 2.0

Write this in terminal emulator:

su

/system/bin/hvdcp

But nothing happens. Ampere shows that still charge only with 670 mA

Any suggestions?
[Xperia Z2 Android Development] showlyshah:
Check if u have a module named hvdcp in system/etc/bin
[Xperia Z2 Android Development] S3R6PH:
Checked but I dont have etc subfolder in my system folder.

I found this modue in system/bin folder

And I use this ROM: [ROM][D66XX][.546][5.1.1][LB][UB] Google Play Edition HD2.0 from Minusone

What could be wrong?
[Xperia Z2 Android Development] showlyshah:
Sorry my bad, its system/bin. So if u have that module, and u really have a qc charger, you can run the command "su [enter and grand permission ] /system/bin/hvdcp.
[Xperia Z2 Android Development] S3R6PH:
Helo There,

well I enter the command and the Ampere shows now 1580 mA at charging what never happened before!

Battery whas at 20% whenn I starded to charge.

Yesterday at the same percentage Ampere shows only 620 mA so is better like yesterday!!!!

Another thing. If the Batt. level reaches 90% the charging automaticcaly dropping down to 640 mA.

Is stil better like yesterday whas at 220 mA.

And how I sad I have this Tronsmart Quick charger 2.0 with Qualcomm Technology

I really don't know how fast should charge a REAL quick charger 2.0 ?!?

If you have any suggestions PLS advice.

THX4YOUR GREAT WORK!!! :good: :highfive: :good:
[Xperia Z2 Android Development] TheFerhatKing:
Real QC2.0 should charge your phone in 1h 30min like the Note 4 with 3220 mah battery.

Sony Xperia Z2
[Xperia Z2 Android Development] Chillzone:
And thats more or less the results im getting on my Z2, except when the battery is thermal throttling. Which is prolly why Sony disabled this feature...
[Xperia Z2 Android Development] TheFerhatKing:
About 40-50% in 30 min?

Sony Xperia Z2
[Xperia Z2 Android Development] Chillzone:
Yes. The note 4 is more consistent, but im guessing thats heat and HW thats more suited for QC. But thats my theory, im not by any means a engineer or developer.
[Xperia Z2 Android Development] TheFerhatKing:
Your Z2 charges 40-50% in 30 min? (If yes can you show us a log or something like this) I know that the Note 4 can do this easy, I didn't asked for the Note 4 :D

Gesendet von meinem SM-T230 mit Tapatalk
[Xperia Z2 Android Development] Chillzone:
Yeah i can guess i can snatch a log. Im on AOSPA atm, but can flash back in tomorrow or somthing.

I own a note 4, so i did make a comparison. and my thoughts around it. is that a issue? :)
[Xperia Z2 Android Development] RAM GUY23:
Of course not, all you did was to compare Z2 QC charging time compare to Note 4 QC charging time, if so i see no reason why it would be not okay. Take care :)
[Xperia Z2 Android Development] Jackos:
I just bought a Sony UCH10 QuickCharger. After some testing I managed to get the 9V@15W working. I attached my script for the QC2.0.

Let me know if it works ;) Do a FULL SYSTEM backup before flashing this file. Also It's worth mentioning that it does rise the temp limits by 10 degrees so this might not be safe. I'm using this since 24h and it's charging my Z2 blazing fast.

Please note that because I did not touch the kernel at all, you need to have the system fully booted for this to work.
[Xperia Z2 Android Development] TheFerhatKing:
Thank you mate! So how long does it take to reach a full charge, how long does it take to get 40-50%?

Gonna test it later..

Sony Xperia Z2
[Xperia Z2 Android Development] Jackos:
I'll let you know once I discharged my battery ;)
[Xperia Z2 Android Development] TheFerhatKing:
Really nice man, thanks again, is it possible to get 12V charging or is it too much? Because there are QC2.0 chargers with 12V as you know.

Sony Xperia Z2
[Xperia Z2 Android Development] Jackos:
I just looked at the UCH10 and it's capable of charging 9V@1700mA=15,3W or 12V@1275mA=15,3W.

Basically no matter if you charge the device at 9V or 12V, because it would charge the device at exact the same speed. Also I don't think the Z2 hardware is capable of charging at 12V. Although I'd have to have a look at a mainboard whitepaper or sth like that.
[Xperia Z2 Android Development] S3R6PH:
Hi,

will this work on XPERIA Z3???
[Xperia Z2 Android Development] Jackos:
I think it should. Do a system backup, flash it and let me know ;)
[Xperia Z2 Android Development] aotaotaot99:
The rev3 works fine on Existen Y 2.6 with locked bootloader through usb cable.

So I have a question. Can it use qc2.0 with magnatic charge?
[Xperia Z2 Android Development] Jackos:
No, that's unfortunately not possible, because the USB cable needs to send data. Dock transfers only current.
[Xperia Z2 Android Development] TheFerhatKing:
How much do you get?

Sony Xperia Z2
[Xperia Z2 Android Development] Jackos:
I'm getting around 1670mA that is according to specification at 9V. It charges 15W.

It's steady current and it doesn't throttle, if the temp rises.

Should be fully charged around 100 minutes ~ 1h40minutes. If you got at least 10% when you start charging you should be fully charged around 1h30m - just like the Note 4.

I'm testing right now, I'll let you know how long it took to fully charge.
[Xperia Z2 Android Development] TheFerhatKing:
It charged over 2,2A with DoCoMo firmware on the video in the OP

Sony Xperia Z2
[Xperia Z2 Android Development] Jackos:
That is wrong and not according to QC2.0 specification. I have no idea why, but I'm sure it was a bug :)
[Xperia Z2 Android Development] TheFerhatKing:
Every QC2.0 charges over 2A (2,5A for the Moto Maxx for example) I saw in videos or forums.

Sony Xperia Z2
[Xperia Z2 Android Development] Jackos:
That's not possible, because QC2.0 charger charges only up to 1,7A@9V. If you push the voltage even higher then the amperage goes down.

from here: http://www.sonymobile.com/gb/products/accessories/quick-charger-uch10/specifications/#tabs

Edit: You could try another (maybe better QC2.0 charger) and see how it charges :)
[Xperia Z2 Android Development] Haldi4803:
1670mA via Software?

Or an external Hardware sensor?

If its software then its not 9V anymore but already reduced internally to 5V