51

Lenovo Smart Clock (Bootloader/AVB unlock, F… | Connected Home

 4 years ago
source link: https://forum.xda-developers.com/connected-home/google-home/lenovo-smart-clock-bootloader-avb-t4130295
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Lenovo Smart Clock (Bootloader/AVB unlock, Firmware, Region Changer, Kernel Source)

  • If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.

  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

Lenovo Smart Clock (Bootloader/AVB unlock, Firmware, Region Changer, Kernel Source)

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011 2,220 7,751 Saint Paul, Minnesota
How to Bootloader Unlock (Part 1 of 2):
1. You will need a USB A to USB A cable (Example here)
2. You will need fastboot drivers on your PC
3. Unplug your clock
4. Plug the USB A to A cable into your computer and clock
5. Hold the volume + button and plug in the power cord
6. Keep holding volume + for about 20-30 seconds (It is slow to boot to fastboot)
7. On your computer in a terminal run, fastboot flashing unlock
Part 1 of unlocking is now done

AVB/DM-Verity Unlock (Part 2 of 2)
Unlocking the bootloader really does not give a lot to us because all the partitions are still being verified and the device will not boot if they don't match. Normally doing this on an Android Things device is not possible due to their Private key unlock system. But due to a leak, the private key for the Lenovo Smart Clock is available. Word of warning doing this causes the stock android things not to boot only the factory firmware located on Slot A will boot. Consistently if you don't AVB unlock the factory firmware on Slot A doesn't boot If you have already set up your device once the factory firmware is deleted and currently there is not a way to get it back (Hopefully will change soon).

If you are coming from part 1 you can start right away, if not you need to reboot to fastboot again.
1. Extract the downloaded AVB Unlock zip
2. Run this command in terminal
Code:
at_auth_unlock.exe cube_unlock_credentials_v2.zip
3. Wait till it finishes
4. Keep in mind the stock system does not boot properly with AVB off (It is weird some UI elements work but the boot animation never goes away)
5. To relock AVB in the future run the following command:
Code:
fastboot oem at-lock-vboot!
Locale changer instructions:
Coming soon (Need to figure it out)

Downloads:
Stock Shipping fastboot firmware:
Here

AVB Unlock tool:
Here

Factory partition changer (Locale changer):
Here

Google released kernel source:
https://github.com/deadman96385/android_kernel_lenovo_mt8167s

Dump of stock partitions for easy viewing:
https://github.com/deadman96385/things_mt8167s_som_dump

Credit to @deletescape for the leak of the AVB Unlock Key, Stock firmware, region changer
Last edited: Jul 8, 2020

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011 2,220 7,751 Saint Paul, Minnesota
Screenshots of the stock android things on Slot A if you don't setup the device :

TWRP (Coming Soon)
Last edited: Jul 8, 2020
Excited to see what you manage to do with this!
Reactions: deadman96385

nightfireblaze8

New member
Jul 27, 2013
This is great! I have one of these and it felt way too restrictive, looking forward to seeing what comes out of this.

KaptinBoxxi

New member
Dec 15, 2013
You can also unlock the boot loader simply with what's below... device does boot with this btw
fastboot flashing unlock

Although I've been messing with the device quite a bit. Plug in a usb keyboard, and you can get a web browser to recognize it and go to websites and such using the touch screen as a cursor, but you can't download APK files and install them and such. I've NEVER had the device recognized by ADB, so I can't pass commands from there either.

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011 2,220 7,751 Saint Paul, Minnesota
You can also unlock the boot loader simply with what's below... device does boot with this btw
fastboot flashing unlock

Although I've been messing with the device quite a bit. Plug in a usb keyboard, and you can get a web browser to recognize it and go to websites and such using the touch screen as a cursor, but you can't download APK files and install them and such. I've NEVER had the device recognized by ADB, so I can't pass commands from there either.
Just doing step one does not actually get you anything because if you flash something that isn't stock on the verified partitions it will not boot until you flash back the stock one. I have gotten adb to show up but not properly so it is offline. Still hacking away at it trying to get it to go so i can more easily debug TWRP and make edits to the system.

KaptinBoxxi

New member
Dec 15, 2013
Just doing step one does not actually get you anything because if you flash something that isn't stock on the verified partitions it will not boot until you flash back the stock one. I have gotten adb to show up but not properly so it is offline. Still hacking away at it trying to get it to go so i can more easily debug TWRP and make edits to the system.
Ahhhhh got it. I couldn't find anything when I was messing with it like you've found with those commands. I'm kinda new to all this myself at something with nearly zero support, although I have a ton of experience with phones. Had to find my own exploit with my HTC One M7 because the version of android on the phone was the final supported update when I got it, and everyone said "nothing is possible with this android version" as far as rooting... so I figured out my own way lol

I'll continue trying myself though for sure

CiriousJoker

New member
Nov 30, 2016
I also own one of these clocks, so if anyone has anything that I could test out, please share!

Honami754

New member
Apr 18, 2016
I think I'm bit late to party. Anyone who has a backup for those lenovo products, maybe it's a good idea to torrent them.

CiriousJoker

New member
Nov 30, 2016
I think I'm bit late to party. Anyone who has a backup for those lenovo products, maybe it's a good idea to torrent them.
I don't have the time to test this stuff out for at least a few weeks, but if when I get to it, I'll try to upload my Backups somewhere before I tinker with the system. I'll update this comment when I do.

Honami754

New member
Apr 18, 2016
[/COLOR]
I don't have the time to test this stuff out for at least a few weeks, but if when I get to it, I'll try to upload my Backups somewhere before I tinker with the system. I'll update this comment when I do.
That's not really what I mean... I was referring to some interesting documents from lenovo. Have a few of those hardware but unfortunately didn't grab those files. Anyone also interested in these can PM me maybe we can do something about it.
Last edited: Jul 29, 2020

Monkeypoco

New member
Jul 11, 2019

dgcruzing

New member
Nov 21, 2010 1,173 Mermaid Beach QLD
Interesting as there has a been a few of these turn up to auction of late .

I have gone with the 10' for main room and 8' for bedroom.. love them..

Got the oldies the little 7'

Great for streaming too..

xpclient

New member
Jan 24, 2013
The one I wish it did was announce the time by voice when the internet was down and we said "Hey Google". I am blind without my glasses and often when I am in bed, the internet is down in my area for maintenance period. The clock becomes useless when the internet goes down.

ma22xx

New member
Nov 4, 2020
How are people getting the web browser to appear? I'm able to unlock the bootloader but can not boot with the AVB unlocked (well...technically it boots but still shows the spinning circle even though it will let you go to settings). I tried flashing the stock fastboot img and booting with avb unlocked and still get spinning circle. Not trying to get too fancy with this...just want to be able to point to a status page that I can leave it on.

hugo987

New member
Dec 5, 2019
Does anyone try to build a new firmware image and install this instead of stock?

Maybe compiling Android Things from source is possible, but looks like Google has stopped the development. The Lenovo Smart Frame seems to have the same MT8167S and runs on Android 10. Maybe it's possible to compile a LineageOS version?
lenovo.com/us/en/coming-soon/Lenovo-CD-3L501/p/ZZISZSDCD04

Another option might be fuchsia that contains a mt8167s board ref.
fuchsia.googlesource.com/fuchsia/+/master/boards/mt8167s_ref.gni

Googles Coral announced a Dev Board Mini based on MT8167s, maybe they port the Debian-based Mendel Linux to it.
coral.ai/products/dev-board-mini

Honami754

New member
Apr 18, 2016
Does anyone try to build a new firmware image and install this instead of stock?

Maybe compiling Android Things from source is possible, but looks like Google has stopped the development. The Lenovo Smart Frame seems to have the same MT8167S and runs on Android 10. Maybe it's possible to compile a LineageOS version?
lenovo.com/us/en/coming-soon/Lenovo-CD-3L501/p/ZZISZSDCD04

Another option might be fuchsia that contains a mt8167s board ref.
fuchsia.googlesource.com/fuchsia/+/master/boards/mt8167s_ref.gni

Googles Coral announced a Dev Board Mini based on MT8167s, maybe they port the Debian-based Mendel Linux to it.
coral.ai/products/dev-board-mini
I suppose the smart frame is running android things as well. Compiling android things does make much sense except to prove the drivers are sort of working, this is not designed to let users have fun (ie installing apps).

Google *really* loves mt8167s for some reason. I'd say there's a good chance of we having full android on it but everyone's busy.

ElBoonoS

New member
Apr 17, 2011
They are throwing these things at our head now. 35/40 USD during black fridays.
I don't think you can order the components for that price

Anybody still working on it ? Lenovo claims it's still working on the sound bug - hxxps :// forums.lenovo.com/t5/Lenovo-Smart-Display-Lenovo-Smart-Clock-with-Google-Assistant/Smart-clock-alarm-volume-too-loud-at-first/m-p/5040962?page=4 (latest reply 2020-13-11 from Lenovo) and they did some unanounced pretty good updates in september 2020 - hxxps :// 9to5google.com/2020/09/21/lenovo-smart-clock-night-light/

They also claim the source is on their website hxxps :// smartsupport.lenovo.com/us/en/products/smart/smart-home/smart-clock/za4r/downloads/ds539701
So is this dead ?

jasonzhang1987

New member
Dec 7, 2020
How to Bootloader Unlock (Part 1 of 2):
1. You will need a USB A to USB A cable (Example here)
2. You will need fastboot drivers on your PC
3. Unplug your clock
4. Plug the USB A to A cable into your computer and clock
5. Hold the volume + button and plug in the power cord
6. Keep holding volume + for about 20-30 seconds (It is slow to boot to fastboot)
7. On your computer in a terminal run, fastboot flashing unlock
Part 1 of unlocking is now done

AVB/DM-Verity Unlock (Part 2 of 2)
Unlocking the bootloader really does not give a lot to us because all the partitions are still being verified and the device will not boot if they don't match. Normally doing this on an Android Things device is not possible due to their Private key unlock system. But due to a leak, the private key for the Lenovo Smart Clock is available. Word of warning doing this causes the stock android things not to boot only the factory firmware located on Slot A will boot. Consistently if you don't AVB unlock the factory firmware on Slot A doesn't boot If you have already set up your device once the factory firmware is deleted and currently there is not a way to get it back (Hopefully will change soon).

If you are coming from part 1 you can start right away, if not you need to reboot to fastboot again.
1. Extract the downloaded AVB Unlock zip
2. Run this command in terminal
Code:
at_auth_unlock.exe cube_unlock_credentials_v2.zip
3. Wait till it finishes
4. Keep in mind the stock system does not boot properly with AVB off (It is weird some UI elements work but the boot animation never goes away)
5. To relock AVB in the future run the following command:
Code:
fastboot oem at-lock-vboot!
Locale changer instructions:
Coming soon (Need to figure it out)

Downloads:
Stock Shipping fastboot firmware:
Here

AVB Unlock tool:
Here

Factory partition changer (Locale changer):
Here

Google released kernel source:
https://github.com/deadman96385/android_kernel_lenovo_mt8167s

Dump of stock partitions for easy viewing:
https://github.com/deadman96385/things_mt8167s_som_dump

Credit to @deletescape for the leak of the AVB Unlock Key, Stock firmware, region changer
how about smart display ,the same way?

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011 2,220 7,751 Saint Paul, Minnesota
how about smart display ,the same way?
We do not have the AVB unlock files for the smart displays sadly.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK