Comments (6)
Termux-telephony-call opens your default phone-call app and makes a call so termux should open another app if it works.
Which android version are you on?
from termux-api-package.
Im in version 5.1, kernel version 3.10...
im searching my phone info, in sim state says "phone number: unknown", ¿maybe that is the problem? i can make calls with it without problems, in service state says "in service"
from termux-api-package.
im searching my phone info, in sim state says "phone number: unknown"
This is bug of some SIM cards. On my device even system information shows that number unknown, however on different SIM card it is shown correctly.
from termux-api-package.
I am having the same issue, after executing the command i am getting nothing.
Device Info :
OS: Android 13 aarch64
Host: google Pixel 4 XL
Kernel: 4.14.276
Please give any leads to solve this issue
from termux-api-package.
I am also having issues starting a call using termux-telephony-call via sshd but only prior to opening the Termux activity. My setup is such that on boot, termux-boot will start sshd. I am then able to login via ssh after around a minute of settling. But, after I login via ssh if I try termux-telephony-call XXXXXXX it just returns a 0 and the phone call is not initiated. If I then start the Termux activity and after that try the same termux-telephony-call XXXXXXXX via ssh now it will work both via ssh and directly in the Termux activity. These are the access denied messages that occur after termux-telephony-call via ssh prior to opening the Termux activity:
06-14 12:51:12.867 14892 14892 W bash : type=1400 audit(0.0:5204): avc: granted { execute } for name="termux-telephony-call" dev="dm-14" ino=237638 scontext=u:r:untrusted_app_27:s0:c177,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c177,c257,c512,c768 tclass=file app=com.termux.api 06-14 12:51:12.871 14892 14892 W bash : type=1400 audit(0.0:5205): avc: granted { execute } for name="termux-telephony-call" dev="dm-14" ino=237638 scontext=u:r:untrusted_app_27:s0:c177,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c177,c257,c512,c768 tclass=file app=com.termux.api 06-14 12:51:12.871 14892 14892 W bash : type=1400 audit(0.0:5206): avc: granted { execute_no_trans } for path="/data/data/com.termux/files/usr/bin/termux-telephony-call" dev="dm-14" ino=237638 scontext=u:r:untrusted_app_27:s0:c177,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c177,c257,c512,c768 tclass=file app=com.termux.api 06-14 12:51:12.871 14892 14892 W bash : type=1400 audit(0.0:5207): avc: granted { execute } for name="dash" dev="dm-14" ino=211224 scontext=u:r:untrusted_app_27:s0:c177,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c177,c257,c512,c768 tclass=file app=com.termux.api 06-14 12:51:12.871 14892 14892 W termux-telephon: type=1400 audit(0.0:5208): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/dash" dev="dm-14" ino=211224 scontext=u:r:untrusted_app_27:s0:c177,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c177,c257,c512,c768 tclass=file app=com.termux.api 06-14 12:51:13.034 14894 14894 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10433 <<<<<< 06-14 12:51:13.038 14894 14894 E libc : Access denied finding property "persist.device_config.runtime_native_boot.profilebootclasspath" 06-14 12:51:13.038 14894 14894 E libc : Access denied finding property "persist.device_config.runtime_native_boot.enable_apex_image" 06-14 12:51:13.038 14894 14894 I AndroidRuntime: Using default boot image 06-14 12:51:13.038 14894 14894 E libc : Access denied finding property "persist.device_config.runtime_native_boot.disable_lock_profiling" 06-14 12:51:13.038 14894 14894 I AndroidRuntime: Leaving lock profiling enabled 06-14 12:51:13.038 14894 14894 E libc : Access denied finding property "persist.device_config.runtime_native_boot.enable_generational_cc" 06-14 12:51:13.136 14894 14894 D app_process: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat 06-14 12:51:13.136 14894 14894 D app_process: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt66l.dat 06-14 12:51:13.169 14894 14894 W app_process: JNI RegisterNativeMethods: attempt to register 0 native methods for android.media.AudioAttributes 06-14 12:51:13.177 14894 14894 D AndroidRuntime: Calling main entry com.termux.termuxam.Am 06-14 12:51:13.217 14894 14894 D AndroidRuntime: Shutting down VM
from termux-api-package.
ACTION_CALL -> Note: there will be restrictions on which applications can initiate a call; most applications should use the ACTION_DIAL
Android doesn't list which restrictions apply there, but I am assuming a service started from background isn't allowed to do it. Similar restrictions exist for microphone/camera. It won't be denied by SeLinux but by a framework component, there should be other log entries that you need to look for. You can also start termux activity via ssh with am start -n com.termux/.app.TermuxActivity
after granting termux Draw over apps
permissions, once started, you can start the call and hopefully it should work.
Would be good for termux to add ACTION_DIAL
support in future, which shouldn't have this restriction, technically can be done with am
command though.
https://developer.android.com/reference/android/content/Intent#ACTION_CALL
https://developer.android.com/reference/android/content/Intent#ACTION_DIAL
https://developer.android.com/reference/android/Manifest.permission#CALL_PHONE
https://developer.android.com/about/versions/11/privacy/foreground-services
from termux-api-package.
Related Issues (20)
- E: Package 'termux-api' has no installation candidate HOT 1
- Termux-telephony-call ignores # sign HOT 1
- l want to recognize spanish with Termux HOT 1
- termux-speech-to-text buffers progressive output
- `termux-api` never returns if Android app is not installed
- Feature request: toggle "Do not disturb" modes
- Termux-Screenshot HOT 1
- How to use TTS in termux without delay HOT 1
- android 11 termux API hangs HOT 1
- Create a new release for the SAF support HOT 4
- No command works!! HOT 6
- termux-api fails with a linker error HOT 6
- sms-list doesnt return images/pictures HOT 2
- termux-job-scheduler: New jobs default to job ID 0 HOT 5
- termux-microphone-record foreground argument would be nice
- Background jobs: Occasional hang HOT 2
- termux-camera-photo Directly return image data?
- Library not found in proot-distro
- termux-saf-managedir doesn't open a folder selection screen, it just hangs HOT 3
- Improving the camera app HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termux-api-package.