FORUMS
Remove All Ads from XDA

Qc- 2.0 HACK [ charge your z2 from empty to 100% in 120 minutes]

1,091 posts
Thanks Meter: 952
 
By showlyshah, Senior Member on 23rd July 2015, 01:59 PM
Post Reply Email Thread
QUALCOMM QUICK CHARGE 2.0


YES YOU READ IT RIGHT. HAVE THE QUALCOMM QUICK CHARGE 2.0 FOR YOUR INTERNATIONAL VERSION OF Z2 , WHICH IS PREVIOUSLY ONLY AVAILABLE ON SO-03F JAPANESE DOCOMO EDITION Z2

IF YOU USE THIS HACK ON YOUR Z2 YOU WILL GET A FULL CHARGE FROM 0-100 IN ABOUT 120 MINUTES.. PREVIOUSLY IT USED TO BE ABOUT 3 OR 3+ HOURS DEPENDING UPON YOUR CHARGER AND USB CABLE. EVEN WITH THE HIGHEST RATED CHARGER CURRENT THAT YOUR PHONE OFFICIALLY SUPPORTS (2AMPS) , IT WILL TAKE ABOUT TWO HOURS. AND THE BEST THING ABOUT THIS IS YOU WILL GET 50% OF BATTERY IN ABOUT 30 MINUTES..

CHECK OUT THIS VIDEO FOR DETAILS ON HOW QC-2.0 WORKS quick-charge-20-how-it-works. THANKS @Haldi4803 FOR THE REFERENCE.

Here is my story....

while i have been roaming around internet to know about QuickCharging 2.0 by Qualcomm, i found that Qualcomm have released a list of devices that support QC-2.0 charging. and our beloved Z2 was in the list. but sony never mentioned that in their white paper. but actualy they refused the claim. and later sony said that it was present on their Japanese model. aka SO-03F. So then i got frustrated, why sony claims so.. From my future experience on Android devices, i know that a lot of things are software dependent. Like the disabling of Bionz engine, Bravia engine, Noise Cancellation feature etc.. when boot loader is unlocked, Also the 4k and Slow motion video is disabled in Z1 despite it have the same camera sensor as Z2... We ; the XDA members have find it out and patched/accrued those features over the time.. (HIGH FIVE FOR THE DEVELOPERS).
Like my last attempt in reveling the LOSS OF NOISE REDUCTION when boot loader is unlocked , I set out to find the hoax behind this QC 2.0 too.. I was so sure that sony have dissabled this feature in International version of Z2 by changing the software. Just like they did with 4k and slowmotion.
So i started a discussion thread http://forum.xda-developers.com/cros...ional-t3141254 , and over the time few members helped me in figuring out things . @AndroPlus , a recognized Kernel dev, even build some test kernels with parts of QC-2.0 enabled on it, but then we found that it was not enough. So i was desperate. And i took the decession to work it out with my Z2 (which is only 6 months old since i purchased).
i know the only possible way to figurre out if there is a QC - 2.0 hardware inside it , is by installing the original SO-03F firmware on it., but that was not so easy again. just because the MD5 of system partition, and the partition table itself dont match (since SO-03F have 32 gb and D6503 only have 16 gb), luckily kernel, fota, basebands, and loader does match. So all i needed is to make a flashable zip of system partition (SO-03F system), and flash it. Again i have to remove few things from it since the DOCOMO system partition is bigger than the original system partition of D6503. and there are a lot of docomo bloatware inside it, so i cleaned it up, made a flashable zip.

Then i did unlock my bootloader (not a necessary, but it will help me to recover easily, if things go wrong. after that i followed these steps

1) flashed a kernel which support fota recovery (used @AndroPlus v59 kernel)
2)booted into recovery and flashed the system partition zip i made earlier
3) then with out rebooting, flashed stock docomo kernel, baseband,loader using flash tool.
4) rebooted .. and everything is working fine.. only random disconnects in 4g network since my carrier's 4g coverage is less inside my room, but wcdma preferred mode fixed it with 3g signal.
5) then later i got my QC-2.0 charger which is Samsung EP-TA20uwe which has [email protected] and [email protected] (QC 2.0 standard) and plugged it in... it was charging the phone. then i used several softwares to check if it is working, and logcat, and they all showed up interesting things. that .... MY PHONE IS ACTUALLY CHARGING AT QC 2.0 SPEED .


HERE IS THE VIDEO, TAKE A LOOK.
https://youtu.be/8p185UHd4a0

Also the phone detect the charger as a differnt device and use USB_DCP mode to connect to it. It even recognize the charger differently while the phone is turned off (check the pictures attached, it shows a different battery icon with QC-2.0 charger, while normal usb wall chargers like Samsung ETA-U90IWE rated [email protected], Sony EP-880 rated [email protected] ma, and USB charging from my laptop rated at 5v @100-500 ma all have another charger icon).

so this is it buddies, Z2 D6503 (and possibly all other Z2 models) have a QC-2.0 hardware inside their shiny skin. All we need is to enable it properly in the kernel. BTW, the HVDCP module is already present inside the system/bin/ which is required for QC- 2.0 .

someone who is developing for cyanogenmod can take a look at this http://review.cyanogenmod.org/#/c/84769.
and this blog post, which inspired me to dig deep http://blog.oxplot.com/quickcharge/

thanks @nos1609 for giving me that reference, buddy ... with out your help, i would have never done this.

ALSO, i like to hand over this infos to @AndroPlus , @Myself5 , @DooMLoRD, @jerpelea , @pec0ra and other great Kernel developers both for stock and AOSP,Cyanogen,MIUI etc...

Here is the flashable system and required files, NB- you still need to download the docomo ftf( or its kernel ftf) for flashing kernel,bootbundle,baseband and fota. detailed instructions are inside the flash package. use 7zip or winrar to extract the files inside the 7zip. https://drive.google.com/file/d/0B8Z...ew?usp=sharing

THE ABOVE METHODE IS NO LONGER NEEDED. YOU CAN HAVE IT ON CURRENT FIRMWARE WHICH IS ANDROID 5.1.1 .

THANKS TO @AndroPlus FOR HIS LATEST V63C QC ENABLED KERNEL AND @Jackos FOR HIS AUTOMATIC QC STARTER SCRIPT. WITH OUT THEM, THIS HACK WOULD BE STILL A KID. I ALSO WANT TO THANK @Haldi4803 @TheFerhatKing AND VARIOUS OTHERS WHO TESTED AND REPORTED ISSUES AND PROGRESS.

FOR THOSE WHO HAVE BEEN WAITING OF IT... HAVE IT NOW.

THINGS YOU MUST NEED FOR THIS HACK TO WORK.

1) XPERIA Z2 WITH UNLOCKED BOOT LOADER( FULLY SUPPORTED)/ LOCKED BOOTLOADER (PARTIALLY SUPPORTED)

2) QC-2.0 CERTIFIED CHARGER

3) GOOD BRANDED USB CABLE

4) WORKING RECOVERY.


PROCEDURE


UNLOCKED BOOTLOADER ( FULLY SUPPORTED)

1) A SONY XPERIA Z2(WORKING ON Z3 WITH QC ENABLED Z3 KERNEL) WITH AN UNLOCKED BOOT LOADER.
2) FLASH LATEST Z2_AndroPlus QC ENABLED KERNEL.zip FROM RECOVERY.
3) FLASH Jackos_QuickCharge2.0_rev5.zip
4) REBOOT AND CONNECT YOUR QC.2.0 CHARGER AND SEE THE MAGIC.


LOCKED BOOTLOADER ( PARTIALLY SUPPORTED)

SINCE A QC-2.0 ENABLED KERNEL IS AN ABSOLUTE REQUIREMENT TO GET THIS WORKING, AND YOUR STOCK SONY KERNEL DONT SUPPORT IT, WE CANT GET A FULL SPEED QC-2.0 HACK ON LOCKED BOOTLOADER, SIMPLY BECAUSE YOU CANT FLASH NON STOCK SONY KERNEL ON LOCKED BOOTLOADER. FOR THOSE WHO ARE NOT LUCKY ENOUGH TO HAVE AN UNLOCKED BOOTLOADER, BUT STILL HAVE A WORKING RECOVERY, WE HAVE A PARTIAL SOLUTION . THIS WILL REDUCE YOUR CURRENT CHARGING TIME BY 30-40%. IF YOU HAVE A QC-2.0 CHARGER.

1) A SONY XPERIA Z2(WORKING ON Z3 ALSO) WITH A LOCKED BOOT LOADER.
2) FLASH Jackos_QuickCharge2.0_rev5.zip
3) REBOOT AND CONNECT YOUR QC.2.0 CHARGER AND SEE THE MAGIC.


LOGGING IMAGES PROVIDED BY @Haldi4803






For those who have a quick doubt, the answer is -
yes your phone will charge normally on a non QC-2.0 charger like your stock z2 charger, even after you flash this. so don't worry, go ahead.

Also we recommend using a QC-2.0 standard ( not only for sony, but for any QC-2.0 enabled phone) when you are in a hurry. Just because, The QC-2.0 technology is to pump up the battery with higher currents, and that will cause little more heat and possibly lower down the battery capacity over years. But we have possible solution for that too.. Dont use your phone too much while you are charging it, that will reduce the heat produced and hence your battery will be a "cool guy".


GUYS.. WE HAVE BEEN DESPERATELY WORKING ON THIS FOR MORE THAN A MONTH, A LOT OF RE FLASHING, SOFT BRICKS ,BOOT LOOPS, MISSED MESSAGES,SLEEPLESS NIGHTS,ANGRY GIRLFRIENDS... WHEWWW.. IT WAS A MESS. SO PLEASE RESPECT THE WORK, YOU CAN EMBED IT IN YOUR ROM, KERNEL, SCRIPTS OR ANYTHING... BUT GIVE A LINK OR CREDIT TO THIS THREAD/ GIVE A THANKS NOTE ON YOUR AROMA SCRIPTS.


Thank you all...
Attached Thumbnails
Click image for larger version

Name:	DSC_0001.jpg
Views:	20976
Size:	256.1 KB
ID:	3415991   Click image for larger version

Name:	DSC_0002.jpg
Views:	20778
Size:	258.5 KB
ID:	3415992   Click image for larger version

Name:	IMG_20150723_134052.jpg
Views:	21206
Size:	254.5 KB
ID:	3415993   Click image for larger version

Name:	IMG_20150723_134616.jpg
Views:	21178
Size:	241.2 KB
ID:	3415994   Click image for larger version

Name:	IMG_20150723_134704.jpg
Views:	20730
Size:	242.6 KB
ID:	3415995   Click image for larger version

Name:	IMG_20150723_134800.jpg
Views:	20490
Size:	244.0 KB
ID:	3415996  
Attached Files
File Type: rar first day log (QC-2.0).rar - [Click for QR Code] (1.3 KB, 924 views)
File Type: zip second day log(QC-2.0).zip - [Click for QR Code] (1.2 KB, 458 views)
File Type: zip third day battery log(QC-2.0).zip - [Click for QR Code] (2.1 KB, 994 views)
The Following 123 Users Say Thank You to showlyshah For This Useful Post: [ View ] Gift showlyshah Ad-Free
 
 
23rd July 2015, 02:05 PM |#2  
MTechRD's Avatar
Senior Member
Flag Santo Domingo
Thanks Meter: 41
 
More
Very interesting...


MTechRD
23rd July 2015, 02:09 PM |#3  
whalesplaho's Avatar
Senior Member
Flag Treasure Island
Thanks Meter: 2,525
 
More
Atlast we here.... bigups brov!
BTW nice video...
The Following User Says Thank You to whalesplaho For This Useful Post: [ View ] Gift whalesplaho Ad-Free
23rd July 2015, 02:59 PM |#4  
Haldi4803's Avatar
Senior Member
Thanks Meter: 1,550
 
More
awesome!

Question: If you check the /sys/devices/qpnp-charger-f2e45000(or similar)/power_supply/battery/voltage_now file does it show 9V or the actual voltage that reaches the battery? (which would be around 4-4.5) /current_now file should show the exact same as all other widgets.

Oh.... Btw does QC2.0 work over Magnetic Ports?
23rd July 2015, 03:57 PM |#5  
showlyshah's Avatar
OP Senior Member
Flag kerala
Thanks Meter: 952
 
More
Quote:
Originally Posted by Haldi4803

awesome!

Question: If you check the /sys/devices/qpnp-charger-f2e45000(or similar)/power_supply/battery/voltage_now file does it show 9V or the actual voltage that reaches the battery? (which would be around 4-4.5) /current_now file should show the exact same as all other widgets.

Oh.... Btw does QC2.0 work over Magnetic Ports?

yes it shows battery voltage, 3.9xx, just becsuse my batery is 15%.

WHEN I CONNECT QC CHARGER ON USB PORT, THE VALUES:-

on sys/devices/msm_dwc3/power_supply/usb (which is under /sys/class/power_supply/usb)
1) POWER_SUPPLY_VOLTAGE_NOW- 8575300
2)POWER_SUPPLY_VOLTAGE_MAXIMUM-9000000
3)POWER_SUPPLY_ONLINE-1
4)POWER_SUPPLY_PRESENT - 1
5)POWER_SUPPLY_TYPE- USB_DCP
6)POWER_SUPPLY_CURRENT_MAX - 1500000
7)POWER_SUPPLY_CURRENT_SYSTEM_MAX- 1500000
8)POWER_SUPPLY_SCOPE-unknown
9)POWER_SUPPLY_NAME=usb


WHEN I DISCONNECT QC AND AGAIN CHECK THE VALUES

POWER_SUPPLY_NAME=USB
POWER_SUPPLY PRESENT/POWER_SUPPLY_ONLINE=0
POWER_SUPPLY_VOLTAGE_MAXIMUM=9000000
POWER_SUPPLY_CURRENT_MAX=0
POWER_SUPPLY_CURRENT_SYSTEM_MAX=1500000
POWER_SUPPLY_VOLTAGE_NOW=135000
POWER_SUPPLY_SCOPE/POWER_SUPPLY_TYPE= UNKNOWN

can you check if sys/devices/msm_dwc3/power_supply/usb folder is present on normal Z2 os? i mean its original os? i think it may not be there. since its kernel files, and normal kernel wont have qc feature, it may not be present, and that may be the reason we dont have qc in normal os. btw, i am using stock kernel from docomo.

qc dont seems to work through magnetic dock, it may be because there is a handshake protocol between charger and phone, which is done via usb d+ and d- lines, and if that is done with proper voltage levels on both the lines, the charger will output 9v. since it wont happen in magnetic dock, only 5v is given to it.
23rd July 2015, 05:22 PM |#6  
Member
Thanks Meter: 40
 
More
The folder is there. But I can't test it. I haven't a QC2.0 charger.
My model of the Z2 is D6503.

Gesendet von meinem D6503 mit Tapatalk
23rd July 2015, 05:33 PM |#7  
funky0308's Avatar
Recognized Themer
Flag Osijek
Thanks Meter: 5,721
 
Donate to Me
More
Anyone actually tested this?
It's quite interesting but I really doubt it's smart to use it (if we could even "power it up" on Z2/Z3).
I guess Sony had a reason to hide this feature... battery overheating or something similar maybe?

Sent from my D6603 using Tapatalk
The Following User Says Thank You to funky0308 For This Useful Post: [ View ] Gift funky0308 Ad-Free
23rd July 2015, 07:06 PM |#8  
Senior Member
Flag Rio de Janeiro
Thanks Meter: 29
 
More
i will wait a flashable zip for my international version
23rd July 2015, 08:18 PM |#9  
Senior Member
Thanks Meter: 227
 
Donate to Me
More
Quote:
Originally Posted by funky0308

Anyone actually tested this?
It's quite interesting but I really doubt it's smart to use it (if we could even "power it up" on Z2/Z3).
I guess Sony had a reason to hide this feature... battery overheating or something similar maybe?

Sent from my D6603 using Tapatalk

No no no..Click image for larger version

Name:	uploadfromtaptalk1437679118273.png
Views:	5796
Size:	119.7 KB
ID:	3416094

Gesendet von meinem SM-T230 mit Tapatalk
23rd July 2015, 08:20 PM |#10  
Haldi4803's Avatar
Senior Member
Thanks Meter: 1,550
 
More
Stock .28 and Androplus Kernel v59a
Not connected.

POWER_SUPPLY_NAME=usb
POWER_SUPPLY_PRESENT=0
POWER_SUPPLY_ONLINE=0
POWER_SUPPLY_VOLTAGE_MAX=9000000
POWER_SUPPLY_CURRENT_MAX=0
POWER_SUPPLY_CURRENT_SYSTEM_MAX=1500000
POWER_SUPPLY_TYPE=Unknown
POWER_SUPPLY_SCOPE=Unknown
POWER_SUPPLY_VOLTAGE_NOW=240840


Anyone with stock kernel can check the uevent file?
23rd July 2015, 08:28 PM |#11  
Senior Member
Thanks Meter: 227
 
Donate to Me
More
Thank you man that you confrimed us that its really working, I started to give up because I thouhgt it will never work, 6h sot with QC2.0 is a beast combo nice!

Gesendet von meinem SM-T230 mit Tapatalk
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes