[ROM][UNOFFICIAL][11.0][ N7105/T0LTE ][Samsung Galaxy Note 2 LTE][ LineageOS 18.1 ][BETA][TREBLELIZED]

Search This thread
D

Deleted member 11848357

Guest
Ah ok, I will try this.

The display brightness is set to 20% as minimum value.
Yeah, I saw ro.lcd_min_brightness is set to 20 so I changed it to 10/1
with no effect on each.

both
settings get system screen_brightness
cat /sys/class/backlight/panel/brightness
shows 30 not 20
with default settings and with changes to ro.lcd_min_brightness
both echo 10/1 > /sys/class/backlight/panel/brightness and
settings put system screen_brightness 10/1 don't work
autobrightness is off with brightness level showing 0 % in settings

maybe limitation of driver/panel? I'll have to dig around to see what Samsung defaults are.

reason for all this is that - if you use the brightness slider, there's isn't very noticeable difference until you're at 40% so 20% is same as 0%.

I also added qemu.hw.mainkeys=0 to build.prop so I can get gesture navigation for easier one-handed use.
Works decently even with physical/capacitve buttons
 
Last edited by a moderator:

HarimaruYT

New member
Oct 21, 2021
2
0
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*/


Hi,

here you can find my version for the Samsung Galaxy Note 2 LTE on LineageOS 18.1.
At first I want to thank @rINanDO, @ChronoMonochrome for all your work which was reused here and helped a lot.

This ROM is only tested with N7105, so maybe you could to give me a feedback if it does or does not work with all the different Note 2 LTE variants.

Attention:
I would recommend to set the device to 3G, at the moment, you have to reset the APN settings after every boot to enable mobile data, I'm working on this.
But you're free to test LTE and report your experience.

It theoretically should fit for:
  • SGH-I317
  • SGH-I317M
  • SCH-I605
  • SPH-L900
  • SGH-T889
  • SHV-E250S
  • SHV-E250K
  • SHV-E250L
  • SC-02E
  • GT-N7105/N7105T
  • SGH-T889V
  • SHV-E250S/E250K/E250L
  • SC-02E (SGH-N025)
Here you can see how far everything is working:

Boot
Audio
Bluetooth
Graphics
Cameras
Wifi
USB
Video playback (HW/SW)
OTA Updates
RIL
GPS, but there's no fix
Tethering via USB, WIFI and Bluetooth
Sensors, except compass
  • Maybe some apps because of video decoding issues
  • GPS fix, but navigating is working fine
  • SIM might be not detected / Data might be not available upon boot (reboot to fix).
  • Maybe random reboots because of a modem crash
  • Maybe more
If you are going to use Gapps,
I recommend to use the pico package!
https://opengapps.org/
For the others, you can use microG if you want, I've enabled signature spoofing.

Do you like my work?
Than you can simply hit the thanks button and consider to spend me a coffee or a beer,
I'm doing this in my free time and it also costs a lot of money to buy hardware.
donate


XDA:DevDB Information
[ROM][11.x][N7105/T0LTE][ALPHA] LineageOS 18.1, ROM for the Samsung Galaxy Note 2 LTE

Contributors

html6405
Source Code: https://github.com/html6405

ROM OS Version: 11.x R
ROM Kernel: Linux 3.x
ROM Firmware Required: TWRP 3.3.0
Based On: LineageOS

Version Information
Status:
Alpha

Created 2021-10-11
Last Updated 2021-10-11
just for information
ill try on my device SHV-E250S
the Lineage OS is good but
the problem is Wifi and SIM Card can't connected, just it

can someone tell me OS recomended 100% work for SHV-E250S
or GT-N7100, 100% i mean the sim card is good, wifi working good without instaling fix-murata.zip ( but if murata.zip can help no problem ) and gapps can fit the android without error. thankyou
 

html6405

Recognized Developer
reason for all this is that - if you use the brightness slider, there's isn't very noticeable difference until you're at 40% so 20% is same as 0%.
This is because of the changed auto brightness behaviour from android 11 itself, I would have to overwork the values in the driver + create some new overlay values.

the problem is Wifi and SIM Card can't connected, just it
The sim part is still buggy, but I'm working on this to get it more stable.
Theoretically, it should get recognized, maybe after the second reboot and if you wan't to use the mobile data, you have to reset the APN settings after every boot.
Wifi is working fine in my case, what exactly happens?
Nope, this is for the N7105...
 
D

Deleted member 11848357

Guest
This is because of the changed auto brightness behaviour from android 11 itself, I would have to overwork the values in the driver + create some new overlay values.
ok cool so in...

overlay/frameworks/base/core/res/res/values/config.xml

I added

Code:
<integer-array name="config_autoBrightnessLevels">
        <item>5</item>
        <item>9</item>
        <item>30</item>
        <item>100</item>
        <item>325</item>
        <item>1250</item>
        <item>3500</item>
        <item>10000</item>
        <item>20000</item>
    </integer-array>

    <integer-array name="config_autoBrightnessLcdBacklightValues">
        <!--     5 --> <item>6</item>
        <!--     9 --> <item>18</item>
        <!--    30 --> <item>30</item>
        <!--   100 --> <item>59</item>
        <!--   325 --> <item>74</item>
        <!--  1250 --> <item>92</item>
        <!--  3500 --> <item>118</item>
        <!-- 10000 --> <item>155</item>
        <!-- 20000 --> <item>222</item>
                       <item>255</item>
    </integer-array>

<integer name="config_screenBrightnessSettingMinimum">6</integer>

in smdk4412 kernel - drivers/video/backlight needs what?
 
Last edited by a moderator:

html6405

Recognized Developer
in smdk4412 kernel - drivers/video/backlight needs what?
I can't tell you know, but as I did on the Samsung Galaxy S3, it could be that the values from 0 to 255 need to get customized.
I will improve the backlight values anyway soon, this is just the first alpha build, so at first I will conentrate on the RIL part, afterwards autobrightness and other stuff.
 
D

Deleted member 11848357

Guest
I can't tell you know, but as I did on the Samsung Galaxy S3, it could be that the values from 0 to 255 need to get customized.
I will improve the backlight values anyway soon, this is just the first alpha build, so at first I will conentrate on the RIL part, afterwards autobrightness and other stuff.
thanks no rush, I'm just learning this stuff as a hobby.
 

Robs03

New member
Oct 17, 2021
3
0
Can someone please explain how to minimize a window that you have open on the Samsung Note 2 like how you can in Microsoft Windows?

On a previous Lineage version the menu button on the Note 2 when pressed would show all the apps open in a layered type affect and I could then press whichever app to open it again in full screen.

Thanks
 
D

Deleted member 11848357

Guest
same as you. i cant flash this rom.
can u give a solution? how to fix this?
hey, yeah it depends on what you have currently running on your device
and your comfort level with diy - which baseband/rom/twrp do you have now

basically, what's happeneing to TMo Note 2s is that the HIDDEN partition is too small (~20MB) to repurpose for use as the vendor partition for treble roms. The HIDDEN partition contains carrier bloatware that reinstalls on every factory reset. International Note2s have a much larger partition (~550MB).

maybe, @html6405 can add a partition size logic check to /META-INF/com/google/android/updater-script ?

there are three solutions:

a) since it's recommend to flash twrp through odin/heimdall, a modified .pit (partition information table) with correct sizes can also be flashed at the same time. There's a tool called Pit Magic that can do this.

b) a flashable twrp script - needs to be made

c) manually repartition using parted through adb shell/can be done through twrp also I suppose

I went the manual way, since for me, it's a time one thing.

I'll add a manual tutorial later since I don't have the note 2 in front of me.
 

jim28gun

Member
Feb 23, 2013
7
0
hey, yeah it depends on what you have currently running on your device
and your comfort level with diy - which baseband/rom/twrp do you have now

basically, what's happeneing to TMo Note 2s is that the HIDDEN partition is too small (~20MB) to repurpose for use as the vendor partition for treble roms. The HIDDEN partition contains carrier bloatware that reinstalls on every factory reset. International Note2s have a much larger partition (~550MB).

maybe, @html6405 can add a partition size logic check to /META-INF/com/google/android/updater-script ?

there are three solutions:

a) since it's recommend to flash twrp through odin/heimdall, a modified .pit (partition information table) with correct sizes can also be flashed at the same time. There's a tool called Pit Magic that can do this.

b) a flashable twrp script - needs to be made

c) manually repartition using parted through adb shell/can be done through twrp also I suppose

I went the manual way, since for me, it's a time one thing.

I'll add a manual tutorial later since I don't have the note 2 in front of me.
ok i will wait tutorial .😁
 
D

Deleted member 11848357

Guest
ok i will wait tutorial .😁
ok, well - here it is.

I assume no responsibility if you brick your device.Back up any info.

a.You should be on the latest firmware:

b. You need the latest TWRP:

c. You need adb tools:
ca. You may need Samsung drivers if on Windows

d. You need parted static binary for arm - download and unzip:

_ _ _

1. Connect usb and boot in TWRP recovery on Note 2
2. In terminal type

Bash:
adb devices  #Will show phone in recovery mode
adb push location/of/parted /
adb shell
chmod +x parted
umount /system
umount /data
umount /cache
umount /sdcard
./parted /dev/block/mmcblk0

Now you're in parted console

3. In console type
Bash:
unit MB

print free

It will show something like for 16GB internal storage :

Code:
Model: MMC MAG4FB (sd/mmc)
Disk /dev/block/mmcblk0: 15758MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End      Size     File system  Name        Flags
        0.02MB  4.19MB   4.18MB   Free Space
1      4.19MB  8.39MB   4.19MB                BOTA0
2      8.39MB  12.6MB   4.19MB                BOTA1
3      12.6MB  33.6MB   21.0MB   ext4         EFS
4      33.6MB  37.7MB   4.19MB                m9kefs1
5      37.7MB  41.9MB   4.19MB                m9kefs2
6      41.9MB  46.1MB   4.19MB                m9kefs3
7      46.1MB  54.5MB   8.39MB                PARAM
8      54.5MB  62.9MB   8.39MB                BOOT
9      62.9MB  71.3MB   8.39MB                RECOVERY
10      71.3MB  164MB    92.3MB   fat16        RADIO
11      164MB   432MB    268MB    ext4         TOMBSTONES
12      432MB   944MB    512MB    ext4         CACHE
13      944MB   2944MB   2000MB   ext2         SYSTEM
14      2944MB  3531MB   587MB    ext2         HIDDEN
15      3531MB  3539MB   8.00MB                OTA
16      3539MB  15758MB  12219MB  ext4         USERDATA

Only modify partitions from 12 -16 :
Otherwise, you will have to flash stock .pit/rom to fix and start over

Your partition sizes will be the original values from stock if you never modified them. Below are mine after I modified them.


Code:
12      432MB   944MB    512MB    ext4         CACHE
13      944MB   2944MB   2000MB   ext2         SYSTEM
14      2944MB  3531MB   587MB    ext2         HIDDEN
15      3531MB  3539MB   8.00MB                OTA
16      3539MB  15758MB  12219MB  ext4         USERDATA

You can resize how ever you want but it's important to grow the HIDDEN (to use as vendor partition for treble) and SYSTEM (for gapps/future use) partition. I took space from CACHE partition as I don't think it's necessary anymore.

4.Partitions must be contiguous and in order so can't resize without deletion- type

Bash:
rm 12
rm 13
rm 14
rm 15
rm 16

5. Now the partitions must be recreated in the same order as deletion - type

Bash:
mkpart primary ext4 432 944 #End of partition 11/in example above#
name 12 CACHE

mkpart primary ext4 944 2944
name 13 SYSTEM

mkpart primary ext4 2944 3531
name 14 HIDDEN

mkpart primary  3531 3539
name 15 OTA

mkpart primary ext4 3539 15758
name 16 USERDATA

6. Now quit parted console - type

Bash:
quit

7. Make sure partitions are formatted correctly - type

Bash:
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p12
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p13
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p14
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p16

Now check to make sure it looks right - type

Bash:
./parted /dev/block/mmcblk0 p free
exit

Then reboot TWRP and flash the rom.

You might see some errors in TWRP so, you'll want to go to Wipe > Advanced Wipe > check "System" then head to "Repair or Change File System", > then tap on "Resize File System." Do the same for the other partitions.
 
Last edited by a moderator:

jim28gun

Member
Feb 23, 2013
7
0
ok, well - here it is.

I assume no responsibility if you brick your device.Back up any info.

a.You should be on the latest firmware:

b. You need the latest TWRP:

c. You need adb tools:
ca. You may need Samsung drivers if on Windows

d. You need parted static binary for arm - download and unzip:

_ _ _

1. Connect usb and boot in TWRP recovery on Note 2
2. In terminal type

Bash:
adb devices  #Will show phone in recovery mode
adb push location/of/parted /
adb shell
chmod +x parted
umount /system
umount /data
umount /cache
umount /sdcard
./parted /dev/block/mmcblk0

Now you're in parted console

3. In console type
Bash:
unit MB

print free

It will show something like for 16GB internal storage :

Code:
Model: MMC MAG4FB (sd/mmc)
Disk /dev/block/mmcblk0: 15758MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End      Size     File system  Name        Flags
        0.02MB  4.19MB   4.18MB   Free Space
1      4.19MB  8.39MB   4.19MB                BOTA0
2      8.39MB  12.6MB   4.19MB                BOTA1
3      12.6MB  33.6MB   21.0MB   ext4         EFS
4      33.6MB  37.7MB   4.19MB                m9kefs1
5      37.7MB  41.9MB   4.19MB                m9kefs2
6      41.9MB  46.1MB   4.19MB                m9kefs3
7      46.1MB  54.5MB   8.39MB                PARAM
8      54.5MB  62.9MB   8.39MB                BOOT
9      62.9MB  71.3MB   8.39MB                RECOVERY
10      71.3MB  164MB    92.3MB   fat16        RADIO
11      164MB   432MB    268MB    ext4         TOMBSTONES
12      432MB   944MB    512MB    ext4         CACHE
13      944MB   2944MB   2000MB   ext2         SYSTEM
14      2944MB  3531MB   587MB    ext2         HIDDEN
15      3531MB  3539MB   8.00MB                OTA
16      3539MB  15758MB  12219MB  ext4         USERDATA

Only modify partitions from 12 -16 :
Otherwise, you will have to flash stock .pit/rom to fix and start over

Your partition sizes will be the original values from stock if you never modified them. Below are mine after I modified them.


Code:
12      432MB   944MB    512MB    ext4         CACHE
13      944MB   2944MB   2000MB   ext2         SYSTEM
14      2944MB  3531MB   587MB    ext2         HIDDEN
15      3531MB  3539MB   8.00MB                OTA
16      3539MB  15758MB  12219MB  ext4         USERDATA

You can resize how ever you want but it's important to grow the HIDDEN (to use as vendor partition for treble) and SYSTEM (for gapps/future use) partition. I took space from CACHE partition as I don't think it's necessary anymore.

4.Partitions must be contiguous and in order so can't resize without deletion- type

Bash:
rm 12
rm 13
rm 14
rm 15
rm 16

5. Now the partitions must be recreated in the same order as deletion - type

Bash:
mkpart primary ext4 432 944 #End of partition 11/in example above#
name 12 CACHE

mkpart primary ext4 944 2944
name 13 SYSTEM

mkpart primary ext4 2944 3531
name 14 HIDDEN

mkpart primary  3531 3539
name 15 OTA

mkpart primary ext4 3539 15758
name 16 USERDATA

6. Now quit parted console - type

Bash:
quit

7. Make sure partitions are formatted correctly - type

Bash:
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p12
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p13
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p14
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p16

Now check to make sure it looks right - type

Bash:
./parted /dev/block/mmcblk0 p free
exit

Then reboot TWRP and flash the rom.

You might see some errors in TWRP so, you'll want to go to Wipe > Advanced Wipe > check "System" then head to "Repair or Change File System", > then tap on "Resize File System." Do the same for the other partitions.
OMG.. i do some mistake..
when i check my phone..
t889, i lost my imei and baseband.😭
i don't hava any backup..
how to fix this? i tried to inject and repair imei with z3x tool but still lost imei😭
 

xBkKx

Senior Member
Sep 30, 2011
734
375
Finally got this running on my I317 after multiple trial and errors flashing files to adjust the vendor partition its crazy to me this phone has android 11 nice work (y)
 

Mnementh666

Senior Member
Feb 9, 2009
352
86
Portland OR
ok, well - here it is.

--snip--

You might see some errors in TWRP so, you'll want to go to Wipe > Advanced Wipe > check "System" then head to "Repair or Change File System", > then tap on "Resize File System." Do the same for the other partitions.
You good sir are awesome.

However, using the parted you linked to ended with a "kernel too old" error when running in adb shell.

I searched around, and found this version, which worked.
 

html6405

Recognized Developer

xBkKx

Senior Member
Sep 30, 2011
734
375
This is how I managed to get the ROM to flash this (as far as I know) should be doable without a PC if TWRP is already flashed and there is an SD card in the phone. I don't know if this will work for any devices other than AT&T(I317) and T-Mobile (T889)

1. **BACKUP ENTIRE INTERNAL STORAGE** this will wipe your device.
2. Download the ROM, GAPPS, CWM.zip, TWRP.zip, and Note2-LTE_Repartition.zip and copy them to external SD Card
3. Reboot recovery (assuming TWRP is already flashed as the recovery)
4. Once in TWRP: Install -> CWM.zip -> Swipe to confirm Flash (device will reboot into CWM recovery)
5. Once in CWM: Install zip -> choose zip from /storage/sdcard1 -> Note2-LTE_Repartition.zip -> Yes - Install (device will reboot back into CWM)
6. Once in CWM #2: install zip -> choose zip from /storage/sdcard1 -> TWRP.zip -> Yes - Install (device will reboot into TWRP)
7. Once in TWRP #2: Swipe to Allow Modifications -> Wipe -> Format Data -> yes -> home button
8. Install -> Select Storage -> Micro SD Card -> OK -> select the ROM zip -> Swipe to confirm Flash
9. Flash GAPPS/Reboot System

-I had to flash CWM first because the zip was not doing anything when flashing it in TWRP but worked in CWM for some reason.
 

Attachments

  • Note2-LTE_Repartition.zip
    4.2 KB · Views: 200
  • TWRP.zip
    8.1 MB · Views: 213
  • CWM.zip
    7.3 MB · Views: 191

html6405

Recognized Developer
This is how I managed to get the ROM to flash this (as far as I know) should be doable without a PC if TWRP is already flashed and there is an SD card in the phone. I don't know if this will work for any devices other than AT&T(I317) and T-Mobile (T889)

1. **BACKUP ENTIRE INTERNAL STORAGE** this will wipe your device.
2. Download the ROM, GAPPS, CWM.zip, TWRP.zip, and Note2-LTE_Repartition.zip and copy them to external SD Card
3. Reboot recovery (assuming TWRP is already flashed as the recovery)
4. Once in TWRP: Install -> CWM.zip -> Swipe to confirm Flash (device will reboot into CWM recovery)
5. Once in CWM: Install zip -> choose zip from /storage/sdcard1 -> Note2-LTE_Repartition.zip -> Yes - Install (device will reboot back into CWM)
6. Once in CWM #2: install zip -> choose zip from /storage/sdcard1 -> TWRP.zip -> Yes - Install (device will reboot into TWRP)
7. Once in TWRP #2: Swipe to Allow Modifications -> Wipe -> Format Data -> yes -> home button
8. Install -> Select Storage -> Micro SD Card -> OK -> select the ROM zip -> Swipe to confirm Flash
9. Flash GAPPS/Reboot System

-I had to flash CWM first because the zip was not doing anything when flashing it in TWRP but worked in CWM for some reason.
Thanks, I've wanted to create a zip anyway soon,
I will link your post on the start post.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Code:
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    *
    */


    Hi,

    here you can find my version for the Samsung Galaxy Note 2 LTE on LineageOS 18.1.
    At first I want to thank @rINanDO, @ChronoMonochrome for all your work which was reused here and helped a lot.

    This ROM is only tested with N7105, so maybe you could to give me a feedback if it does or does not work with all the different Note 2 LTE variants.

    It theoretically should fit for:
    • SGH-I317
    • SGH-I317M
    • SCH-I605
    • SPH-L900
    • SGH-T889
    • SHV-E250S
    • SHV-E250K
    • SHV-E250L
    • SC-02E
    • GT-N7105/N7105T
    • SGH-T889V
    • SHV-E250S/E250K/E250L
    • SC-02E (SGH-N025)
    Here you can see how far everything is working:

    Boot
    Audio
    Bluetooth
    Graphics
    Cameras
    Wifi
    USB
    Video playback (HW/SW)
    OTA Updates
    RIL
    GPS
    Tethering via USB, WIFI and Bluetooth
    Sensors, except compass
    • Maybe random reboots because of a modem crash
    • Maybe more
    Samsung seems to use differen't partition tables for these devices,
    so far we know a t889, I317 and maybe other devices != n7105 are having a too small HIDDEN (for us vendor) partition.
    So if you're facing problems like here

    Getting "E2001: Failed to update vendor image." during clean flash.

    This means that you have to resize it, check out these two posts:
    Manual way
    Zip way
    If you are going to use Gapps,
    I recommend to use the pico package!
    https://opengapps.org/
    For the others, you can use microG if you want, I've enabled signature spoofing.

    Do you like my work?
    Than you can simply hit the thanks button and consider to spend me a coffee or a beer,
    I'm doing this in my free time and it also costs a lot of money to buy hardware.
    donate


    Wanna improve your sound configs, control your charging current and more?
    Now you can use my app to access all boeffla configurations, there will follow more functions.


    XDA:DevDB Information
    [ROM][11.x][N7105/T0LTE][BETA] LineageOS 18.1, ROM for the Samsung Galaxy Note 2 LTE

    Contributors

    html6405
    Source Code: https://github.com/html6405

    ROM OS Version: 11.x R
    ROM Kernel: Linux 3.x
    ROM Firmware Required: TWRP 3.3.0
    Based On: LineageOS

    Version Information
    Status:
    Beta
    SELINUX: permissive

    Created 2021-10-11
    Last Updated 2022-04-20
    4
    This is how I managed to get the ROM to flash this (as far as I know) should be doable without a PC if TWRP is already flashed and there is an SD card in the phone. I don't know if this will work for any devices other than AT&T(I317) and T-Mobile (T889)

    1. **BACKUP ENTIRE INTERNAL STORAGE** this will wipe your device.
    2. Download the ROM, GAPPS, CWM.zip, TWRP.zip, and Note2-LTE_Repartition.zip and copy them to external SD Card
    3. Reboot recovery (assuming TWRP is already flashed as the recovery)
    4. Once in TWRP: Install -> CWM.zip -> Swipe to confirm Flash (device will reboot into CWM recovery)
    5. Once in CWM: Install zip -> choose zip from /storage/sdcard1 -> Note2-LTE_Repartition.zip -> Yes - Install (device will reboot back into CWM)
    6. Once in CWM #2: install zip -> choose zip from /storage/sdcard1 -> TWRP.zip -> Yes - Install (device will reboot into TWRP)
    7. Once in TWRP #2: Swipe to Allow Modifications -> Wipe -> Format Data -> yes -> home button
    8. Install -> Select Storage -> Micro SD Card -> OK -> select the ROM zip -> Swipe to confirm Flash
    9. Flash GAPPS/Reboot System

    -I had to flash CWM first because the zip was not doing anything when flashing it in TWRP but worked in CWM for some reason.
    3
    D
    Deleted member 11848357
    ok i will wait tutorial .😁
    ok, well - here it is.

    I assume no responsibility if you brick your device.Back up any info.

    a.You should be on the latest firmware:

    b. You need the latest TWRP:

    c. You need adb tools:
    ca. You may need Samsung drivers if on Windows

    d. You need parted static binary for arm - download and unzip:

    _ _ _

    1. Connect usb and boot in TWRP recovery on Note 2
    2. In terminal type

    Bash:
    adb devices  #Will show phone in recovery mode
    adb push location/of/parted /
    adb shell
    chmod +x parted
    umount /system
    umount /data
    umount /cache
    umount /sdcard
    ./parted /dev/block/mmcblk0

    Now you're in parted console

    3. In console type
    Bash:
    unit MB
    
    print free

    It will show something like for 16GB internal storage :

    Code:
    Model: MMC MAG4FB (sd/mmc)
    Disk /dev/block/mmcblk0: 15758MB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    
    Number  Start   End      Size     File system  Name        Flags
            0.02MB  4.19MB   4.18MB   Free Space
    1      4.19MB  8.39MB   4.19MB                BOTA0
    2      8.39MB  12.6MB   4.19MB                BOTA1
    3      12.6MB  33.6MB   21.0MB   ext4         EFS
    4      33.6MB  37.7MB   4.19MB                m9kefs1
    5      37.7MB  41.9MB   4.19MB                m9kefs2
    6      41.9MB  46.1MB   4.19MB                m9kefs3
    7      46.1MB  54.5MB   8.39MB                PARAM
    8      54.5MB  62.9MB   8.39MB                BOOT
    9      62.9MB  71.3MB   8.39MB                RECOVERY
    10      71.3MB  164MB    92.3MB   fat16        RADIO
    11      164MB   432MB    268MB    ext4         TOMBSTONES
    12      432MB   944MB    512MB    ext4         CACHE
    13      944MB   2944MB   2000MB   ext2         SYSTEM
    14      2944MB  3531MB   587MB    ext2         HIDDEN
    15      3531MB  3539MB   8.00MB                OTA
    16      3539MB  15758MB  12219MB  ext4         USERDATA

    Only modify partitions from 12 -16 :
    Otherwise, you will have to flash stock .pit/rom to fix and start over

    Your partition sizes will be the original values from stock if you never modified them. Below are mine after I modified them.


    Code:
    12      432MB   944MB    512MB    ext4         CACHE
    13      944MB   2944MB   2000MB   ext2         SYSTEM
    14      2944MB  3531MB   587MB    ext2         HIDDEN
    15      3531MB  3539MB   8.00MB                OTA
    16      3539MB  15758MB  12219MB  ext4         USERDATA

    You can resize how ever you want but it's important to grow the HIDDEN (to use as vendor partition for treble) and SYSTEM (for gapps/future use) partition. I took space from CACHE partition as I don't think it's necessary anymore.

    4.Partitions must be contiguous and in order so can't resize without deletion- type

    Bash:
    rm 12
    rm 13
    rm 14
    rm 15
    rm 16

    5. Now the partitions must be recreated in the same order as deletion - type

    Bash:
    mkpart primary ext4 432 944 #End of partition 11/in example above#
    name 12 CACHE
    
    mkpart primary ext4 944 2944
    name 13 SYSTEM
    
    mkpart primary ext4 2944 3531
    name 14 HIDDEN
    
    mkpart primary  3531 3539
    name 15 OTA
    
    mkpart primary ext4 3539 15758
    name 16 USERDATA

    6. Now quit parted console - type

    Bash:
    quit

    7. Make sure partitions are formatted correctly - type

    Bash:
    mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p12
    mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p13
    mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p14
    mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p16

    Now check to make sure it looks right - type

    Bash:
    ./parted /dev/block/mmcblk0 p free
    exit

    Then reboot TWRP and flash the rom.

    You might see some errors in TWRP so, you'll want to go to Wipe > Advanced Wipe > check "System" then head to "Repair or Change File System", > then tap on "Resize File System." Do the same for the other partitions.
    2
    Finally got this running on my I317 after multiple trial and errors flashing files to adjust the vendor partition its crazy to me this phone has android 11 nice work (y)
    2
    D
    Deleted member 11848357
    same as you. i cant flash this rom.
    can u give a solution? how to fix this?
    hey, yeah it depends on what you have currently running on your device
    and your comfort level with diy - which baseband/rom/twrp do you have now

    basically, what's happeneing to TMo Note 2s is that the HIDDEN partition is too small (~20MB) to repurpose for use as the vendor partition for treble roms. The HIDDEN partition contains carrier bloatware that reinstalls on every factory reset. International Note2s have a much larger partition (~550MB).

    maybe, @html6405 can add a partition size logic check to /META-INF/com/google/android/updater-script ?

    there are three solutions:

    a) since it's recommend to flash twrp through odin/heimdall, a modified .pit (partition information table) with correct sizes can also be flashed at the same time. There's a tool called Pit Magic that can do this.

    b) a flashable twrp script - needs to be made

    c) manually repartition using parted through adb shell/can be done through twrp also I suppose

    I went the manual way, since for me, it's a time one thing.

    I'll add a manual tutorial later since I don't have the note 2 in front of me.