[Android General] leqacy:
No, I installed an unofficial LineageOS 16 build on the phone before, to see how things are before attempting to build it myself.

I formatted data now and at least did not get the corruption error again, thought I still get boot loops after 15-20 minutes of LineageOS loading animation.

The directories are empty and last_kmesg does not exist, so maybe it is not a kernel panic that is causing the reboots.

I uploaded my adbkey.pub to /data/misc/adb/ (directory already existed) to the file adbkeys. H

Also pasted these props the prop files.

echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop

I now see devices in adb devices sometimes, and sometimes only see the device with lsusb.

However, I get no permission, when I do see the device. The device appears 2-5 times in the list for adb devices for some reason, the longer it boots the more devices I see (all with the same ID).

Edit: I finally solved the permission problem by doing a "sudo adb kill-server && sudo adb devices". No idea why the sudo helped here, but now I can get logs.

Errors that keeps popping up in the logs are the following:

02-08 20:32:42.531 E/PersistentDataBlockService(19434): not able to find package com.google.android.gms
02-08 20:32:42.531 E/PersistentDataBlockService(19434): android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at android.app.ApplicationPackageManager.getPackageUidAsUser(ApplicationPackageManager.java:299)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at com.android.server.PersistentDataBlockService.getAllowedUid(PersistentDataBlockService.java:113)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at com.android.server.PersistentDataBlockService.lambda$onStart$0(PersistentDataBlockService.java:126)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at com.android.server.-$$Lambda$PersistentDataBlockService$EZl9OYaT2eNL7kfSr2nKUBjxidk.run(Unknown Source:2)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at com.android.server.SystemServerInitThreadPool.lambda$submit$0(SystemServerInitThreadPool.java:64)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at com.android.server.-$$Lambda$SystemServerInitThreadPool$7wfLGkZF7FvYZv7xj3ghvuiJJGk.run(Unknown Source:4)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
02-08 20:32:42.531 E/PersistentDataBlockService(19434):	at com.android.internal.util.ConcurrentUtils$1$1.run(ConcurrentUtils.java:62)

02-08 20:32:42.386 I/CameraManagerGlobal(19434): Connecting to camera service
02-08 20:32:42.387 E/libc (19434): Access denied finding property "vendor.camera.aux.packagelist"
02-08 20:32:42.387 E/libc (19434): Access denied finding property "vendor.camera.aux.packageblacklist"
02-08 20:32:42.388 E/libc (19434): Access denied finding property "vendor.camera.aux.packagelist"
02-08 20:32:42.388 E/libc (19434): Access denied finding property "vendor.camera.aux.packageblacklist"
02-08 20:32:42.391 W/ShortcutManager(19434): Unable to add bookmark: com.google.android.gm/com.google.android.gm.ConversationListActivityGmail
02-08 20:32:42.391 W/ShortcutManager(19434): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.google.android.gm/com.google.android.gm.ConversationListActivityGmail}
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.app.ApplicationPackageManager.getActivityInfo(ApplicationPackageManager.java:435)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.policy.ShortcutManager.loadShortcuts(ShortcutManager.java:142)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.policy.ShortcutManager.<init>(ShortcutManager.java:62)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.policy.PhoneWindowManager.init(PhoneWindowManager.java:2309)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.wm.WindowManagerService$4.run(WindowManagerService.java:914)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Handler$BlockingRunnable.run(Handler.java:893)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Handler.handleCallback(Handler.java:873)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Handler.dispatchMessage(Handler.java:99)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Looper.loop(Looper.java:193)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.HandlerThread.run(HandlerThread.java:65)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.ServiceThread.run(ServiceThread.java:44)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.UiThread.run(UiThread.java:43)
02-08 20:32:42.391 W/ShortcutManager(19434): Unable to add bookmark: com.google.android.talk/com.google.android.talk.SigningInActivity
02-08 20:32:42.391 W/ShortcutManager(19434): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.google.android.talk/com.google.android.talk.SigningInActivity}
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.app.ApplicationPackageManager.getActivityInfo(ApplicationPackageManager.java:435)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.policy.ShortcutManager.loadShortcuts(ShortcutManager.java:142)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.policy.ShortcutManager.<init>(ShortcutManager.java:62)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.policy.PhoneWindowManager.init(PhoneWindowManager.java:2309)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.wm.WindowManagerService$4.run(WindowManagerService.java:914)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Handler$BlockingRunnable.run(Handler.java:893)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Handler.handleCallback(Handler.java:873)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Handler.dispatchMessage(Handler.java:99)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Looper.loop(Looper.java:193)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.HandlerThread.run(HandlerThread.java:65)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.ServiceThread.run(ServiceThread.java:44)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.UiThread.run(UiThread.java:43)
02-08 20:32:42.391 W/ShortcutManager(19434): Unable to add bookmark: com.google.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity
02-08 20:32:42.391 W/ShortcutManager(19434): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.google.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity}
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.app.ApplicationPackageManager.getActivityInfo(ApplicationPackageManager.java:435)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.policy.ShortcutManager.loadShortcuts(ShortcutManager.java:142)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.policy.ShortcutManager.<init>(ShortcutManager.java:62)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.policy.PhoneWindowManager.init(PhoneWindowManager.java:2309)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.wm.WindowManagerService$4.run(WindowManagerService.java:914)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Handler$BlockingRunnable.run(Handler.java:893)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Handler.handleCallback(Handler.java:873)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Handler.dispatchMessage(Handler.java:99)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.Looper.loop(Looper.java:193)
02-08 20:32:42.391 W/ShortcutManager(19434):	at android.os.HandlerThread.run(HandlerThread.java:65)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.ServiceThread.run(ServiceThread.java:44)
02-08 20:32:42.391 W/ShortcutManager(19434):	at com.android.server.UiThread.run(UiThread.java:43)

02-08 20:32:42.334 E/ActivityManager(19434): No such permission: com.google.sensor.elmyra.permission.USE_RAW_SENSOR
02-08 20:32:42.334 E/ActivityManager(19434): android.content.pm.PackageManager$NameNotFoundException: com.google.sensor.elmyra.permission.USE_RAW_SENSOR
02-08 20:32:42.334 E/ActivityManager(19434):	at android.app.ApplicationPackageManager.getPermissionInfo(ApplicationPackageManager.java:315)
02-08 20:32:42.334 E/ActivityManager(19434):	at com.android.server.am.ActivityManagerService$PermissionController.isRuntimePermission(ActivityManagerService.java:9166)
02-08 20:32:42.334 E/ActivityManager(19434):	at android.os.IPermissionController$Stub.onTransact(IPermissionController.java:90)
02-08 20:32:42.334 E/ActivityManager(19434):	at android.os.Binder.execTransact(Binder.java:731)
02-08 20:32:42.334 E/ActivityManager(19434):	at com.android.server.SystemServer.startSensorService(Native Method)
02-08 20:32:42.334 E/ActivityManager(19434):	at com.android.server.SystemServer.lambda$startBootstrapServices$0(SystemServer.java:720)
02-08 20:32:42.334 E/ActivityManager(19434):	at com.android.server.-$$Lambda$SystemServer$UyrPns7R814g-ZEylCbDKhe8It4.run(Unknown Source:0)
02-08 20:32:42.334 E/ActivityManager(19434):	at com.android.server.SystemServerInitThreadPool.lambda$submit$0(SystemServerInitThreadPool.java:64)
02-08 20:32:42.334 E/ActivityManager(19434):	at com.android.server.-$$Lambda$SystemServerInitThreadPool$7wfLGkZF7FvYZv7xj3ghvuiJJGk.run(Unknown Source:4)
02-08 20:32:42.334 E/ActivityManager(19434):	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
02-08 20:32:42.334 E/ActivityManager(19434):	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
02-08 20:32:42.334 E/ActivityManager(19434):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
02-08 20:32:42.334 E/ActivityManager(19434):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
02-08 20:32:42.334 E/ActivityManager(19434):	at com.android.internal.util.ConcurrentUtils$1$1.run(ConcurrentUtils.java:62)

02-08 20:32:42.221 W/EntropyMixer(19434): java.io.FileNotFoundException: /dev/hw_random (Permission denied)
02-08 20:32:42.221 W/EntropyMixer(19434):	at java.io.FileInputStream.open0(Native Method)
02-08 20:32:42.221 W/EntropyMixer(19434):	at java.io.FileInputStream.open(FileInputStream.java:231)
02-08 20:32:42.221 W/EntropyMixer(19434):	at java.io.FileInputStream.<init>(FileInputStream.java:165)
02-08 20:32:42.221 W/EntropyMixer(19434):	at java.io.FileInputStream.<init>(FileInputStream.java:112)
02-08 20:32:42.221 W/EntropyMixer(19434):	at com.android.server.RandomBlock.fromFile(RandomBlock.java:45)
02-08 20:32:42.221 W/EntropyMixer(19434):	at com.android.server.EntropyMixer.addHwRandomEntropy(EntropyMixer.java:205)
02-08 20:32:42.221 W/EntropyMixer(19434):	at com.android.server.EntropyMixer.<init>(EntropyMixer.java:115)
02-08 20:32:42.221 W/EntropyMixer(19434):	at com.android.server.EntropyMixer.<init>(EntropyMixer.java:97)
02-08 20:32:42.221 W/EntropyMixer(19434):	at com.android.server.SystemServer.startOtherServices(SystemServer.java:845)
02-08 20:32:42.221 W/EntropyMixer(19434):	at com.android.server.SystemServer.run(SystemServer.java:457)
02-08 20:32:42.221 W/EntropyMixer(19434):	at com.android.server.SystemServer.main(SystemServer.java:302)
02-08 20:32:42.221 W/EntropyMixer(19434):	at java.lang.reflect.Method.invoke(Native Method)
02-08 20:32:42.221 W/EntropyMixer(19434):	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
02-08 20:32:42.221 W/EntropyMixer(19434):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:838)