View Single Post
Old 01-03-2017, 07:55 PM   #17
filippo80x
Member
filippo80x began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2017
Device: Onyx Boox Max
Quote:
Originally Posted by DoctorWkt View Post
OK, I managed to get it to work. I now have a T68 with a PIN number on the sleep screen. On my Linux box I wrote a Makefile to make it easy to unpack and repack the boot.img file:

Code:
all: echo unpack pack

unpack:
        rm -rf fs
        abootimg -x boot.img
        mkdir fs
        (cd fs; zcat ../initrd.img | cpio -i)

repack:
        (cd fs; find . | cpio -o -H newc | gzip > ../newinitrd.img)
        abootimg --create newboot.img -f bootimg.cfg -k zImage -r newinitrd

clean:
        rm -rf bootimg.cfg fs initrd.img newboot.img newinitrd.img zImage
I do make unpack to extract the files from boot.img. I then edit fs/init.freescale.rc to comment out the line:

Code:
    # Disable KEYGUARD
    # setprop ro.ONYX_DISABLE_KEYGUARD 1
I then do a make repack to create the newboot.img file. Then I run fastboot flash boot newboot.img to prepare my PC to install the newboot.img file.

I plug my powered off T68 into a USB port on my PC. I hold down next page and the power button (and keep both held down). On my PC, I see:

Code:
< waiting for device >
sending 'boot' (3468 KB)... OKAY
writing 'boot'... OKAY
Then I let go of both buttons, then hold down only the power button for a long time to turn the T68 off. Finally, I can turn it on again as per usual.

So far, the lock screen seems a bit dodgy. For the first few reboots, the capacitive screen showed the PIN screen but it was unresponsive. Now there's a screen light issue. Sometimes when I put it to sleep, the screen light stays on, but not always.

I will try the PIN screen for a while and report back on any issues that I've seen. Thanks to all for your help. Warren
Did anyone tried this procedure on Onyx Boox Max? My screen lock doesn't work, so I guess this could fix it.

Thank you,
Filippo
filippo80x is offline   Reply With Quote