yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] kykint:
Hi, I'm a Galaxy S7 user and I've been trying to make sparse system.img from firmware tar file into a twrp-flashable zip file but I'm not sure which is the best way.

All operations are performed on latest linux mint and I'm not going to use any kitchen. All binaries used to convert images are compiled from latest AOSP sources.

Here are some of the methods I've tried.

a) Extract everything from system.img and set metadata infos in updater-script, just like any other "rom"s. (e.g. SuperMan Rom)

Probably one of the simplest ways, and system files inside the zip can be modified easily - extract, edit, recompress.

But this method has a potential of destroying unique permissions/owner infos, such as those of symlinks.

I'd like to flash the system.img "as-is," without making a mess with whatever's inside the image.

b) Extract raw system.img directly to /dev/block/platform/155a0000.ufs/by-name/SYSTEM.

Not so bad. Raw system.img can be easily generated with simg2img. But turns out to take too much time to flash and doesn't get along well with DualBoot patcher.

c) Sparse dat, like the ones used in most AOSP-based roms

Probably the most ideal one. But when I took the following steps to make it, I found out that system partition size gets kinda damaged or something.

- Convert system.img to raw system.img with simg2img.

- Convert the raw system.img to sparse image again with ext2simg, to make img2sdat.py work properly.

- Convert the sparse image to sparse dat with xpirt's img2sdat.py.

- Finally, convert the generated sparse dat to raw system image with sdat2img.py to check if partition size matches.

Then I get the following results.

- Size of original raw system.img : 4404019200

- Size of raw system.img generated in last step : about ~100MB smaller

I know I can loop mount system.img and then make a new sparse image with make_ext4fs,

but it also breaks some permissions and make_ext4fs won't recognize file_contexts.bin from nougat firmware whereas it worked well with marshmallow's.

If anyone's got a better method or a solution for method c please leave a reply. Thanks in advance.
[General Questions and Answers] Droidriven:
What you're doing is quite complicated if you don't use kitchen. Simplify it for yourself and use kitchen.
[General Questions and Answers] kykint:
I know that kitchens can do that for me, but they also don't flash system.img as-is.

Maybe I should just take a more look into the sparse dat method and see what breaks the partition size.
[HTC Bolt / 10 Evo Questions & Answers] kallas1505:
HI. Help needed.

I lost my sd card with orginal HTC 10 evo TWRP backup.

european version needed.

Plz help
[LineageOS Questions & Answers] Chollu:
My Moto g4 plus was already in Android Noughat official updgrade from Moto. I did a clean install to LineageOS-20170206 nightly. Dawn of Titans game was crashing when I tried to open the game. Google Clock and camera was also not working. I installed ElementalX kernel after that. The problem still exists. Also the battery drain 100 to 70 in 30 minutes without any load. What should I do next?
[HTC 10 Guides, News, & Discussion] karizmatik321:
I would be glad if someone custom roms for the htc 10 evo finished would make
[Ubuntu Touch Development and Hacking] BenNy tHa:
can i ever expect ubuntu on my lenovo a6000.
[Lenovo Yoga Book Questions & Answers] booneb50:
Where I can I download the stock ROM for this model of Yoga Book? I hosed up my machine trying to root. I can boot into recovery mode, hopefully I can flash a new ROM to recover.

Thanks,,,
[Lenovo Yoga Book Questions & Answers] yoga-user:
This could help ...

Edit: 2017/02/21: Link has expired :(

You can try this one: http://s55.filefactory.com/get/f/osm8z9hwyrz/1844e07b49cb41c8/YB1-X90L_USR_S000155_1609272258_WW06_BP_ROW-flashfiles.zip

It is for YB1-X90L, however, I had success with my X90F. Download just lasts 10 hours if you don' t want to subscribe ;)
[Lenovo Yoga Book Questions & Answers] zamzenos:
Be aware that you'll lose use of the touchpad/halo kb if you flash this stock. Can't find any way of resolving this problem.
[Lenovo Yoga Book Questions & Answers] yoga-user:
No - I' ve full access to all features!

Halo keybord has all functions and can be used without any restrictions. There' s nothing in stuck :) Only rooting with supersu isn' t possible and the machine is now identified as YB1-X90L and has some additional functions like symbol in toolbar for missing smartcard etc.

From stock-rom I flashed boot.img, bootloader, factory.img, recovery.img and system.img and first of all there where two updates ...
[Lenovo Yoga Book Questions & Answers] zamzenos:
I reflashed the stock ROM (using Intel PhoneFlash Tool), then allowed the two updates. Still no sketchpad/halo function at all. Do I understand from your last paragraph that you then flashed those imgs after the two updates?
[Lenovo Yoga Book Questions & Answers] yoga-user:
Hi,

I used regular adb / fastboot. As my Yoga was totally stucked I flashed all the images and then installed the updates. Now it' s build LenovoYB1-X90L_S000241_161209, Kernel-Version 3.14.55-x86_64-ga6a34be.

Last of all I locked Bootloader and restored all my Apps.

Good luck!
[Lenovo Yoga Book Questions & Answers] booneb50:
My only options to flash any of the img files is through adb sideload or placing them on the sdcard and installing via recovery. Every attempt fails with an E:footer is wrong; E:signature verification failed message. I can't find any way around the errors.
[Lenovo Yoga Book Questions & Answers] zamzenos:
Have you tried the Intel PhoneFlash Tool? So far I've managed to flash the Stock twice, but with the pad/halo problem I described above.
[Lenovo Yoga Book Questions & Answers] yoga-user:
Hi,

with this procedure I could restore my bricked device:

- like described at this thread: https://xdaforums.com/showthread.php?t=2588979, I downloaded and installed universal adb / fastboot and fixed fastboot drivers

- then unzipped YB1-X90L_USR_S000155_1609272258_WW06_BP_ROW-flashfiles.zip and copied boot.img, bootloader, factory.img, recovery.img and system.img to my adb-folder (%UserProfile%\adb)

Caution: The next steps will wipe all your personal data! It' s a complete reset to factory settings!!!

- rebooted my device with "Volume up" and "Power" to bootloader (fastboot mode) and then connected it via usb

- opened cmd and navigated to my adb-folder

- tested fastboot mode with command "fastboot devices" with success and

- then flashed all the images (as referred to above) with fastboot commands: fastboot flash boot boot.img, fastboot flash bootloader bootloader and so on.

- after it I rebooted my device to system - be patient, don't power off, it can last very long time before first boot :(.

- as I had no success with supersu, at this point I decided for myself to relock bootloader - this was the second reset to factory settings :(

-then I re-installed all my apps manually and restored settings, contacts and calendar from my google-account

I hope, this helps ;)
[Lenovo Yoga Book Questions & Answers] Even_xf:
Hi, I also meet the same problem and need this X90L_USR_S000155_1609272258_WW06_BP_ROW-flashfiles.zip file for recovery, but it seems the link which you shared before expired, can you help to share with me your copy or create another link? Thanks a lot!
[Lenovo Yoga Book Questions & Answers] yoga-user:
... you have PM ;)
[Lenovo Yoga Book Questions & Answers] FreddeHamm:
can i get the link as well?
[Lenovo Yoga Book Questions & Answers] Tesserakt82:
it would be very nice if someone can help with a download link for yb1-x90l complete rom or even only recovery.img ;)
[Lenovo Yoga Book Questions & Answers] varshik:
can you please share the link again?
[Lenovo Yoga Book Questions & Answers] vogemic:
All the firmware for both models are available at: http://www.easy-firmware.com/index.php. You have to take a subscription to be able to download the files. Files are exclusive downloads. Subscription at $15. Latest versions are the november firmware.

Verstuurd vanaf mijn Lenovo YB1-X90L met Tapatalk
[Lenovo Yoga Book Questions & Answers] MarkAllen:
I find this very strange this site charges to download the firmware that cannot be found from any other reputable site that I have searched on. It may well be legit but I will steer clear anyway.
[Lenovo Yoga Book Questions & Answers] vimalbhimani:
keybord

you need to input country code to enable keyboard. There are several steps as below :

a)	Open ‘’contacts’’ app, create a new local contact ” test”

b)	Click search button at contact

c)	Input ####6020# code into search bar

d)	Browser the country code list, then chose country code you want to use, such as US

e)	Then DUT will reboot
[Lenovo Yoga Book Questions & Answers] zamzenos:
Long time coming. Thanks for taking the trouble to detail the method. However, in order to update to lastest firmware I was obliged to input a cc. I assumed then that I had got the Halo etc working simply by updating the firmware(!). Even so, good to know why I didn't have Halo. This info is sure to be of benefit to others. Thank you.
[Lenovo Yoga Book Questions & Answers] varshik:
Can you please send me the link as well?
[Lenovo Yoga Book Questions & Answers] winit_a:
wait for new link download

need stock recovery backup

I will try install windows on android version

I think same Mipad2 (android version can install Windows ) install windows

http://en.miui.com/thread-248564-1-1.html
[Lenovo Yoga Book Questions & Answers] nan0s7:
Does anyone have a copy (or can make a full backup with root) of the ROM/firmware? I have the Windows version... and have not had luck finding it anywhere (besides the paid subscription site linked earlier)

Edit: Never mind.
[Lenovo Yoga Book Questions & Answers] Mister Papillon:
Hello Guy´s,

I read here, that have any Guy´s Problem to become a Lenovo ROM. :rolleyes:

For the Stock-ROM - X90L_USR_S000155_1609272258_WW06_BP_ROW-flashfiles.zip on the Side by easy-firmware you must look for "THIS" ROM. :)

This ROM is for "FREE" downloading, after the Registration. :D

For the other ROM´s you must paid, this is right. :mad:

Look on the Side by easy-fimware.

I have for any Minutes download the X90L_USR_S000155_1609272258_WW06_BP_ROW-flashfiles.zip for free. :D

No Problem´s.
[Lenovo Yoga Book Questions & Answers] simhks:
I just bought a China version YB1-X90F on JD.com for RMB1999 from Shenzhen. Came with no google play indeed. Paid easy firmware for $15 and the download is legit. The firmware I downloaded was (YB1-X90F_USR_S000196_1611040312_WW06_BP_ROW-flashfiles.zip). Flashing over is easy with Intel Phone Flash 5.3.2.0. Just boot the tablet to stock recovery and load the json file (flash_update_from_eng.json). It will ask you to unlock and lock the bootloader along the way.

And now I am able to convert it into Hong Kong version. Thanks for the info on how to enable back the halo keyboard with the country code.

Cheers~
[Lenovo Yoga Book Questions & Answers] ox_eye:
Can someone make a tutorial how to flash the X90L_USR_S000155_1609272258_WW06_BP_ROW-flashfiles.zip firmware? That will be nice.
[Lenovo Yoga Book Questions & Answers] Mister Papillon:
Tutorial for Flashing Stock-ROM

Hallo ox_ye, ( Sorry for my English, it´s not the best )

I see that you was from Germany, Paderborn ... nice. I come from Kalkar.

Now to your Question for a Tutorial how to flash a Stock-ROM.

It is easy. I have do this for around 2 Hours by my "Lenny".

Before you can begin with the Procedure you must look that you have activate the Developer-Option

( look into this Forum for this ) and here activated the USB-Debugging.

Search by "Google" for the newest Intel PlatformFlashToolLite ( v5.8.3.0 ) and download it.

After the downloading install it on your Computer ( by me Windows 7 Ultimate 64bit ).

By the Install you become at this Moment the right Drivers installed.

Start your "Lenny" into the Recovery-Mode and then connected it with your PC.

Start the Intel PlatformFlashToolLite. Browse now on your PC the ROM - X90L_USR_S000155_1609272258_WW06_BP_ROW-flashfiles.zip.

After the loading from the ROM it was unzip´ed. ( Please, wait any Time )

After the unzipping start the Flashing, an wait a long Time. ( I mean, around 20-25 Minutes )

When the Flashing is finished, the "Lenny" makes a "Boot".

Now you have "Flashed" the "Lenny" ! ( I will hope that i don´t have forget anything )

Now you must make the "UPDATES" - X90L_USR_S000196 and X90L_USR_S000241 and ...

then then the X90L_USR_S000341 ... no, no. It goes not in to this Moment. Problems with the "UPDATE" !!!

It´s not a really Problem, we must do it a little bit later.

... you has now don´t the Halo-Keybord / Touchpal !!!! :crying:

Then look for this -

Quote:

Originally Posted by vimalbhimani

you need to input country code to enable keyboard. There are several steps as below :

a)	Open ‘’contacts’’ app, create a new local contact ” test”

b)	Click search button at contact

c)	Input ####6020# code into search bar

d)	Browser the country code list, then chose country code you want to use, such as US

e)	Then DUT will reboot

( ... man, many Thanks to vimalbhimani for your perfect work !!! ) :good::good::good:

After this Procedur you have your Halo-Keybord back !!! :D

... and now come the "Update" - X90L_USR_S000341. :laugh:

This is all. I have now the NEW "Lenny" after a "UNLOCK" & "ROOT" without "OTA-Updates" and then a big Brick.

Now it run´s very perfect. ( I think ... Unlock / Root i can make new ... i now the Way to Rebuild my "Lenny" ) :cool:

I will hope i can help you ... and any other Guy´s with this little Tutorial. ;)

PS : By me was this Procedur perfect, and without Problems. When anywhere has Problems, please do not by me lamentations.
[Lenovo Yoga Book Questions & Answers] Mister Papillon:
Install Magisk with ADB & Fastboot (?)

Can I install "Magisk" with the ADB & Fastboot Tool ? :confused:

How ? :confused:

Or gives it a other Way ?

... not over the temporary TWRP !!! This Way i now it.

For over the TWRP I must "unlock" the Bootloader, and i don´t will do this.

I will can become the "OTA-Updates".

This goes only with "locked" Bootloader and then without no Problems.

Now someone of it gives a possibility to make a Backup from the Stock-ROM without "ROOT" or TWRP and CWM ? :confused:
[Lenovo Yoga Book Questions & Answers] dloolb:
Hey guys, quick question, i bought my yoga book from china (YB1 X90F) but i having problems getting google play on it. Does ROM ing my device solve this issue?
[Lenovo Yoga Book Questions & Answers] nan0s7:
You probably could flash the Xposed SDK via the Fastboot tool. Also, to properly install Xposed you need to download and use the installer. You don't technically need to unlock the bootloader to install Xposed, but you need to be rooted. Remember, you can always lock your bootloader after you unlock it - but I can't guarantee OTA updates will still work (if you ever get any).

---------- Post added at 06:23 AM ---------- Previous post was at 06:21 AM ----------

By ROM-ing, do you mean... re-flashing the stock ROM? And I don't mean by "restoring to factory defaults". Because that'd probably work, so long as the version of the ROM you're flashing is compatible with the Play Store (which it should be).
[Lenovo Yoga Book Questions & Answers] dloolb:
yea im thinking of re-flashing the stock ROM. my main issue is with installing google play on my china bought device. it seems to cause heaps of problems. and also i cant seem to find a ROM suitable.
[Lenovo Yoga Book Questions & Answers] nan0s7:
Have you tried looking here? That may solve your problem without needing to flash a ROM.

However, if you go to easy firmware and go to the YB1-X90L page they have a version of the stock ROM that you may be able to flash, although I'm not sure how it'd go on the Wi-Fi model (if that's what you have).

Forum URL: https://www.androidpit.com/forum/589877/how-to-install-google-play-store-if-it-is-not-pre-installed
[Lenovo Yoga Book Questions & Answers] dloolb:
Problems problems...

Hey Thanks for helping me out. I have followed the link you gave me, but its for Kindle Fire. I was wondering, does it matter? additionally, I've tried going on Easy firmware but it seems that i need a paid subscription. and i can't seem to find any other link to get the stock rom for YB1-X90F. PLEASE HELP!!!

However, if you go to easy firmware and go to the YB1-X90L page they have a version of the stock ROM that you may be able to flash, although I'm not sure how it'd go on the Wi-Fi model (if that's what you have).
[Lenovo Yoga Book Questions & Answers] nan0s7:
I mean, I don't see Kindle Fire anywhere, but that's outdated anyway. You really should just Google "how to install play store on Chinese device" or something like that and find something up-to-date.

Also, yes, as I said it does require you pay money unless you get the one for the YB1-X90L - that is free. It's probably better than whatever Chinese software your device currently has installed.

But of course, I did a quick Google and found an up-to-date guide right here. It is very easy to follow. And hopefully this will show you not to buy cheap devices from China ;)

Link: http://www.androidauthority.com/5-a...miss-this-week-android-apps-weekly-75-759220/
[Lenovo Yoga Book Questions & Answers] Mister Papillon:
Hallo Yoga Book Fan´s ...

after 4 Month fihting with the Yoga Book, no Finish to see. I think, the Hardware from Lenovo Yoga Book is good and perfect for this Class. Are the Service Lenovo is a Nightmare, incomprehensible.

I have stopped with the Yoga Book, i sale it. I have buy a Sony Xperia Z4 Tablet LTE. This is a other World, as the Yoga Book. Updates - perfect, "ROOT" no Problem, Xposed it goes, TWRP goes.

After the i have buy the Xperia, it has Android 5.0.2, after the Updates it has now Android 7 - Nougat, whow. What will i more. Why can Lenovo this not ?

And with the Stock-Rom´s by Sony, it is so perfect, you can download what you must have, and any other Custom-Rom´s. This is what i have wish my by Lenovo, and become it´s by Sony.

Goodbye ... Lenovo Yoga Book ... and no other Lenovo into the Future !!!
[Lenovo Yoga Book Questions & Answers] dloolb:
Ok, as of now:

- I manage to download adb and fast boot and got it to work perfectly on my old windows 7 laptop. Now im stuck at the section where i have to unlock the bootlocker. [MENTION=8062240]nan0s7[/MENTION]

- I tried putting the stock rom into the adb folder on my laptop and transferring it straight into my yoga book but i dont know what to do from here.

- I have checked out the mega thread but i dont quite get it.

sorry i have just recently converted from a apple user so im quite new to all this freedom i have. :)

Please help!
[Lenovo Yoga Book Questions & Answers] nan0s7:
Alrighty; so first thing is to enable Developer Options. I've you've already done this skip to the next paragraph. First, open your settings app on your device, then go all the way to the bottom and open the "about" bit. Once in there, scroll down until you see the "build number" section. Tap on the build number 7 times. Now if you go back, back to the main settings app page, you'll see a new section above the "about" bit you clicked on earlier, saying "Developer Options".

Once in the Developer Options, go down (it's not very far down) to the option called "USB Debugging". Make sure that is enabled. Now you're able to use the ADB you set up.

To unlock the bootloader, you need to do the following:

- Make sure your device is plugged into your computer, and you've got the ADB command shell open (if you don't know where that is, it's in the Android Studio installation folder)

- Type the command:

adb devices

- Your device may have a pop-up asking if you want to allow the computer to do something, make sure to allow that.

- Type

adb reboot-bootloader

- Make sure you have all your important information backed up, because typing the next command will delete everything off of your device

- Type

fastboot flashing unlock

- Accept whatever it asks for on your device.

Your device should now be unlocked.
[Lenovo Yoga Book Questions & Answers] dloolb:
UPDATE!

I finally got my Lenovo yoga unlocked! However, at this point I'm not quite sure how I can put my stock rom in, and where?

Furthermore, what are the next few steps to get it Running the new stock rom?

---------- Post added at 08:14 AM ---------- Previous post was at 08:14 AM ----------

UPDATE!

I finally got my Lenovo yoga unlocked! However, at this point I'm not quite sure how I can put my stock rom in, and where?

Furthermore, what are the next few steps to get it Running the new stock rom?

---------- Post added at 08:16 AM ---------- Previous post was at 08:14 AM ----------

UPDATE!

I finally got my Lenovo yoga unlocked! However, at this point I'm not quite sure how I can put my stock rom in, and where?

Furthermore, what are the next few steps to get it Running the new stock rom?
[Lenovo Yoga Book Questions & Answers] nan0s7:
Make sure you have TWRP ready. Don't install it, just have it on your computer so you can boot into it.

Place the stock ROM on your device. It doesn't matter where, just somewhere you know. You can either do this by setting your device to act as a media transfer device, and just move the ROM like a USB transfer. Or you can use the adb command "push". Google how to use the push command if you choose that method.

Go to danjac's original post and follow his instructions to set up TWRP. Also, thank his post - without him none of this would be possible and/or this easy.

Since you've already unlocked the bootloader, you can skip some of the steps. If you're unsure, just do the following:

- Move the TWRP recovery zip file to where you've got ADB installed

- Extract the .img file from the .zip file

- Get ready to use ADB (so open what you used to unlock the bootloader)

- Boot your device into the bootloader mode; when it's turned off, hold the volume up key, and the power button

- Type:

fastboot boot recovery_twrp.img

- You should now be in the TWRP recovery

- Wipe your device

- Flash the stock ROM zip (where ever you put it)

That should be all.
[Lenovo Yoga Book Questions & Answers] dloolb:
So now, I have successfully boot the US stock rom, however now the halo keys don't work, I remember seeing a solution somewhere but can't seem to find the thread, someone please help
[Lenovo Yoga Book Questions & Answers] vogemic:
Post number 17 in this thread?

Verstuurd vanaf mijn Lenovo YB1-X90L met Tapatalk
[Lenovo Yoga Book Questions & Answers] Vsplorer:
Can you provide a stock Rom Download Link？ I can not paid for easy-firmware.
[Lenovo Yoga Book Questions & Answers] yoga-user:
Hi,

as described in this post: https://xdaforums.com/showpost.php?p=71496748&postcount=22 you can find and download a complete image for the YB1-X90L without subscription :good:

Try this link: http://www.easy-firmware.com/index.php?a=browse&b=category&id=19521
[Lenovo Yoga Book Questions & Answers] liguangming1981:
Thanks for pointing this out. I have a Chinese version of the Yoga Book which did not come with any Google services installed, but I was able to use this firmware to get stock Google apps installed. Only issue is that this firmware is for the SIM card version of the Yoga Book, so you'll end up with a SIM card not installed icon on the notification bar if you install it on the wireless-only version.

Other than that, everything seems to work perfectly.
[Lenovo Yoga Book Questions & Answers] ox_eye:
Hi all,

my bootloader is unlocked. So this can be the reason that the last Update is not able to install. So, how can I lock the bootloader again?
[Lenovo Yoga Book Questions & Answers] Broomfundel:
Going back to the original question. Does anyone have the YB1-X90F rom. After two days of trying, i finally have an authenticated login to easy-firmware. But there is only one old firmware available without paying. That is for the 90L, which may well work. However the download keeps pausing before completion. Resume, just starts again. which is not Inspiring me to pay.

So please anyone with an image for X90F. Can you post a link.

Thanks
[Lenovo Yoga Book Questions & Answers] Herfen:
Found a ZIP-File with the "Sourcecode" Not sure what to expect from it.

Lenovo-support