Resolved Manual recording not working - A12 / Miui 12.6


Status
Not open for further replies.

Iain_B

Members
25 Mar 2013
1,898
297
Phone calls and video sound can be recorded, but not manual recordings.
I tried the solutions below in other bug reports, ie. turning off, or redirecting Assistant from Google, but still got the error; 'OK Google' stopped working, but I could still not manually record.
This bug is new because both 'OK Google' and manual recording were both working fine before this update.
The error message has already been noted: "Sound recorder error: Check if another app is currently using the recording feature."

Edit: @Igor Eisberg's comments are noted.
 
do you have a logcat :)


How to create a logcat file

# connect phone with PC and USB
# set USB debug - on
# create a textfile -> eg logfile.txt in adb folder on PC
# adb logcat > logfile.txt
# make actions on phone and wait for issue
# ctrl+c (to stop logfile recording)
# analyze the logfile
# send the last eg 5 seconds, the relevant entries


search for fatal exeption as example
 
Last edited:
do you have a logcat :)


How to create a logcat file

https://xiaomi.eu/community/threads/guide-logging-with-adb-logcat.18455/#post-625131

# connect phone with PC and USB
# set USB debug - on
# create a textfile -> eg logfile.txt in adb folder on PC
# adb logcat > logfile.txt
# make actions on phone and wait for issue
# ctrl+c (to stop logfile recording)
# analyze the logfile
# send the last eg 5 seconds, the relevant entries
Just done a logcat, and am searching through it for references to the recorder. It's over 13,000 lines long, with lots of references to a recorder! :(
 
  • Haha
Reactions: katerpanne
I wonder if this is the relevant section:
Code:
12-03 15:08:12.787  7160  7235 I a       : uid:10095 change to active
12-03 15:08:12.792  5571 29098 W MediaProvider: Forgot to handle a top level directory in getContentUriForFile?
12-03 15:08:12.793  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.793  1103  8637 W surfaceflinger: DisplayExtnImpl::operator(): RE TID:1184 not sent! ret = -1
12-03 15:08:12.793  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.793  5571 29098 E MediaProvider: insertFileIfNecessary failed
12-03 15:08:12.793  5571 29098 E MediaProvider: java.lang.IllegalArgumentException: Primary directory MIUI not allowed for content://media/external_primary/file; allowed directories are [Download, Documents]
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.ensureFileColumns(Unknown Source:1298)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.ensureUniqueFileColumns(Unknown Source:7)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insertFile(Unknown Source:24)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insertInternal(Unknown Source:560)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insert(Unknown Source:5)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insertFileForFuse(Unknown Source:66)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insertFileIfNecessaryForFuse(Unknown Source:193)
12-03 15:08:12.793  1103  8636 W surfaceflinger: DisplayExtnImpl::operator(): SF TID:1103 not sent! ret = -1
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService: Exception when starting recorder
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService: java.io.FileNotFoundException: /storage/emulated/0/MIUI/sound_recorder/3 Dec, 15.08.mp3: open failed: EPERM (Operation not permitted)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.IoBridge.open(IoBridge.java:575)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at miuix.media.Mp3Recorder.start(Unknown Source:41)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.soundrecorder.RecorderService.localStartRecording(Unknown Source:101)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.soundrecorder.RecorderService.access$3200(Unknown Source:0)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.soundrecorder.RecorderService$3.run(Unknown Source:12)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.os.Handler.handleCallback(Unknown Source:2)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.os.Handler.dispatchMessage(Unknown Source:4)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.os.Looper.loopOnce(Unknown Source:176)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.os.Looper.loop(Unknown Source:76)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.app.ActivityThread.main(Unknown Source:138)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at java.lang.reflect.Method.invoke(Native Method)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.internal.os.ZygoteInit.main(Unknown Source:306)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService: Caused by: android.system.ErrnoException: open failed: EPERM (Operation not permitted)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.Linux.open(Native Method)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:273)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.app.ActivityThread$AndroidOs.open(Unknown Source:15)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.IoBridge.open(IoBridge.java:561)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     ... 14 more
12-03 15:08:12.793  6573  6573 V Mp3Recorder: Mp3Recorder released
12-03 15:08:12.798  6504  6504 D IS_CTS_MODE: false
12-03 15:08:12.798  6504  6504 D MULTI_WINDOW_SWITCH_ENABLED: false
12-03 15:08:12.799   950  8635 D audio_hw_primary: [force reset] del audio-record 1
12-03 15:08:12.799   950  8635 D soundtrigger: audio HAL using same device 230 as ST
12-03 15:08:12.799   950  8635 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_info->id 23 of type 1 for Event 2, with Raise=0
12-03 15:08:12.799   950  8635 D hardware_info: hw_info_append_hw_type : device_name = voice-rec-mic
12-03 15:08:12.799   950  8635 D audio_hw_primary: disable_snd_device: device ref cnt is 1[230]
12-03 15:08:12.799   950  8635 D audio_hw_primary: disable_snd_device: snd_device(230: voice-rec-mic)[SND_DEVICE_IN_VOICE_REC_MIC]
12-03 15:08:12.799   950  8635 D msm8974_platform: platform_split_snd_device: snd_device(230) num devices(0) new_snd_devices(0)
12-03 15:08:12.800   950  8635 D soundtrigger: audio HAL using same device 230 as ST
12-03 15:08:12.800   950  8635 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0xe6 of type 1 for Event 0, with Raise=1
12-03 15:08:12.800   950  8635 I sound_trigger_platform: platform_stdev_check_and_update_concurrency: Received DEVICE event, event type 0
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_get_capture_device: Device = 0x80000004
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_get_capture_device: Available device = 0x80000004
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: dedicated path 0, reset backend 1, tx 0, rx 0, concurrency session allowed
12-03 15:08:12.800   950  8635 D hardware_info: hw_info_append_hw_type : device_name = handset-stereo-dmic-ef
12-03 15:08:12.800   950  8635 D msm8974_platform: platform_split_snd_device: snd_device(251) num devices(0) new_snd_devices(0)
12-03 15:08:12.800   950  8635 D audio_hw_primary: enable_snd_device: snd_device(251: handset-stereo-dmic-ef)[SND_DEVICE_IN_HANDSET_DMIC_STEREO]
12-03 15:08:12.800   950  8635 D msm8974_platform: platform_get_island_cfg_on_device:island cfg status on snd_device = (handset-stereo-dmic-ef 0)
12-03 15:08:12.800   950  8635 D soundtrigger: audio HAL using same device 251 as ST
12-03 15:08:12.800   950  8635 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0xfb of type 1 for Event 1, with Raise=1
12-03 15:08:12.800   950  8635 I sound_trigger_platform: platform_stdev_check_and_update_concurrency: Received DEVICE event, event type 1
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_get_capture_device: Device = 0x80000004
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_get_capture_device: Available device = 0x80000004
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: dedicated path 0, reset backend 1, tx 1, rx 0, concurrency session not allowed
12-03 15:08:12.800   950  8635 D audio_route: Apply path: handset-stereo-dmic-ef
12-03 15:08:12.805   950  8635 D soundtrigger: audio HAL using same device 251 as ST
12-03 15:08:12.805   950  8635 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_info->id 23 of type 1 for Event 3, with Raise=0
12-03 15:08:12.805   950  8635 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->in_snd_device handset-stereo-dmic-ef
12-03 15:08:12.805   950  8635 D msm8974_platform: platform_split_snd_device: snd_device(251) num devices(0) new_snd_devices(0)
12-03 15:08:12.805   950  8635 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
12-03 15:08:12.805   950  8635 I audio_hw_utils: send_app_type_cfg_for_device CAPTURE app_type 69938, acdb_dev_id 34, sample_rate 16000, snd_device_be_idx 194
12-03 15:08:12.805   950  8635 D msm8974_platform: platform_split_snd_device: snd_device(251) num devices(1) new_snd_devices(0)
12-03 15:08:12.805   950  8635 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 34, path = 1, app id = 0x11132, sample rate = 16000, afe_sample_rate = 48000
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_asm_topology
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_adm_topology
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_audtable
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_INSTANCE_COMMON_TABLE_SIZE
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_INSTANCE_COMMON_TABLE
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL cal_type[11] acdb_id[34] app_type[69938]
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_PERSISTENT_AUDPROC_INSTANCE_COMMON_TABLE_SIZE
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7 
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager]-> No data found
12-03 15:08:12.805   950  8635 D ACDB-LOADER: Error: ACDB_CMD_GET_PERSISTENT_AUDPROC_INSTANCE_COMMON_TABLE_SIZE returned -18
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_audproc_persist_table -18 
12-03 15:08:12.805   950  8635 D ACDB-LOADER: Error: Invalid Audproc persist size = -18
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_INSTANCE_STREAM_TABLE_SIZE
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_audstrmtable
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_INSTANCE_STREAM_TABLE
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 20
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_afe_topology
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 34, Topology Id 112fb
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_afe_cal
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_INSTANCE_COMMON_TABLE_SIZE
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: Failed to fetch the lookup information of the device 00000022 
12-03 15:08:12.805   950  8635 D ACDB-LOADER: Error: ACDB_CMD_GET_AFE_INSTANCE_COMMON_TABLE_SIZE Returned = -19
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_INSTANCE_COMMON_TABLE
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: Failed to fetch the lookup information of the device 00000022 
12-03 15:08:12.805   950  8635 D ACDB-LOADER: Error: ACDB AFE returned = -19
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL cal_type[17] acdb_id[34]
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 34 path = 1
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
12-03 15:08:12.805   950  8635 D audio_hw_primary: enable_audio_route: apply mixer and update path: audio-record
12-03 15:08:12.806   950  8635 D audio_route: Apply path: audio-record
12-03 15:08:12.809  1103  1221 D MI-SF   : getHBMOverlayAlpha backlight=337, mFodSystemBacklight=192, mBrightnessBackup=337
12-03 15:08:12.809  1103  1221 D MI-SF   : brightness=337 alpha=0.738281
12-03 15:08:12.809  1052  8638 D DisplayFeatureHal: timerCallback enter caseId 11, generation 2437, mGeneration 2437, mForce generation -1
12-03 15:08:12.810  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.810  1103  8639 W surfaceflinger: DisplayExtnImpl::operator(): SF TID:1103 not sent! ret = -1
12-03 15:08:12.810  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.810  1103  8640 W surfaceflinger: DisplayExtnImpl::operator(): RE TID:1184 not sent! ret = -1
12-03 15:08:12.813  1881  2557 W SchedBoost: handleSchedThreads end: threads: 2961, 2000ms, procName: com.miui.home, mode: 2 aff:[0, 1, 2, 3, 4, 5, 6, 7]
12-03 15:08:12.813  1881  6355 W MiuiFreeFormGesturePointerEventListener: setMiuiFreeFormTouchExcludeRegion mTouchExcludeRegion = SkRegion((0,0,1080,90)(0,2296,1080,2340))
12-03 15:08:12.814  1881  2557 W SchedBoost: handleSchedThreads end: threads: 3079, 2000ms, procName: com.miui.home, mode: 2 aff:[0, 1, 2, 3, 4, 5, 6, 7]
12-03 15:08:12.811  6504  6504 W d.soundrecorder: type=1400 audit(0.0:7990): avc: denied { read } for name="u:object_r:qemu_hw_prop:s0" dev="tmpfs" ino=20344 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:qemu_hw_prop:s0 tclass=file permissive=0 app=com.android.soundrecorder
12-03 15:08:12.817  6504  6504 I MiuixUtils: getNavigationBarHeight = 44
12-03 15:08:12.819   953  3442 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_SLEEP_IND: 0xFE
12-03 15:08:12.822  6504  6504 D DecorView[]: updateDecorCaptionStatus displayWindowDecor is false
12-03 15:08:12.822  1653  1825 D libsensor-B2SNotifier: Backlight2SlpiNotifier brightness = 168
12-03 15:08:12.825   985  2548 I sensors-hal: ssc_conn_event_cb:489, event[0] sensor:pedometer  Wakeup msg_id=129, ts=38990814035
12-03 15:08:12.826  1881  2527 D WindowManager: Input focus has changed to Window{fe2b16c u0 com.android.soundrecorder/com.android.soundrecorder.SoundRecorder} display=0
12-03 15:08:12.827   985  2548 I sensors-hal: ssc_conn_event_cb:489, event[0] sensor:pedometer  Wakeup msg_id=129, ts=38990843236
12-03 15:08:12.828   985  2548 I sensors-hal: ssc_conn_event_cb:489, event[0] sensor:pedometer  Wakeup msg_id=129, ts=38990870418
12-03 15:08:12.828  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.829  1103  8642 W surfaceflinger: DisplayExtnImpl::operator(): SF TID:1103 not sent! ret = -1
12-03 15:08:12.829  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.829  1103  8643 W surfaceflinger: DisplayExtnImpl::operator(): RE TID:1184 not sent! ret = -1
12-03 15:08:12.834  1881  6355 W MiuiFreeFormGesturePointerEventListener: setMiuiFreeFormTouchExcludeRegion mTouchExcludeRegion = SkRegion((0,0,1080,90)(0,2296,1080,2340))
12-03 15:08:12.839  6504  6504 W libc    : Access denied finding property "qemu.hw.mainkeys"
12-03 15:08:12.835  6504  6504 W d.soundrecorder: type=1400 audit(0.0:7991): avc: denied { read } for name="u:object_r:qemu_hw_prop:s0" dev="tmpfs" ino=20344 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:qemu_hw_prop:s0 tclass=file permissive=0 app=com.android.soundrecorder
12-03 15:08:12.839  6504  6504 I MiuixUtils: getNavigationBarHeightFromProp = 44
12-03 15:08:12.839  6504  6504 I MiuixUtils: getNavigationBarHeight = 44
 
