[IIIII] CROSS - Custom ROM Scripted Setup

Search This thread

CityKev

Senior Member
Jul 27, 2022
99
38
Redmi Note 10 Pro
Having used CROSS several times already with no issues I have now found my device ends up hanging on the Google image when it tries to reboot.

I've started out from the same point each time by using Restock only now when I use any of the installation options it ends the same as above. I tried deleting the file and re-downloading it in case I had somehow corrupted it but no luck.

I have a functioning device as I've just used Restock but I'm baffled why I can't get CROSS to work again.
 
Last edited:

k23m

Senior Member
Jan 3, 2016
1,001
592
I've started out from the same point each time by using Restock....

The starting point must be always Restock2 + k23m-persist-fix2.zip

I have to release Restock3 with k23m-persist-fix2 in it ASAP as I am getting tired of repeating it ad nauseam.

Now, should k23m-persist-fix2 not resolve the problem, check the top post again, it goes...

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
 
  • Like
Reactions: CityKev and lyushiK

CityKev

Senior Member
Jul 27, 2022
99
38
Redmi Note 10 Pro
The starting point must be always Restock2 + k23m-persist-fix2.zip

I have to release Restock3 with k23m-persist-fix2 in it ASAP as I am getting tired of repeating it ad nauseam.

Now, should k23m-persist-fix2 not resolve the problem, check the top post again, it goes...
Thanks again.

I was using Restock 2 OK I reckon with the persist fix installed so I deleted the CROSS files and reinstalled them. Using the install-2 bat for Lineage 17.1 I clicked no this time for the pre-installed file and it proceeded to download it into Cross. I then choose all the options other than install GApps as I know this doesn't work and it rebooted very quickly.

I'm going to stop playing around now I promise as I've taken more than enough of your time :)
 

wstevew

Senior Member
Oct 22, 2010
55
3
Install question.

I have DL all files and unzipped to C:\CROSS
CROSS2.ZIP
cross-update-v2.5.ZIP


I have also downloaded these

parted.rar
sysrepart.zip
sysrepart-flox.zip
sysrepart-max.zip
sysrepart-stock.zip
sysrepart-ultimate.zip
sysrepart-ultimate-2.zip
sysrepartundo.zip

Do I just place them into C:\CROSS as is or unzip them, or one of them?
 

3dfxvoodoo

Member
Nov 14, 2011
18
1
Corrientes
Hi Friends, I flash the stock image with fastboot then use the script for Flox and I have the last nightly + TWRP in my old Nexus 7, Thanks a lot to the developer
 

k23m

Senior Member
Jan 3, 2016
1,001
592
Any-ROM-Install v1.1b

Let's test out a new, universal ROM install script.

- delete previous version of this script, if any
- unzip the attachment to CROSS' folder
- save a new ROM to CROSS' folder
- save a new Gapps to CROSS\data subfolder
- keep only one copy of Gapps in the subfolder or enter file name manually
- drag-and-drop the new ROM file onto any-rom-install.bat

If there are no bugs, it will be included in the next CROSS update. Please post your comments and suggestions.
 

Attachments

  • any-rom-install-v1.1b.zip
    2.3 KB · Views: 68
  • Like
Reactions: lyushiK

killeriq

Senior Member
Dec 10, 2008
200
27
Any-ROM-Install v1.1b

Let's test out a new, universal ROM install script.

- delete previous version of this script, if any
- unzip the attachment to CROSS' folder
- save a new ROM to CROSS' folder
- save a new Gapps to CROSS\data subfolder
- keep only one copy of Gapps in the subfolder or enter file name manually
- drag-and-drop the new ROM file onto any-rom-install.bat

If there are no bugs, it will be included in the next CROSS update. Please post your comments and suggestions.
Just tried it, but still missing "repart" option function, on 16GB nexus which had 12.2GB space is after "Installing zip file '/tmp/sysrepart-ultimate.zip'" only 8.4 :(
Would be great if you could add also smaller reparts

Thanks
 
  • Like
Reactions: k23m

killeriq

Senior Member
Dec 10, 2008
200
27
Seems like "Any-ROM-Install v1.1b" download automatically older version of TWRP even newer is in the \Data already present

Code:
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

Downloading installation files.

--2022-12-04 12:20:49--  https://dl.twrp.me/flo/twrp-3.5.2_9-0-flo.img
Resolving dl.twrp.me... 147.135.38.227
Connecting to dl.twrp.me|147.135.38.227|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10301440 (9,8M) [application/octet-stream]
Saving to: 'twrp-3.5.2_9-0-flo.img'

twrp-3.5.2_9-0-flo.img         40%[===================>                              ]   3,98M   427KB/s    eta 17s    ^CTerminate batch job (Y/N)? y
 

RagManX

Senior Member
Sep 11, 2010
79
15
Memphis
Thank you so much for this thread and these tools/scripts. I found the Lineage 18 manual repartition guide elsewhere on the web, and since I wanted to start using my Nexus 7 (flo) again, I tried. Unfortunately, something went wrong, and I failed (although I'm not sure looking back what I did wrong, know it had to be user error). Regardless, I searched for a solution, found this thread, and used Restock followed by CROSS to get my system up and running with a repartitioned layout and the latest Lineage installed. Really appreciate how easy you've made this!
 
  • Like
Reactions: ipdev

Ruggerxpunk

Senior Member
Jul 8, 2010
725
157
I've been trying for hours to get this to work and for some reason cannot.

I've run the RESTOCK about 8 times now because every time I try to run a CROSS script (lineage-install) it gets hung on the Wait************************ when it's in TWRP.

This is the order I have been trying to install files manually so far:

1) TWRP
2) Flash k23m-fstrim.zip
2) Flash sysrepart-ultimate.zip
3) At this point if I reboot, it hangs on the Google screen
4) Run RESTOCK
5) Start over, try to run CROSS lineage-install
6) Goes well until boots into TWRP then says Wait*****************************************************
7) Run RESTOCK
8) Rinse and repeat.

I tried to uninstall the 'ACER ADB Interface' drivers from Windows 10, which worked.
Then I plugged the Nexus 7 back into my PC while in the Bootloader. It automatically reinstalled the ACER ADB Interface drivers, so I have to assume those are "correct", because RESTOCK and everything else Fastboot related works. So I'm not sure why I'm getting the Wait**************************** issue.

If I can just download the files individually, and load up Android 6, then transfer them onto the Nexus 7 Hard Drive, in which order should I flash them in TWRP?

Or is there a way to just automate this and fix my Wait*********** issue?

Thanks!
 

k23m

Senior Member
Jan 3, 2016
1,001
592
2) Flash k23m-fstrim.zip
2) Flash sysrepart-ultimate.zip
3) At this point if I reboot, it hangs on the Google screen

k23m-fstrim.zip - once is enough in this context

Try this:
  1. RESTOCK
  2. addons
  3. k23m-persist-fix2.zip
  4. CROSS > lineage-install-3-flox.bat
  5. from CROSS sysrepart-ultimate // one-off and never again needed

If the "Wait****** issue" still persists due to a TWRP version or hardware compatibility, you have to try manual installation. Send me a PM if still unresolved.
 
  • Like
Reactions: lyushiK

Engen2023

New member
Feb 2, 2023
3
2
k23m-fstrim.zip - once is enough in this context

Try this:
  1. RESTOCK
  2. addons
  3. k23m-persist-fix2.zip
  4. CROSS > lineage-install-3-flox.bat
  5. from CROSS sysrepart-ultimate // one-off and never again needed

If the "Wait****** issue" still persists due to a TWRP version or hardware compatibility, you have to try manual installation. Send me a PM if still unresolved.

Hello,

I have the same issue as in post #35 and #95. It says "wait *****************************". I did what you said in post #96 (quoted).

1. Restock - no problem
2. addons - here I need to do the thing where I press anykey while viewing TWRP menu. And it goes to the process with "wait ........" here aswell. So both times when I am about to continue process when TWRP menu has loaded, I am stuck.

Better go on with manual installation or do you have any comment?

This occurs when aiming at running lineage-install-3-flox.bat

Thank you very much for your work. I bricked my device about 6 months ago when I did the official LineageOS repartition guide. I ran your RESTOCK2 yesterday (offcourse excluding addons and so on because of problem described above) . Your work is Gold!
 
  • Like
Reactions: k23m

Engen2023

New member
Feb 2, 2023
3
2
I think so. This issue used to be very rare. I suspect it has something to do with the new versions of Windows.
Okay,

I am running this on an older w10 pc.

Did you send a guide for manually installation to ruggerxpunk? Can you send it to me aswell?

I used to Flash some phones a couple of years ago, but I am a bit rusty at the moment.
I could probably read the example you post in post #1 and work out what to do. But if it's easy for your to send I would be thankful.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    hi sorry, nice work, i read the explanations, but i didn't understand if the script also downloads the rom or you have to find it separately, i only have rom 16 and 18 but i would like 17 which is not found for downloading. thanks

    The script downloads ROMs if it is possible to be scripted, otherwise you can just drop a ROM to CROSS' folder for installation.
  • 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://forum.xda-developers.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://forum.xda-developers.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://forum.xda-developers.com/t/...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://forum.xda-developers.com/attachment.php?attachmentid=4480528
    Resolving forum.xda-developers.com... 104.18.19.88, 104.18.18.88
    Connecting to forum.xda-developers.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://forum.xda-developers.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.