Edit:
I'll reedit this soon on browser.
Currently on XDA app but I have a damn fone
I'll reedit this soon on browser.
Currently on XDA app but I have a damn fone
Last edited:
####################################
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]
for starters, you declare fota as raw, which means it cant be resized nor wiped (read the docs) but u declare its default as wipe!
more importantly, you are not grasping the concept of heaps in repit. i also dont know the details of the partitions being non adjacent and thus dont know which method to use to solve that in repit, nor what is fota used for and why you want to resize it and declare it raw.
# 14 221184 3293183 1.5 GiB 8300 system
# 15 3293184 59252735 26.7 GiB 8300 userdata
# 16 59252736 59269119 8.0 MiB 8300 persist
# 17 59269120 60989439 840.0 MiB 8300 cache
# 18 60989440 61009919 10.0 MiB FFFF recovery
# 19 61009920 61030399 10.0 MiB FFFF fota
if you need further help, maybe its best if u PM me your whatsapp so i send u audio messages, as i cant really spend time typing these days
# the disk area (as a sector range) to use for the heap partitions:
heapStart=$(parOldEnd 13) # one past the end of a specific partition
heapEnd=$deviceHeapEnd # one past the last usable sector of the device
@terracota,
i've seen your device has a 1.5GB system. why exactly do you want to increase that?
have you seen this post?
https://github.com/Lanchon/REPIT/issues/70#issuecomment-280895675
I am bias about system size vs. userdata.I have one question, I limited the heap to just 2 partitions, 14 and 15 (all I care about), but I don't know the code to define the end of 15 as the end of the heap
"$deviceHeapEnd" on your other examples is always the end of the partition table, since the userdata is the last partition...how do I define the end of 15 or start of 16 as the end of the heap?
# the set of contiguous partitions that form this heap, in order of ascending partition start address:
heapPartitions="$(seq 14 15)"
# the disk area (as a sector range) to use for the heap partitions:
heapStart=$(parOldEnd 13)
heapEnd=$(parOldEnd 15)
hi,I saw there was still activity here. I posted a request a while back :
Is anyone still looking at those?ZTE Nubia N3 NX608J · Issue #107 · Lanchon/REPIT
This is the repit-dump.log from a ZTE Nubia N3 (NX608J) with android 7.1. I would like to be able to flash an Android 9 or 10 ROM from similar models like the Redmi Note 6 pro or Max 2. I need a wo...github.com
What I was trying to achieve for that device is a move/copy of the vendor files to a separate partition so that Android 8 and up can be ported and hopefully further on with GSI.
I am quite new to all this but I have two of these NX608J phones and have been able before to do some low level system recovery so I am not afraid to try things.
It's great hardware, would love to be able to port some ROMS from other phones to it.
Thanks for any help!
I saw there was still activity here. I posted a request a while back :
Is anyone still looking at those?ZTE Nubia N3 NX608J · Issue #107 · Lanchon/REPIT
This is the repit-dump.log from a ZTE Nubia N3 (NX608J) with android 7.1. I would like to be able to flash an Android 9 or 10 ROM from similar models like the Redmi Note 6 pro or Max 2. I need a wo...github.com
What I was trying to achieve for that device is a move/copy of the vendor files to a separate partition so that Android 8 and up can be ported and hopefully further on with GSI.
I am quite new to all this but I have two of these NX608J phones and have been able before to do some low level system recovery so I am not afraid to try things.
It's great hardware, would love to be able to port some ROMS from other phones to it.
Thanks for any help!
Tried this on a n7000 recently, tried to resize cache, which didn't work, saw partition structure with modem after cache, and understand your concerns in the comments. I imagine the we could so some experiments like you are doing for the Honor 4, however I'm not at the stage where I want to volunteer my device as potential sacrifice.
A question on "wipe", how sure are we that "wipe" actually wipes, ie is all the previous data non-recoverable down to a block level?
Does the wipe trigger some type of NAND erase cycle? This would be problematic on n7000 given the hard brick issues with NAND firmware there, and on the n7000 IIRC the ioctl() is filtered and purposely ignored, maybe this is also an issue with i9100? I don't recall.
If I have a used ext4 parition, and then format & wipe it then I think a fstrim happens. If I then change it to vfat, and dd the partition, am I able to recover blocks from the original ext4 partition, or does the trim cause the nand to regard the blocks as empty and return 0x0000000 or 0x11111111 or something deterministic?
I'm looking for a wipe that actually wipes, ext4 and vfat, rather then my current solution which is to dd if=/dev/zero of=/path, which is slow and is difficult to get a progress report, as kill -USR1 is a PITA.
Unfortunately I realized that I have a much bigger problem. It has ruined the partition table of the ROM. I discovered that the fat storage partition sdcard0 is no longer detected. It seems that there is not. The phone works, more or less. The camera will not, but I downloaded one from the play store.
You can repair it?