yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet General] :
i guess you can stay nice and easy on your stock rom and have no (extra) worries (nor root or the other stuff ofc) when you need to update using an OTA package

however, if you want extra stuff (read root or new system apps, un-encrypted 'data', permanent twrp etc) on your device, this means the you will have to tamper with your device resulting in modified content on your partitions, for eg:

- rooting (add to this maybe titanium or other 'root required'system apps) will modify your 'system' partition

- patching encryption from forced to optional (un-forced) modifies your 'boot' partition

- flashing twrp as permanent will ofc result in a different 'recovery' partition

now, the first step in a OTA update is to check (SHA1 sum) the files/partitions that are to be updated and ofc that if you do not restore them from your previously made twrp backup, the check will fail and the update will abort (or worse in some situations). i am assuming i was clear enough above and that you understand that a OTA update is applied by patching existing (stock) files/partition

if you see any better solution than the (really? is that hard?) 'restore stock->apply OTA->backup stock->tamper/root/modify and use' cycle, do share it with the others, i don't have the device so it's the same for me, but i would be interested in:

1. how do you think such a 'flashable OTA' (i will assume that you mean by that a stock rom resulted after appling the OTA) should be obtained? what steps etc, give me some details so i can understand better (normally i would do that by dumping the needed partitions making a rom out of that)

2. even if you had a 'flashable OTA' you would still have to flash it no? (using fastboot flash for eg) and after that you would need to tamper(root/patch etc) the device again no? so what would be the gain?

so, considering 1 & 2, how is that more easier than the existing one?
[Thinkpad Tablet General] walther1337:
1. The OTA can be copied from the download folder(it''s a zip just like any rom) so anyone with the device can provide it. It would/should just be a matter of modifying the update script to work with TWRP.

2. The zip should be flashable in TWRP. This would require fewer steps and less time to update to the newest OTA. The unencrypted flag and supersu could be added to the ota to preserve the two if the ota removed them.
[Thinkpad Tablet General] :
1. no, the OTA is not a zip like any rom (ever opened one?) it doesn't have 'flash-able' images of your partitions (if it had each OTA would be in the 1GB size area for this device), instead it is (and i over-simplify) a script and a series of diff patches to be applied to the existing files/partitions. in simple terms an ota will

- check that the files/partitions that are going to be updated (patched) match the expected check-sums (because if they don't, applying a patch to a different content will result in garbage)

- update (patch) the files/partitions

2. again, while one can build his own flash-able rom, he would need to:

- dump the required partitions after he applied the OTA update (and the OTA needs to be applied to stock content or it will fail the checks, or if, as you suggest, 'force' the update, it will produce garbage)

- make the rom, in whatever 'flavour' it wishes, normal rom, or twrp flashable (if so wishes he can 'insert' whatever root/patches he wants inside)

- flash it

you start with wrong assumptions so whatever you conclude is equally wrong

don't take this the wrong way but it seems to me you don't understand how this (OTA update) really works, maybe try and do some research first
[Thinkpad Tablet General] joesnose:
Thanks for rhe clear instructions ionioni.nice
[Thinkpad Tablet General] mletchworth:
Where is the Ota update file stored?
[Thinkpad Tablet General] Shug69:
Ext SD/lenovoota
[Thinkpad Tablet General] mletchworth:
Thanks, I didn't even think to look on the external SD card. Just finished installing the latest OTA, then decrypting the data partition. I'm restoring all my apps with Titanium backup right now. I can already tell a HUGE difference after turning off the encryption. It's finally starting to run how it should have from the factory.
[Thinkpad Tablet General] tocatalk:
Hey there,

BIG thanks to ionioni & joesnose for all the effort!

I tried to root my X90F today, without success thou.

I did everything step by step - unlocked OEM in settings, the same over fastboot, then loaded TWRP, made backup of everything, installed superSU, restarted... after restart Yoga is stuck in a bootloop (won't start at all costs). Tried it both - with OEM unlocked & locked (after installation). Got the error 03 as well as the others, ignored it..

When I restore the backup, everything goes back to normal.

Don't have any clue what's the reason..

***Update***

Decryption script works fine.

After dozen attempts to install SuperSU I give up..

***Update 2***

Love how speed increased after decryption script.. :good:
[Thinkpad Tablet General] :
since you can apply the disable_encr script and boot to Android after this means there's some issue with the way you root. try the SuperSU 2.46 version that one worked for sure, dunno about the new one. also, check that the Encryption is really disabled, go to Settings -> Security and check what he says under the Encryption entry

Error codes:

1 hangs booting process, shows when your boot image is corrupted or when you are using a modified/patched image and your device is not unlocked (this is why you need to stay unlocked once you patch the boot image using the disable encryption)

2 recovery corrupted

3 is normal when the device is in unlocked state, it's just a warning so you can skip it (will show on each boot while unlocked), i can patch the bootloader to skip these warnings but i think is best to have them (in the end the code 3 error is helpful for getting easier access to fastboot and also after you take an ota since it hangs the booting allowing you to boot in twrp and re-patch encryption so you can keep 'data' unencrypted)

4 secure boot disabled, also a warning and allows you to continue boot sequence (should not show since these devices have SB enabled by default)
[Thinkpad Tablet General] tocatalk:
Seems to be not encrypted.

Going to try to flash SuperSu 2.64 in a bit, will update status shortly.
[Thinkpad Tablet General] :
yeah, it would show 'Encrypted' below if it were

well, since you can (as it should) boot while unlocked and having a modified(patched) boot image, rooting should work

not SuperSu 2.64 but SuperSu 2.46
[Thinkpad Tablet General] tocatalk:
Sorry, my bad, 2.46 :)

Btw., strange things are happening with OEM lock/unlock, for example in the settings menu - before flashing unlock button went off every restart, now it keeps switching itself on and off unpredictability every restart. Also when I was stuck on the boot, I could lock/unlock OEM via fastboot without any problems.

Also after the first root attempt it took 3 restarts in a row to get to lenovo's bootloop (pressing the volume up button), after second attempt and onwards only one restart. If you catch my drift.
[Thinkpad Tablet General] :
that checkbox controls a byte (the last byte of the 'persistent' partition) for the 'fastboot oem unlock' command. when you check the 'Allow OEM unlock' box all it does is to set that byte (normally zero = false) to the 1 value (true = allow unlocking). the real unlocking occurs when in fastboot mode when you input 'fastboot oem unlock' and then the efi fastboot application that runs on your tab checks that byte, if it's 0 it will give you that error message regarding unlocking not permitted (som like that) if it is 1 (true) will do the following:

- sets a UEFI (BIOS) variable to the unlocked value (on each fastboot command that requires the device to be unlocked the tab will check this variable and proceed or error accordingly)

- clears the 'Allow OEM unlock' flag byte (so when you boot and go in the Dev Options is normal to have an unchecked box there)

- erases 'data'
[Thinkpad Tablet General] tocatalk:
Well, SuperSU 2.46 has fulfilled your expectations. Installation went smooth like on butter.

And once again the day is saved by the pow.. I mean ionioni! :victory:

Thanks a lot mate, I owe you a beer!
[Thinkpad Tablet General] :
the latest Super-SU zip (flashable) installer also has the 'systemless mode' as a way to install, could be that this causes some issues

however, since the latest app version on playstore is 2.46 and since the matching zip installer works, while the most recent ones don't, we should stick to that for now (once installed it will allow ofc to upgrade to newer versions/binaries from within the running SuperSU app interface). again i am talking about the installer (recovery flashable zip) version, once installed one can update to the most recent versions (if available) of both the app and/or binaries
[Thinkpad Tablet General] DarkWader:
Hello.

I am trying to do this command fastboot oem unlock, and i get this error:

...

FAILED (remote: unknown command)

finished. total time: 0.015s

Any ideas why? Tablet responds from fastboot devices:

YOGA3-F1C89B67 fastboot

I followed the guide and ticked unlock in developer settings..
[Thinkpad Tablet General] :
unlikely (as in impossible). make sure that you are indeed in fastboot mode, not DNX one.
[Thinkpad Tablet General] DarkWader:
I was in DNX mode.. :D

But new problem, perhaps..

Booted into twrp and flashed superSU and x90 zips.

Did fastboot format data, and rebooted.

Got Bootloader3 error, but it tries to boot android if i press volume up.

But the tablet hangs at orange Lenovo logo forever, how long should this take?
[Thinkpad Tablet General] :
can take a few minutes until he populates the empty 'data' partition on the first boot after a 'format data', should not be too much tho.

what SuperSU zip you flashed? use the 2.46 version from the OP since the latest ones seems to cause some issues (already reported by another owner). if you try another SUperSU you need to first restore from your backup.
[Thinkpad Tablet General] DarkWader:
Well I flashed the one i downloaded from the OP earlier today, then it was 2.65..

Tryed to fastboot into the file provided in post here:

http://xdaforums.com/showpost.php?p=64510538&postcount=97

Atleast the logo is flashing red/orange now.. Will leave it for the night and check up on it tomorrow.
[Thinkpad Tablet General] :
no, you need to:

1. go and restore from the backup

2. install supersu2.46 (you can find the link in the OP) and reapply the disable encryption script

3. fastboot format data

should work, don't leave it for the night as it is useless
[Thinkpad Tablet General] joesnose:
First boot takes forever!!
[Thinkpad Tablet General] :
yes, but there was also a guy some posts ago that had issues using a recent Update-SuperSU (like he did) so they all should stick to the 2.46 one
[Thinkpad Tablet General] joesnose:
I concur, I think I did try that myself once and same result! I probably should have shared. Lol
[Thinkpad Tablet General] DarkWader:
Worked almost fine :) Tablet booted after two mins!

But, Is the Bootloader error 3 always going to show on reboot?

Or should I Perhaps restore the boot.img backup manually?

I dont know if it got restored in the initial restore..
[Thinkpad Tablet General] joesnose:
error 3 will stay.
[Thinkpad Tablet General] DarkWader:
Ok, fine i can live with that :) Tnx for all the help.
[Thinkpad Tablet General] joesnose:
new thread with needed files can be found here.

http://xdaforums.com/thinkpad-table...structions-t3319666/post65442318#post65442318
[Thinkpad Tablet General] misteurz:
hi again.

i've installed Android SDK, and i'm still stichked on "waiting for device".

I've installed "ADB, Fastboot and Drivers - 15 seconds ADB Installer v1.4.3" and same result...

could you help me pleasE?
[Thinkpad Tablet General] :
uninstall every thing related to adb/fastboot drivers etc reboot and install both files from here (Intel Phone Flash Tool and Intel Android Driver accepting whatever it prompts and using defaults, installing those will install also a system wide accesible fastboot and adb) reboot and try again
[Thinkpad Tablet General] misteurz:
thanks, i'll test in a few minutes.

before your answer, i've tested on my macbooker, after having installed adb&fastboot drivers.

"Enable OEM Unlock" worked well, but after that i have an error 03. 2 choices : down = reboot (error 3 again) / up = fastboot mode.

I have relocked the device and i'm waiting for the long reboot process...
[Thinkpad Tablet General] :
1. Enable OEM unlock allows you to

2. issue the fastboot oem unlock in order to unlock your tab so you can

3. fastboot boot twrp.img and

4. install from the recovery SuperSU.zip that will root your device

you mean that right after you checked "Enable OEM Unlock" you no longer are able to boot? have you issued the fastboot oem unlock command?
[Thinkpad Tablet General] misteurz:
so, ive done it again, as you said :

1. Enable OEM unlock OK

2.fastboot oem unlock ok

3. fastboot boot twrp.img OK

4. install from the recovery SuperSU.zip ok

when i reboot system, i have an error:

BOOTLOADER ERROR CODE 03

START

PRESS VOLUME UP KEY

FASTBOOT

PRESS VOLUME DOWN KEY

if i press "up", i starts to reboot and go back to error 03

what can i do do?

edit : on the fastboot menu, it's written:

secure boot enable

lock state unlocked
[Thinkpad Tablet General] :
and if you press down? what SuperSU you installed? [MENTION=4696121]Shug69[/MENTION] or [MENTION=2195656]joesnose[/MENTION] maybe can give more info as i don;t know what's written there

they rooted and stuff
[Thinkpad Tablet General] misteurz:
fastboot mode
[Thinkpad Tablet General] :
can you still boot in TWRP? from fastboot mode?

before was that same message?

were you rooted then too?

the fact that you root or not has nothing to do with the bootloader

seems that when you unlock you are no longer able to boot

after you lock back when you go in Android and select "Allow OEM unlock" is it forcing you to unlock or lock back when you reboot or that options survives between reboots while locked?
[Thinkpad Tablet General] misteurz:
it was the same message than before

i can boot in twrp

i dont know if i am root, because i've just applied your method and havent boot normally yet
[Thinkpad Tablet General] :
if you installed SuperSU then you have root for sure

there's something wrong on your bootloader, has nothing to do with twrp or root. the problem appeared when you issued the fastboot oem unlock and it should not have

when unlocked it warns indeed but leaves you to boot, nothing to do with TWRP or SuperSU as it appeared right when you issued the unlock command
[Thinkpad Tablet General] misteurz:
maybe because of my mac?
[Thinkpad Tablet General] :
Try locking back

and check if you have root

check also if the "Alow OEM unlock survives" on reboot
[Thinkpad Tablet General] misteurz:
ok, it seems to start as it has to.

i have to wait a few minutes before to tell you

thank mister ionioni
[Thinkpad Tablet General] :
the root is installed on the 'system' partition so it survives a factory reset (that one erases the 'data' partition)

i don't know what to advise as i have to check on some stuff to see what could give that error code, maybe you will have to dump your bootloader and send it to me so i can check, will see

meanwhile don't do stupid stuff

AND check this (i don;t know how it behaves) AFTER you check "Allow OEM unlock":

1. it forces you to unlock or lock back when you reboot or just reboots normally (and you are still locked)?

2. is that option still checked after you reboot? (ie does it survive as checked)
[Thinkpad Tablet General] misteurz:
so, i'm still rooted

after i check "allow oem unlock, nothing is done.

if i reboot manually, my tablet is 100% available, and "allow oem unlock" is still unlocked".

earlier, before to post for the first time, when i was stucked on "waiting for device", i've seen something you should know.

everytime i went on fastboot mode, that i entered "fastboot unlock..." , that didnt work (you already know it), and when i rebooted, "allow oem unlock" was unchecked.
[Thinkpad Tablet General] :
something is wrong on your tab as it should let you boot (with a warning) when unlocked.

normally you should be unlocked when using root or playing with similar stuff so that we can boot or flash if you brick. something is not right on your tab... need to check. meanwhile don't brick!
[Thinkpad Tablet General] misteurz:
ok, i'll be carefull ;)

---------- Post added at 16:58 ---------- Previous post was at 16:24 ----------

@ionioni, what to do if my tablet wants to update?

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
have you read the twrp and rooting post?

in order to take an update (safely) you must start (in unlocked mode) twrp recovery and restore from the backup your 'system'... you did made a backup on your first twrp start BEFORE installing anything didn't you? if you have not then ask nicely [MENTION=2195656]joesnose[/MENTION] for his as he made it when we did the twrp testing last days (you should be on the same ota as his but i guess you are if you are updated to this day, last update is from 05.12.2015)
[Thinkpad Tablet General] misteurz:
I've done the backup on twrp :)

So I have to unlock one more time the bootloader, boot on twrp, restore, relock, boot, install OTA, unlock, boot on twrp, backup, relock.

Fun moments to live ?

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
well... if your bootloader would not behave strangely you could stay unlocked and that's it ( [MENTION=4696121]Shug69[/MENTION] and [MENTION=2195656]joesnose[/MENTION] both have root and are unlocked and don't have this problem)
[Thinkpad Tablet General] misteurz:
Strange things...

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
forgot to ask... would help me to figure out faster... have you did something on your tab before? tried rooting? experimented stuff? what?.
[Thinkpad Tablet General] misteurz:
The only thing I've tested, is to try kingroot

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
and what happened? try to remember exactly... did you unlocked at that time?
[Thinkpad Tablet General] misteurz:
Never. I never tried anything about unlocking, about typing adb or fastboot.

Kingroot said "No strategy to root" after trying to do... I don't know what.

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
send me your bootloader partition

open an adb shell, then input these commands

su

dd if=/dev/block/by-name/android_bootloader of=/sdcard/bootloader

exit

exit

and from the windows command prompt

adb pull /sdcard/bootloader

and zip the bootloader file and upload someplace (is 100MB uncompressed but zipped is around 12MB)

be careful with the commands if something is not working EXACTLY the way i wrote them do not experiment, just tell me what error gives you
[Thinkpad Tablet General] misteurz:
I'll be at home in a few hours. Thanks very much for your help

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
be careful with the commands, if wrongly given they can brick your tab
[Thinkpad Tablet General] misteurz:
I think I will tremble

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
maybe i should not have warn anyone and leave it as a surprise
[Thinkpad Tablet General] misteurz:
Lol. In fact I think I will not have any problem on the future. I've rebooted 2 or 3 times. And the "allow oem unlock" is still checked.

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
useless
[Thinkpad Tablet General] misteurz:
I answered to the question earlier ?

Happy to read the good news of your last message. I will do the test on the evening

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
try to be more convincing when answering, use bold for eg (and earlier is just now)

oh, this

should have been

see ? the right word and a bold can make a big difference

that aside, i have only the information you (or the other owners) are giving to me, so if it's readable and accurate then i can too give you (hopefully) good solutions, what could be obvious for you (as in 'i am watching at my tab screen') is not that obvious for me and in this way of working solutions (me not having the device) there's no such thing as 'too many details'
[Thinkpad Tablet General] joesnose:
I too had tried kingroot on my tab that stuck in boot loop. I tried kingroot both locked and unlocked.
[Thinkpad Tablet General] :
skype not working? leaved you a message
[Thinkpad Tablet General] misteurz:
So after a few reboots, "allow oem unlock" is unchecked... Tomorrow i'll test the adb thing to send you the bootloader file.

I do that checking "usb debogging"? And with the tablet booted on android ?

Envoyé de mon Lenovo YT3-X90F en utilisant Tapatalk
[Thinkpad Tablet General] rupelke:
a little bit stuck

hey guys

ehm I have a little problem i guess...

I can't boot into android anymore, my tab is still unlocked but I can't boot.

I keep getting that bootloader 03 error and I forgot to make a back up before doing stuff...

Can someone help me pls ?

I think I need a bootable android img

+ i don't think i can do a factory reset or else i will be bricked right?

p.s. now i am booting into some kind of a bios menu... --> just fixed this back to the error 03 problem
[Thinkpad Tablet General] misteurz:
Hi man,

I had the same problem yesterday.

The solution is to relock your bootloader.

So, on the error 03 screen, press the volume down button. You are now on the fastboot mode.

Type

Fastboot oem lock

And your tablet will reboot perfectly ?

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
[MENTION=4696121]Shug69[/MENTION] and [MENTION=2195656]joesnose[/MENTION]

can you guys confirm this above stuff?

after the unlock were you NOT able to boot to normal android? and had to lock back?

it's the second case ...
[Thinkpad Tablet General] :
yes, you need to be in normal android mode and have 'usb debugging' in order to be able to shell in your tab using adb
[Thinkpad Tablet General] misteurz:
To be sure, to enter adb shell, i have to type

Adb shell

Right ?

Envoyé de mon Lenovo YT3-X90F en utilisant Tapatalk
[Thinkpad Tablet General] :
maybe we should stall this adb stuff... it is done with root access

and atm there's a second case of this 'error code 3' after issuing the 'oem unlock' command so this cannot be (as i thought) specific to your case

i am now working on finishing the 'stock rom' so that we have a way back to life from a bricked tab and meanwhile others can say about their experience on the tab (for eg about that 'Allow OEM unlock' flag, is he staying checked once you checked him between reboots? and this info should be given from both locked/unlocked owners)
[Thinkpad Tablet General] Shug69:
I had no problem booting to android. Got the bootloader error screen but that's normal after unlock. Volume up took me to android. Only thing I can think of that was different was I didn't do it all at once I.e. I rebooted after unlock command.

The 'allow OEM unlock' does indeed reset to off after reboot
[Thinkpad Tablet General] joesnose:
No my tablet boots fine in unlocked state.
[Thinkpad Tablet General] :
the thing is that, as strange as it sound, the safest way of running once you have root (ie chances for bricking are increased tenfold due to the new power of the user) is in the unlocked mode, so that if something bad happens (and it will on some for sure) and the user can no longer boot to Android can still flash the stock rom

ps. not to say that an 'innocent' (not rooted) user cannot have problems and brick due to bad software (and we know lenovo) so this applies to them too
[Thinkpad Tablet General] misteurz:
"Allow oem unlock " unchecks itself after 2 reboots I think.

Maybe we have to manually recheck it after each reboot. Just in case...

Envoyé de mon LG-H815 en utilisant Tapatalk
[Thinkpad Tablet General] :
from what [MENTION=4696121]Shug69[/MENTION] says...

after you issued the 'oem unlock' command have you tried to reboot or just tried to boot from there? this is the only difference i see... (that he rebooted)