[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] reikaze:
Formatting SD Card as Internal Storage rekindles reboot bug

lineage-16.0-20190116-UNOFFICIAL-harpia.zip with open_gapps-arm-9.0-mini-20190323.zip

Device: XT1601/tefmx (Movistar Mexico)

Formatting the sdcard as internal storage makes the reboot bug on screen lock begin again. Dalvik and cache wipe didn't work.

I did a factory reset and did the cold boot and fixed the reboot bug. Then proceeded to reformat the sd card as internal storage and moved the data to the card and the bug reappeared. Then the bug won't disappear even with a cold boot.

Tried to format it back to portable sd card, and a second factory reset and surprisingly the sd card appeared as internal storage. I formatted it back to portable and once again to internal storage and the bug wouldn't disappear.

I formatted it back to portable once again and did a cold boot, the bug disappeared.

There's a requirement for sdcard as internal storage?

Here's adb logcat on screen lock button press.

04-10 23:57:48.876 1531 1531 W Looper : Slow dispatch took 133ms main h=com.android.server.job.JobSchedulerService$JobHandler c=null m=4
04-10 23:57:48.908 337 7153 D audio_hw_primary: start_input_stream: exit
04-10 23:57:48.931 4872 4891 I MicroDetectionWorker: onReady
04-10 23:57:48.931 4872 4896 W SpeechLevelGenerator: Really low audio levels detected. The audio input may have issues.
04-10 23:57:50.703 337 529 D audio_hw_primary: out_standby: enter: stream (0xb34d5680) usecase(0: deep-buffer-playback)
04-10 23:57:50.973 337 529 D audio_hw_primary: disable_audio_route: reset and update mixer path: deep-buffer-playback
04-10 23:57:50.977 337 529 D hardware_info: hw_info_append_hw_type : device_name = speaker
04-10 23:57:50.977 337 529 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
04-10 23:57:51.048 1531 1629 D WindowManager: powerPress: eventTime=460978 interactive=true count=1 beganFromNonInteractive=false mShortPressOnPowerBehavior=1
04-10 23:57:51.048 1531 1629 I PowerManagerService: Going to sleep due to power button (uid 1000)...
04-10 23:57:51.050 1531 1556 I DreamManagerService: Entering dreamland.
04-10 23:57:51.052 1531 1556 I PowerManagerService: Dozing...
04-10 23:57:51.052 1531 1531 W UsageStatsService: Event reported without a package name
04-10 23:57:51.085 1531 1552 I DreamController: Starting dream: name=ComponentInfo{com.android.systemui/com.android.systemui.doze.DozeService}, isTest=false, canDoze=true, userId=0
04-10 23:57:51.099 1691 1691 V StatusBar: mStatusBarWindow: com.android.systemui.statusbar.phone.StatusBarWindowView{19925ff V.ED..... ........ 0,0-720,54} canPanelBeCollapsed(): false
04-10 23:57:51.109 1691 1691 I vol.Events: writeEvent dismiss_dialog volume_controller
04-10 23:57:51.124 1531 1552 D AutofillManagerService: Close system dialogs
04-10 23:57:51.133 362 362 W AudioFlinger: createTrack_l(): mismatch between requested flags (00000004) and output flags (00000002)
04-10 23:57:51.142 1691 1821 W AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount 0 -> 9989
04-10 23:57:51.166 337 2992 D audio_hw_primary: start_output_stream: enter: stream(0xb34d5680)usecase(0: deep-buffer-playback) devices(0x2)
04-10 23:57:51.167 337 2992 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
04-10 23:57:51.167 337 2992 I msm8916_platform: platform_check_and_set_codec_backend_cfg: Usecase bitwidth 16, samplerate 48000, backend_idx 0
04-10 23:57:51.167 337 2992 I msm8916_platform: platform_check_codec_backend_cfg Codec selected backend: 0 current bit width: 16 and sample rate: 48000
04-10 23:57:51.167 337 2992 D msm8916_platform: platform_check_codec_backend_cfg: resetting sample_rate back to default, backend_idx: 0
04-10 23:57:51.167 337 2992 I msm8916_platform: platform_check_codec_backend_cfg Codec selected backend: 0 updated bit width: 16 and sample rate: 48000
04-10 23:57:51.167 337 2992 D hardware_info: hw_info_append_hw_type : device_name = speaker
04-10 23:57:51.167 337 2992 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)
04-10 23:57:51.167 337 2992 D audio_route: Apply path: speaker
04-10 23:57:51.179 337 2992 W audio_hw_utils: audio_extn_utils_update_stream_app_type_cfg: App type could not be selected. Falling back to default
04-10 23:57:51.179 337 2992 I audio_hw_primary: select_devices Selected apptype: 69936
04-10 23:57:51.179 337 2992 I audio_hw_utils: audio_extn_utils_send_app_type_cfg app_type 69936, acdb_dev_id 15, sample_rate 48000
04-10 23:57:51.179 337 2992 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0
04-10 23:57:51.179 337 2992 D ACDB-LOADER: ACDB -> send_asm_topology
04-10 23:57:51.179 337 2992 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
04-10 23:57:51.179 337 2992 D ACDB-LOADER: ACDB -> send_adm_topology
04-10 23:57:51.179 337 2992 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
04-10 23:57:51.179 337 2992 D ACDB-LOADER: ACDB -> send_audtable
04-10 23:57:51.179 337 2992 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
04-10 23:57:51.179 337 2992 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
04-10 23:57:51.180 337 2992 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
04-10 23:57:51.180 337 2992 D ACDB-LOADER: ACDB -> send_audvoltable
04-10 23:57:51.180 337 2992 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE
04-10 23:57:51.180 337 2992 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
04-10 23:57:51.180 337 2992 D ACDB-LOADER: ACDB -> send_afe_cal
04-10 23:57:51.180 337 2992 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
04-10 23:57:51.180 337 2992 D : Failed to fetch the lookup information of the device 0000000F
04-10 23:57:51.180 337 2992 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
04-10 23:57:51.180 337 2992 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 15 path = 0
04-10 23:57:51.180 337 2992 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
04-10 23:57:51.180 337 2992 W audio_hw_utils: audio_extn_utils_send_audio_calibration: No audio calibration for usecase type = 0
04-10 23:57:51.180 337 2992 D audio_hw_primary: enable_audio_route: apply mixer and update path: deep-buffer-playback
04-10 23:57:51.180 337 2992 D audio_route: Apply path: deep-buffer-playback
04-10 23:57:51.182 337 2992 D audio_hw_primary: select_devices: done
04-10 23:57:51.185 1531 1556 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
04-10 23:57:51.192 1531 1556 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8916.so from current namespace instead of sphal namespace.
04-10 23:57:51.198 337 2992 D msm8916_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map0
04-10 23:57:51.198 337 2992 D msm8916_platform: platform_set_channel_map: set mapping(1 2 0 0 0 0 0 0) for channel:2
04-10 23:57:51.202 1531 1556 W Adreno-EGL: <qeglDrvAPI_eglQueryContext:4368>: EGL_BAD_ATTRIBUTE
04-10 23:57:51.205 1691 1691 I vol.Events: writeEvent dismiss_dialog volume_controller
04-10 23:57:51.217 258 258 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8916.so from current namespace instead of sphal namespace.
04-10 23:57:51.219 258 258 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8916.so from current namespace instead of sphal namespace.
04-10 23:57:51.237 337 2992 D audio_hw_primary: start_output_stream: exit
04-10 23:57:51.248 1531 1556 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8916.so from current namespace instead of sphal namespace.
04-10 23:57:51.356 1531 1556 E Sensors : als setDelay
04-10 23:57:51.359 1531 1556 E Sensors : als poll interval: 200
04-10 23:57:51.774 1531 1556 I DisplayPowerController: Blocking screen off
04-10 23:57:51.775 1531 1556 I DisplayPowerController: Unblocked screen off after 1 ms
04-10 23:57:51.819 1531 1556 E Sensors : AccSensor::setEnable handle:1 enable:0
04-10 23:57:51.819 1531 1556 E Sensors : AccSensor::setEnable handle:1 oldStatus=1 newStatus=0
04-10 23:57:51.820 1531 1556 E Sensors : AccSensor::setEnable finished!!!
04-10 23:57:51.827 1531 1556 E libEGL : call to OpenGL ES API with no current context (logged once per thread)
04-10 23:57:51.832 1531 1556 E LightsService: Light requested not available on this device. 2
04-10 23:57:51.833 258 258 D SurfaceFlinger: Set power mode=0, type=0 flinger=0xb01b6000
04-10 23:57:51.833 1531 1554 I DisplayManagerService: Display device changed state: "Built-in Screen", OFF
04-10 23:57:51.835 258 258 D qdhwcomposer: hwc_setPowerMode: Setting mode 0 on display: 0
04-10 23:57:51.866 1531 1591 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
04-10 23:57:51.877 1531 1629 I InputReader: Reconfiguring input devices. changes=0x00000004
04-10 23:57:51.912 1531 1546 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
04-10 23:57:51.913 1531 1546 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
04-10 23:57:51.947 4872 4891 I MicroDetector: Keeping mic open: false
04-10 23:57:51.947 4872 4901 I DeviceStateChecker: DeviceStateChecker cancelled
04-10 23:57:51.948 4872 4900 I AudioController: internalShutdown
04-10 23:57:51.949 4872 4905 I MicroRecognitionRunner: Stopping hotword detection.
04-10 23:57:51.960 337 664 D audio_hw_primary: in_standby: enter: stream (0xb34af2a0) usecase(16: audio-record)
04-10 23:57:52.001 337 664 D audio_hw_primary: disable_audio_route: reset and update mixer path: audio-record
04-10 23:57:52.007 337 664 D hardware_info: hw_info_append_hw_type : device_name = voice-rec-mic
04-10 23:57:52.007 337 664 D audio_hw_primary: disable_snd_device: snd_device(81: voice-rec-mic)
04-10 23:57:52.008 1531 1546 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
04-10 23:57:52.020 337 337 D audio_hw_primary: in_set_parameters: enter: kvpairs=routing=0
04-10 23:57:52.028 337 664 D audio_hw_primary: adev_close_input_stream: enter:stream_handle(0xb34af2a0)
04-10 23:57:52.028 337 664 D audio_hw_primary: in_standby: enter: stream (0xb34af2a0) usecase(16: audio-record)
04-10 23:57:52.033 4872 4900 I MicrophoneInputStream: mic_close SR : 16000 CC : 16 SO : 1999
04-10 23:57:52.034 4872 4900 E AudioSource: Stop listening is called on already closed AudioSource
04-10 23:57:52.035 4872 4896 I MicroRecognitionRunner: Detection finished
04-10 23:57:52.063 4872 6286 I PBSessionCacheImpl: Deleted sessionId[1046341737720] from persistence.
04-10 23:57:52.074 1691 1691 D StatusBar: disable<e i a s b h r c s > disable2<q i n >
04-10 23:57:52.103 1531 1546 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver