Project Treble GSI images on Smart Tab M10 (TB-X605F/L) and P10 (TB-X705F/L)

Search This thread

Lackooo84

Senior Member
Jun 13, 2016
141
25
Tatabánya
Got the same **** error message on pie rom too....

I'll give up...

1642942922070.png



Another anomaly.... I flashed this twrp on pie rom but when I tryin to enter twrp stock recovery loads up.... :/
 
Last edited:

Yahoo Mike

Senior Member
Apr 3, 2011
368
150
Newcastle
Ok I think I got it. Now I'm back on pie, tried these commands but always get error:

View attachment 5516229
Try this command:
Code:
adb push modify_phh_gsi.sh /external_sd/modify_phh_gsi.sh
I think adb is complaining there was no destination filename. Make sure you are using the latest adb from google.
I'm a bit confused because in step 3. you said "download the file onto sd card", in step 4. copy file to sd card.
In step 3 you download the files from the internet to your PC. In step 4 you copy the downloaded files to your sdcard.
Okay, what do you mean by "load the rom in LMSA"? Do I start the rescue mode process (with click on the start rescue button) or what do you mean exactly?
Yes, start the rescue. That will load the stock ROM for you.
 

Yahoo Mike

Senior Member
Apr 3, 2011
368
150
Newcastle
Got the same **** error message on pie rom too....

I'll give up...

View attachment 5516313
Did you run the modify_phh_gsi.sh script? Did it work?

If it worked, then what is the size of your system partition and your GSI image?
Another anomaly.... I flashed this twrp on pie rom but when I tryin to enter twrp stock recovery loads up.... :/
That sounds like a 3-button problem. Check the TWRP thread for this device for tips.
 

Lackooo84

Senior Member
Jun 13, 2016
141
25
Tatabánya
Did you run the modify_phh_gsi.sh script? Did it work?

If it worked, then what is the size of your system partition and your GSI image?
That sounds like a 3-button problem. Check the TWRP thread for this device for tips.
No, because it is not possible to have 2 different recovery in the same partition. adb reboot recovery also work to boot recovery.

So, can you tell me please step by step what to do? In step 3 you said download files to sd card, then in step 4 copy them to sd card, but why would I copy them when they already on the sd card? :/ This is why I'm confused with this guide. Also I'm on stock pie already do I need to re-flash it again? How do I run those scripts on the sd card?
 

Lackooo84

Senior Member
Jun 13, 2016
141
25
Tatabánya
Ok now I was able to flash android 10 GSI onto oreo rom (same room has bricked my tablet before when flashed it on pie). I tried several Android 11 GSI's, none of them worked. All of them gives me "size too large" error in fastboot, those GSI's about 3.4GB. Nvm I'll stay on android 10, all I wanted just a dark mode theme which is missing from stock roms on this tablet...

The funny thing is I cannot even install Gapps stock package it says not enough space on system partition... on a fully empty system... what a joke...

I just wonder how was anybody able to install Android 11 rom onto this device if I can't... I have a 32GB version is there any with bigger storage space out there?!
 
Last edited:

Yahoo Mike

Senior Member
Apr 3, 2011
368
150
Newcastle
No, because it is not possible to have 2 different recovery in the same partition. adb reboot recovery also work to boot recovery.

So, can you tell me please step by step what to do? In step 3 you said download files to sd card, then in step 4 copy them to sd card, but why would I copy them when they already on the sd card? :/ This is why I'm confused with this guide. Also I'm on stock pie already do I need to re-flash it again? How do I run those scripts on the sd card?
The point of steps 3 and 4 is to get those files onto your sdcard. Once you've done that move on to the next step.

It is important that you run the script on your device when in twrp. One of the things it does is increase the size of the filesystem on the system partition.

If you are having problems installing twrp, read this device's twrp thread. There are tips there on how to get twrp booting.

If you did not root or modify the stock ROM, then there's no need to reload the stock ROM. The GSI just needs all partitions to be pure stock.
 

Lackooo84

Senior Member
Jun 13, 2016
141
25
Tatabánya
Just please tell me the noob friendly steps what to do to resize partition in twrp.

What I tried so far:

While was on stock pie, put those files onto sdcard, installed/entered twrp.

Now in your guide next step is to install new GSI, but I cannot because system partition is too small.

In your guide I need to run the script AFTER flashing new GSI, that is what I don't understand.

I tried to run those commands in adb sideload from PC, but always getting errors.

So please tell me step by step what to do to resize partition in twrp pls!
 

Yahoo Mike

Senior Member
Apr 3, 2011
368
150
Newcastle
On Linux-based systems (like Android), the filesystem and partition are two separate things.

The script in the OP will expand the filesystem to the full size of the system partition. This usually results in enough free space to install GApps (usually nano or pico) after installing a vanilla GSI.

There are no instructions on this thread to change the size of the system partition. If your GSI is larger than the partition, then it will not fit. Compare the size of your GSI image with the size of the system partition.
 

Lackooo84

Senior Member
Jun 13, 2016
141
25
Tatabánya
On Linux-based systems (like Android), the filesystem and partition are two separate things.

The script in the OP will expand the filesystem to the full size of the system partition. This usually results in enough free space to install GApps (usually nano or pico) after installing a vanilla GSI.

There are no instructions on this thread to change the size of the system partition. If your GSI is larger than the partition, then it will not fit. Compare the size of your GSI image with the size of the system partition.
Then how other flashed successfully android 11 GSI's if all of them bigger than 3GB and this tab has only 3GB of system space?? Then you can install only android 10 but not 11....

I asked you more than once to tell me step by step how to run these srcipts exacty but still no answer... thanks.
 

Yahoo Mike

Senior Member
Apr 3, 2011
368
150
Newcastle
Then how other flashed successfully android 11 GSI's if all of them bigger than 3GB and this tab has only 3GB of system space?? Then you can install only android 10 but not 11....
I run AndyYan's LOS 18, which is about 2GB. It is vanilla A11. Then I install pico opengapps for A11 ARM64. There are other GSIs that fit on these tablets.

I asked you more than once to tell me step by step how to run these srcipts exacty but still no answer... thanks.
To run the script, the OP gives an example using ADB commands. You can also run the script in the TWRP terminal. Or you can open an ADB shell and run it there. If you are getting errors, what do they say?

The easiest way to install the zips is in TWRP. If you don't know how to do that, you could check the TWRP threads for instructions or google it.
 
Feb 3, 2021
10
2
18
Gensōkyo
Last edited:
  • Like
Reactions: Yahoo Mike

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    This thread is for sharing your experiences with Project Treble GSI images on the Lenovo Smart Tabs M10 (TB-X605F/L) & P10 (TB-X705F/L). I'll update this post as more things are discovered.

    You can load Android 10 and 11 GSI ROMs on top of Lenovo's stock Pie ROMs.

    You can also load Android 10 and 11 GSI ROMs on top of Lenovo's stock Oreo ROMs. There are some graphics glitches when you use the stock Oreo ROMs.

    WARNING 1: this procedure will wipe your whole device (including data). So do a backup first.
    WARNING 2: this is experimental. If you don't know what you're doing, then you could brick your device. The risk is all yours.

    Loading over stock Pie

    1. unlock the bootloader (if not already unlocked)
    2. download Disable_Dm-Verity_ForceEncrypt.zip (created by @Zackptg5). If you want your data partition encrypted, then rename the zip file to Disable_Dm-Verity_enfec.zip. We'll use this to disable dm-verity on boot.
    3. download modify_phh_gsi.sh to your SDcard or OTG device. I wrote this script to by-pass phhusson's read-write mount of /system during boot, which freezes our tablets. The script also runs resize2fs to make the /system filesystem take up the whole /system partition. Don't forget to make this script executable with chmod.
    4. copy those files to your SDCard or OTG device:
      Code:
      adb push modify_phh_gsi.sh /external_sd/
      adb shell chmod a+x /external_sd/modify_phh_gsi.sh
      adb push Disable_Dm-Verity_ForceEncrypt.zip /external_sd/
      [B]only if you want an encrypted data partition[/B]: adb shell mv /external_sd/Disable_Dm-Verity_ForceEncrypt.zip /external_sd/Disable_Dm-Verity_enfec.zip
    5. load the stock Pie ROM using LMSA rescue mode or QComDLoader
    6. boot the device into fastboot (Power+VolDown)
    7. flash the GSI image: fastboot flash system your_gsi.img (you can install the GSI image in twrp, if you prefer)
    8. flash TWRP (for Pie): fastboot flash recovery pie_twrp.img
    9. boot into twrp (pwr+VolUp+VolDown)
    10. format Data partition
    11. install Disable_Dm-Verity_enfec.zip or Disable_Dm-Verity_ForceEncrypt.zip
    12. run modify_phh_gsi.sh and boot the GSI:
      Code:
      adb shell /external_sd/modify_phh_gsi.sh
      adb reboot
    13. (optional) if your GSI doesn't include Google Apps, then download and install a gapps zip (ARM64) in TWRP. I use "pico", but choose the one that suits you. Do this after running modify_phh_gsi.sh - to avoid running out of space.
    14. reboot to system

    Loading over stock Oreo

    1. unlock the bootloader (if not already unlocked)
    2. download and unzip the stock Oreo ROM
    3. load the stock Oreo ROM using QComDLoader, and your device in EDL mode. When it's finished, do not boot into the system. QComDLoader configuration settings:
      Code:
        Download Mode: Upgrade
              Chipset: 8953
      eMMC Programmer: prog_emmc_firehose_8953_ddr.mbn
          Raw program: rawprogram_unsparse_upgrade.xml
               patch0: patch0.xml
    4. boot the device into fastboot (Power+VolDown)
    5. flash the GSI image: fastboot flash system your_gsi.img (you can install the GSI image in twrp, if you prefer)
    6. flash TWRP (for Oreo): fastboot flash recovery oreo_twrp.img
    7. boot into twrp (pwr+VolUp+VolDown)
    8. (optional) if your GSI doesn't include Google Apps, then download and install a gapps zip (ARM64) in TWRP. I use "pico", but choose the one that suits you. OpenGApps isn't officially available for Android 11 yet.
    9. (optional) to get the right pixel density, add "ro.sf.lcd_density=240" to vendor/build.prop. I wrote gsi4tablet.sh to do this for you. Run it in twrp adb shell. Make sure the script is executable (using chmod).
    10. reboot to system
    Here are some links to Lenovo's stock Oreo ROMs:

    Choosing a GSI image
    @phhusson keeps a full list of Project Treble GSI images.

    Our devices are all ARM64 A-only. This means that you should only get ARM64 and A-only GSI images. Anything else will not work.

    In case you need to know, our devices are also non-System-As-Root (nonSAR) and use vndk-lite (v27 for stock Oreo, and v28 for stock Pie).

    "This device is not Certified by Google"
    If you get this message when you boot the GSI, use ADB and follow instructions under "How to bypass certified device after first boot?".

    If you can't find sqlite3 in adb, then install the Device ID app from this XDA article to get the GSF number on your tablet.

    "Insufficient storage space available in System partition"
    If you get this error message when trying to install GApps, read this post.

    What about Android 12 ?
    There are no non-SAR A12 GSIs for these tablets, because of the vndk-lite implementation.

    If you want to try Android 12, visit this thread about converting the tablet to system-as-root (SAR). It is also experimental.

    How do I repartition my tablet?
    You might want to do this to increase the size of the system partition. Google it, if you like. But there are no instructions on this thread. No one wants to support noobs who trash their partition tables.

    Where do I find... ?
    • QComDLoader is downloaded during an LMSA rescue. You'll find it in C:\ProgramData\LMSA\Download\ToolFiles\QcomDLoader_1.3.2\QcomDLoader_1.3.2. Alternatively, @Chaser42 has a link and some instructions at the bottom of the first post in this thread.
    • EDL mode: the easiest ways to enter EDL mode are: adb reboot edl or in TWRP: Reboot->EDL Mode. Alternatively, from a powered-off device: insert USB cable while holding VolUp
    • TWRP for Oreo for TB-X605F/L.
    • TWRP for Oreo for TB-X705F/L.
    • Magisk (for phhusson-based GSI ROMs) lives here.
    • GApps lives here.
    • Disable_Dm-Verity lives here.

    Last modified: 13 February 2022 (changes for the SAR project)
    1
    Since you mentioned me, I've taken a brief look - can you boot ARM64 AB on Pie? On many devices, updating to Pie changes the arch to AB. Note that "A/AB" in GSI is not the same thing as physical partition layout.
    1
    Since you mentioned me, I've taken a brief look - can you boot ARM64 AB on Pie? On many devices, updating to Pie changes the arch to AB. Note that "A/AB" in GSI is not the same thing as physical partition layout.
    On stock Pie, Hackintosh5's app reports it's an A-only device supported by VNDK 28 Lite. System properties confirm that.

    I just tried to load an AB GSI ROM over Pie. The device boots to qcom diagnostic 900E mode.

    So looks like it's definitely A-only on stock Pie. There's just something unusual about the treble implementation on stock Pie.

    Loading an A-only GSI over stock Pie just hangs on reboot. It never gets to the boot animation. I've unsuccessfully tried different combinations of permissiver, disable_dm-verity and magisk. No luck.

    (There is no vbmeta partition, by the way.)

    But thanks for the suggestion about trying AB. It was worth a try.
    1
    Success and Failure

    I went through the process above and this worked great. I do have one small problem......

    Twrp loads with a black screen and is unusable from the tablet screen in recovery mode. Fortunately this isn't a big deal if you use adb from your pc to control twrp.

    2. FLASHING GAPPS
    Put the tablet into recovery from adb or through hardbuttons.
    open cmd:
    adb shell
    twrp wipe cache
    twrp wipe dalvik
    twrp sideload
    adb sideload <location_of_your_GApps.zip>, e.g. adb sideload C:\GApps.zip
    1
    Hi Yahoo Mike,
    is the LOS 17 fully functionnal on TB-X605F?
    Thanks
    I don't know if LOS is "fully" functional. I loaded it, but didn't thoroughly test it. Wifi worked.

    I've been using Quack and it's stable. Wifi, camera, bluetooth, audio all work. NovaLauncher works fine. Some graphics flicker until they load. I haven't found the right settings under "Phh Treble Settings" to stop that.