[IIIII] CROSS - Custom ROM Scripted Setup

Search This thread

k23m

Senior Member
Jan 3, 2016
1,009
606
Hello, I don't understand how to download "lineage-install-3-flox.bat" because I need this one please. Thank you very much.

Hi, please follow the instructions...

Download CROSS2.zip and unzip it then download cross-update-XXX.zip and unzip it to the CROSS folder, overwrite existing files.

If you run "lineage-install-3-flox.bat" alone, you will see...

Unzip this update to the CROSS folder, overwrite existing files.
Press any key to exit...
 

poo706

Senior Member
Apr 8, 2011
2,295
2,290
I'd like to install a ROM that requires a vendor partition. My flo has system repartitioned to 1380 and cache to 20. My USB port quit working long ago, so formatting the data partition is not an option. Would it be possible for me to create mmcblk0p31 vendor and have it rob from the system partition? Or would it have to rob from mmcblk0p30 userdata? Hopefully that makes sense.
 

k23m

Senior Member
Jan 3, 2016
1,009
606
I'd like to install a ROM that requires a vendor partition. My flo has system repartitioned to 1380 and cache to 20. My USB port quit working long ago, so formatting the data partition is not an option. Would it be possible for me to create mmcblk0p31 vendor and have it rob from the system partition? Or would it have to rob from mmcblk0p30 userdata? Hopefully that makes sense.

Firstly, the port is very easy to repair. Without a USB port, partition experiments can brick it.

A ROM may require a vendor partition but not actually use it. In this case you could try a simple trick, rename eg mmcblk0p24, which seems unused, to 'vendor' and maybe format it too.
 

poo706

Senior Member
Apr 8, 2011
2,295
2,290
Firstly, the port is very easy to repair. Without a USB port, partition experiments can brick it.

A ROM may require a vendor partition but not actually use it. In this case you could try a simple trick, rename eg mmcblk0p24, which seems unused, to 'vendor' and maybe format it too.
I think I should just leave well enough alone. I damaged the bezel a little bit trying to pry open my flo and said screw it and put it back together. This ROM does legitimately use the vendor partition, and it's about 67 MB. The misc partition that you suggested is only 1 MB.
 

k23m

Senior Member
Jan 3, 2016
1,009
606
Hi, Please is there a way how can i use
"sysrepart-flox.zip - 1.5GB system, data is wiped, 'vendor' partition is added, automatically downloaded by LOS 17.1-flox script" on LOS 18.1? As i don't want to loose 4GB of storage and all my tries to do it manually failed, no clue why :(

Hello, from your other post...

via CROSS script work...so i assume there is something else executed or what ?!
@k23m What is the trick behind please? or are those Repartition-* you made only for CROSS script?

There is no trick, you can check the source code of CROSS, the scripts work the same as standalone or in CROSS. Perhaps the error is due to the fact that 1.5GB 'system' may be too small nowadays. Do the ultimate 4GB and you will never have to worry about re-re-partitioning ever again.

Incidentally, the old versions of TWRP and Gapps flashed by CROSS are irrelevant. You could later update TWRP manually, and Gapps will auto-update online anyway.
 

killeriq

Senior Member
Dec 10, 2008
196
27
hmm strange is that this errors comes even before i try to install any ROM.

1. Restock
2. Add some TWRP
3. repartition
4.. When i go to "Wipe" to try to clear cache , right away those errors

img_20220510_170757_2-jpg.5611005


With this Clamor "repartition" which i was using formerly https://xdaforums.com/t/repartition-nexus-7-2013-repartition-flo-deb-16gb-32gb-ua-twrp.3844386/

i had to do "modify", then some formats , but no such errors afterwards

Code:
7. Format everything. (mount errors will not affect formatting!)
    - In TWRP: Wipe > Format data
    - Type yes
    - Once this completes go to: Wipe > Advanced Wipe
    - Tick all the boxes and wipe. There should be no further mount errors. (Thanks [user=7694808]@mr_rubbish[/user] for corrections in formatting).

With yours i dont see any instruction like this, so i assume is automated?
 

k23m

Senior Member
Jan 3, 2016
1,009
606
hmm strange is that this errors comes even before i try to install any ROM.
1. Restock
2. Add some TWRP
3. repartition
4.. When i go to "Wipe" to try to clear cache , right away those errors

Let's recap. You run:

1. Restock2
2. Add the old TWRP from Restock's addons
3. repartition with sysrepart-flox.zip
4. "When i go to "Wipe" to try to clear cache , right away those errors"

Correct? Note, I only support the components of Restock and CROSS, but not any other versions nor mods. So, if you still see those errors then...

If you see errors, copy and report them... run relog.bat and attach "relog-xxxxxx.zip" to your post.
 

killeriq

Senior Member
Dec 10, 2008
196
27
I found time to repeat those steps again:
1. Restock2/restock.bat
2. Add the old TWRP from Restock's addons / twrp-3.4.0-0-flox.img
3. repartition with sysrepart-flox.zip
4. "When i go to "Wipe" to try to clear cache , right away those errors"
5. Restock2/relog.bat - attached
---

Maybe an additional option to your script to be able to pick which "repart" to use? it might do the trick.
Just want to use FLOX with NOT loosing 4GB due to "repart-ultimate" which is automatically added

Thanks!
 

Attachments

  • relog-132748,80.zip
    43.1 KB · Views: 12

k23m

Senior Member
Jan 3, 2016
1,009
606
Maybe an additional option to your script to be able to pick which "repart" to use? it might do the trick. Just want to use FLOX with NOT loosing 4GB due to "repart-ultimate" which is automatically added Thanks!

OK, I'll add re-partition options to the next update. Meanwhile let's resolve the errors. Note...

sysrepart/max/flox work reliably only on original partitions

It seems you had used sysrepart-flox on non-original partitions hence the errors.

On rare occasions you may have to run RESTOCK and "Restore original partitions" with it.

This is one of them :)

Next, after "restocking" and "Restore original partitions" do a simple mod before CROSS. In your Downloads\nex\CROSS\data folder:
- delete sysrepart-ultimate.zip
- copy sysrepart-flox.zip
- rename sysrepart-flox.zip to sysrepart-ultimate.zip

Now you can run the CROSS script, choose sysrepart-ultimate repartition but actually sysrepart-flox will be used.

BTW note the following in lineage-install-3-flox.bat v2.5
Code:
::set EXDL=https://xdaforums.com/attachments/sysrepart-flox-zip.5173241
::set EXZN=sysrepart-flox.zip
set EXDL=https://xdaforums.com/attachments/sysrepart-ultimate-zip.5273007
set EXZN=sysrepart-ultimate.zip

Instead of renaming CROSS\data files you could delete the 2 ultimate lines and uncomment the 2 flox lines.
 
  • Like
Reactions: killeriq

killeriq

Senior Member
Dec 10, 2008
196
27
@k23m

Thanks for your analysis and "simple" trick will do the job ;) will try on next Tablet.

FYI: Soon as it failed i always used "Restock2" and started over again...
---
In the mean time i was trying various "repartitions" and seems like with Clamor which i downloaded from his repo is working fine on 1st try, even creates /Vendor, after i just need to do the Flo->Flox script and all works fine.
 

underflash

Senior Member
Oct 19, 2018
129
17
Following my post and @k23m recomendations, I have manually repartitioned first back to stock with sysrepart-stock.zip and flashed TWRP-3.6.2_9-0-flo, then several reboots, 3-4 wipes of all partitions and data formats without a single error.

After sideloaded sysrepart-ultimate.zip without any problem and flashed TWRP-3.5.0_9-0-FLOX.

Then sideloaded lineage-18.1-20220620-nightly-flox-signed, open_gapps-arm-11.0-pico-20220215. After booting system and Play Store updates, disabled Play Protect and sideloaded Magisk-v25.1.zip (the only way to get PS certified). No errors during this process.

Attached my relog. There are some I/O errors. Are they signs of impending death?
 

Attachments

  • FLOX relog-15115031.zip
    57.5 KB · Views: 10
Last edited:
  • Like
Reactions: k23m

Nilithium

Member
Jun 6, 2016
5
2
Hi! I might be missing something, but I first ran RESTOCK and then CROSS2 with the lineage-install-2.bat. However, the pico GApps did not install, saying there was no file or directory. I thought it was supposed to acquire them automatically? It got the other necessary packages without a hitch.
 

k23m

Senior Member
Jan 3, 2016
1,009
606
Hi! I might be missing something, but I first ran RESTOCK and then CROSS2 with the lineage-install-2.bat. However, the pico GApps did not install, saying there was no file or directory. I thought it was supposed to acquire them automatically? It got the other necessary packages without a hitch.
Hello, please edit lineage-install-2.bat

Code:
replace
set GADL=https://jaist.dl.sourceforge.net/project/opengapps/arm/20211021/open_gapps-arm-10.0-pico-20211021.zip
set GAZN=open_gapps-arm-10.0-pico-20211021.zip

with
set GADL=https://jaist.dl.sourceforge.net/project/opengapps/arm/20220215/open_gapps-arm-10.0-pico-20220215.zip
set GAZN=open_gapps-arm-10.0-pico-20220215.zip

I'll release a CROSS update soon.
 

Nilithium

Member
Jun 6, 2016
5
2
Hello, please edit lineage-install-2.bat

Code:
replace
set GADL=https://jaist.dl.sourceforge.net/project/opengapps/arm/20211021/open_gapps-arm-10.0-pico-20211021.zip
set GAZN=open_gapps-arm-10.0-pico-20211021.zip

with
set GADL=https://jaist.dl.sourceforge.net/project/opengapps/arm/20220215/open_gapps-arm-10.0-pico-20220215.zip
set GAZN=open_gapps-arm-10.0-pico-20220215.zip

I'll release a CROSS update soon.
Hi! I placed the latest version in the install directory, still no luck, so I manually flashed it onboard with TWRP. Good to know! I really have you to thank for the RESTOCK/CROSS tools. This saved my tablet from becoming e-waste and allowed me to reuse it for piloting my drones with Litchi! I'm not sure if you'd know how, but is there a way I can leverage root access to overclock the CPU for smoother app performance?
 

CityKev

Senior Member
Jul 27, 2022
220
128
Redmi Note 10 Pro
Having thanked the developer yesterday on the Restock thread as that got me out of jail I now offer my thanks for this amazing tool.

With my extremely limited skills I've been able to install Lineage 18.1 on my wife's old Nexus 7 to bring it back to life.

Incredible :)
 
  • Like
Reactions: lyushiK and k23m

jebise101

Senior Member
Jan 22, 2010
931
121
I followed the official lineage thread to install 18.1 a while ago and just went ahead and updated to the latest release today, when reading the lineage 18.1 thread some users reported laggy performance when using the clmor repartition zip and said that is resolved with sysrepart-ultimate.zip.

Can I just flash sysrepart-ultimate.zip on my current working lineage OS? I don't care if it wipes my data just don't want to refresh the OS and GAPPS.
 

k23m

Senior Member
Jan 3, 2016
1,009
606
No, sysrepart-ultimate.zip will wipe your current OS. Here is a workaround:

- do a TWRP backup
- transfer the backup to a PC or OTG storage
- install sysrepart-ultimate, reboot and restore the backup

Note that TWRP stays intact during the process: "sysrepart-ultimate.zip - ...'recovery' is enlarged to 64MB in-place and your current TWRP continues to function"
 

jebise101

Senior Member
Jan 22, 2010
931
121
I'm not using twrp, using the official lineage recovery as I don't want to install recovery from random sources.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    Nexus 7'13 CROSS - Custom ROM Scripted Setup (c)2020-2021 k23m


    CROSS works on PC with Windows, or WinPE if you do not have Windows installed, or VirtualBox with a Windows guest.

    Currently supported ROMs:

    - Android 10 LineageOS 17.1
    - Android 11 LineageOS 18.1
    - Android 11 LineageOS 18.1-flox

    Previously supported ROMs:

    - Android 7 LineageOS 14.1
    - Android 7 LineageOS 14.1-microG
    - Android 10 LineageOS 17.1-flox


    FEATURES

    - automatic scan of developer's website for the latest ROM version
    - automatic download of all required components
    - automatic single-click installation
    - optional components like root or special kernel
    - all you have to do is select yes/no during the installation
    - both flo and deb are supported

    PREREQUISITES

    - unlocked device
    - installed N7 USB drivers
    - original eMMC partition layout may be required

    All of the above are ensured with RESTOCK - also a scripted tool, available here:


    ---------------------
    lineage-install-2.bat
    ---------------------

    This script installs and/or offers the following optional components:

    - Android 10 LineageOS 17.1 UNOFFICIAL maintained by ripee https://xdaforums.com/nexus-7-2013/development/rom-lineageos-17-1-t4038425
    - TWRP (optional, no need to reflash it if exists already)
    - repartition: sysrepart-max.zip by k23m (optional, no need if already repartitioned)
    - root: Magisk (optional)
    - GApps: pico (optional)


    ---------------------
    lineage-install-3.bat
    ---------------------

    This script installs and/or offers the following optional components:

    - Android 11 LineageOS 18.1 UNOFFICIAL maintained by followmsi https://xdaforums.com/t/rom-flo-deb-unofficial-lineageos-18-1-2021-04-07.3569067/
    - TWRP (optional, no need to reflash it if exists already)
    - repartition: sysrepart-ultimate.zip by k23m (optional, no need if already repartitioned)
    - root: Magisk (optional)
    - GApps: pico (optional)

    NOTE: automatic scan of the developer's website is not possible.
    Please download the ROM from: https://drive.google.com/drive/fold...HZThGTnM?resourcekey=0-0BunAmDBWluYPghT0Fs6CA
    Save it in CROSS' folder and drag-and-drop it on lineage-install-3.bat to start the installation.


    --------------------------
    lineage-install-3-flox.bat
    --------------------------

    This script installs and/or offers the following optional components:

    - Android 11 LineageOS 18.1-flox OFFICIAL maintained by npjohnson https://xdaforums.com/t/official-li...s-7-2013-wi-fi-repartition-only-flox.4255325/
    - TWRP-flox (optional, no need to reflash it if exists already)
    - repartition: sysrepart-ultimate.zip (flox compatible) by k23m (optional, no need if already flox-repartitioned)
    - root: Magisk (optional)
    - GApps: pico unofficial by ipdev (optional)


    ------------------------
    getlog.bat and relog.bat
    ------------------------

    If you see errors, copy and report them. Run getlog.bat and include "getlog.log" in your post. If possible, also run relog.bat and attach "relog-xxxxxx.zip" to your post.


    ----------
    fstrim.bat
    ----------

    Improve performance of your eMMC.


    ---------------
    repartition.bat
    ---------------

    If sysrepart repartition is impossible due to TWRP or GPT issues, run the repartition.bat script.


    SUPPORT


    If you select the local file option, CROSS will scan the data folder and offer the newest found file for installation. If nothing is found, you can type/paste a specific file name to install. You can drop anything you like to the data folder - CROSS is now a basic universal ROM installer.


    SAMPLE OUTPUT

    Code:
    Nexus 7'13 LineageOS 17.1 Install v1.3 @2020 k23m
    
    SUPPORT - http://bit.ly/2C35sLZ
    
    This script assumes that USB drivers are already installed.
    If not, then run RESTOCK first or install them manually.
    
    Enter device name (flo=WiFi; deb=LTE) - [flo/deb]: flo
    
    Use local ROM file? (no if unsure) [y/n]:
    --2020-05-15 06:17:53--  https://lineageos.wickenberg.nu/flo/
    Resolving lineageos.wickenberg.nu... 88.129.42.110
    Connecting to lineageos.wickenberg.nu|88.129.42.110|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: 'tmp1'
    
    tmp1                              [ <=>                                              ]   6.32K  --.-KB/s    in 0.001s
    
    2020-05-15 06:17:57 (5.33 MB/s) - 'tmp1' saved [6473]
    
    Found for download: lineage-17.1-20200515-UNOFFICIAL-flo.zip
    
    Use local TWRP file? (no if unsure) [y/n]:
    
    Press any key to continue . . .
    
    Downloading installation files.
    
    --2020-05-15 06:19:02--  https://dl.twrp.me/flo/twrp-3.3.1-0-flo.img
    Resolving dl.twrp.me... 45.249.91.154
    Connecting to dl.twrp.me|45.249.91.154|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 9271296 (8.8M) [application/octet-stream]
    Saving to: 'twrp-3.3.1-0-flo.img'
    
    twrp-3.3.1-0-flo.img          100%[=================================================>]   8.84M   945KB/s    in 11s
    
    2020-05-15 06:19:15 (788 KB/s) - 'twrp-3.3.1-0-flo.img' saved [9271296/9271296]
    
    --2020-05-15 06:19:15--  https://lineageos.wickenberg.nu/flo/lineage-17.1-20200515-UNOFFICIAL-flo.zip
    Resolving lineageos.wickenberg.nu... 88.129.42.110
    Connecting to lineageos.wickenberg.nu|88.129.42.110|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 413523888 (394M) [application/zip]
    Saving to: 'lineage-17.1-20200515-UNOFFICIAL-flo.zip'
    
    lineage-17.1-20200515-UNOFFIC 100%[=================================================>] 394.37M  2.71MB/s    in 3m 17s
    
    2020-05-15 06:22:34 (2.01 MB/s) - 'lineage-17.1-20200515-UNOFFICIAL-flo.zip' saved [413523888/413523888]
    
    --2020-05-15 06:22:34--  https://jaist.dl.sourceforge.net/project/opengapps/arm/20200515/open_gapps-arm-10.0-pico-202005
    15.zip
    Resolving jaist.dl.sourceforge.net... 150.65.7.130
    Connecting to jaist.dl.sourceforge.net|150.65.7.130|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 101519489 (97M) [application/octet-stream]
    Saving to: 'open_gapps-arm-10.0-pico-20200515.zip'
    
    open_gapps-arm-10.0-pico-2020 100%[=================================================>]  96.82M  3.25MB/s    in 36s
    
    2020-05-15 06:23:11 (2.73 MB/s) - 'open_gapps-arm-10.0-pico-20200515.zip' saved [101519489/101519489]
    
    --2020-05-15 06:23:11--  https://github.com/topjohnwu/Magisk/releases/download/v20.4/Magisk-v20.4.zip
    Resolving github.com... 52.64.108.95
    Connecting to github.com|52.64.108.95|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/67702184/81204200-6ca5-11ea-8f19-3a5b8341b6e2?
    X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200515%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-
    Date=20200515T072529Z&X-Amz-Expires=300&X-Amz-Signature=681f649c20ad2b0eabf80411650867d6db9144197a42a639a13162209f0fff91
    &X-Amz-SignedHeaders=host&actor_id=0&repo_id=67702184&response-content-disposition=attachment%3B%20filename%3DMagisk-v20
    .4.zip&response-content-type=application%2Foctet-stream [following]
    --2020-05-15 06:23:11--  https://github-production-release-asset-2e65be.s3.amazonaws.com/67702184/81204200-6ca5-11ea-8f1
    9-3a5b8341b6e2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200515%2Fus-east-1%2Fs3%2Faws4
    _request&X-Amz-Date=20200515T072529Z&X-Amz-Expires=300&X-Amz-Signature=681f649c20ad2b0eabf80411650867d6db9144197a42a639a
    13162209f0fff91&X-Amz-SignedHeaders=host&actor_id=0&repo_id=67702184&response-content-disposition=attachment%3B%20filena
    me%3DMagisk-v20.4.zip&response-content-type=application%2Foctet-stream
    Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.216.134.219
    Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.134.219|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 5942417 (5.7M) [application/octet-stream]
    Saving to: 'Magisk-v20.4.zip'
    
    Magisk-v20.4.zip              100%[=================================================>]   5.67M  2.30MB/s    in 2.5s
    
    2020-05-15 06:23:15 (2.30 MB/s) - 'Magisk-v20.4.zip' saved [5942417/5942417]
    
    --2020-05-15 06:23:15--  https://xdaforums.com/attachment.php?attachmentid=4480528
    Resolving xdaforums.com... 104.18.19.88, 104.18.18.88
    Connecting to xdaforums.com|104.18.19.88|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://dl.xda-cdn.com/4/4/8/0/5/2/8/sysrepart.zip?key=Wwfo1oqhImScVpTSzXTlzA&ts=1589527594 [following]
    --2020-05-15 06:23:16--  https://dl.xda-cdn.com/4/4/8/0/5/2/8/sysrepart.zip?key=Wwfo1oqhImScVpTSzXTlzA&ts=1589527594
    Resolving dl.xda-cdn.com... 104.27.191.76, 104.27.190.76
    Connecting to dl.xda-cdn.com|104.27.191.76|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 782958 (765K) [application/zip]
    Saving to: 'sysrepart.zip'
    
    sysrepart.zip                 100%[=================================================>] 764.61K   591KB/s    in 1.3s
    
    2020-05-15 06:23:20 (591 KB/s) - 'sysrepart.zip' saved [782958/782958]
    
    Press any key to continue . . .
    
    1. boot the Nexus in fastboot mode: when OFF press POWER + VOLUME DOWN
    2. when in the bootloader menu, connect it to your PC
    3. wait a few seconds, then...
    Press any key to continue . . .
    Verify...
    Lock status...
    Flash TWRP? [y/n]: y
    sending 'recovery' (9054 KB)...
    OKAY [  0.297s]
    writing 'recovery'...
    OKAY [  0.516s]
    finished. total time: 0.812s
    
    
    1. on N7 select "Recovery mode" with volume button
    2. on N7 press power button to boot Recovery
    3. when you see TWRP main menu press any key to continue
    
    Wait...
    *
    Installing...
    *****
    Repartition? (no if already repartitioned) [y/n]: y
    Transferring: 782958/782958 (100%)
    2575 KB/s (782958 bytes in 0.296s)
    ***
    Wait...
    Installing zip file '/sdcard/sysrepart.zip'
    Checking for Digest file...
    ###############################
    # k23m Nexus 7'13 Repartition #
    ###############################
    Creating log and gpt backup
    Removing partitions
    Creating new partitions
    Formatting new partitions
    ###############################
    Operation completed. Copy backup gpt and log files from internal storage to PC before rebooting.
    ###############################
    Done processing script file
    ***
    
    ...REBOOTING
    When you see TWRP main menu press any key to continue...
    
    *****
    Proceed only if you really see TWRP main menu
    Press any key to continue . . .
    Do dirty flash? (no if unsure) [y/n]: n
    Wiping data without wiping /data/media ...
    Done.
    Formatting Cache using make_ext4fs...
    Done processing script file
    Formatting System using make_ext4fs...
    Done processing script file
    Wiping Cache & Dalvik...
    -- Dalvik Cache Directories Wipe Complete!
    Done processing script file
    Formatting cache using make_ext4fs...
    Done processing script file
    ***
    Transferring: 413523888/413523888 (100%)
    3649 KB/s (413523888 bytes in 110.640s)
    ***
    Wait...
    Installing zip file '/sdcard/lineage-17.1-20200515-UNOFFICIAL-flo.zip'
    Checking for Digest file...
    Warning: No file_contextsTarget: google/razor/flo:6.0.1/MOB30X/3036618:user/release-keysPatching system image unconditio
    nally...script succeeded: result was [1.000000]Done processing script file
    Install root? [y/n]: y
    Transferring: 5942417/5942417 (100%)
    3868 KB/s (5942417 bytes in 1.500s)
    ***
    Wait...
    Installing zip file '/sdcard/Magisk-v20.4.zip'
    Checking for Digest file...
    ***********************
    Magisk 20.4 Installer
    ***********************
    - Mounting /system
    - Device is system-as-root
    - Mounting /apex/com.android.conscrypt
    - Mounting /apex/com.android.media
    - Mounting /apex/com.android.media.swcodec
    - Mounting /apex/com.android.resolv
    - Mounting /apex/com.android.runtime
    - Mounting /apex/com.android.tzdata
    - System-as-root, keep dm/avb-verity
    - Target image: /dev/block/mmcblk0p14
    - Device platform: arm
    - Constructing environment
    - Adding addon.d survival script
    - Unpacking boot image
    - Checking ramdisk status
    - Stock boot image detected
    - Patching ramdisk
    - Repacking boot image
    - Flashing new boot image
    - Unmounting partitions
    - Done
    Done processing script file
    Install GApps? [y/n]: y
    Transferring: 101519489/101519489 (100%)
    3623 KB/s (101519489 bytes in 27.359s)
    ***
    Wait...
    Installing zip file '/sdcard/open_gapps-arm-10.0-pico-20200515.zip'
    Checking for Digest file...
    
    ##############################
      _____   _____   ___   ____
    /  _  \ |  __ \ / _ \ |  _ \
    |  / \  || |__) | |_| || | \ \
    | |   | ||  ___/|  __/ | | | |
    |  \ /  || |    \ |__  | | | |
    \_/ \_/ |_|     \___| |_| |_|
           ___   _   ___ ___  ___
          / __| /_\ | _ \ _ \/ __|
         | (_ |/ _ \|  _/  _/\__ \
          \___/_/ \_\_| |_|  |___/
    ##############################
    
    Open GApps pico 10.0 - 20200515
    
    - Mounting partitions
    
    - Gathering device & ROM information
    
    - Performing system space calculations
    
    - Removing existing/obsolete Apps
    
    - Installing core GApps
    
    - Installing swypelibs
    - Installing calsync
    - Installing googletts
    - Installing packageinstallergoogle
    
    - Miscellaneous tasks
    
    - Copying Log to /sdcard
    
    - Installation complete!
    
    - Unmounting partitions
    
    Done processing script file
    ***
    
    Done.
    
    Press any key to continue . . .
    
    SUPPORT - http://bit.ly/2C35sLZ
    
    Press any key to exit...

    _____________________________________________________
    REPARTITION

    sysrepart.zip - 1.1GB system, data is not wiped

    sysrepart-max.zip - 1.3GB system, data is not wiped, automatically downloaded by LOS 17.1 script

    sysrepart-flox.zip - 1.5GB system, data is wiped, 'vendor' partition is added, automatically downloaded by LOS 17.1-flox script

    sysrepart-ultimate.zip - 4GB system, data is wiped, 'vendor' partition is added, 'recovery' is enlarged to 64MB in-place and your current TWRP continues to function, flox compatible, automatically downloaded by LOS 18.1-flox script. For N7-16GB try sysrepart-ultimate-2.zip

    sysrepart-stock.zip - data is wiped, original partitions are restored

    • reboot immediately after repartition!
    • sysrepart-ultimate/stock work on any previous repartitions
    • sysrepart/max/flox work reliably only on original partitions
    • to install GApps larger than pico/nano you need sysrepart-ultimate
    • sysrepart-ultimate supports custom, oversized TWRP builds
    To recover from other repartition attempts, simply install sysrepart-ultimate if you intend to use LOS17+ or sysrepart-stock if you have other plans. If direct sysrepart installation is impossible due to TWRP or GPT issues, run the repartition.bat script. On rare occasions you may have to run RESTOCK and "Restore original partitions" with it.

    _____________________________________________________
    UPDATE version 2.5 changes:
    - update components' URLs
    - update relog.bat
    - remove installation scripts of no longer available ROMs
    - add update.bat cleanup script (run it once)
    - add repartition.bat script for repartition-only
    - add lineage-install-3.bat script

    Download CROSS2.zip and unzip it then download cross-update-XXX.zip and unzip it to the CROSS folder, overwrite existing files.

    Also check the very latest interim updates in this post https://xdaforums.com/t/iiiii-cross-custom-rom-scripted-setup.4092215/post-87622749

    ____________________________________________________
    NOTE - most of the attached files are meant for direct script download. Except for CROSS and its updates do not download them manually unless you know what you are doing.
    3
    The 18.1 installation works well from a N7 that has been returned to original stock configuration. Restock->Cross worked fine. The opengapps you are downloading comes up as invalid or corrupt. I found it and applied it myself. Not a big deal, but I thought you should be aware that its broken in that regard. The rest is a snap. Thanks.
    Thank you for your feedback. I updated the GApps' URL in v2.4
    2
    ....Any comment on this? Would this worked correctly?
    Thanks for the suggestion. This code can be abbreviated, same as the other optional items:
    Code:
    set /p ANS=Do dirty flash? (no if unsure) [y/n]: || set ANS=n
    if /i !ANS!==n (
    adb shell twrp wipe /data
    )
    I added it to the v1.2 update.
    2
    Having thanked the developer yesterday on the Restock thread as that got me out of jail I now offer my thanks for this amazing tool.

    With my extremely limited skills I've been able to install Lineage 18.1 on my wife's old Nexus 7 to bring it back to life.

    Incredible :)
    2
    The 18.1 installation works well from a N7 that has been returned to original stock configuration. Restock->Cross worked fine. The opengapps you are downloading comes up as invalid or corrupt. I found it and applied it myself. Not a big deal, but I thought you should be aware that its broken in that regard. The rest is a snap. Thanks.