chenxiaolong / BCR

A Basic Call Recorder for rooted Android devices
GNU General Public License v3.0
1.49k stars 98 forks source link

I don't want see the log.txt file. #559

Open ngothang2805 opened 1 week ago

ngothang2805 commented 1 week ago

Please help me prevent the .txt log file from appearing even though I am not using debug mode ...thank you very much . My device xiaomi android 12 . Miui 14.0.2 .

chenxiaolong commented 1 week ago

Please upload one of the log files. When debug mode is turned off, the log file is only created if an error occurs, so there might be something going wrong with the recording process.

ngothang2805 commented 1 week ago

Please upload one of the log files. When debug mode is turned off, the log file is only created if an error occurs, so there might be something going wrong with the recording process.

this is my log.txt mylog.txt The recording function works fine but I just don't want it to create a log.txt file

chenxiaolong commented 1 week ago

Thanks for the logs! It's saving the log because an error occurred: Android is blocking access to the call log even though the permission is granted.

06-20 19:44:56.692  7617 12028 E RecorderThread/210: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.CallLogProvider uri content://call_log/calls?limit=1 from pid=7617, uid=10216 requires android.permission.READ_CALL_LOG, or grantUriPermission()

I think this might be a MIUI bug. You might be able to work around it by going to Android's settings for BCR and denying the call log permission.

ngothang2805 commented 6 days ago

Thanks for the logs! It's saving the log because an error occurred: Android is blocking access to the call log even though the permission is granted.

06-20 19:44:56.692  7617 12028 E RecorderThread/210: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.CallLogProvider uri content://call_log/calls?limit=1 from pid=7617, uid=10216 requires android.permission.READ_CALL_LOG, or grantUriPermission()

I think this might be a MIUI bug. You might be able to work around it by going to Android's settings for BCR and denying the call log permission.

This issue has not been resolved . it is only resolved when I stop granting access to read contacts but there is another problem that the contact name is not displayed

chenxiaolong commented 6 days ago

It still happens even if you deny only the call logs permission?

If so, I have no idea how to fix this for MIUI.

ngothang2805 commented 3 days ago

Nó vẫn xảy ra ngay cả khi bạn chỉ từ chối quyền ghi nhật ký cuộc gọi?

Nếu vậy, tôi không biết làm cách nào để khắc phục điều này cho MIUI. Yes, that's right, as I said above