• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[IIIII] CROSS - Custom ROM Scripted Setup

Search This thread

Spudsicles

Senior Member
Oct 20, 2010
113
11
BC
I screwed around ALL DAY YESTERDAY manually trying to do what your program did AUTOMATICALLY in less than 30 minutes...

I appreciate people like you who make my life easier! (y)(y)(y)
 

Grassred

New member
Jan 4, 2018
3
0
Hi. I started to install lineageOS to my Nexus 7 with this script. Actually I installed restock script ok and now my device is unlocked. But when running lineage-install-2-flox.bat I get errors from "wget" and "grep". I managed to get past those errors if I manually entered lineage-17.1-20210112-UNOFFICIAL-flo.zip. But then when I rebooted to bootloader the script does not recognize device... I have enabled usb debugging and it seems that adb finds device ok. Any ideas?

Code:
NOTE: deb/LTE is not available yet
Enter device name (flo=WiFi; deb=LTE) - [flo/deb]: flo

Use local ROM file? (no if unsure) [y/n]: y
'grep' is not recognized as an internal or external command,
operable program or batch file.
Found local file:
No local file found.
Enter name of ROM file to install: lineage-17.1-20210112-UNOFFICIAL-flo.zip

Use local TWRP file? (no if unsure) [y/n]: y
'grep' is not recognized as an internal or external command,
operable program or batch file.
Found local file:
No local file found.
Enter name of TWRP file to install: twrp-3.4.0-0-flox.img

Press any key to continue . . .

Device not found...
1. disconnect it from PC
2. reboot to bootloader again
3. reconnect it to PC
Press any key to continue . . .
 

k23m

Senior Member
Jan 3, 2016
922
526
Hi. I started to install lineageOS to my Nexus 7 with this script. Actually I installed restock script ok and now my device is unlocked. But when running lineage-install-2-flox.bat I get errors from "wget" and "grep". I managed to get past those errors if I manually entered lineage-17.1-20210112-UNOFFICIAL-flo.zip. But then when I rebooted to bootloader the script does not recognize device... I have enabled usb debugging and it seems that adb finds device ok. Any ideas?

Yes, please reboot your Windows and try again. If still problematic, "Run getlog.bat and include "getlog.log" in your post."

As for " I managed to get past those errors if I manually entered lineage-17.1-20210112-UNOFFICIAL-flo.zip. But then when I rebooted to bootloader the script does not recognize device... " - the UNOFFICIAL will not work with flox script. For UNOFFICIAL simply run lineage-install-2.bat and do not use flox-twrp.



EDIT

Wait, where did you copy the script?

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

If I run lineage-install-2-flox.bat from any random folder I do get the same errors you reported!
 
Last edited:

idCyber

Senior Member
Oct 28, 2012
1,116
682
Thank you so much for this script !
Just used on my flo the lineage-install-2-flox.bat successfully.
Had to use Restock script to restore original partitions because the sysrepart I had on unofficial build was not working to sysrepart-flox on Official Lineage by ud4.
 

cedge

Member
Apr 11, 2019
6
1
Thank you for this, I screwed up trying to repartition to 1.5gb so ran the restock script followed by the Cross v2.2 flox script and it all seems to be back working.
 

zosX

Senior Member
Nov 14, 2010
116
6
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.
 
  • Like
Reactions: ipdev and k23m

k23m

Senior Member
Jan 3, 2016
922
526
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
 

ZoltanG

Member
May 11, 2019
6
0
CROSS is amazing!!! I used first Restock as I already repartitioned my tablet two times and it was a bit confused and messed up. That went very easy and gave a beautiful clean stock install. After that I used CROSS and it was a breeze to install LOS 18.1
THANKS VERY MUCH for these great tools!
 

balesteros

New member
May 21, 2021
2
0
This certainly looks promising! Unfortunately AVG broke installation for the wget prompt because it suspected a virus infection and quarantined the files. Of course I downloaded them again and I removed AVG. But still when running the script i get the following message: "wget is not recognized as an internal or external command". I even added the GNUwin32 BIN folder to the windows path. Any suggestions on how to get the wget command working?

I also tried to run a restock but it failed, maybe caused by the same problem?
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...
eMMC test...
Kingston eMMC detected. If faulty, visit the forum for more info...
If it freezes here, the chip is faulty and needs replacement.
eMMC OK
Lock status...
GPT...
The syntax of the command is incorrect.

If error, copy and post it, include restock.log


Note: Android flash takes 2 minutes, initial boot takes 7 minutes.
Press any key to continue . . .
Sending 'bootloader' (3915 KB) OKAY [ 0.222s]
Writing 'bootloader' OKAY [ 1.447s]
Finished. Total time: 1.765s
Rebooting into bootloader OKAY [ 0.006s]
Finished. Total time: 0.014s
--------------------------------------------
Bootloader Version...: FLO-04.08
Baseband Version.....: none
Serial Number........: 07d56dd4
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.002s]
Checking 'version-bootloader' OKAY [ 0.003s]
extracting boot.img (7 MB) to disk... took 0.235s
archive does not contain 'boot.sig'
Sending 'boot' (7422 KB) OKAY [ 0.243s]
Writing 'boot' OKAY [ 0.539s]
archive does not contain 'dtbo.img'
archive does not contain 'dt.img'
archive does not contain 'pvmfw.img'
extracting recovery.img (7 MB) to disk... took 0.158s
archive does not contain 'recovery.sig'
Sending 'recovery' (8166 KB) OKAY [ 0.268s]
Writing 'recovery' OKAY [ 0.311s]
archive does not contain 'vbmeta.img'
archive does not contain 'vbmeta_system.img'
archive does not contain 'vendor_boot.img'
archive does not contain 'super_empty.img'
archive does not contain 'odm.img'
archive does not contain 'odm_dlkm.img'
archive does not contain 'product.img'
extracting system.img (823 MB) to disk... took 16.713s
archive does not contain 'system.sig'
Sending 'system' (843549 KB) OKAY [ 27.132s]
Writing 'system' OKAY [ 39.014s]
archive does not contain 'system_ext.img'
archive does not contain 'vendor.img'
archive does not contain 'vendor_dlkm.img'
Erasing 'userdata' OKAY [ 2.759s]
mke2fs 1.45.4 (23-Sep-2019)
Creating filesystem with 6963195 4k blocks and 1741488 inodes
Filesystem UUID: f21d7e36-ba66-11eb-b070-71f0550636bc
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'userdata' (180 KB) OKAY [ 0.012s]
Writing 'userdata' FAILED (remote: 'Bogus size s
parse and chunk header')
fastboot: error: Command failed
Press any key to exit...
 
Last edited:

k23m

Senior Member
Jan 3, 2016
922
526
But still when running the script i get the following message: "wget is not recognized as an internal or external command". I even added the GNUwin32 BIN folder to the windows path.

"GNUwin32 BIN folder"? What is it and what are you doing with it? CROSS and RESTOCK do not depend on user added paths, folders, apps, etc. You don't need to do anything extra manually. Simply ensure that AVG is indeed disabled and follow the instructions precisely.

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


RESTOCK USAGE
  1. download the attached zip file (Restock2.zip)
  2. unzip it
  3. double-click on "restock.bat"
  4. follow the prompts

Also...

"If you see errors (including wget), copy and report them. Run getlog.bat and include "getlog.log" in your post."


Incidentally, I note "Kingston eMMC detected..." - this does not look promising as the chip is very unreliable. If you had tried manual N7 update methods, and failed, then CROSS/RESTOCK scripts will not be any better on faulty hardware. But let's focus on the 'wget' issue first. Please post your "getlog.log".

🤞
 

UweRammelt

Senior Member
Apr 15, 2008
246
35
50.756096, 7.092858
Get the error messages
- E2001: Failed to update vendor image
- Failed to mount '\vendor' (Invalid argument).

Any idea what I can do?

---------------------------

Supplement: I did Restock (works) and Cross again: seems to work ...
 
Last edited:

balesteros

New member
May 21, 2021
2
0
"GNUwin32 BIN folder"? What is it and what are you doing with it? CROSS and RESTOCK do not depend on user added paths, folders, apps, etc. You don't need to do anything extra manually. Simply ensure that AVG is indeed disabled and follow the instructions precisely.

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


RESTOCK USAGE
  1. download the attached zip file (Restock2.zip)
  2. unzip it
  3. double-click on "restock.bat"
  4. follow the prompts

Also...

"If you see errors (including wget), copy and report them. Run getlog.bat and include "getlog.log" in your post."


Incidentally, I note "Kingston eMMC detected..." - this does not look promising as the chip is very unreliable. If you had tried manual N7 update methods, and failed, then CROSS/RESTOCK scripts will not be any better on faulty hardware. But let's focus on the 'wget' issue first. Please post your "getlog.log".

🤞
Thanks for your reply K23M! That way I tried to get mget working again, without good results. But somehow a reboot and restock 2 managed to get it running again! Strangely enough my pc didn't recognise the Nexus anymore, but connecting it to another USB port got it right. And after turning on debugging Cross2 managed to get my 8 year old Nexus running on Android 11 making Family Link possible. My daughter (who is actually younger than this tablet) will be VERY grateful!
 

supaabzz

New member
Code:
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 for TWRP main menu, not TWRP boot logo)


Wait...
***********************************************************************************************************************
***********************************************************************************************************************
***********************************************************************************************************************
***
How long does it get stuck on Wait after the steps listed above?
Mine has been doing for 30 minutes + and I am not sure what to do. I cancelled once, and retried stuck on same step.


EDIT:
I've managed to find the issue and get it sorted.
It seems the Wait *** were just due to trying to FASTBOOT to TWRP recovery failing. Looked at the script
Code:
echo Wait...
adb kill-server >nul 2>&1
:adbd
ping -n 3 127.0.0.1 >nul
set /p =*<nul
--updated the * to "waiting for reconnecting" check if it was the issue

I uninstalled the drivers from Device Manager on Windows, then just reconnected directly to Bootloader using Fastboot and it worked perfectly without an issue.
 
Last edited:

names

Senior Member
Jun 28, 2013
84
18
@k23m Firstly, I want to thank you for creating this process and making it as easy as it is to flash. Everything works perfectly and I'm glad to see just how much faster this makes my device.
The only issue I am encountering is when flashing ElementalX-N7-6.17, as it causes my tablet to go into a boot loop. I left most of the settings as is when flashing, but mainly am trying to achieve OTG + Charging.
Any thoughts on a possible solution for this?
 

k23m

Senior Member
Jan 3, 2016
922
526
...when flashing ElementalX-N7-6.17, as it causes my tablet to go into a boot loop. I left most of the settings as is when flashing, but mainly am trying to achieve OTG + Charging. Any thoughts on a possible solution for this?

I suppose you are trying to use the kernel with one of the latest LOS - it will not work.

The kernel is attached to this thread because it worked with LOS14 and an old CROSS script. For OTG + Charging, you can either get LOS14 or the stock ROM, or look for a different kernel.

(y)
 
  • Like
Reactions: names

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    ...when flashing ElementalX-N7-6.17, as it causes my tablet to go into a boot loop. I left most of the settings as is when flashing, but mainly am trying to achieve OTG + Charging. Any thoughts on a possible solution for this?

    I suppose you are trying to use the kernel with one of the latest LOS - it will not work.

    The kernel is attached to this thread because it worked with LOS14 and an old CROSS script. For OTG + Charging, you can either get LOS14 or the stock ROM, or look for a different kernel.

    (y)
  • 13
    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.

    Currently supported ROMs:

    - Android 10 LineageOS 17.1
    - Android 10 LineageOS 17.1-flox
    - Android 11 LineageOS 18.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 flox-repartitioned)
    - root: Magisk (optional)
    - GApps: pico (optional)


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

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

    - Android 10 LineageOS 17.1-flox OFFICIAL maintained by ud4 https://forum.xda-developers.com/t/...-17-1-weeklies-for-nexus-7-2013-flox.4205241/
    - TWRP-flox (optional, no need to reflash it if exists already)
    - repartition: sysrepart-flox.zip by k23m (optional, no need if already flox-repartitioned)
    - root: Magisk (optional)
    - GApps: pico (optional)


    --------------------------
    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.


    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

    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.4 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 of damaged installations


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

    :cool:(y)
    ____________________________________________________
    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
    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.
    1
    Thank you for the great script, CROSS2 - worked perfect! What a help!