[ROM][p6800][p6810][i815]LineageOS CM-13.0 [UNOFFICIAL]

Search This thread

Harrison Le

Senior Member
Oct 30, 2015
224
45
Hi, thanks for testing!
1. Right, install SuperSU-V2.52 and then try to update and finally update binary. The last step takes a while but always returned on my device, with success or unsuccessful :( - trying again after reboot it finally succeeded
2. Yes, this and the screenshots in app-drawer are missing - this is intended by the "LOW_RAM" configuration I set (https://source.android.com/devices/tech/config/low-ram)
3. I will upload a new version with fixed auto-rotation soon - still, the picture change comes with a black screen sometimes
4. Have to check the youtube in browser issue - this sounds more serious. Do you have a P6800 or P6810? Could you check the youtube app? This should play fine - and will even rotate on next version ;)
5. Sure, had no time yet to implement ( a guide how to is there by p3dboard)
Re point 4 issue:
I have P6800 and played with Daniel_hk's custom roms for long time so may got tons of up/flash roms:):):)
I have tried again but still same issue as I reported at first.
Play YouTube by Google app now running smoothly but play YouTube or video in browser is crashed.
My experience is must check rom work well or have issue by original app first if it is ok then most will be ok in other similar apps .
And one issue more just found out while I try to attached pictures to show you but can't do then I try to send that screen shot to others devices by share option but also can't.
This post I use my HTC M8 to upload some pictures get problem as I reported above:
 

Attachments

  • IMG_20170716_060859.jpg
    IMG_20170716_060859.jpg
    252.2 KB · Views: 488
  • IMG_20170716_060845.jpg
    IMG_20170716_060845.jpg
    184.9 KB · Views: 475

frami2

Member
Mar 19, 2017
22
39
Developers notes
Howto get external SD card running

As soon as the sd card was inserted there was a crash in logcat:
F DEBUG : pid: 31066, tid: 31093, name: vold >>> /system/bin/vold <<<

Solved by editing /system/vold/Utils.cpp - adding && setexeccon(context) at different places:
@@ -282,12 +282,12 @@ status_t ForkExecvp(const std::vector<std::string>& args, security_context_t con
}
}

- if (setexeccon(context)) {
+ if ((is_selinux_enabled() > 0) && setexeccon(context)) {
LOG(ERROR) << "Failed to setexeccon";
abort();
}
status_t res = android_fork_execvp(argc, argv, NULL, false, true);
- if (setexeccon(nullptr)) {
+ if ((is_selinux_enabled() > 0) && setexeccon(nullptr)) {
LOG(ERROR) << "Failed to setexeccon";
abort();
}
@@ -314,12 +314,12 @@ status_t ForkExecvp(const std::vector<std::string>& args,
}
output.clear();

- if (setexeccon(context)) {
+ if ((is_selinux_enabled() > 0) && setexeccon(context)) {
LOG(ERROR) << "Failed to setexeccon";
abort();
}
FILE* fp = popen(cmd.c_str(), "r");
- if (setexeccon(nullptr)) {
+ if ((is_selinux_enabled() > 0) && setexeccon(nullptr)) {
LOG(ERROR) << "Failed to setexeccon";
abort();
}
 
Last edited:

frami2

Member
Mar 19, 2017
22
39
Developer Notes
Get GPS working

Initially, GPS was not working. Solution was to bring NON_PIE support to CM-13.0. What seems to be there again from cm-14.1, but is not in this release. The modifications where in:

/bionic/linker/Android.mk:
@@ -52,6 +52,12 @@ endif
# We need to access Bionic private headers in the linker.
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/

+# NON_PIE Support
+ifeq ($(TARGET_ENABLE_NON_PIE_SUPPORT),true)
+ LOCAL_CFLAGS += -DENABLE_NON_PIE_SUPPORT
+endif
+
+
# we don't want crtbegin.o (because we have begin.o), so unset it
# just for this module
LOCAL_NO_CRT := true
And in
/bionic/linker/linker.cpp:
@@ -1932,12 +1932,12 @@ bool soinfo::relocate(const VersionTracker& version_tracker, ElfRelIteratorT&& r
continue;
}

- const ElfW(Sym)* s = nullptr;
+ const ElfW(Sym)* s = nullptr; //NON_PIE
soinfo* lsi = nullptr;
+ const version_info* vi = nullptr;

if (sym != 0) {
sym_name = get_string(symtab_[sym].st_name);
- const version_info* vi = nullptr;

if (!lookup_version_info(version_tracker, sym, sym_name, &vi)) {
return false;
@@ -2243,6 +2243,7 @@ bool soinfo::relocate(const VersionTracker& version_tracker, ElfRelIteratorT&& r
*reinterpret_cast<ElfW(Addr)*>(reloc) += sym_addr - rel->r_offset;
break;
case R_ARM_COPY:
+#ifndef ENABLE_NON_PIE_SUPPORT
/*
* ET_EXEC is not supported so this should not happen.
*
@@ -2254,6 +2255,50 @@ bool soinfo::relocate(const VersionTracker& version_tracker, ElfRelIteratorT&& r
*/
DL_ERR("%s R_ARM_COPY relocations are not supported", get_realpath());
return false;
+#else
+ if ((flags_ & FLAG_EXE) == 0) {
+ /*
+ * http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044d/IHI0044D_aaelf.pdf
+ *
+ * Section 4.6.1.10 "Dynamic relocations"
+ * R_ARM_COPY may only appear in executable objects where e_type is
+ * set to ET_EXEC.
+ *
+ * TODO: FLAG_EXE is set for both ET_DYN and ET_EXEC executables.
+ * We should explicitly disallow ET_DYN executables from having
+ * R_ARM_COPY relocations.
+ */
+ DL_ERR("%s R_ARM_COPY relocations only supported for ET_EXEC", get_realpath());
+ return false;
+ }
+ count_relocation(kRelocCopy);
+ MARK(rel->r_offset);
+ TRACE_TYPE(RELO, "RELO %08x <- %d @ %08x %s", reloc, s->st_size, sym_addr, sym_name);
+ if (reloc == sym_addr) {
+ const ElfW(Sym)* src = nullptr;
+
+ if (!soinfo_do_lookup(NULL, sym_name, vi, &lsi, global_group, local_group, &src)) {
+ DL_ERR("%s R_ARM_COPY relocation source cannot be resolved", get_realpath());
+ return false;
+ }
+ if (lsi->has_DT_SYMBOLIC) {
+ DL_ERR("%s invalid R_ARM_COPY relocation against DT_SYMBOLIC shared "
+ "library %s (built with -Bsymbolic?)", get_realpath(), lsi->soname_);
+ return false;
+ }
+ if (s->st_size < src->st_size) {
+ DL_ERR("%s R_ARM_COPY relocation size mismatch (%d < %d)",
+ get_realpath(), s->st_size, src->st_size);
+ return false;
+ }
+ memcpy(reinterpret_cast<void*>(reloc),
+ reinterpret_cast<void*>(src->st_value + lsi->load_bias), src->st_size);
+ } else {
+ DL_ERR("%s R_ARM_COPY relocation target cannot be resolved", get_realpath());
+ return false;
+ }
+ break;
+#endif
#elif defined(__i386__)
case R_386_32:
count_relocation(kRelocRelative);
@@ -3292,11 +3337,13 @@ static ElfW(Addr) __linker_init_post_relocation(KernelArgumentBlock& args, ElfW(
}
si->dynamic = nullptr;

+#ifndef ENABLE_NON_PIE_SUPPORT //NON_PIE
ElfW(Ehdr)* elf_hdr = reinterpret_cast<ElfW(Ehdr)*>(si->base);
if (elf_hdr->e_type != ET_DYN) {
__libc_format_fd(2, "error: only position independent executables (PIE) are supported.\n");
exit(EXIT_FAILURE);
}
+#endif //NON_PIE

// Use LD_LIBRARY_PATH and LD_PRELOAD (but only if we aren't setuid/setgid).
parse_LD_LIBRARY_PATH(ldpath_env);
 
  • Like
Reactions: rebski

frami2

Member
Mar 19, 2017
22
39
Developer Notes
Solve an initial build error in timeconst.pl

In one of the first builds it was complaining about a syntax error in a Perl file:

/kernel/samsung/smdk4210/kernel/timeconst.pl:
@@ -370,7 +370,7 @@ if ($hz eq '--can') {
}

@val = @{$canned_values{$hz}};
- if (!defined(@val)) {
+ if (!@val) {
@val = compute_values($hz);
}
output($hz, @val);
 
  • Like
Reactions: rebski and p3dboard

frami2

Member
Mar 19, 2017
22
39
Developer Notes
Solve keyboard crashes once Gapps is installed

The preinstalled AOSP keyboard in LineageOS seems to be outdated. For our device, once Gapps is installed too, the keyboard crashed frequently. Solution was to replace it with a newer one:

.repo/local_manifests/local_manifest.xml:
<remove-project name="LineageOS/android_packages_inputmethods_LatinIME"/>
<project path="packages/inputmethods/LatinIME" name="platform/packages/inputmethods/LatinIME" remote="aosp"/>

Then, it generally worked, except for the swipe feature. I just deactivated this for now, by:
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/Settings.java:
@@ -230,7 +230,8 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
}

public static boolean readFromBuildConfigIfGestureInputEnabled(final Resources res) {
- return res.getBoolean(R.bool.config_gesture_input_enabled_by_build_config);
+ //return res.getBoolean(R.bool.config_gesture_input_enabled_by_build_config);
+ return false;
}

public static boolean readGestureInputEnabled(final SharedPreferences prefs,
 
  • Like
Reactions: rebski and p3dboard

frami2

Member
Mar 19, 2017
22
39
Last edited:
  • Like
Reactions: rebski and p3dboard

frami2

Member
Mar 19, 2017
22
39
Issue
Youtube in AOSP Browser cannot play, shows artefacts instead of video

Logcat:
Code:
E cr_MediaCodecUtil: Decoder for type video/x-vnd.on2.vp8 is not supported on this device
E cr_MediaCodecUtil: Decoder for type video/x-vnd.on2.vp9 is not supported on this device
...
E ACodec  : Unable to instantiate a decoder for type 'audio/opus' with err 0xfffffffe.
07-22 09:40:27.487  5818  5921 E ACodec  : signalError(omxError 0xfffffffe, internalError -2)
07-22 09:40:27.487  5818  5921 E MediaCodec: Codec reported err 0xfffffffe, actionCode 0, while in state 1
07-22 09:40:27.494  5818  5818 W MediaCodec-JNI: try to release MediaCodec from JMediaCodec::~JMediaCodec()...
07-22 09:40:27.495  5818  5818 W MediaCodec-JNI: done releasing MediaCodec from JMediaCodec::~JMediaCodec().
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: Failed to create MediaCodec: audio/opus, isSecure: false
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: java.lang.IllegalArgumentException: Failed to initialize audio/opus, error 0xfffffffe
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at android.media.MediaCodec.native_setup(Native Method)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at android.media.MediaCodec.<init>(MediaCodec.java:1670)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at android.media.MediaCodec.createDecoderByType(MediaCodec.java:1618)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at org.chromium.media.MediaCodecUtil.createDecoder(MediaCodecUtil.java:181)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at org.chromium.media.MediaCodecBridge.create(MediaCodecBridge.java:212)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:39)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at android.os.Handler.dispatchMessage(Handler.java:102)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at android.os.Looper.loop(Looper.java:148)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at android.app.ActivityThread.main(ActivityThread.java:5461)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at java.lang.reflect.Method.invoke(Native Method)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
07-22 09:40:27.516  5818  5818 E cr_MediaCodecUtil: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
07-22 09:40:27.536  5303  5318 D TinyALSA-Audio Output: audio_out_get_latency(0x40f95500)
07-22 09:40:27.542  5818  5923 I OMXClient: Using client-side OMX mux.
07-22 09:40:27.543  5818  5923 E ACodec  : Unable to instantiate a decoder for type 'video/x-vnd.on2.vp9' with err 0xfffffffe.
07-22 09:40:27.543  5818  5923 E ACodec  : signalError(omxError 0xfffffffe, internalError -2)
07-22 09:40:27.543  5818  5922 E MediaCodec: Codec reported err 0xfffffffe, actionCode 0, while in state 1
07-22 09:40:27.544  5818  5818 W MediaCodec-JNI: try to release MediaCodec from JMediaCodec::~JMediaCodec()...
07-22 09:40:27.544  5818  5818 W MediaCodec-JNI: done releasing MediaCodec from JMediaCodec::~JMediaCodec().
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: Failed to create MediaCodec: video/x-vnd.on2.vp9, isSecure: false
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: java.lang.IllegalArgumentException: Failed to initialize video/x-vnd.on2.vp9, error 0xfffffffe
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at android.media.MediaCodec.native_setup(Native Method)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at android.media.MediaCodec.<init>(MediaCodec.java:1670)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at android.media.MediaCodec.createDecoderByType(MediaCodec.java:1618)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at org.chromium.media.MediaCodecUtil.createDecoder(MediaCodecUtil.java:181)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at org.chromium.media.MediaCodecBridge.create(MediaCodecBridge.java:212)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:39)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at android.os.Handler.dispatchMessage(Handler.java:102)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at android.os.Looper.loop(Looper.java:148)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at android.app.ActivityThread.main(ActivityThread.java:5461)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at java.lang.reflect.Method.invoke(Native Method)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
07-22 09:40:27.545  5818  5818 E cr_MediaCodecUtil: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
07-22 09:40:27.582  5818  5853 E MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
07-22 09:40:27.582  5818  5853 E MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
07-22 09:40:27.611  5818  5866 W BlobCache: set: not caching because valueSize is 0
07-22 09:40:27.670  5818  5866 E chromium: [ERROR:texture_manager.cc(2746)] [.CommandBufferContext.RenderCompositor-0x5ad44760]GL ERROR :GL_INVALID_OPERATION : glTexImage2D: <- error from previous GL command
 
  • Like
Reactions: rebski

p3dboard

Senior Member
Oct 20, 2013
1,003
616
Just wanted to report back that zRam is working fine on p6810. If you tap on the Bluetooth switch it goes into a crash loop. To stop the Bluetooth crashes, you will need to force stop the Bluetooth app and clear it's data. Sounds like your getting closer to a working Bluetooth. Have you downloaded the latest Bluez version, as older versions may not be compatible with Android 6.0?
 

galoneta

Senior Member
Nov 15, 2010
161
59
Hi frami2.
Considering hardware similarities, would you consider to develop / test a tab plus (p6210 , p6200) build of your lineageos rom ?
Thanks.
 

test_user7

Member
Feb 7, 2016
21
1
Thank you for the update!

I've just found one annoying issue after update. Install button is disabled during installing apk. We need to turn off/on display to enable it.
 

jsmio

New member
Nov 1, 2017
1
0
i can‘t install this rom

i used twrp 3.02. Has been stuck here for half an hour
 

frami2

Member
Mar 19, 2017
22
39
Thank you for the update!

I've just found one annoying issue after update. Install button is disabled during installing apk. We need to turn off/on display to enable it.

I tried installing apks via play store and directly from file system (after activating the "unknown sources" in the settings) - all is working fine...Could you give more details? Which device are you using?
 

frami2

Member
Mar 19, 2017
22
39
i used twrp 3.02. Has been stuck here for half an hour

I installed the new rom successfully on all the three devices. Via TWRP 3.0.2-0. What I do is:
- put the rom on the internal/sd card
- put a recent open gapps pico there too
- wipe cache, dalvik, system
- install rom and gapps + reboot after install
-> done
 

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    logo-2.png

    This is an unofficial port of LineageOS cm-13.0. I'm a beginner in building custom roms, so please be patient with me. This rom is based on the device tree of DanielHK with small modifications to run smooth with its low memory.
    Code:
    #include <std_disclaimer.h>
    
    /*
     * Your warranty is now void.
     *
     * We are 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 us for messing up your device, we will laugh at you.
     *
     */

    Release Notes
    • 2017-10-23: Update to current cm-13 including fixes to avoid WPA2 KRACK for p6800, p6810, i815.
    • 2017-09-12: Finally, I managed to compile a version for i815 but telephony/mobile data does not work
    • 2017-08-23: Stabilized the new Browser, alias Gello - it formerly crashed, e.g. when opening our XDA page; Deactivated bluetooth again, since it is not done and crashed. It is still a long way: I assume I have to adopt the current Lineageos bluetooth app like Daniel did before: https://github.com/danielhk/android_packages_apps_Bluetooth. Daniels is outdated, unfortunately, cannot be used right away.
    • 2017-07-27: Optimizations ZRAM, ISM and read_ahead also for P6810. Tried to activate bluetooth following danielhks guide. Succeeded with 3.1 in the guide - testing on command line. But in ROM it crashes when I try to activate BT via Settings.
    • 2017-07-24: Video streaming and playback fixed with help from Bauner - native media codecs work now - meaning Youtube in preinstalled browser works now and also playing local mp4 files. I found that some optimizations (e.g. ZRAM) are not yet applied in P6810, because of a separate init.rc (-wifi) -> will be fixed in next release
    • 2017-07-15: Auto-rotation fixed! And GPS works again, too. (got lost again in last build)
    • 2017-07-13: Changed default orientation to Portrait. Deactivated DRM again on P6800, since mediaserver crashed in libwvdrmengine.so - and by that Youtube also broke in playing - now Youtube runs fine, but Play Movies does still not. On P6810 hopefully both works (Could not find a difference yet). Still the rotation issue is there, not from the beginning but during usage the orientation freezes somewhen...
    • 2017-07-10: Further speed improvements, deactivating swipe in AOSP keyboard, what crashed
    • 2017-07-09: GPS fixed, thanks to p3dboard - I was able to add a NON_PIE_SUPPORT
    • 2017-07-07: Add several tweaks for memory usage and disk r/w speed, changed dpi to 202
    • 2017-06-28: first release

    Installation

    • Download the ROM and optionally GApps (ARM-6.0-pico) onto your device

    • Wipe data, cache, dalvik/art-cache and system. Coming from stock rom, also wipe internal sd.

    • Flash ROM and GApps.

    • Reboot System. (First boot takes 5-6 minutes. Be patient.)

    Root
    Download SuperSU version BETA-SuperSU-v2.52.zip and install via TWRP recovery, newer releases will not work.


    Not working

    • Bluetooth - crash when activating via Settings

    • DRM playback (google play movies) crashes. But after the crash starts playing on P6810!?! Currently, playback on P6810 is not smooth anymore, caused by the new codecs setup. Will investigate further.

    • Recent Amazon Kindle app crashes -> use an older one 4.24.0.27 or just delete libunwind.so in /data/app/...kindle directory

    • Internal mount of sd-card does not work -> use portable mode

    Source
    See source information on androidfilehost, too

    XDA:DevDB Information
    LineageOS CM-13.0, ROM for the Samsung Galaxy Tab 7.7

    Contributors
    frami2, danielhk, p3dboard, bauner
    ROM OS Version: 6.0.x Marshmallow

    Version Information
    Status: Beta

    Created 2017-06-29
    Last Updated 2017-10-25
    4
    Hi frami2.
    Considering hardware similarities, would you consider to develop / test a tab plus (p6210 , p6200) build of your lineageos rom ?
    Thanks.

    Done. Roms are built for P6200 and P6210. Will be located here: https://androidfilehost.com/?w=files&flid=226212
    Please test and give feedback.
    2
    Developer Notes
    Solve an initial build error in timeconst.pl

    In one of the first builds it was complaining about a syntax error in a Perl file:

    /kernel/samsung/smdk4210/kernel/timeconst.pl:
    @@ -370,7 +370,7 @@ if ($hz eq '--can') {
    }

    @val = @{$canned_values{$hz}};
    - if (!defined(@val)) {
    + if (!@val) {
    @val = compute_values($hz);
    }
    output($hz, @val);
    2
    Developer Notes
    Solve keyboard crashes once Gapps is installed

    The preinstalled AOSP keyboard in LineageOS seems to be outdated. For our device, once Gapps is installed too, the keyboard crashed frequently. Solution was to replace it with a newer one:

    .repo/local_manifests/local_manifest.xml:
    <remove-project name="LineageOS/android_packages_inputmethods_LatinIME"/>
    <project path="packages/inputmethods/LatinIME" name="platform/packages/inputmethods/LatinIME" remote="aosp"/>

    Then, it generally worked, except for the swipe feature. I just deactivated this for now, by:
    /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/Settings.java:
    @@ -230,7 +230,8 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
    }

    public static boolean readFromBuildConfigIfGestureInputEnabled(final Resources res) {
    - return res.getBoolean(R.bool.config_gesture_input_enabled_by_build_config);
    + //return res.getBoolean(R.bool.config_gesture_input_enabled_by_build_config);
    + return false;
    }

    public static boolean readGestureInputEnabled(final SharedPreferences prefs,
    2
    Developer Notes
    Getting RIL to compile for P6800

    The initial comilation brought RIL errors - RIL was updated since danielHKs last changes it seems. Solution was to replace:
    /device/samsung/p6800/overlay/include/telephony/ril.h
    and
    /device/samsung/smdk4210-tab/overlay/include/telephony/ril.h

    with the one from:

    https://github.com/LineageOS/android_device_samsung_galaxys2-common/tree/cm-13.0/include/telephony