[Xperia Z5 General] threader:
Ok, I've inserted a symbol already used earlier to fill the gap created by altering the symbol name, added after the end of the new shorter symbol call, gracefully a short zero byte period of four bytes at least is allowed between symbols, I would prefer a NOP instruction but only managed to make it think there was a symbol.

01-09 00:20:27.067 2361 2361 F DEBUG : Abort message: 'CANNOT LINK EXECUTABLE "/system/bin/netmgrd": cannot locate symbol "_ZN6google8protobuf2io16CodedInputStream20ReadVarint64FallbackEPm" referenced by "/system/vendor/lib64/libcneapiclient.so"...'

I'm finding _ZN6google8protobuf2io16CodedInputStream20ReadVarint64FallbackEPy , changing this i get the following error.

01-09 01:45:34.158 1709 1709 F DEBUG : Abort message: 'CANNOT LINK EXECUTABLE "/system/bin/netmgrd": cannot locate symbol "_ZN6google8protobuf8internal14WireFormatLite11WriteUInt64EimPNS0_2io17CodedOutputStreamE" referenced by "/system/vendor/lib64/libcneapiclient.so"...'

This appears to be _ZN6google8protobuf8internal14WireFormatLite16WriteUInt64NoTagEyPNS0_2io17CodedOutputStreamE. So i get

01-09 01:55:52.162 1703 1703 F DEBUG : Abort message: 'CANNOT LINK EXECUTABLE "/system/bin/netmgrd": cannot locate symbol "_ZN6google8protobuf2io17CodedOutputStream12VarintSize64Em" referenced by "/system/vendor/lib64/libcneapiclient.so"...'

This is

_ZN6google8protobuf2io17CodedOutputStream12VarintSize64Ey now.

And then there is a really big problem, the function is substantially different from the previous. I doubt it would work even if you could edit it . _ZN6google8protobuf8internal21StringTypeHandlerBase6DeleteEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPNS0_5Arena.

06-09 20:19:32.998 2492 2492 F DEBUG : Abort message: 'CANNOT LINK EXECUTABLE "/system/bin/netmgrd": cannot locate symbol "_ZN6google8protobuf8internal21StringTypeHandlerBase6DeleteEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE" referenced by "/system/vendor/lib64/libcneapiclient.so"...'

This will require a major change, if you look at just external/protobuf/src/google/protobuf/repeated_field.h the "Arena" code is everywhere, brand spanking new and ties together a lot of everything. I will try to create a protobuf-legacy, though I suspect I will only break Android horribly. We can't simply revert the commit (b0575e93e4c39dec69365b850088a1eb7f82c5b3) either, this reverts to 2.6.1 and is too far and behind the protobuf in Los-14.1.

https://android.googlesource.com/platform/external/protobuf/

Other alternatives , that does not work...

This seems to have worked for some? : https://github.com/ThePiGuy0/propri...mmit/66e45a2804b05c13dc91d2b4ca59f469cb7c41d4

Following that attempt I noticed a reference to libprotobuf-cpp-lite.so in libprotobuf-cpp-lite.so so I altered that.

sed -i "s/libprotobuf-cpp-lite.so/libprotobuf-old-lite.so/" libcneapiclient.so
sed -i "s/libprotobuf-cpp-lite.so/libprotobuf-old-lite.so/" libprotobuf-old-lite.so

Leads to:

