简体   繁体   English

如果我不发布到Google Play商店,是否可以编写一个应用程序来重新启动没有root权限的android

[英]Can I write an app to reboot my android without root if I don't publish to Google Play Store

Title is pretty self explanatory, but for a little more background; 标题是不言自明的,但是要有更多背景知识。

I have an android device sending me data from a remote location that I will not have access to. 我有一个Android设备,无法从我的远程位置向我发送数据。 It appears that the device works most reliably if I reboot it everyday, so I'd like to have a scheduled job that does this task at 4AM everyday. 如果我每天重新启动设备,则该设备似乎最可靠地工作,因此,我希望有一个计划的工作,每天4AM执行此任务。

I have no issues writing an app for this, but as I'm not as familiar with Android, I want to get all the facts I can before diving into the endeavor. 我没有为此编写应用程序的问题,但是由于我对Android不那么熟悉,因此我想在尝试之前先获得所有事实。 I would not be publishing the app to the Google Play store. 我不会将应用发布到Google Play商店。

  • I realize this would be super easy if I had root access but I cannot root the device. 我意识到,如果我具有root用户访问权限,但无法对设备进行root访问,这将非常容易。
  • I see that I can use PowerManager to perform the reboot but it requires REBOOT permission 我看到可以使用PowerManager执行重新启动,但是需要REBOOT权限
  • I see here that the reboot permission is "Not for use by third-party applications", does that mean I cannot use it, or does it just signify grounds for my app to be booted from the app store? 在这里看到重新启动权限是“不适用于第三方应用程序”,这是否意味着我不能使用它,或者它只是表明从应用程序商店启动我的应用程序的理由?

EDIT: It would be sufficient to turn on/off airplane mode but that also requires root. 编辑:打开/关闭飞行模式就足够了,但这也需要root。

As you say, you can't reboot / turn airplane mode without root. 就像您说的那样,如果没有root用户,您将无法重启/转为飞行模式。

You can't use the REBOOT permission, AFAIK. 您不能使用REBOOT权限AFAIK。 Google Play doesn't matter here. Google Play在这里无关紧要。

Why you can't root the device? 为什么无法启动设备? What device is? 什么设备?

暂无
暂无

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

相关问题 为什么我不能在 Google Play 上发布我的应用程序 - Why Can't I Publish My App On Google Play 我可以在Google Play商店中将企业应用发布为免费应用吗? - Can I publish enterprise app as free app in Google Play store? 我可以在不首先在 Google Play 商店中公开发布应用程序的情况下将应用程序发布到 EMM 吗 - Can I publish an app to EMM without it first being available publicly on Google Play store 我通过名称搜索在 Google Play 商店中找不到我的 android 应用程序 - I can't find my android app in google play store by name searching 我可以直接将我的应用程序(包含Admob的广告)分享给没有在Play商店发布的人吗? - Can I direct sharing my app (which contains advertisements for Admob) to people without publish in play store? 为什么我无法通过 https://play.google.com/apps/publish/ 登录 Google Play 来发布 Android 应用程序? - Why can't I log into Google Play at https://play.google.com/apps/publish/ to publish an Android app? 如何在Google Play上重新发布Android应用? - How can I re-publish an android app on Google play? 我的应用程序不在 Google Play 商店中,我可以让它自动更新吗? - My app is not on the Google Play store,can I get it to auto update? 应用程序在我的设备上运行,但当我将其发布到 Google Play 商店进行 Beta 测试时不起作用 - App working on my device but when I publish it to Google Play Store for Beta Testing not working 我可以将我的应用的第二个版本放到Google Play商店中吗 - Can I put a second version of my app on Google Play Store
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM