FORUMS
Remove All Ads from XDA

[ROM][UNOFFICIAL] LineageOS 14.1 for SM-T113NU

16 posts
Thanks Meter: 21
 
By pstglia, Junior Member on 25th April 2019, 01:53 AM
Post Reply Email Thread
This is a custom ROM build to run on Samsung Galaxy Tab E (SM-T113NU).

This work was based on Remilia Scarlet/Nguyễn Diệp Quỳnh code for SM-G360H phone (which uses Spredtrum sc8830, just like this tablet)

Working
Wi-FI
Bluetooth (file transfer tested only)
Sound
Rotation

Not working:
Camera

Prerequisites:
  • TWRP version 3.0.2
  • Galaxy Tab E SM-T113NU (similar models were not tested)


Download links and source:
Please check my github (pstglia, repository local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO)
  • Download link for compiled ROM can be found on README file.
  • All repositories are mapped on local manifest (core33g.xml )
  • branch used for all repositories is "T113NU_COM_A_MAO_NO_BOLSO"


Source links:

# Local manifest
https://github.com/pstglia/local_man...A_MAO_NO_BOLSO

# Framework-native (the commit that hacks camera count return to 0 is here)
https://github.com/pstglia/framework...A_MAO_NO_BOLSO

# Kernel
https://github.com/pstglia/linux/tre...A_MAO_NO_BOLSO

# device/vendor
https://github.com/pstglia/android_d...A_MAO_NO_BOLSO
https://github.com/pstglia/android_v...A_MAO_NO_BOLSO
https://github.com/pstglia/android_d...A_MAO_NO_BOLSO
https://github.com/pstglia/android_v...A_MAO_NO_BOLSO
https://github.com/pstglia/android_d...A_MAO_NO_BOLSO

# frameworks/base
https://github.com/pstglia/platform_...A_MAO_NO_BOLSO

Credits:
The LineageOS Team
Remilia Scarlet/Nguyễn Diệp Quỳnh for SM-G360H work
Fabio Júnior Chaves da Silva (lend his device, even knowing it might become a paperweight)
stephenpump (My first post on xda, so used one of your posts as reference )
Anyone i forgot to mention

Note:
This version of TWRP does not populate ro.build.product, blocking a generated package to be installed
So, if you compile from source "brunch core33g", you can apply the following workaround for you generated installation package:
  1. Unpack generated package into a blank directory
    Code:
    mkdir /tmp/lineage-pkg
    cd /tmp/lineage-pkg
    last_gen_pkg=$(ls -tr ${OUT}/lineage-14.1-????????-UNOFFICIAL-core33g.zip | tail -1)
    jar xvf ${last_gen_pkg}
  2. Edit META-INF/com/google/android/updater-script and replace this:
    Code:
    getprop("ro.build.product") == "core33gdx"
    by this:
    Code:
    getprop("ro.build.product") != "core33gdx"
  3. Create a new "patched" package
    Code:
    cd /tmp/lineage-pkg
    jar cvf lineage-14.1-patched-UNOFFICIAL-core33g.zip *

Version Information:
ROM OS Version: Android 7.1.2 Nougat
Kernel Version: Linux 3.10.17
Attached Thumbnails
Click image for larger version

Name:	IMG_20190420_103645974.jpg
Views:	212
Size:	51.7 KB
ID:	4797024   Click image for larger version

Name:	IMG_20190420_103645974 (1).jpg
Views:	212
Size:	263.3 KB
ID:	4797025   Click image for larger version

Name:	IMG_20190420_103617514_home.jpg
Views:	214
Size:	43.0 KB
ID:	4797026  
The Following 4 Users Say Thank You to pstglia For This Useful Post: [ View ] Gift pstglia Ad-Free
 
 
23rd May 2019, 07:26 AM |#2  
Junior Member
Thanks Meter: 0
 
More
What do you need to get a working camera? I have an actual Samsung SM-T113NU

Quote:
Originally Posted by pstglia

This is a custom ROM build to run on Samsung Galaxy Tab E (SM-T113NU).

This work was based on Remilia Scarlet/Nguyễn Diệp Quỳnh code for SM-G360H phone (which uses Spredtrum sc8830, just like this tablet)

Working
Wi-FI
Bluetooth (file transfer tested only)
Sound
Rotation

Not working:
Camera

Prerequisites:

  • TWRP version 3.0.2
  • Galaxy Tab E SM-T113NU (similar models were not tested)


Download links and source:
Please check my github (pstglia, repository local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO)
  • Download link for compiled ROM can be found on README file.
  • All repositories are mapped on local manifest (core33g.xml )
  • branch used for all repositories is "T113NU_COM_A_MAO_NO_BOLSO"


Will update this thread with links when my user reaches the required points (new on xda)


Credits:
The LineageOS Team
Remilia Scarlet/Nguyễn Diệp Quỳnh for SM-G360H work
Fabio Júnior Chaves da Silva (lend his device, even knowing it might become a paperweight)
stephenpump (My first post on xda, so used one of your posts as reference )
Anyone i forgot to mention

Note:
This version of TWRP does not populate ro.build.product, blocking a generated package to be installed
So, if you compile from source "brunch core33g", you can apply the following workaround for you generated installation package:
  1. Unpack generated package into a blank directory
    Code:
    mkdir /tmp/lineage-pkg
    cd /tmp/lineage-pkg
    last_gen_pkg=$(ls -tr ${OUT}/lineage-14.1-????????-UNOFFICIAL-core33g.zip | tail -1)
    jar xvf ${last_gen_pkg}
  2. Edit META-INF/com/google/android/updater-script and replace this:
    Code:
    getprop("ro.build.product") == "core33gdx"
    by this:
    Code:
    getprop("ro.build.product") != "core33gdx"
  3. Create a new "patched" package
    Code:
    cd /tmp/lineage-pkg
    jar cvf lineage-14.1-patched-UNOFFICIAL-core33g.zip *

Version Information:
ROM OS Version: Android 7.1.2 Nougat
Kernel Version: Linux 3.10.17

Settings

Home Screen

23rd May 2019, 12:09 PM |#3  
OP Junior Member
Thanks Meter: 21
 
More
Quote:
Originally Posted by MrLinDowsMac

What do you need to get a working camera? I have an actual Samsung SM-T113NU

Hi,

1) I'd need spare time to find a way to make it work.

2) more knowledge would be needed. To build this image, I had basically to adapt Samsung kernel to met 7.1 requirements (I basically cherry-picked commits from remilia15 - SM-G360H) and some other minor changes.
Camera probably requires advanced coding, which is a bit far from my current skills. Enabling it causes crashes during components startup (see bellow):


Code:
04-19 22:37:01.036   227   769 I SprdCameraHardware: getPropertyAtv:0
04-19 22:37:01.036   227   769 I SprdCameraHardware: getNumberOfCameras:2
04-19 22:37:01.036   227   769 I CameraService: disconnect: Disconnected client for camera 0 for PID 227
04-19 22:37:01.036   227   769 E CameraService: initializeShimMetadata: Error initializing shim metadata: Status(-8): '3: connectHelper:928: Illegal argument to HAL module for camera "0"'
04-19 22:37:01.038   585   585 E System  : ******************************************
04-19 22:37:01.038   227   909 E isp-video: ISP_RAW: id:0x00, 00927 line, ispserver_thread : ISP_TOOL:isp-video server version 1.0
04-19 22:37:01.039   227   909 E isp-video: ISP_RAW: id:0x00, 00965 line, ispserver_thread : ISP_TOOL:log server waiting client dail in...
04-19 22:37:01.040   585   585 E System  : ************ Failure starting system services
04-19 22:37:01.040   585   585 E System  : java.lang.RuntimeException: Failed to boot service com.android.server.retaildemo.RetailDemoModeService: onBootPhase threw an exception during phase 600
04-19 22:37:01.040   585   585 E System  :      at com.android.server.SystemServiceManager.startBootPhase(SystemServiceManager.java:145)
04-19 22:37:01.040   585   585 E System  :      at com.android.server.SystemServer$2.run(SystemServer.java:1538)
04-19 22:37:01.040   585   585 E System  :      at com.android.server.am.ActivityManagerService.systemReady(ActivityManagerService.java:13591)
04-19 22:37:01.040   585   585 E System  :      at com.android.server.SystemServer.startOtherServices(SystemServer.java:1466)
04-19 22:37:01.040   585   585 E System  :      at com.android.server.SystemServer.run(SystemServer.java:368)
04-19 22:37:01.040   585   585 E System  :      at com.android.server.SystemServer.main(SystemServer.java:237)
04-19 22:37:01.040   585   585 E System  :      at java.lang.reflect.Method.invoke(Native Method)
04-19 22:37:01.040   585   585 E System  :      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
04-19 22:37:01.040   585   585 E System  :      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
04-19 22:37:01.040   585   585 E System  : Caused by: java.lang.IllegalArgumentException: connectHelper:928: Illegal argument to HAL module for camera "0"
04-19 22:37:01.040   585   585 E System  :      at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:694)
04-19 22:37:01.040   585   585 E System  :      at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:778)
04-19 22:37:01.040   585   585 E System  :      at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:140)
04-19 22:37:01.040   585   585 E System  :      at com.android.server.retaildemo.RetailDemoModeService.getCameraIdsWithFlash(RetailDemoModeService.java:492)
04-19 22:37:01.040   585   585 E System  :      at com.android.server.retaildemo.RetailDemoModeService.onBootPhase(RetailDemoModeService.java:569)
04-19 22:37:01.040   585   585 E System  :      at com.android.server.SystemServiceManager.startBootPhase(SystemServiceManager.java:143)
04-19 22:37:01.040   585   585 E System  :      ... 8 more
04-19 22:37:01.040   585   585 E System  : Caused by: android.os.ServiceSpecificException: connectHelper:928: Illegal argument to HAL module for camera "0"
04-19 22:37:01.040   585   585 E System  :      at android.os.Parcel.readException(Parcel.java:1706)
04-19 22:37:01.040   585   585 E System  :      at android.os.Parcel.readException(Parcel.java:1645)
04-19 22:37:01.040   585   585 E System  :      at android.hardware.ICameraService$Stub$Proxy.getCameraCharacteristics(ICameraService.java:404)
04-19 22:37:01.040   585   585 E System  :      at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:765)
Maybe sources under hardware/sprd/libcamera should be changed in order to make it work...

3) A device to test. The one I was using was borrowed from a friend, but already returned.

In any case, all source code I changed is available on github (check for pstglia on github - repository "local_manifests" maps all the changes (except platform_frameworks_base, which requires the last 2 commits from branch "T113NU_COM_A_MAO_NO_BOLSO".
The Following User Says Thank You to pstglia For This Useful Post: [ View ] Gift pstglia Ad-Free
29th May 2019, 07:53 AM |#4  
Junior Member
Thanks Meter: 1
 
More
Muito obrigado pela ROM
Falei com vc lá pelo YouTube e agradeço novamente pela rom. O tablet ficou novo em folha. Continue com seu ótimo trabalho 👍
The Following User Says Thank You to Renanfpan For This Useful Post: [ View ] Gift Renanfpan Ad-Free
4th June 2019, 05:08 PM |#5  
Junior Member
Thanks Meter: 0
 
More
Heyyy, how you've made this custom rom?
I'm trying to build that for my sm-t280, and all instructions doesn't ever exist. if you gimme instructions to build, you'll doing a huge help.

email: [email protected]

Quote:
Originally Posted by pstglia

This is a custom ROM build to run on Samsung Galaxy Tab E (SM-T113NU).

This work was based on Remilia Scarlet/Nguyễn Diệp Quỳnh code for SM-G360H phone (which uses Spredtrum sc8830, just like this tablet)

Working
Wi-FI
Bluetooth (file transfer tested only)
Sound
Rotation

Not working:
Camera

Prerequisites:

  • TWRP version 3.0.2
  • Galaxy Tab E SM-T113NU (similar models were not tested)


Download links and source:
Please check my github (pstglia, repository local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO)
  • Download link for compiled ROM can be found on README file.
  • All repositories are mapped on local manifest (core33g.xml )
  • branch used for all repositories is "T113NU_COM_A_MAO_NO_BOLSO"


Will update this thread with links when my user reaches the required points (new on xda)


Credits:
The LineageOS Team
Remilia Scarlet/Nguyễn Diệp Quỳnh for SM-G360H work
Fabio Júnior Chaves da Silva (lend his device, even knowing it might become a paperweight)
stephenpump (My first post on xda, so used one of your posts as reference )
Anyone i forgot to mention

Note:
This version of TWRP does not populate ro.build.product, blocking a generated package to be installed
So, if you compile from source "brunch core33g", you can apply the following workaround for you generated installation package:
  1. Unpack generated package into a blank directory
    Code:
    mkdir /tmp/lineage-pkg
    cd /tmp/lineage-pkg
    last_gen_pkg=$(ls -tr ${OUT}/lineage-14.1-????????-UNOFFICIAL-core33g.zip | tail -1)
    jar xvf ${last_gen_pkg}
  2. Edit META-INF/com/google/android/updater-script and replace this:
    Code:
    getprop("ro.build.product") == "core33gdx"
    by this:
    Code:
    getprop("ro.build.product") != "core33gdx"
  3. Create a new "patched" package
    Code:
    cd /tmp/lineage-pkg
    jar cvf lineage-14.1-patched-UNOFFICIAL-core33g.zip *

Version Information:
ROM OS Version: Android 7.1.2 Nougat
Kernel Version: Linux 3.10.17

Settings

Home Screen

5th June 2019, 02:49 AM |#6  
OP Junior Member
Thanks Meter: 21
 
More
Quote:
Originally Posted by YggH

I'm trying to build that for my sm-t280, and all instructions doesn't ever exist. if you gimme instructions to build, you'll doing a huge help.

email: [email protected]

Hi,

Tried to write a simplified procedure to compile the custom ROM for T113NU. See the 8 steps bellow:

I) Assuming you already have a build environment set up (see [1] as reference), download lineage sources using repo commands (repo init, repo sync)
Note: Use branch cm-14.1 (nougat)

II) After syncing, download core33g.xml from my github ( repo local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO) and copy to .repo/local_manifests (create it if doesn't exists)

III) execute "repo sync" again. The files/sources I modified will be downloaded and updated on source tree

IV) Edit vendor/cm/vendorsetup.sh and add this lunch combo:

Code:
add_lunch_combo lineage_core33g-userdebug
This will allow you to select a target compatible with T113NU when running "brunch"

V) As pointed previous posts, camera was avoiding Android to start. To allow booting, cameras were disabled (forced returned number of cameras to 0).
So, for T113NU, commit "0acc7879a9794aacdff85ef1563807d051114917 - frameworks/base - HACK - Disable cameras" will be needed. This commit is on my github, repository platform_frameworks_base, branch T113NU_COM_A_MAO_NO_BOLSO)

VI) Before compiling, export these environment variables:

Code:
export USE_CCACHE=1
ccache -M 50G
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"
export LC_ALL=C
I suggest you to include these on a file in your home dir (ex: ~/.android_profile) and include it every time you want to create a new build:

Code:
source ~/.android_profile
VII) Include build/envsetup.sh to config Android environment

Code:
source build/envsetup.sh
VIII) Compile the ISO using brunch (select lineage_core33g-userdebug option)



This should do it.
For your device (T280) you'll probably want to replace kernel by the one provided by samsung opensource.
Download it from Samsung Opensource Release Center (see [2]) and unpack it to kernel/samsung/core33g (clean previous files first)
Also:
A) After unpacking, cd to kernel/samsung/core33g and execute a "make mrproper" to remove any temp files under the source tree;
B) cd to kernel/samsung/core33g/arch/arm/configs and rename/copy one of the config files there to "cyanogen_core33g_defconfig" (select one that matches your device - in my case was goyavewifi-dt_hw04_defconfig)
C) You'll probably will need commits to make your kernel compatible with Android 7.1. Try cherry-picking the commits I used, starting from 8c97f3624701f53843b7b2da40185cdcd1c7a422


Play around with config/fw files and have lots of pacience. Creating a working image is not always a funny (consumes lots of time and requires much pacience, logging/debugging )


Good luck!

[1] - https wiki DOT lineageos DOT org/devices /bacon/buildcon/build
[2] - opensource DOT samsung DOT com

ps: Does your device uses Spreadtrum SOC, right?
ps2: Except for kernel, most of changes were minor. Most of this commits were based on remilia15 work. Kudos for who really deserve it!
24th July 2019, 12:05 AM |#7  
Member
Flag Ribeirão Preto, São Paulo
Thanks Meter: 6
 
More
@sasi2006166 @dhruvpatel_9880 Also works with T116!!
The Following 3 Users Say Thank You to MegaStormBR For This Useful Post: [ View ] Gift MegaStormBR Ad-Free
24th July 2019, 06:13 AM |#8  
Senior Member
Flag kharghar
Thanks Meter: 60
 
More
Quote:
Originally Posted by MegaStormBR

@[email protected]_9880 Also works with T116!!

I will try it today 😊
The Following User Says Thank You to dhruvpatel_9880 For This Useful Post: [ View ] Gift dhruvpatel_9880 Ad-Free
24th July 2019, 07:56 AM |#9  
Junior Member
Thanks Meter: 2
 
More
@pstglia Thank you soo much For This ROM..I will try this ROM Today on my SM-T116NY.
24th July 2019, 09:04 AM |#10  
Senior Member
Flag Naples
Thanks Meter: 283
 
More
Going to fix camera gimme sources

---------- Post added at 10:04 AM ---------- Previous post was at 09:58 AM ----------

Also pm me on Telegram @sasi2006166
The Following User Says Thank You to sasi2006166 For This Useful Post: [ View ] Gift sasi2006166 Ad-Free
24th July 2019, 10:48 AM |#11  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by pstglia

This is a custom ROM build to run on Samsung Galaxy Tab E (SM-T113NU).

This work was based on Remilia Scarlet/Nguyễn Diệp Quỳnh code for SM-G360H phone (which uses Spredtrum sc8830, just like this tablet)

Working
Wi-FI
Bluetooth (file transfer tested only)
Sound
Rotation

Not working:
Camera

Prerequisites:

  • TWRP version 3.0.2
  • Galaxy Tab E SM-T113NU (similar models were not tested)


Download links and source:
Please check my github (pstglia, repository local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO)
  • Download link for compiled ROM can be found on README file.
  • All repositories are mapped on local manifest (core33g.xml )
  • branch used for all repositories is "T113NU_COM_A_MAO_NO_BOLSO"


Will update this thread with links when my user reaches the required points (new on xda)


Credits:
The LineageOS Team
Remilia Scarlet/Nguyễn Diệp Quỳnh for SM-G360H work
Fabio Júnior Chaves da Silva (lend his device, even knowing it might become a paperweight)
stephenpump (My first post on xda, so used one of your posts as reference )
Anyone i forgot to mention

Note:
This version of TWRP does not populate ro.build.product, blocking a generated package to be installed
So, if you compile from source "brunch core33g", you can apply the following workaround for you generated installation package:
  1. Unpack generated package into a blank directory
    Code:
    mkdir /tmp/lineage-pkg
    cd /tmp/lineage-pkg
    last_gen_pkg=$(ls -tr ${OUT}/lineage-14.1-????????-UNOFFICIAL-core33g.zip | tail -1)
    jar xvf ${last_gen_pkg}
  2. Edit META-INF/com/google/android/updater-script and replace this:
    Code:
    getprop("ro.build.product") == "core33gdx"
    by this:
    Code:
    getprop("ro.build.product") != "core33gdx"
  3. Create a new "patched" package
    Code:
    cd /tmp/lineage-pkg
    jar cvf lineage-14.1-patched-UNOFFICIAL-core33g.zip *

Version Information:
ROM OS Version: Android 7.1.2 Nougat
Kernel Version: Linux 3.10.17

Settings

Home Screen

Bro I installed twrp 3.0.2 and Wiped Data, Chache,Dalvik and system..And I flashed the ROM.. It showed "Unknown Command [log]" BUT FLASHING WAS SUCCESSFUL..So I Botted the tab and now it's showing the Lineage OS boot animation from 15 mins..Ik it takes a hell lot of time for the first boot but 15 mins?!😛😅
I'll update if something happens..
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes