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

[SDK-29] termux-telephony-cellinfo does not show anything #363

Closed
ghost opened this issue Aug 9, 2020 · 0 comments
Closed

[SDK-29] termux-telephony-cellinfo does not show anything #363

ghost opened this issue Aug 9, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 9, 2020

Problem description

Looks like access to cell info is completely restricted or requires some special permissions on Android 10+.

Screenshot_20200809-182653_Termux

Steps to reproduce

  1. Build Termux app with target and compile SDK levels of 29.
  2. Build Termux:API of target and compile SDK levels of 29.
  3. Perform clear installation of both apps on device. If not using Lineage OS, setenforce 0 is needed to fix execve().
  4. Install termux-api and run termux-telephony-cellinfo with phone info permission.

Expected behavior
Exceptions should be caught, if API cannot be used on Android 10+, the relevant error should be put into returned JSON value.

Additional information

  • Termux application version: latest git
  • Android OS version: 10
  • Device model: SM-G930FD

Log:

08-09 18:26:48.107 19955 20643 E termux-api: Error in ResultReturner
08-09 18:26:48.107 19955 20643 E termux-api: java.lang.SecurityException: Not allowed to access cell info
08-09 18:26:48.107 19955 20643 E termux-api: 	at android.os.Parcel.createException(Parcel.java:2071)
08-09 18:26:48.107 19955 20643 E termux-api: 	at android.os.Parcel.readException(Parcel.java:2039)
08-09 18:26:48.107 19955 20643 E termux-api: 	at android.os.Parcel.readException(Parcel.java:1987)
08-09 18:26:48.107 19955 20643 E termux-api: 	at com.android.internal.telephony.ITelephony$Stub$Proxy.getAllCellInfo(ITelephony.java:8385)
08-09 18:26:48.107 19955 20643 E termux-api: 	at android.telephony.TelephonyManager.getAllCellInfo(TelephonyManager.java:5293)
08-09 18:26:48.107 19955 20643 E termux-api: 	at com.termux.api.TelephonyAPI$1.writeJson(TelephonyAPI.java:37)
08-09 18:26:48.107 19955 20643 E termux-api: 	at com.termux.api.util.ResultReturner$ResultJsonWriter.writeResult(ResultReturner.java:88)
08-09 18:26:48.107 19955 20643 E termux-api: 	at com.termux.api.util.ResultReturner.lambda$returnData$0(ResultReturner.java:133)
08-09 18:26:48.107 19955 20643 E termux-api: 	at com.termux.api.util.-$$Lambda$ResultReturner$oCU8JqHW5HLMrNZa40ThjAWcwzo.run(Unknown Source:8)
08-09 18:26:48.107 19955 20643 E termux-api: 	at java.lang.Thread.run(Thread.java:919)
@ghost ghost added the bug report label Aug 9, 2020
@ghost ghost closed this as completed in 67954de Sep 30, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants