FORUMS
Remove All Ads from XDA
H10 Turbo

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

22 posts
Thanks Meter: 35
 
By frami2, Junior Member on 29th June 2017, 06:26 PM
Post Reply Email Thread
16th July 2017, 12:27 AM |#21  
Senior Member
Thanks Meter: 44
 
More
Quote:
Originally Posted by frami2

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:
Attached Thumbnails
Click image for larger version

Name:	IMG_20170716_060859.jpg
Views:	362
Size:	252.2 KB
ID:	4212930   Click image for larger version

Name:	IMG_20170716_060845.jpg
Views:	352
Size:	184.9 KB
ID:	4212931  
 
 
16th July 2017, 10:50 AM |#22  
OP Junior Member
Thanks Meter: 35
 
Donate to Me
More
Developers notes
Getting auto-rotation to work again

Adding:
<!-- Older sensors are not setting event.timestamp correctly. Setting to
true will use SystemClock.elapsedRealtimeNanos() to set timestamp. -->
<bool name="config_useSystemClockforRotationSensor">true </bool>
to overlay/frameworks/base/core/res/res/values/config.xml

https://github.com/bauner/cm-android...5ddb6889b7a173
16th July 2017, 10:58 AM |#23  
OP Junior Member
Thanks Meter: 35
 
Donate to Me
More
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:
Quote:

@@ -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();
}

21st July 2017, 11:59 AM |#24  
OP Junior Member
Thanks Meter: 35
 
Donate to Me
More
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:
Quote:

@@ -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:
Quote:

@@ -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...044D_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);

The Following User Says Thank You to frami2 For This Useful Post: [ View ] Gift frami2 Ad-Free
21st July 2017, 12:06 PM |#25  
OP Junior Member
Thanks Meter: 35
 
Donate to Me
More
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:
Quote:

@@ -370,7 +370,7 @@ if ($hz eq '--can') {
}

@val = @{$canned_values{$hz}};
- if (!defined(@val)) {
+ if (!@val) {
@val = compute_values($hz);
}
output($hz, @val);

The Following 2 Users Say Thank You to frami2 For This Useful Post: [ View ] Gift frami2 Ad-Free
21st July 2017, 12:16 PM |#26  
OP Junior Member
Thanks Meter: 35
 
Donate to Me
More
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:
Quote:

<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:
Quote:

@@ -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,

The Following 2 Users Say Thank You to frami2 For This Useful Post: [ View ] Gift frami2 Ad-Free
21st July 2017, 12:33 PM |#27  
OP Junior Member
Thanks Meter: 35
 
Donate to Me
More
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...lude/telephony
The Following 2 Users Say Thank You to frami2 For This Useful Post: [ View ] Gift frami2 Ad-Free
22nd July 2017, 08:44 AM |#28  
OP Junior Member
Thanks Meter: 35
 
Donate to Me
More
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
The Following User Says Thank You to frami2 For This Useful Post: [ View ] Gift frami2 Ad-Free
28th July 2017, 07:26 PM |#29  
Senior Member
Flag İzmir
Thanks Meter: 94
 
More
@frami2 Ths for your efforts ...
Is it okay now to try and to use the last version as daily driver with all features.??
28th July 2017, 10:38 PM |#30  
Senior Member
Thanks Meter: 470
 
More
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?
15th October 2017, 01:28 PM |#31  
Senior Member
Thanks Meter: 34
 
More
Hi frami2.
Considering hardware similarities, would you consider to develop / test a tab plus (p6210 , p6200) build of your lineageos rom ?
Thanks.
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