[ROM] LineageOS-14.1 for T31x

Search This thread

James Crazy

Member
Oct 25, 2015
15
1
ALL CREDIT AND THANKS GO TO gr8nole for his github repos, source code and hard work.

@gr8nole, the only change to your manifest to build was

https://github.com/gr8nole/Build-Scripts/blob/Lineage-14.1/local_manifests/lt01.xml#L10

from revision="cm-14.1" to revision="lineage-14.1"

I have added NO VALUE to his github code. I'm simply compiling the source code with the latest 14.1 security patches for those who cannot.

All the bugs that were in the past are still here in this build whatever they may be. I have NOT read the entire thread so I don't know the problems with this device.

You should be able to dirty flash from gr8nole's last build since I'm using his source code. I recommend wiping cache and dalvik/cache. First boot after installing will take about 4 minutes. If it gets stuck at boot animation, backup your data and do a clean install by wiping and formatting your data.

I only have the SM-T310 for a short period of time and cannot promise to make monthly builds with security patches. The SM-T310 is not mine and the owner may want it back at anytime.

I have included the following UNOFFICIAL monthly security patches from LineageOS into my build:

Code:
https://review.lineageos.org/q/topic:n-asb-2021-09
https://review.lineageos.org/q/topic:n-asb-2021-10
https://review.lineageos.org/q/topic:n-asb-2021-11
https://review.lineageos.org/q/topic:n-asb-2021-12
https://review.lineageos.org/q/topic:n-asb-2022-01
https://review.lineageos.org/q/topic:n-asb-2022-02
https://review.lineageos.org/q/topic:n-asb-2022-03

All the above have yet to merged or may never into the 14.1 device trees.

Since 14.1 or Android 7 was long deprecated by LineageOS and Google respectively, I have manually modified the security patch string to say

Code:
PLATFORM_SECURITY_PATCH := 2022-03-05

at

https://github.com/LineageOS/android_build/blob/cm-14.1/core/version_defaults.mk#L134

to indicate that Mar 5 UNOFFICIAL security patches have been incorporated.

Don't be fooled by these March 5, 2022 security patches. While it's nice to have these security patches, there's a lot of security vulnerabilities with the old kernel, old proprietary blobs/drivers and old code in these devices.

You can get the build called lineage-14.1-20220316-UNOFFICIAL-lt01wifi.zip from

https://sourceforge.net/projects/retiredtab/files/SM-T310/14.1/

Again, all thanks and credit goto gr8nole.

PS. I ONLY have the SM-T310. I WILL NOT make "blind" build for devices which I don't have. Namely, I will NOT build SM-T311 and SM-T315.
What happened if I install in t311?
 

emceha

New member
Feb 8, 2024
1
0
I no longer have the T310 so my July 9 build with the July 5th, 2022 security patches is the last one.

If someone else wants to build it, I can help guide him/her to what steps to take because the Aug 5th and Sept 5th 14.1 unofficial patches are up on gerrit. This person would have to know some linux CLI, have 200GB free hard disk space, at least 8GB DRAM and 2 CPU cores or more. Depending on the hardware, the build can take as little as 1 hour to more than 10 hours.

https://review.lineageos.org/q/n-asb-2022-08
I'd be interested as I have SM-T311 laying around and manifest has android_device_samsung_lt013g entry
 

yanzi0313

New member
Feb 11, 2024
4
1
Hello, thank you very much for providing the LOS system and TWRP, let me reuse this 11 year old device, I would like to ask if this device supports higher Android system?
 

nabril15

Senior Member
for anyone interested i have used the patches from https://review.lineageos.org/q/topic:n-asb-2021-09 to https://review.lineageos.org/q/topic:n-asb-2023-12 and have updated PLATFORM_SECURITY_PATCH := 2023-12-05

I have done nothing else to it, full credit to gr8nole

It is only for the T310

Happy flashing.

lineage-14.1-20231229-UNOFFICIAL-lt01wifi.zip
Wow, thanks a lot for this.
I'm thinking of reviving my t310 that hasn't been turned on since...circa 2019.

Can it be dirty flashed? How do you dirty flash again? Download zip, boot to recovery, wipe dalvik and cache, flash, and reboot.
Did I get that right?
 

retiredtab

Senior Member
Nov 16, 2017
1,837
1,738
New build with unofficial March 5, 2024 security patches called

lineage-14.1-20240328-UNOFFICIAL-lt01wifi.zip

I enabled zram for SM-T310.

Bash:
$ adb shell
lt01wifi:/$ ls -al /dev/block/zram0                                                                           
brw------- 1 root root 253,   0 2024-03-28 14:45 /dev/block/zram0

lt01wifi:/ $ free -m
                total        used        free      shared     buffers
Mem:             1361        1319          41           0           1
-/+ buffers/cache:           1317          43
Swap:             449          75         373

You can get it at

https://sourceforge.net/projects/retiredtab/files/SM-T310/14.1/

For those building, here's the git diff with the zram changes.

Diff:
project build/
diff --git a/core/version_defaults.mk b/core/version_defaults.mk
index 0bcdb76..d9ae84f 100644
--- a/core/version_defaults.mk
+++ b/core/version_defaults.mk
@@ -131,7 +131,7 @@ ifeq "" "$(PLATFORM_SECURITY_PATCH)"
     #  It must be of the form "YYYY-MM-DD" on production devices.
     #  It must match one of the Android Security Patch Level strings of the Public Security Bulletins.
     #  If there is no $PLATFORM_SECURITY_PATCH set, keep it empty.
-    PLATFORM_SECURITY_PATCH := 2021-06-05
+    PLATFORM_SECURITY_PATCH := 2024-03-05
 endif
 
 ifeq "" "$(PLATFORM_BASE_OS)"

project device/samsung/lt01wifi/
diff --git a/rootdir/fstab.smdk4x12 b/rootdir/fstab.smdk4x12
index bfbc10b..1281797 100644
--- a/rootdir/fstab.smdk4x12
+++ b/rootdir/fstab.smdk4x12
@@ -18,3 +18,5 @@
 /dev/block/platform/dw_mmc/by-name/RECOVERY    /recovery            emmc      defaults    recoveryonly
 /dev/block/platform/dw_mmc/by-name/OTA         /misc                emmc      defaults    defaults
 
+# ZRAM
+/dev/block/zram0                               none                    swap      defaults    zramsize=33%
\ No newline at end of file
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index a5421c6..4d493e1 100644
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -35,3 +35,6 @@ service gpsd /system/bin/gpsd -c /system/etc/gps.xml
     user gps
     group system inet sdcard_rw
 
+on fs
+    # zram
+    swapon_all /fstab.smdk4x12

project kernel/samsung/smdk4x12/
diff --git a/arch/arm/configs/lineage_lt01wifi_defconfig b/arch/arm/configs/lineage_lt01wifi_defconfig
index e708084b..a819317a 100644
--- a/arch/arm/configs/lineage_lt01wifi_defconfig
+++ b/arch/arm/configs/lineage_lt01wifi_defconfig
@@ -741,7 +741,7 @@ CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
 CONFIG_FRONTSWAP=y
 CONFIG_ZSMALLOC_NEW=y
 CONFIG_PGTABLE_MAPPING=y
-CONFIG_ZSWAP=y
+# CONFIG_ZSWAP is not set
 CONFIG_DISABLE_LUMPY_RECLAIM=y
 # CONFIG_DIRECT_RECLAIM_FILE_PAGES_ONLY is not set
 CONFIG_TIGHT_PGDAT_BALANCE=y
@@ -2937,7 +2937,8 @@ CONFIG_ANDROID_LOW_MEMORY_KILLER=y
 # CONFIG_VT6656 is not set
 # CONFIG_IIO is not set
 # CONFIG_XVMALLOC is not set
-# CONFIG_ZRAM is not set
+CONFIG_ZRAM=y
+CONFIG_ZRAM_LZ4_COMPRESS=y
 # CONFIG_ZCACHE is not set
 # CONFIG_FB_SM7XX is not set
 # CONFIG_LIRC_STAGING is not set
 

Top Liked Posts

  • There are no posts matching your filters.
  • 105
    I am creating this thread as a place to discuss development of unofficial LineageOS14.1 builds for the T31x devices. Those of you that have been around here for a while already know that I tend to get busy with other stuff and disappear a times. So, with that said, if you would like to contribute to the development of this rom, please feel free to do so. I can make you a contributor and you will have the ability to modify this OP as required.

    zYkSW7S.png



    LineageOS is a free, community built, aftermarket firmware distribution of Android 7.x (Nougat), which is designed to increase performance and reliability over stock Android for your device.

    Standard Disclaimer

    #include <std/disclaimer.h>

    /*
    * 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.
    *
    * Submitting bug reports on nightly builds is the leading
    * cause of male impotence.
    */


    All the source code for LineageOS is available in the Lineage Github repo. And if you would like to contribute to LineageOS, please visit the Gerrit Code Review.


    What Doesn't Work:
    - flash it and see

    ==============================
    If you want to use this tablet for phone calls, see THIS post before installing.
    ==============================

    ==============================
    WIFI WORKS - BUT, If you have an issue with wifi not working AND your mac address shows a value starting with 02:00:00, do not post about it UNLESS you take a dmesg log (immediately after a reboot) and post it with your message. Google can tell you how to take dmesg log or see THIS thread.
    ==============================

    INSTALLATION

    - Make sure you're running latest TWRP version
    - Copy GApps and rom ZIPs to your internal or external SDCard
    - Boot into Recovery
    - Perform WIPE:
    • In TWRP, select Wipe --> Advanced Wipe.
    • Check Dalvik/ART Cache, System, Cache, and Data
    • Swipe to Wipe
    - Flash rom zip
    - Flash GApps zip
    - Reboot


    Updating to a newer version of THIS rom ("dirty" flash)
    - Boot into Recovery
    - Flash rom zip (no need to re-flash gapps or wipe anything)
    - Reboot

    If you have any issues after doing a "dirty" flash, do a clean install before reporting any problems.


    Downloads

    gr8nole no longer builds. tigger 2014's builds pass safetynet and cuberio1 builds only occasionally.

    LineageOS
    Old Builds by gr8nole : https://www.androidfilehost.com/?w=files&flid=140570

    Builds by cuberio1 : Google Drive

    Builds by tigger2014 : https://androidfilehost.com/?a=show&w=files&flid=281549


    Google Apps
    OpenGapps: http://opengapps.org (use an ARM, 7.1 zip) I use nano.
    HEADS UP: Be sure you flash the gapps package when flashing your rom. If you boot your rom, then try to flash gapps later, you will have issues.



    CHANGELOG
    For a list of LineageOS source changes, you can review the i9300 nightly changelog located HERE.
    The i9300 is a similar platform to ours, so much of what is listed there will be applicable for us, unless it is i9300 device specific.


    DEVICE SPECIFIC SOURCES
    - Kernel: https://github.com/gr8nole/android_kernel_samsung_smdk4x12
    - Common T31x device: https://github.com/gr8nole/android_device_samsung_lt01-common
    - SM-T311: https://github.com/gr8nole/android_device_samsung_lt013g
    - SM-T310: https://github.com/gr8nole/android_device_samsung_lt01wifi
    - SM-T315: https://github.com/gr8nole/android_device_samsung_lt01lte
    - Vendor files: https://github.com/gr8nole/proprietary_vendor_samsung

    CONTRIBUTORS
    - LineageOS Team, CyanogenMod and AOSP contributors.



    If you're going to reuse our work, which we're doing for free, be fair and give proper credits.
    This is the only payment we're really demanding and we deserve it to be mentioned because of the countless hours we've put into this project.
    Open-Source doesn't meant Out-of-Respect!!!

    XDA:DevDB Information
    [ROM] LineageOS-14.1 for T31x, ROM for the Samsung Galaxy Tab 3 8.0

    Contributors
    gr8nole, cuberio1
    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.0.x
    ROM Firmware Required: KitKat Firmware
    Based On: LineageOS

    Version Information
    Status: Beta

    Created 2016-11-04
    Last Updated 2019-03-24
    24
    Reserved


    • Make sure you follow the installation instructions.
    • Do not ask about dirty flashing.
    • This is a very early build, so please don't start reporting a bunch of little bugs. I know there are things that don't work.
    • Wifi does work
    23
    New builds are up - 20170716. Untested.

    I will not be building any older versions... I barely have time to occassionaly build this version for you guys.
    21
    New builds are up !
    July security patch included.
    As written above these are my last builds.

    I want to thank one more time gr8nole for everything...

    For anyone willing to make his own builds, here is the dedicated roomservice
    20
    New builds are up !

    T310
    md5 : 053bbb9d6f673762ed88e8cb20d60ebb

    T311
    md5 : bdc0377945e11dd74b236b6e285aceed

    T315
    md5 : 4e0bf8c48ff23b721562f826a128bf96

    - latest Lineage updates, april security patch included

    credits : gr8nole & Lineage

    To make things clearer, from now on my newest build on G drive will be located at the root of your device folder (T310 / T311 / T315). You'll find aside of it a "previous builds" folder.