I wonder if this is the relevant section:
Code:
12-03 15:08:12.787  7160  7235 I a       : uid:10095 change to active
12-03 15:08:12.792  5571 29098 W MediaProvider: Forgot to handle a top level directory in getContentUriForFile?
12-03 15:08:12.793  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.793  1103  8637 W surfaceflinger: DisplayExtnImpl::operator(): RE TID:1184 not sent! ret = -1
12-03 15:08:12.793  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.793  5571 29098 E MediaProvider: insertFileIfNecessary failed
12-03 15:08:12.793  5571 29098 E MediaProvider: java.lang.IllegalArgumentException: Primary directory MIUI not allowed for content://media/external_primary/file; allowed directories are [Download, Documents]
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.ensureFileColumns(Unknown Source:1298)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.ensureUniqueFileColumns(Unknown Source:7)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insertFile(Unknown Source:24)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insertInternal(Unknown Source:560)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insert(Unknown Source:5)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insertFileForFuse(Unknown Source:66)
12-03 15:08:12.793  5571 29098 E MediaProvider:     at com.android.providers.media.MediaProvider.insertFileIfNecessaryForFuse(Unknown Source:193)
12-03 15:08:12.793  1103  8636 W surfaceflinger: DisplayExtnImpl::operator(): SF TID:1103 not sent! ret = -1
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService: Exception when starting recorder
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService: java.io.FileNotFoundException: /storage/emulated/0/MIUI/sound_recorder/3 Dec, 15.08.mp3: open failed: EPERM (Operation not permitted)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.IoBridge.open(IoBridge.java:575)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at miuix.media.Mp3Recorder.start(Unknown Source:41)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.soundrecorder.RecorderService.localStartRecording(Unknown Source:101)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.soundrecorder.RecorderService.access$3200(Unknown Source:0)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.soundrecorder.RecorderService$3.run(Unknown Source:12)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.os.Handler.handleCallback(Unknown Source:2)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.os.Handler.dispatchMessage(Unknown Source:4)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.os.Looper.loopOnce(Unknown Source:176)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.os.Looper.loop(Unknown Source:76)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.app.ActivityThread.main(Unknown Source:138)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at java.lang.reflect.Method.invoke(Native Method)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at com.android.internal.os.ZygoteInit.main(Unknown Source:306)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService: Caused by: android.system.ErrnoException: open failed: EPERM (Operation not permitted)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.Linux.open(Native Method)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:273)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at android.app.ActivityThread$AndroidOs.open(Unknown Source:15)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     at libcore.io.IoBridge.open(IoBridge.java:561)
12-03 15:08:12.793  6573  6573 E SoundRecorder:RecorderService:     ... 14 more
12-03 15:08:12.793  6573  6573 V Mp3Recorder: Mp3Recorder released
12-03 15:08:12.798  6504  6504 D IS_CTS_MODE: false
12-03 15:08:12.798  6504  6504 D MULTI_WINDOW_SWITCH_ENABLED: false
12-03 15:08:12.799   950  8635 D audio_hw_primary: [force reset] del audio-record 1
12-03 15:08:12.799   950  8635 D soundtrigger: audio HAL using same device 230 as ST
12-03 15:08:12.799   950  8635 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_info->id 23 of type 1 for Event 2, with Raise=0
12-03 15:08:12.799   950  8635 D hardware_info: hw_info_append_hw_type : device_name = voice-rec-mic
12-03 15:08:12.799   950  8635 D audio_hw_primary: disable_snd_device: device ref cnt is 1[230]
12-03 15:08:12.799   950  8635 D audio_hw_primary: disable_snd_device: snd_device(230: voice-rec-mic)[SND_DEVICE_IN_VOICE_REC_MIC]
12-03 15:08:12.799   950  8635 D msm8974_platform: platform_split_snd_device: snd_device(230) num devices(0) new_snd_devices(0)
12-03 15:08:12.800   950  8635 D soundtrigger: audio HAL using same device 230 as ST
12-03 15:08:12.800   950  8635 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0xe6 of type 1 for Event 0, with Raise=1
12-03 15:08:12.800   950  8635 I sound_trigger_platform: platform_stdev_check_and_update_concurrency: Received DEVICE event, event type 0
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_get_capture_device: Device = 0x80000004
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_get_capture_device: Available device = 0x80000004
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: dedicated path 0, reset backend 1, tx 0, rx 0, concurrency session allowed
12-03 15:08:12.800   950  8635 D hardware_info: hw_info_append_hw_type : device_name = handset-stereo-dmic-ef
12-03 15:08:12.800   950  8635 D msm8974_platform: platform_split_snd_device: snd_device(251) num devices(0) new_snd_devices(0)
12-03 15:08:12.800   950  8635 D audio_hw_primary: enable_snd_device: snd_device(251: handset-stereo-dmic-ef)[SND_DEVICE_IN_HANDSET_DMIC_STEREO]
12-03 15:08:12.800   950  8635 D msm8974_platform: platform_get_island_cfg_on_device:island cfg status on snd_device = (handset-stereo-dmic-ef 0)
12-03 15:08:12.800   950  8635 D soundtrigger: audio HAL using same device 251 as ST
12-03 15:08:12.800   950  8635 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0xfb of type 1 for Event 1, with Raise=1
12-03 15:08:12.800   950  8635 I sound_trigger_platform: platform_stdev_check_and_update_concurrency: Received DEVICE event, event type 1
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_get_capture_device: Device = 0x80000004
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_get_capture_device: Available device = 0x80000004
12-03 15:08:12.800   950  8635 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: dedicated path 0, reset backend 1, tx 1, rx 0, concurrency session not allowed
12-03 15:08:12.800   950  8635 D audio_route: Apply path: handset-stereo-dmic-ef
12-03 15:08:12.805   950  8635 D soundtrigger: audio HAL using same device 251 as ST
12-03 15:08:12.805   950  8635 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_info->id 23 of type 1 for Event 3, with Raise=0
12-03 15:08:12.805   950  8635 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->in_snd_device handset-stereo-dmic-ef
12-03 15:08:12.805   950  8635 D msm8974_platform: platform_split_snd_device: snd_device(251) num devices(0) new_snd_devices(0)
12-03 15:08:12.805   950  8635 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
12-03 15:08:12.805   950  8635 I audio_hw_utils: send_app_type_cfg_for_device CAPTURE app_type 69938, acdb_dev_id 34, sample_rate 16000, snd_device_be_idx 194
12-03 15:08:12.805   950  8635 D msm8974_platform: platform_split_snd_device: snd_device(251) num devices(1) new_snd_devices(0)
12-03 15:08:12.805   950  8635 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 34, path = 1, app id = 0x11132, sample rate = 16000, afe_sample_rate = 48000
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_asm_topology
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_adm_topology
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_audtable
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_INSTANCE_COMMON_TABLE_SIZE
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_INSTANCE_COMMON_TABLE
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL cal_type[11] acdb_id[34] app_type[69938]
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_PERSISTENT_AUDPROC_INSTANCE_COMMON_TABLE_SIZE
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: ACDBFILE_MGR: Property for the pid 000133B7 not found
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager] -> Failed to fetch the property info for pid 000133B7
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: [Data Manager]-> No data found
12-03 15:08:12.805   950  8635 D ACDB-LOADER: Error: ACDB_CMD_GET_PERSISTENT_AUDPROC_INSTANCE_COMMON_TABLE_SIZE returned -18
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_audproc_persist_table -18
12-03 15:08:12.805   950  8635 D ACDB-LOADER: Error: Invalid Audproc persist size = -18
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_INSTANCE_STREAM_TABLE_SIZE
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_audstrmtable
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_INSTANCE_STREAM_TABLE
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 20
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_afe_topology
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 34, Topology Id 112fb
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_afe_cal
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_INSTANCE_COMMON_TABLE_SIZE
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: Failed to fetch the lookup information of the device 00000022
12-03 15:08:12.805   950  8635 D ACDB-LOADER: Error: ACDB_CMD_GET_AFE_INSTANCE_COMMON_TABLE_SIZE Returned = -19
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_INSTANCE_COMMON_TABLE
12-03 15:08:12.805   950  8635 D android.hardware.audio.service: Failed to fetch the lookup information of the device 00000022
12-03 15:08:12.805   950  8635 D ACDB-LOADER: Error: ACDB AFE returned = -19
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL cal_type[17] acdb_id[34]
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 34 path = 1
12-03 15:08:12.805   950  8635 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
12-03 15:08:12.805   950  8635 D audio_hw_primary: enable_audio_route: apply mixer and update path: audio-record
12-03 15:08:12.806   950  8635 D audio_route: Apply path: audio-record
12-03 15:08:12.809  1103  1221 D MI-SF   : getHBMOverlayAlpha backlight=337, mFodSystemBacklight=192, mBrightnessBackup=337
12-03 15:08:12.809  1103  1221 D MI-SF   : brightness=337 alpha=0.738281
12-03 15:08:12.809  1052  8638 D DisplayFeatureHal: timerCallback enter caseId 11, generation 2437, mGeneration 2437, mForce generation -1
12-03 15:08:12.810  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.810  1103  8639 W surfaceflinger: DisplayExtnImpl::operator(): SF TID:1103 not sent! ret = -1
12-03 15:08:12.810  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.810  1103  8640 W surfaceflinger: DisplayExtnImpl::operator(): RE TID:1184 not sent! ret = -1
12-03 15:08:12.813  1881  2557 W SchedBoost: handleSchedThreads end: threads: 2961, 2000ms, procName: com.miui.home, mode: 2 aff:[0, 1, 2, 3, 4, 5, 6, 7]
12-03 15:08:12.813  1881  6355 W MiuiFreeFormGesturePointerEventListener: setMiuiFreeFormTouchExcludeRegion mTouchExcludeRegion = SkRegion((0,0,1080,90)(0,2296,1080,2340))
12-03 15:08:12.814  1881  2557 W SchedBoost: handleSchedThreads end: threads: 3079, 2000ms, procName: com.miui.home, mode: 2 aff:[0, 1, 2, 3, 4, 5, 6, 7]
12-03 15:08:12.811  6504  6504 W d.soundrecorder: type=1400 audit(0.0:7990): avc: denied { read } for name="u:object_r:qemu_hw_prop:s0" dev="tmpfs" ino=20344 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:qemu_hw_prop:s0 tclass=file permissive=0 app=com.android.soundrecorder
12-03 15:08:12.817  6504  6504 I MiuixUtils: getNavigationBarHeight = 44
12-03 15:08:12.819   953  3442 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_SLEEP_IND: 0xFE
12-03 15:08:12.822  6504  6504 D DecorView[]: updateDecorCaptionStatus displayWindowDecor is false
12-03 15:08:12.822  1653  1825 D libsensor-B2SNotifier: Backlight2SlpiNotifier brightness = 168
12-03 15:08:12.825   985  2548 I sensors-hal: ssc_conn_event_cb:489, event[0] sensor:pedometer  Wakeup msg_id=129, ts=38990814035
12-03 15:08:12.826  1881  2527 D WindowManager: Input focus has changed to Window{fe2b16c u0 com.android.soundrecorder/com.android.soundrecorder.SoundRecorder} display=0
12-03 15:08:12.827   985  2548 I sensors-hal: ssc_conn_event_cb:489, event[0] sensor:pedometer  Wakeup msg_id=129, ts=38990843236
12-03 15:08:12.828   985  2548 I sensors-hal: ssc_conn_event_cb:489, event[0] sensor:pedometer  Wakeup msg_id=129, ts=38990870418
12-03 15:08:12.828  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.829  1103  8642 W surfaceflinger: DisplayExtnImpl::operator(): SF TID:1103 not sent! ret = -1
12-03 15:08:12.829  1011  1011 E vendor.qti.hardware.perf@2.2-service: Unknown params
12-03 15:08:12.829  1103  8643 W surfaceflinger: DisplayExtnImpl::operator(): RE TID:1184 not sent! ret = -1
12-03 15:08:12.834  1881  6355 W MiuiFreeFormGesturePointerEventListener: setMiuiFreeFormTouchExcludeRegion mTouchExcludeRegion = SkRegion((0,0,1080,90)(0,2296,1080,2340))
12-03 15:08:12.839  6504  6504 W libc    : Access denied finding property "qemu.hw.mainkeys"
12-03 15:08:12.835  6504  6504 W d.soundrecorder: type=1400 audit(0.0:7991): avc: denied { read } for name="u:object_r:qemu_hw_prop:s0" dev="tmpfs" ino=20344 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:qemu_hw_prop:s0 tclass=file permissive=0 app=com.android.soundrecorder
12-03 15:08:12.839  6504  6504 I MiuixUtils: getNavigationBarHeightFromProp = 44
12-03 15:08:12.839  6504  6504 I MiuixUtils: getNavigationBarHeight = 44
You might be up to something. I'll take a deeper look.
 
Done. Officially, for Android 11+, sound recorder saves to /storage/emulated/0/Android/data/com.android.soundrecorder/files.
The old location (/storage/emulated/0/MIUI/sound_recorder/) is something we patched so that people have access to their old recordings.
That is no longer supported by Android 12, so we reverted our patch and it'll be saved to the new location, as designed by Xiaomi.
 
Status
Not open for further replies.