Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working after crDroid 9.0 2022-december update #202

Closed
sanjayahashan opened this issue Dec 26, 2022 · 10 comments
Closed

Not working after crDroid 9.0 2022-december update #202

sanjayahashan opened this issue Dec 26, 2022 · 10 comments
Assignees
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project

Comments

@sanjayahashan
Copy link

I used BCR in crDroid 9.0 (android 13) without an issue. But after december update BCR stopped working. Notification Also not present. I tried to get the log by enabling release+debugmode but logs are also not saving. All the permissions are allowed.
App runs normally. Only the recording is not working.
Device - Redmi Note 8 Pro

@chenxiaolong chenxiaolong self-assigned this Dec 26, 2022
@chenxiaolong
Copy link
Owner

Can you check if the recordings and logs are being saved to Android/data/com.chiller3.bcr/files in the internal storage? BCR saves the files there if, for some reason, it cannot write to the output directory.

@sanjayahashan
Copy link
Author

Checked. Folder is empty.

@chenxiaolong
Copy link
Owner

If that's the case, can you grab a logcat after immediately making a call? With adb, you can do that by running adb logcat -d > logcat.log. You can also use a logcat app if that's easier.

@sanjayahashan
Copy link
Author

logcat.log

@chenxiaolong
Copy link
Owner

Thanks for the log. I believe this is related to a BCR crash that was fixed in #203 (version 1.27)

12-27 12:00:32.936 10657 11033 E AndroidRuntime: Process: com.chiller3.bcr, PID: 10657
12-27 12:00:32.936 10657 11033 E AndroidRuntime: kotlin.UninitializedPropertyAccessException: lateinit property filename has not been initialized
12-27 12:00:32.936 10657 11033 E AndroidRuntime: 	at com.chiller3.bcr.RecorderThread.run(RecorderThread.kt:597)

Could you try again with the latest version of BCR?

@chenxiaolong chenxiaolong added the bug Bug in BCR itself label Dec 28, 2022
@sanjayahashan
Copy link
Author

sanjayahashan commented Dec 28, 2022

Thanks for the log. I believe this is related to a BCR crash that was fixed in #203 (version 1.27)

12-27 12:00:32.936 10657 11033 E AndroidRuntime: Process: com.chiller3.bcr, PID: 10657
12-27 12:00:32.936 10657 11033 E AndroidRuntime: kotlin.UninitializedPropertyAccessException: lateinit property filename has not been initialized
12-27 12:00:32.936 10657 11033 E AndroidRuntime: 	at com.chiller3.bcr.RecorderThread.run(RecorderThread.kt:597)

Could you try again with the latest version of BCR?

Tried updating. But still don't work. Attached the new ADB log here.
logcat.log

@chenxiaolong
Copy link
Owner

Thanks for the new logs. This might be a bug in the ROM. Android never reports that the call is ACTIVE, so BCR didn't begin recording. Android is reporting that the call went straight from DIALING to DISCONNECTING.

12-28 09:21:33.695  9613  9613 D RecorderInCallService: handleStateChange: Call [id: TC@2, state: DIALING, details: [id: TC@2, state: DIALING, pa: ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, 1, UserHandle{0}, hdl: tel:****, hdlPres: 1, videoState: Audio Only, caps: [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE], props: [Properties:]]], null, 1

...

12-28 09:21:44.960  9613  9613 D RecorderInCallService: onStateChanged: Call [id: TC@2, state: DISCONNECTING, details: [id: TC@2, state: DISCONNECTING, pa: ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, 1, UserHandle{0}, hdl: tel:****, hdlPres: 1, videoState: Audio Only, caps: [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE], props: [Properties:]]], 10

@chenxiaolong chenxiaolong added bug/limitation elsewhere Bug/limitation in the ROM or another project and removed bug Bug in BCR itself labels Dec 28, 2022
@sanjayahashan
Copy link
Author

Thanks for the clarification @chenxiaolong. I tried using Call Recorder - SKVALEX since BCR failed. It's working fine though.
🥲

@chenxiaolong
Copy link
Owner

I believe that app (and probably most others) use a completely different mechanism for detecting calls (the ACTION_PHONE_STATE_CHANGED method).

BCR uses the same method that things like Android Auto and smartwatches detect calls (InCallService). If InCallService is buggy in the ROM, BCR won't work. Unfortunately, it's not feasible to add other detection methods to BCR.

@sanjayahashan
Copy link
Author

This isssue is resolved somehow. I have no idea how. Recorder is working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project
Projects
None yet
Development

No branches or pull requests

2 participants