termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

`termux-call-log` doesn't work

Open aryadovoy opened this issue 3 years ago • 3 comments

No output. termux-sms-list is fine, Termux:API has access to Call logs, Phone, SMS.

Google Pixel 4a 5G, Android 11.

aryadovoy avatar Jul 24 '21 19:07 aryadovoy

I can reproduce the issue. Logcat shows

07-24 23:21:08.732 30341  3161 E termux-api: Error in ResultReturner
07-24 23:21:08.732 30341  3161 E termux-api: java.lang.IllegalArgumentException: Invalid token LIMIT
07-24 23:21:08.732 30341  3161 E termux-api:    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
07-24 23:21:08.732 30341  3161 E termux-api:    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
07-24 23:21:08.732 30341  3161 E termux-api:    at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
07-24 23:21:08.732 30341  3161 E termux-api:    at android.content.ContentResolver.query(ContentResolver.java:1183)
07-24 23:21:08.732 30341  3161 E termux-api:    at android.content.ContentResolver.query(ContentResolver.java:1115)
07-24 23:21:08.732 30341  3161 E termux-api:    at android.content.ContentResolver.query(ContentResolver.java:1071)
07-24 23:21:08.732 30341  3161 E termux-api:    at com.termux.api.CallLogAPI.getCallLogs(CallLogAPI.java:39)
07-24 23:21:08.732 30341  3161 E termux-api:    at com.termux.api.CallLogAPI.access$000(CallLogAPI.java:21)
07-24 23:21:08.732 30341  3161 E termux-api:    at com.termux.api.CallLogAPI$1.writeJson(CallLogAPI.java:29)
07-24 23:21:08.732 30341  3161 E termux-api:    at com.termux.api.util.ResultReturner$ResultJsonWriter.writeResult(ResultReturner.java:88)
07-24 23:21:08.732 30341  3161 E termux-api:    at com.termux.api.util.ResultReturner.lambda$returnData$0(ResultReturner.java:133)
07-24 23:21:08.732 30341  3161 E termux-api:    at com.termux.api.util.-$$Lambda$ResultReturner$oCU8JqHW5HLMrNZa40ThjAWcwzo.run(Unknown Source:8)
07-24 23:21:08.732 30341  3161 E termux-api:    at java.lang.Thread.run(Thread.java:923)

Grimler91 avatar Jul 24 '21 21:07 Grimler91

Doesn’t work on Andoid 12 (EMUI 12) either. To be precise: It always outputs an empty list, aka nothing. Logcat shows the same error here too.

navid-zamani avatar Aug 25 '22 19:08 navid-zamani

any updates on this? call logs not working for me as well. :(

Shivam623 avatar Sep 19 '22 06:09 Shivam623

It’s getting critical, as I’m using this function, to back up my call logs, since I stopped being a ”cloud“-used data prostitute some time ago. So I really need it.

It seems to be a simple matter of adapting it to the new underlying parameters. But I avoid learning the gslopping i sanity that is Android internals, so I don’t know how to fix this in practice.

Can we do anything to help?

navid-zamani avatar Sep 23 '22 19:09 navid-zamani

Either wait for F-Droid release whenever that happens or (move and) use github builds.

https://github.com/termux/termux-api/actions/runs/3115767801

agnostic-apollo avatar Sep 23 '22 21:09 agnostic-apollo

Would be nice if this was actually tagged and released so F-Droid can pick it. ;)

licaon-kter avatar Dec 15 '22 19:12 licaon-kter

Either wait for F-Droid release whenever that happens or (move and) use github builds.

https://github.com/termux/termux-api/actions/runs/3115767801

@agnostic-apollo I desperately and urgently need to use this feature or any other method to automatically play audio on my computer that does not end when the call ends, so that I can wake up when an important call comes on my phone, ASAP, but the build fails to install due to:

apk: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: Reconciliation failed...: Reconcile failed: Package com.termux.api has no signatures that match those in shared user com.termux; ignoring!]

Alternatively, is this bug fixed on earlier versions on F-Droid, or is there a way to easily migrate the files from the existing Termux installation to a self-signed one on a phone (OnePlus Nord N100) which nobody has come up with a good root or custom bootloader solution for yet?

happysmash27 avatar Apr 21 '23 03:04 happysmash27

I desperately and urgently need to use this feature

Releases are not obligated to delivered in a fixed amount of time, considering that we lack maintainers for the Termux app and add-ons.

Two options are available: switch to GitHub source or wait for F-Droid release.

Reconcile failed: Package com.termux.api has no signatures that match those in shared user com.termux; ignoring!]

Switching sources require full reinstallation of Termux and add-ons.

https://github.com/termux/termux-app#installation

sylirre avatar Apr 21 '23 07:04 sylirre

Hello together,

I just ran into the same issue I think. Is this still not solved? I have v0.118.0 and I don't seem to find a newer version even on GitHub. Is there any?

Lucas-Sichardt avatar Dec 27 '23 19:12 Lucas-Sichardt

You the latest Termux:API application version.

sylirre avatar Feb 09 '24 08:02 sylirre