You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like access to cell info is completely restricted or requires some special permissions on Android 10+.
Steps to reproduce
Build Termux app with target and compile SDK levels of 29.
Build Termux:API of target and compile SDK levels of 29.
Perform clear installation of both apps on device. If not using Lineage OS, setenforce 0 is needed to fix execve().
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)
The text was updated successfully, but these errors were encountered:
Problem description
Looks like access to cell info is completely restricted or requires some special permissions on Android 10+.
Steps to reproduce
29
.29
.setenforce 0
is needed to fixexecve()
.termux-api
and runtermux-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
Log:
The text was updated successfully, but these errors were encountered: