是否有可能创建一个Android应用程序,使在排序的kiosk模式运行的手机?有可能、创建一个、应用程序、模式

2023-09-06 22:07:22 作者:很多人变卖了梦想,换成了柴米油盐。小编今日为喜欢lol的小伙

我不知道是否有可能开发一个Android应用程序,将在形式的kiosk模式下运行。这个想法是,用户应该只能够通过这个程序与电话交互。

I'm wondering if it's possible to develop an android app that will be run in sort of a kiosk mode. The idea is that the user should only be able to interact with the phone through this app.

据我所知,一个应用程序可以自动重新启动后,之类的东西,避免来电,可以通过将订阅电话事件,并收到来电时会挂断电话服务实现。这种方法的缺点是通常的答案呼叫屏幕会弹出一个短周期。这背后的原因是,普通的Andr​​oid应用程序,接收来电仍然会在那里。

I understand that an app can be auto-restarted, and things like avoiding incoming calls, could be implemented via a service that would subscribe to the telephony events and would hang up when an incoming call is received. The downside of this is that the usual "answer call screen" would pop up for a short period. The reason behind this is that the stock android app that receives the incoming calls will still be there.

我也明白,在设计上,该自定义应用程序可以在任何时间,如果内存使用率太低杀害的操作系统。虽然这应该只发生,如果有任何正在运行的应用程序的内存泄漏。

I also understand that, by design, this custom app could be killed at any time by the OS if memory usage gets too low. Although this should only happen if there's a memory leak in any of the running apps.

我不知道或者是否有可能禁用物理按键的行为,以访问家中或设置屏幕。

I'm not sure either if it would be possible to disable the behavior of the physical buttons to access home or settings screens.

据我所知,生根设备和/或创建一个自定义ROM进行了修改将是一个比较安全的做法,但也更复杂。我想知道如果一个足够好的展台模式可以用一个Android应用程序来实现。

I understand that rooting the device and/or creating a custom ROM with modifications would be a safer approach, but also more complex. I'm wondering if a good-enough kiosk mode could be implemented with an android app.

PS:对不起,我重新张贴这些问题,但回答类似的问题不够清晰。

P.S: I'm sorry for reposting these questions, but answers to similar questions are not clear enough.

推荐答案

请你的应用程序是一个主屏幕。除非你自己的自定义固件,你的应用程序是系统默认的主屏幕,仍然可以绕过。我们不能告诉你是否是一个单独的主屏幕是够用就好亭模式。

Make your application be a home screen. That can still be bypassed unless you make your own custom firmware where your application is the system default home screen. We cannot tell you whether being a home screen alone is "a good-enough kiosk mode".