[Xperia Z2 Android Development] showlyshah:
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 [MENTION=3056043]Haldi4803[/MENTION] 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://xdaforums.com/crossdevice-de...ick-to-quick-charge-z2-international-t3141254 , and over the time few members helped me in figuring out things . [MENTION=5169444]AndroPlus[/MENTION] , 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 [MENTION=5169444]AndroPlus[/MENTION] 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 5v@2000ma and 9v@1670ma (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 5v@2000ma, Sony EP-880 rated 5v@1500 ma, and USB charging from my laptop rated at 5v [MENTION=228037]100[/MENTION]-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 [MENTION=1575315]nos1609[/MENTION] 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 [MENTION=5169444]AndroPlus[/MENTION] , [MENTION=3816568]Myself5[/MENTION] , [MENTION=2784807]DooMLoRD[/MENTION], [MENTION=359497]jerpelea[/MENTION] , [MENTION=4466123]pec0ra[/MENTION] 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/0B8ZZ6E3m-DKFdnBpOGtNQUNWYjQ/view?usp=sharing

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

THANKS TO [MENTION=5169444]AndroPlus[/MENTION] FOR HIS LATEST V63C QC ENABLED KERNEL AND [MENTION=856195]Jackos[/MENTION] FOR HIS AUTOMATIC QC STARTER SCRIPT. WITH OUT THEM, THIS HACK WOULD BE STILL A KID. I ALSO WANT TO THANK [MENTION=3056043]Haldi4803[/MENTION] [MENTION=4754591]TheFerhatKing[/MENTION] 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 [MENTION=3056043]Haldi4803[/MENTION]

​

​

HERE IS THE LINK TO ANDROPLUS KERNEL THREAD USED IN THIS HACK​

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...