简体   繁体   English

单应用定制Android ROM

[英]Single application custom Android ROM

I find this question a couple places on the web, but never with a good answer.我在网络上的几个地方发现了这个问题,但从来没有一个好的答案。 Let me be specific in the questions asked.让我在提出的问题中具体说明。

I want to build a custom Android ROM which only features one app.我想构建一个仅包含一个应用程序的自定义 Android ROM。 This app is not to interact with any hardware (per now).此应用程序不与任何硬件交互(目前)。 This app will be launched on the start up of the device.此应用程序将在设备启动时启动。 No locked-screen.没有锁屏。 The device will have to restart if the app malfunctions.如果应用程序出现故障,设备将不得不重新启动。

A resource told me that you can change the launcher app of the ROM.一个资源告诉我,您可以更改 ROM 的启动器应用程序

-> Does this mean that the home screen, the one which displays all apps on our phones, is merely another app? -> 这是否意味着显示我们手机上所有应用程序的主屏幕仅仅是另一个应用程序? If so, can you simply change the launcher app as it is stated here?如果是这样,您可以简单地更改此处所述的启动器应用程序吗? What were to happen if this app fails?如果这个应用程序失败会发生什么?

If this is the case, it would solve the entire issue.如果是这样,就可以解决整个问题。

If not, how do you go about making this sort of project?如果没有,您将如何进行此类项目? It includes这包括

  • Making an app on AOSP在 AOSP 上制作应用
  • Refuse users to leave the app or interact with anything else拒绝用户离开应用程序或与其他任何东西互动
  • Making this app part of the boot-up process使这个应用程序成为启动过程的一部分
  • Remove locked screen移除锁定的屏幕
  • Make the app a dependency of the OS (to force shutdown if malfunction)使应用程序成为操作系统的依赖项(如果出现故障则强制关闭)

Thanks in advance for any replies预先感谢您的任何答复

I just found Android have a topic about dedicated devices (formerly called corporate-owned single-use, or COSU) are a subset of company-owned devices that serve a specific purpose.我刚刚发现 Android 有一个关于专用设备的主题(以前称为企业拥有的一次性设备,或 COSU)是公司拥有的用于特定目的的设备的子集。 maybe that can meet your requirement.也许这可以满足您的要求。

BTW, After into the sub-topic lock task mode that mentions about set DPC whitelist APPs and the device policy controller (DPC) needs setup by other steps.... FYR~ BTW,进入子主题锁定任务模式后,提到设置DPC白名单APP和设备策略控制器(DPC)需要通过其他步骤设置...... FYR~

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM