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

Can termux be started in the foreground? #257

Open
raduprv opened this issue Jan 25, 2025 · 1 comment
Open

Can termux be started in the foreground? #257

raduprv opened this issue Jan 25, 2025 · 1 comment

Comments

@raduprv
Copy link

raduprv commented Jan 25, 2025

Feature description

Is it possible to make termux start in the foreground? The reason why I am asking is that camera and a few other sensitive things do not work from background processes started with the BOOT_COMPLETED broadcast, See this: https://stackoverflow.com/questions/70412543/start-camera-from-foreground-service-if-start-activities-from-background-granted/

I found a way which I posted there, but it only works with root access.

@raduprv
Copy link
Author

raduprv commented Jan 26, 2025

Actually, I found that you don't even need root.
"am start com.termux/.app.TermuxActivity" in the startup script would do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant