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

Search This thread

html6405

Recognized Developer
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
 
Last edited:

html6405

Recognized Developer
If you're interested in flashing your first GSI, follow this thread (also alpha, untested till yet):

 
  • Like
Reactions: Alexander077wa
D

Deleted member 11848357

Guest
thanks for this.

Getting "E2001: Failed to update vendor image." during clean flash.
Your LineageOS 16.0 builds work fine. Probably related to Project Treble?


Device: SGH-T889
TWRP: 3.5.2_9-1
 

html6405

Recognized Developer
Thx, I will check this and create a new version.
I'm sorry, but the partition size is too small on your device :/,
on a n7105 the partition size is 587202560.

This means, that you would have to re-partition your device with parted and expand vendor (in the same switch you could expand system up to 2GB).

Or the last thing would be, that I'm building a not treblelized ROM for these devices, but this would be again much work.
 
D

Deleted member 11848357

Guest
I'm sorry, but the partition size is too small on your device :/,
on a n7105 the partition size is 587202560.

This means, that you would have to re-partition your device with parted and expand vendor (in the same switch you could expand system up to 2GB).

Or the last thing would be, that I'm building a not treblelized ROM for these devices, but this would be again much work.
ok so reassign space from /cache?

/cache | /dev/block/platform/dw_mmc/by-name/CACHE | Size: 1259MB Used: 21MB Free: 1237MB Backup Size: 21MB
 

No3te

Member
Sep 9, 2021
8
4
I couldn't got through google setup, so I flashed only LOS. It's mostly working.
Trust issued 2 warnings: not in restricted mode, and "signed with public key".
Like in other devices there is a problem with quick access settings - blinking when press and hold (occured after reboot). In Note 3 it took some time before resolved.
SIM works, Wi-fi works not sure about GPS. I have 7105 model.
And one more - in update menu can't tick "update lineage recovery", which I dont use.
I tried OGapps pico latest.
Anyway it's a miracle You almost made it brillant :).
Many thanks.

P.S.
Switching off icons descriptions solve q.access problem.
 
Last edited:
D

Deleted member 11848357

Guest
I would make the data partition a little bit smaller.
thanks. it worked.

Model: MMC MAG4FB (sd/mmc) Disk /dev/block/mmcblk0: 15.8GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 4194kB 8389kB 4194kB BOTA0 2 8389kB 12.6MB 4194kB BOTA1 3 12.6MB 33.6MB 21.0MB ext4 EFS 4 33.6MB 37.7MB 4194kB m9kefs1 5 37.7MB 41.9MB 4194kB m9kefs2 6 41.9MB 46.1MB 4194kB m9kefs3 7 46.1MB 54.5MB 8389kB PARAM 8 54.5MB 62.9MB 8389kB BOOT 9 62.9MB 71.3MB 8389kB RECOVERY 10 71.3MB 164MB 92.3MB fat16 RADIO 11 164MB 432MB 268MB ext4 TOMBSTONES 12 432MB 1432MB 1000MB ext4 CACHE 13 1432MB 3432MB 2000MB ext2 SYSTEM 14 3432MB 4200MB 768MB ext4 HIDDEN 15 4200MB 4208MB 8000kB OTA 16 4208MB 15.8GB 11.5GB ext4 USERDATA
 

html6405

Recognized Developer
I couldn't got through google setup, so I flashed only LOS. It's mostly working.
OK, I had no problem with this, what happened?
Trust issued 2 warnings: not in restricted mode, and "signed with public key".
This is normal, because selinux is permissive.
And one more - in update menu can't tick "update lineage recovery", which I dont use.
Ah you're right, I will remove or disable this, because I've removed the lineage recovery from the build in general,
I don't wan't that TWRP will be overwritten...
Like in other devices there is a problem with quick access settings - blinking when press and hold (occured after reboot). In Note 3 it took some time before resolved.
I'm unsure what do you mean with this:unsure:
 

No3te

Member
Sep 9, 2021
8
4
OK, I had no problem with this, what happened?

This is normal, because selinux is permissive.

Ah you're right, I will remove or disable this, because I've removed the lineage recovery from the build in general,
I don't wan't that TWRP will be overwritten...

I'm unsure what do you mean with this:unsure:
After choosing language in initial set up, it says - google voice services not working, 2 more set up screens and it stops in "wait a minute" screen.
Voice service not working in AOSP keyboard.

Another problem is well known in Note 3 ROMS - 10 and 11.
When you pull qa menu from the top of screen you get icons: wifi, battery etc. While pressing and holding battery icon(and some others) screen blinks to black, says "interface crashed" and goes back to normal.
"Solution" to this is switch off description under icons.

Sorry for not giving "logs" but it's over my skills. ;)
Tried to send "bug report" but it warns about privacy ...
I will try Mind the gapps, what helped me with Note 3.
 

html6405

Recognized Developer
After choosing language in initial set up, it says - google voice services not working, 2 more set up screens and it stops in "wait a minute" screen.
Voice service not working in AOSP keyboard.
Hmm ok, I didn't test google voice service...
Another problem is well known in Note 3 ROMS - 10 and 11.
When you pull qa menu from the top of screen you get icons: wifi, battery etc. While pressing and holding battery icon(and some others) screen blinks to black, says "interface crashed" and goes back to normal.
Hmm, strange, this seems to work with my device.
 

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