[Android Software/Hacking General [Developers Only]] Teracotta:
[MENTION=4141005]Lanchon[/MENTION]

Hello, I have ported this script to d2usc (which should also work for T999, i747, i535), I have included script here, but I am getting errors.

The partitions I chose tor resize are system, cache, data and fota. They are not adjacent but all occur after the modem.

Here is my filename:

lanchon-repit-20190724-cache=100M+wipe-system=2.24G+keep-fota=min+wipe-data=same-d2usc

Here is the log.

####################################
Lanchon REPIT
A Data-Sparing Repartitioning Tool
Version: 2019-07-24
Device: d2usc
Copyright 2016, Lanchon (GPLv3)
####################################

===== PRELIMINARY CHECKS =====
info: valid package names: <prefix>[-(system|data|cache|fota)=<conf>]...<suffix>
info: valid partition <conf> values: [<size>(G|M)|same|min|max][+[keep|wipe][+[ext4|vfat|f2fs|swap|raw]]]

----- DEFAULTS -----
system = size:same + content:keep + fs:ext4
data = size:same + content:keep + fs:ext4
cache = size:same + content:keep + fs:ext4
fota = size:same + content:keep + fs:raw

info: parsing package name

----- CONFIGURATION -----
system = size:2.24G + content:keep + fs:ext4
data = size:same + content:keep + fs:ext4
cache = size:100M + content:wipe + fs:ext4
fota = size:min + content:wipe + fs:raw

info: disabling swap
info: unmounting all partitions
info: rereading partition table

===== PREPARATION =====
info: determining usable sector range of block device
info: checking existing partitions
##### processing heap 'main'
info: checking existing partition layout
cat: can't open '/tmp/lanchon-repit/partition-info/p8/fname': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p8/pname': No such file or directory
info: current size: partition #8 '' (): 0 MiB
cat: can't open '/tmp/lanchon-repit/partition-info/p9/fname': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p9/pname': No such file or directory
info: current size: partition #9 '' (): 0 MiB
cat: can't open '/tmp/lanchon-repit/partition-info/p10/fname': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p10/pname': No such file or directory
info: current size: partition #10 '' (): 10 MiB
cat: can't open '/tmp/lanchon-repit/partition-info/p11/fname': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p11/pname': No such file or directory
info: current size: partition #11 '' (): 13 MiB
cat: can't open '/tmp/lanchon-repit/partition-info/p12/fname': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p12/pname': No such file or directory
info: current size: partition #12 '' (): 3 MiB
cat: can't open '/tmp/lanchon-repit/partition-info/p12/fname': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p12/pname': No such file or directory
WARNING: partition #12 '' () ends 29714 MiB before the end of heap 'main'
info: checking new partition layout
cat: can't open '/tmp/lanchon-repit/partition-info/p8/parsedSize': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p8/parsedContent': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p8/parsedFs': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p8/fname': No such file or directory
cat: can't open '/tmp/lanchon-repit/partition-info/p8/pname': No such file or directory

FATAL: partition #8 '' (): undefined new size

[ERROR 1]

Can you give insight into what the problem is?