跳至主要内容

Howto unlock bootloader and get TWRP on ZUK Z2 Pro

原文链接

DISCLAIMER:
take care, this will erase all data on phone. I'm not responsible for any data loss. Follow the instructions on your own risk!



---------------------------------------

NEW:

You updated to ZUI 3.5 using https://zukfans.eu/community/thread...t-from-zui-1-9-to-latest-zui-for-z2-pro.7851/ ? Congrats!

Once you updated to ZUI 3.5 you don't need to get unlock_bootloader.img anymore.

To activate developer option click 7 times on ZUI version under settings - system - about:
Screenshot_2018-03-26-19-34-27-1283872640.png
-
Screenshot_2018-03-26-19-34-40-0745131217.png
-
Screenshot_2018-03-26-19-34-58-0044320019.png

Once you did that you get developer options in settings - system:
Screenshot_2018-03-26-19-35-13-0366231732.png

Click on it and activate the options OEM unlocking and USB debugging
Screenshot_2018-03-26-19-36-00-0804789522.png

You can accept the following warning:
Screenshot_2018-03-26-19-35-38-1867382732.png

Now:
  1. Setup ADB and Fastboot on your PC. (can be found here as well: https://forum.xda-developers.com/showthread.php?t=2317790)
  2. Connect your Lenovo ZUK phone to the PC.
    └ If you get a prompt on phone’s screen to Allow USB debugging, tap OK.
  3. Open a command window inside the folder where you saved your adb and fastboot install (I suggest using C:\ZUK). To do this, open the folder and then “Shift + Right click” on any empty white-space inside the folder and select “Open command window here” from the context menu.
  4. Once command window is open, issue the following command to boot device into bootloader mode:
    adb reboot bootloader
  5. Once in bootloader mode, issue the following command to unlock the device:
    fastboot -i 0x2b4c oem unlock-go
    └ You’ll see the following output:
    ...
    OKAY [ 0.041s]
    finished. total time: 0.041s
  6. Now phone will reboot. Let the reboot finish completely. Then do "adb reboot bootloader" again.
  7. now flashing twrp. Download latest twrp version here: https://twrp.me/zuk/zukz2row.html
  8. Make sure the downloaded twrp version is located in adb directory as well. Rename it into twrp.img. Then in command prompt type:
    fastboot flash recovery twrp.img
    (if your device is not recognized check hardware manager for driver. You may use fastboot -i 0x2b4c flash recovery twrp.img instead)
  9. Reboot your phone to system using the following command:
    fastboot reboot

That's it. You unlocked bootloader and flashed twrp.


--------------------------------------------------------------------

OLD:

This is a backup copy of https://www.theandroidsoul.com/unlcok-bootloader-zuk-z2-pro/
All credits to https://www.theandroidsoul.com/unlcok-bootloader-zuk-z2-pro/ !
I just copied it here so everyone can find all related to ZUK here.


How to Unlock Bootloader on Lenovo ZUK Z2 and Z2 Pro
  1. On your Lenovo phone, go to Settings » About » Status information» and make a note of your device’s Serial number.
  2. On your PC, open developer.zuk.com/bootloader websiteusing Chrome browser.
  3. Once the is opened, right-click anywhere on the page and select “Translate to english” from the context menu.
  4. Read the terms & conditions and then click on the Carry on button at the bottom of the page.
  5. On the next page, select your device model from drop-down box.
  6. Next, enter your 8-digit serial number into Serial number box.
    └If you’ve a 7-digit serial number, add a zero (0) to end. If you’ve 6-digit serial number, add two zeros (00) to the end.
  7. Provide your Email ID in the EMail box. Bootloader unlock files will be sent to this E-mail ID.
  8. Tick/check-mark the the two conditions above submit button, and then hit the SUBMIT button.
    └ You’ll get a message on screen in chinese. It means, the unlock file has been sent to your E-mail ID.
  9. Open your email account, look for an e-mail from Lenovo and download the unlock_bootloader.img file from the mail.
  10. Put the unlock_bootloader.img file in a separate folder on your PC.
  11. Setup ADB and Fastboot on your PC. (can be found here as well: https://forum.xda-developers.com/showthread.php?t=2317790)
  12. Enable Developer Options, USB Debugging & OEM unlock on your device.
  13. Connect your Lenovo ZUK phone to the PC.
    └ If you get a prompt on phone’s screen to Allow USB debugging, tap OK.
  14. Open a command window inside the folder where you saved unlock_bootloader.img file in Step 10. To do this, open the folder and then “Shift + Right click” on any empty white-space inside the folder and select “Open command window here” from the context menu.
  15. Once command window is open, issue the following command to boot device into bootloader mode:
    adb reboot bootloader
  16. Once in bootloader mode, issue the following command to flash the unlock_bootloader.img file to the device:
    fastboot -i 0x2b4c flash unlock unlock_bootloader.img
    └ You will see a similar output on command window as shown in box below:

    target reported max download size of 1610612736 bytes
    sending 'unlock' (0 KB)...
    OKAY [ 0.037s]
    writing 'unlock'...
    OKAY [ 0.053s]
    finished. total time: 0.090s
  17. Once unlock_bootloader.img file is flashed successfully, issue the following command to finally unlock bootloader on your Lenovo ZUK phone:
    fastboot -i 0x2b4c oem unlock-go
    └ You’ll see the following output:

    ...
    OKAY [ 0.041s]
    finished. total time: 0.041s
  18. now flashing twrp. Download latest twrp version here: https://twrp.me/zuk/zukz2row.html
  19. Make sure the downloaded twrp version is located in adb directory as well. Rename it into twrp.img. Then in command prompt type:
    fastboot flash recovery twrp.img
  20. Reboot your phone to system using the following command:
    fastboot reboot

That's it. You unlocked bootloader and flashed twrp.

评论

此博客中的热门博文

Resolving errSecInternalComponent errors during code signing

原文链接 One code signing issue I commonly see, both here on DevForums and in my Day Job™ with DTS, is that the codesign command fails with errSecInternalComponent. This issue crops up in a wide variety of circumstances and the correct fix depends on the specific problem. This post is my attempt to clarify the potential causes of this error and help folks resolve it. If you have any questions or comments about this, please start a new thread, tagging it with Code Signing so that I see it. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com" Resolving errSecInternalComponent errors during code signing In some circumstances the codesign command might fail with the error errSecInternalComponent. For example: % codesign -s "Apple Development" "MyTrue" MyTrue: errSecInternalComponent This typically affects folks who are signing code in a nonstandard environm...

iOS:检测使用VPN或Proxy

参考链接: https://www.jianshu.com/p/c3b950dbf86a https://gist.github.com/PramodJoshi/4faad4c91f7dcb4eb9b06be8390c01db http://noodlecode.net/2018/04/check-if-ios-app-is-connected-to-vpn 第一种方法 需要导入框架CFNetwork 然后,这个方法是mrc的:需要添加-fno-objc-arc的flag 代码如下: + ( BOOL )getProxyStatus { NSDictionary *proxySettings = NSMakeCollectable ([( NSDictionary *) CFNetworkCopySystemProxySettings () autorelease]); NSArray *proxies = NSMakeCollectable ([( NSArray *) CFNetworkCopyProxiesForURL (( CFURLRef )[ NSURL URLWithString: @"http://www.google.com" ], ( CFDictionaryRef )proxySettings) autorelease]); NSDictionary *settings = [proxies objectAtIndex: 0 ]; NSLog ( @"host=%@" , [settings objectForKey:( NSString *)kCFProxyHostNameKey]); NSLog ( @"port=%@" , [settings objectForKey:( NSString *)kCFProxyPortNumberKey]); NSLog ( @"type=%@" , [settings objectForKey:( NSString *)kCFProxyTypeKey]); if ([[settings object...

去广告DNS设置,国内ADGuard DNS方案,手机电脑iOS去广告,保护隐私

 原文链接 之前分享过使用mac系统搭建adguard home,这几个月用下来零零散散基本上也被弃用了。主要原因是因为需要保持电脑一直开机。但是我的电脑是笔记本,存在移动各个地域的情况,也就是说只能够屏蔽电脑自身,对于手机而言不太现实。今天偶然发现dnspod推出了高级版的公共解析。dnspod背靠腾讯云,肯定是合法合规的公共解析服务,这个高级版用起来不错。 国内自己搭建解析服务是违法行为,所以这也是为什么使用dnspod的原因。 后台截图 开始使用 首先我们先进入dnspod的公共解析页面,点击开始使用。 专业版公共解析 dnspod会提供几种预设,我们选择「开发者」即可 开发者 然后你就成功的申请到自己个人使用的dns了! 更新拦截规则 我们可以将常见的广告过滤规则加入到dns中。我们在顶部选项卡中选择「拦截规则」。 拦截规则设置 打开adguard adguard 绑定iOS设备 推荐使用描述文件的方式,删除配置时删除描述文件即可。 描述文件 绑定macOS 推荐使用描述文件的方式,删除配置时删除描述文件即可。 描述文件 mac需要在「系统偏好设置」的「网络」中查看是否正在运行。 代理 如果没有运行需要点击「···」来启动服务。 启动服务 绑定路由器 找到自己路由器的DHCP设置,修改dns,然后记得绑定自己的ip。 修改dns 绑定ip 费用 目前有300万次/月的免费额度,但没有超出之后的价格。300万次一个人比较难用完,可以放心使用。 我个人使用iOS设备两台、智能家居、电脑两台,日均请求数大致2万/日。 判断是否搭建成功 可以通过查看日志的方式,日志大概有半小时到一小时的延迟,请耐心等待。