Thursday, January 25, 2018

Flashing LG G Pro 2 with Mokee

Next step is to root my newly-flashed KitKat LG G Pro 2. No more KingRoot for me. This time I went with DP Tools. (https://forum.xda-developers.com/lg-g-pro-2/development/tool-dp-tools-manage-lg-device-t3084979) As far as I can tell, it works as advertised. Naturally, for it to do its magic, you need to first enable USB debugging under Settings --> Developer Tools. If it's not there, go to About Phone --> Software Info and click on Build Number for seven times.

First time I did the one-click root, it reported Rooted. Yet, when I did Check Root, I didn't get a root prompt. Had to do the one-click root a second time before it eventually worked. Next up, copy over the TWRP APK to the phone and install. Again, "Install from unknown sources" have to be enabled first. Using DP Tools, I rebooted to recovery to make sure TWRP is indeed flashed properly. Full instructions here: https://forum.xda-developers.com/lg-g-pro-2/development/twrp-recovery-lg-g-pro-2-t3318686

You can also copy a newer version of TWRP (https://drive.google.com/file/d/1ADfHyz8ii6w_QErKkzhrKexTQ4a6cAXp/view), and upgrade by flashing the zip file using TWRP itself. With a custom recovery installed, upgrading to a custom ROM is easy peasy.

  1. copy over "LP Baseband and kernel(bumped)+KK bootloader" file", custom ROM, pico Gapps, and Magisk (for root)
  2. reboot to TWRP recovery
  3. wipe Dalvik, cache, data, and system
  4. flash LL baseband, flash ROM, flash Gapps, flash Magisk
  5. reboot into system

Detailed instructions here: https://forum.xda-developers.com/lg-g-pro-2/development/rom-resurrection-remix-m-t3520021
You have a choice of Lineage, Resurection Remix, and Mokee. For me, I chose the latter.

First boot takes an awfully long time. You'll be temped to restart the phone, but don't.

Downgrading LG G Pro 2 from Lollipop to KitKat

The wife recently took possession of a Xiaomi Redmi Note 4X, so her old LG G Pro 2 is mine to play around with. First order of the day is to root it. Lots of tutorials and scripts and tools around. Tried a couple of them, but didn't work. Maybe because the device has already been upgraded to stock Lollipop.

Getting impatient, I decided to use KingRoot. Big mistake. After installing and running KingRoot, it informed me that rooting was unsuccessful. Uninstalled the apk, yet KingRoot still persists. I bit the bullet, and did a factory reset. Guess what? Still there. Once in a while, I'll get a notification from Android asking if I want to disable KingRoot. I tap Yes, but it always comes back. Time for a system wipe.

The idea is to root the device, install a custom recovery, then flash a custom ROM. From what I've read in the XDA Developers forum, this is best done when the device is still on stock KitKat, which requires me to do a downgrade. Now, the problem with an "old" phone is that there are so many posts talking about the same thing, yet many of them have conflicting information. It's up to you to figure out which parts fit your situation. Worse, most of the download links to the ROMs or scripts are now broken. Either the personal domain is non-existent anymore, or the files have been taken down by the file-hosting company.

At the end of the day, I managed to get it done, and this is how I did it.

Downgrade from Stock Lollipop (D83820x) to Stock KitKat (D83810x)
Two ways to do this. Easiest way is to download a KDZ file and flash using LG Flash Tool. Here is the official procedure:
http://www.lg-phones.org/how-to-flash-unbrick-lg-g-pro-2-with-a-kdz-firmware.html

If that looks too complicated for your liking, you can try this modified flash tool from XDA:
https://forum.xda-developers.com/showthread.php?t=2797190

  1. copy KDZ file to the same folder as the flash tool
  2. power off phone
  3. hold down VolUp button, then connect phone to PC using USB cable (a.k.a. download mode)
  4. run LGFlashTool2014.exe file
  5. select KDZ file
  6. click on CSE Flash button

Normal Flash is for when you want to flash ROM without losing any data. Make sure you flash the same exact ROM as you have now, or you'll get bootloops. Used when you need to fix some system error. CSE Flash is for when you need a clean format. Obviously, all data will be wiped. Used when you need to downgrade or upgrade to stock ROM.

Next question is, where do you get the KDZ file? Lots of links on the forum, mostly dead. Well, I've got the link for you. If you're after your current ROM, use this:
http://csmg.lgmobile.com:9002/csmg/b2c/client/auth_model_check2.jsp?esn=<yourimei>
Replacing <yourimei> with your IMEI (15 digits).

You'll then be presented with the download link between the <sw_url> tags. You might also take note of the <buyer> tags, which tells you which region your phone is from.

<response req_cmd="auth_model_check" status="OK">
<auth_model_check>
<result>OK</result>
<esn>xxxxxxxxxxxxxxx</esn>
<model>LGD838</model>
<suffix>ACWTOP</suffix>
<msn>xxxxxxxxxxxxx</msn>
<esn_date/>
<sw_version>D83820B_00</sw_version>
<sw_url>
http://pkg02.cdn.gdms.lge.com/dn/downloader.dev?fileKey=xxxxxxxxxxxxxxxxxxxxxxx/D83820B_00.kdz
</sw_url>
<sw_locale_url/>
<sw_recommand_uri/>
<app_version/>
<app_url/>
<cs_em_flag>N</cs_em_flag>
<cs_em_uri>N</cs_em_uri>
<chip_type>EG</chip_type>
<prod_type>2</prod_type>
<buyer>CWT</buyer>
<file_name>D83820B_00.kdz</file_name>
</auth_model_check>
</response>

Need an older/newer KDZ from a different region/country? This link's for you:
https://lg-roms.com/LG-Firmware-List/LG%20G%20Pro%202
As of this writing, the download links still work.

The first time I ran the tool, the screens are showing gibberish. Window text is possibly in a foreign language, as I can only see question marks. Clicked a few default buttons, and the software quit. Re-ran the tool, and this time the text was in English. First try didn't work because one of the screens has one button to exit from the tool (while in the middle of flashing), which I clicked. Second try worked just fine.

If, for some reason this method didn't work, then you'll have to use flash method #2 mentioned here:
http://www.lg-phones.org/how-to-flash-lg-g-pro-2-with-a-tot-firmware.html
Similar information here:
https://forum.xda-developers.com/showthread.php?t=2475045

From there you can get download links to the flash tool, the crack, and the TOT/DLL files. That said, I wasn't able to find any working download links to the TOT/DLL files that I needed. Good thing the KDZ method worked for me.

Friday, January 19, 2018

周杰倫 - 等你下課 (with 楊瑞代)

周杰倫 - 等你下課 (with 楊瑞代)

作詞:周杰倫
作曲:周杰倫


你住的巷子裡
nǐ zhù de xiàngzi lǐ
我租了一間公寓
wǒ zūle yī jiàn gōngyù
為了想與你不期而遇
wèile xiǎng yǔ nǐ bù qī ér yù
高中三年我為什麼
gāo zhòng sān nián wǒ wèishéme
為什麼不好好讀書
wèishéme bù hǎo hǎo dúshū
沒考上跟你一樣的大學
méi kǎo shàng gēn nǐ yīyàng de dàxué

我找了份工作
wǒ zhǎole fèn gōngzuò
離你宿舍很近
lí nǐ sùshè hěn jìn
當我開始學會做蛋餅
dāng wǒ kāishǐ xuéhuì zuò dàn bǐng
才發現你不吃早餐
cái fāxiàn nǐ bù chī zǎocān
喔你又擦肩而過
ō nǐ yòu cā jiān érguò
你耳機聽什麼
nǐ ěrjī tīng shénme
能不能告訴我
néng bùnéng gàosù wǒ

躺在你學校的操場看星空
tǎng zài nǐ xuéxiào de cāochǎng kàn xīngkōng
教室裡的燈還亮著你沒走
jiàoshì lǐ de dēng hái liàngzhe nǐ méi zǒu
記得我寫給你的情書
jìdé wǒ xiě gěi nǐ de qíngshū
都什麼年代了
dōu shénme niándàile
到現在我還在寫著
dào xiànzài wǒ hái zài xiězhe
總有一天總有一年會發現
zǒng yǒuyītiān zǒng yǒuyī nián huì fāxiàn
有人默默的陪在你的身邊
yǒurén mòmò de péi zài nǐ de shēnbiān
也許我不該在你的世界
yěxǔ wǒ bù gāi zài nǐ de shìjiè
當你收到情書
dāng nǐ shōu dào qíngshū
也代表我已經走遠
yě dàibiǎo wǒ yǐjīng zǒu yuǎn

Gary:
學校旁的廣場
xuéxiào páng de guǎngchǎng
我在這等鐘聲響
wǒ zài zhè děng zhōng shēngxiǎng
等你下課一起走好嗎
děng nǐ xiàkè yīqǐ zǒu hǎo ma
Jay:
彈著琴唱你愛的歌
dànzhuó qín chàng nǐ ài de gē
暗戀一點都不痛苦
ànliàn yīdiǎn dōu bù tòngkǔ
Gary:
一點都不痛苦
yīdiǎn dōu bù tòngkǔ
Jay:
痛苦的是你
tòngkǔ de shì nǐ
合:
根本沒看我
gēnběn méi kàn wǒ
Jay:
我唱這麼走心
wǒ chàng zhème zǒu xīn
Gary:
這麼走心
zhème zǒu xīn
Jay:
卻走不進你心裡
què zǒu bù jìn nǐ xīnlǐ
Gary:
進你心裡
jìn nǐ xīnlǐ
Jay:
在人來人往
zài rén lái rén wǎng
合:
找尋著你守護著你
zhǎoxúnzhe nǐ shǒuhùzhe nǐ
不求結局
bù qiú jiéjú
合:

ō
Gary:
你又擦肩
nǐ yòu cā jiān
合:
而過
érguò
Jay:
我唱告白氣球
wǒ chàng gàobái qìqiú
終於你回了頭
zhōngyú nǐ huíle tóu

躺在你學校的操場看星空
tǎng zài nǐ xuéxiào de cāochǎng kàn xīngkōng
教室裡的燈還亮著你沒走
jiàoshì lǐ de dēng hái liàngzhe nǐ méi zǒu
記得我寫給你的情書
jìdé wǒ xiě gěi nǐ de qíngshū
都什麼年代了
dōu shénme niándàile
到現在我還在寫著
dào xiànzài wǒ hái zài xiězhe
總有一天總有一年會發現
zǒng yǒu yītiān zǒng yǒu yī nián huì fāxiàn
有人默默的陪在你的身邊
yǒurén mòmò de péi zài nǐ de shēnbiān
也許我不該在你的世界
yěxǔ wǒ bù gāi zài nǐ de shìjiè
當你收到情書
dāng nǐ shōu dào qíngshū
也代表我已經走遠
yě dàibiǎo wǒ yǐjīng zǒu yuǎn