06-10 21:01:43.925 2328 2399 D skia : ---- read threw an exception
06-10 21:01:43.926 2328 2399 D skia : --- SkAndroidCodec::NewFromStream returned null
06-10 21:01:43.957 2328 2399 W System.err: java.io.IOException: read failed: EIO (I/O error)
06-10 21:01:43.957 2328 2399 W System.err:	at libcore.io.IoBridge.read(IoBridge.java:538)
06-10 21:01:43.957 2328 2399 W System.err:	at java.io.FileInputStream.read(FileInputStream.java:254)
06-10 21:01:43.958 2328 2399 W System.err:	at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
06-10 21:01:43.958 2328 2399 W System.err:	at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:747)
06-10 21:01:43.958 2328 2399 W System.err:	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:723)
06-10 21:01:43.958 2328 2399 W System.err:	at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:480)
06-10 21:01:43.958 2328 2399 W System.err:	at android.media.MediaScanner$MyMediaScannerClient.processImageFile(MediaScanner.java:822)
06-10 21:01:43.958 2328 2399 W System.err:	at android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:648)
06-10 21:01:43.958 2328 2399 W System.err:	at android.media.MediaScanner$MyMediaScannerClient.scanFile(MediaScanner.java:578)
06-10 21:01:43.958 2328 2399 W System.err:	at android.media.MediaScanner.processDirectory(Native Method)
06-10 21:01:43.958 2328 2399 W System.err:	at android.media.MediaScanner.scanDirectories(MediaScanner.java:1351)
06-10 21:01:43.958 2328 2399 W System.err:	at com.android.providers.media.MediaScannerService.scan(MediaScannerService.java:82)
06-10 21:01:43.958 2328 2399 W System.err:	at com.android.providers.media.MediaScannerService.-wrap1(Unknown Source:0)
06-10 21:01:43.958 2328 2399 W System.err:	at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:252)
06-10 21:01:43.958 2328 2399 W System.err:	at android.os.Handler.dispatchMessage(Handler.java:106)
06-10 21:01:43.958 2328 2399 W System.err:	at android.os.Looper.loop(Looper.java:164)
06-10 21:01:43.958 2328 2399 W System.err:	at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:161)
06-10 21:01:43.958 2328 2399 W System.err:	at java.lang.Thread.run(Thread.java:764)
06-10 21:01:43.958 2328 2399 W System.err: Caused by: android.system.ErrnoException: read failed: EIO (I/O error)
06-10 21:01:43.958 2328 2399 W System.err:	at libcore.io.Linux.readBytes(Native Method)
06-10 21:01:43.958 2328 2399 W System.err:	at libcore.io.Linux.read(Linux.java:184)
06-10 21:01:43.958 2328 2399 W System.err:	at libcore.io.BlockGuardOs.read(BlockGuardOs.java:251)
06-10 21:01:43.958 2328 2399 W System.err:	at libcore.io.IoBridge.read(IoBridge.java:528)
06-10 21:01:43.958 2328 2399 W System.err:	... 17 more

06-11 01:31:28.091 1855 1855 I com.android.phone: Looking for service android.hardware.radio@1.0::IRadio/slot1
06-11 01:31:28.096 1855 1855 I com.android.phone: Looking for service android.hardware.radio.deprecated@1.0::IOemHook/slot1
06-11 01:31:32.102 1855 1855 I com.android.phone: Looking for service android.hardware.radio@1.0::IRadio/slot1
06-11 01:31:32.106 1855 1855 I com.android.phone: Looking for service android.hardware.radio.deprecated@1.0::IOemHook/slot1
06-11 01:31:36.112 1855 1855 I com.android.phone: Looking for service android.hardware.radio@1.0::IRadio/slot1
06-11 01:31:36.116 1855 1855 I com.android.phone: Looking for service android.hardware.radio.deprecated@1.0::IOemHook/slot1

So this seems to be due to differing functions, I try renaming the Lineage-14.1 libraries to lob, edit the libraries and have them point to the lob libraries, basically every library pointed to in the libraries touched, get's me this

06-11 08:28:18.281 2408 2408 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-11 08:28:18.281 2408 2408 F DEBUG : LineageOS Version: '15.1-20190610-UNOFFICIAL-sumire'
06-11 08:28:18.281 2408 2408 F DEBUG : Build fingerprint: 'Sony/sumire/sumire:7.1.1/N-MR1-KITAKAMI-170609-1025/1:user/dev-keys'
06-11 08:28:18.281 2408 2408 F DEBUG : Revision: '0'
06-11 08:28:18.281 2408 2408 F DEBUG : ABI: 'arm'
06-11 08:28:18.281 2408 2408 F DEBUG : pid: 2400, tid: 2400, name: drmserver >>> /system/bin/drmserver <<<
06-11 08:28:18.281 2408 2408 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xedcb4000
06-11 08:28:18.281 2408 2408 F DEBUG : r0 edcb3ff5 r1 00000000 r2 fff9954c r3 ef21d1b0
06-11 08:28:18.281 2408 2408 F DEBUG : r4 edcb95e4 r5 ef21d1b0 r6 ed322c0d r7 ed394314
06-11 08:28:18.281 2408 2408 F DEBUG : r8 ef2f8c30 r9 00000000 sl ed7b2ac8 fp fff99354
06-11 08:28:18.281 2408 2408 F DEBUG : ip 00000000 sp fff981a0 lr ed322c1f pc ed326fbe cpsr 80070030
06-11 08:28:18.288 2408 2408 F DEBUG :
06-11 08:28:18.288 2408 2408 F DEBUG : backtrace:
06-11 08:28:18.289 2408 2408 F DEBUG : #00 pc 0001afbe /system/lib/lobc.so (__libc_init_globals(KernelArgumentBlock&)+9)
06-11 08:28:18.289 2408 2408 F DEBUG : #01 pc 00016c1b /system/lib/lobc.so (__libc_preinit()+14)
06-11 08:28:18.289 2408 2408 F DEBUG : #02 pc 00013cb5 /system/bin/linker (__dl__ZL13call_functionPKcPFviPPcS2_ES0_+68)
06-11 08:28:18.289 2408 2408 F DEBUG : #03 pc 00013a11 /system/bin/linker (__dl__ZL10call_arrayIPFviPPcS1_EEvPKcPT_jbS5_+132)
06-11 08:28:18.289 2408 2408 F DEBUG : #04 pc 00013bb9 /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+380)
06-11 08:28:18.289 2408 2408 F DEBUG : #05 pc 00013aaf /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+114)
06-11 08:28:18.289 2408 2408 F DEBUG : #06 pc 00013aaf /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+114)
06-11 08:28:18.289 2408 2408 F DEBUG : #07 pc 00013aaf /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+114)
06-11 08:28:18.289 2408 2408 F DEBUG : #08 pc 00013aaf /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+114)
06-11 08:28:18.289 2408 2408 F DEBUG : #09 pc 00013aaf /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+114)
06-11 08:28:18.289 2408 2408 F DEBUG : #10 pc 00005e1d /system/bin/linker (__dl__Z9do_dlopenPKciPK17android_dlextinfoPKv+1140)
06-11 08:28:18.289 2408 2408 F DEBUG : #11 pc 00003417 /system/bin/linker (__dl__ZL10dlopen_extPKciPK17android_dlextinfoPKv+38)
06-11 08:28:18.289 2408 2408 F DEBUG : #12 pc 000010b1 /system/lib/libdl.so (dlopen+4)
06-11 08:28:18.289 2408 2408 F DEBUG : #13 pc 000075a9 /system/bin/drmserver (android::TPlugInManager<android::IDrmEngine>::loadPlugIn(android::String8 const&)+60)
06-11 08:28:18.289 2408 2408 F DEBUG : #14 pc 000051fd /system/bin/drmserver (android::TPlugInManager<android::IDrmEngine>::loadPlugIns(android::String8 const&)+40)
06-11 08:28:18.289 2408 2408 F DEBUG : #15 pc 00005111 /system/bin/drmserver (android::DrmManager::loadPlugIns(android::String8 const&)+28)
06-11 08:28:18.289 2408 2408 F DEBUG : #16 pc 000050bb /system/bin/drmserver (android::DrmManager::loadPlugIns()+30)
06-11 08:28:18.289 2408 2408 F DEBUG : #17 pc 00007c2b /system/bin/drmserver (android::DrmManagerService::DrmManagerService()+74)
06-11 08:28:18.289 2408 2408 F DEBUG : #18 pc 00007afb /system/bin/drmserver (android::DrmManagerService::instantiate()+42)
06-11 08:28:18.289 2408 2408 F DEBUG : #19 pc 00004dab /system/bin/drmserver (main+34)
06-11 08:28:18.289 2408 2408 F DEBUG : #20 pc 00079d5d /system/lib/libc.so (__libc_init+48)
06-11 08:28:18.289 2408 2408 F DEBUG : #21 pc 00004ca8 /system/bin/drmserver (_start_main+88)
And modifying drmserver:
01-10 15:48:22.178 2172 2172 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-10 15:48:22.178 2172 2172 F DEBUG : LineageOS Version: '15.1-20190610-UNOFFICIAL-sumire'
01-10 15:48:22.178 2172 2172 F DEBUG : Build fingerprint: 'Sony/sumire/sumire:7.1.1/N-MR1-KITAKAMI-170609-1025/1:user/dev-keys'
01-10 15:48:22.178 2172 2172 F DEBUG : Revision: '0'
01-10 15:48:22.178 2172 2172 F DEBUG : ABI: 'arm'
01-10 15:48:22.178 2172 2172 F DEBUG : pid: 2148, tid: 2148, name: drmserver >>> /system/bin/drmserver <<<
01-10 15:48:22.178 2172 2172 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xe7fa3000
01-10 15:48:22.178 2172 2172 F DEBUG : r0 e7fa2ff5 r1 00000000 r2 ff90172c r3 e85d0ef0
01-10 15:48:22.178 2172 2172 F DEBUG : r4 e7fa85e4 r5 e85d0ef0 r6 e7337c0d r7 e73a9314
01-10 15:48:22.178 2172 2172 F DEBUG : r8 e85fbc30 r9 ff9016d4 sl 00000000 fp 00000000
01-10 15:48:22.178 2172 2172 F DEBUG : ip 00000000 sp ff900308 lr e7337c1f pc e733bfbe cpsr 800e0030
01-10 15:48:22.180 2172 2172 F DEBUG :
01-10 15:48:22.180 2172 2172 F DEBUG : backtrace:
01-10 15:48:22.180 2172 2172 F DEBUG : #00 pc 0001afbe /system/lib/lobc.so (__libc_init_globals(KernelArgumentBlock&)+9)
01-10 15:48:22.180 2172 2172 F DEBUG : #01 pc 00016c1b /system/lib/lobc.so (__libc_preinit()+14)
01-10 15:48:22.180 2172 2172 F DEBUG : #02 pc 00013cb5 /system/bin/linker (__dl__ZL13call_functionPKcPFviPPcS2_ES0_+68)
01-10 15:48:22.181 2172 2172 F DEBUG : #03 pc 00013a11 /system/bin/linker (__dl__ZL10call_arrayIPFviPPcS1_EEvPKcPT_jbS5_+132)
01-10 15:48:22.181 2172 2172 F DEBUG : #04 pc 00013bb9 /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+380)
01-10 15:48:22.181 2172 2172 F DEBUG : #05 pc 00013aaf /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+114)
01-10 15:48:22.181 2172 2172 F DEBUG : #06 pc 00013aaf /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+114)
01-10 15:48:22.181 2172 2172 F DEBUG : #07 pc 00013aaf /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+114)
01-10 15:48:22.181 2172 2172 F DEBUG : #08 pc 00013aaf /system/bin/linker (__dl__ZN6soinfo17call_constructorsEv+114)
01-10 15:48:22.181 2172 2172 F DEBUG : #09 pc 00010735 /system/bin/linker (__dl___linker_init+2604)
01-10 15:48:22.181 2172 2172 F DEBUG : #10 pc 00015644 /system/bin/linker (_start+4)