简体   繁体   English

我可以在普通的无根手机上测试安卓系统应用程序吗?

[英]Can I test android system apps on a normal un-rooted phone?

I am developing app which will come pre-installed with certain devices, however im testing the app on my own device and will need to demo it on my own device.我正在开发将预装在某些设备上的应用程序,但是我正在我自己的设备上测试该应用程序,并且需要在我自己的设备上进行演示。 At the moment its fine as im testing it as a user app, but now i need to use permissions which only the system apps get to use.目前它很好,因为我将它作为用户应用程序进行测试,但现在我需要使用只有系统应用程序才能使用的权限。 Is their a way in the project settings to say its a system app so I can test and demo it?他们是否可以在项目设置中说它是一个系统应用程序,以便我可以测试和演示它?

short answer - i would root your phone.简短的回答 - 我会根你的手机。 However, unlocking the bootloader is possible without root.但是,无需 root 即可解锁引导加载程序。 So, IMO, you could install CWM as your recovery, then boot to CWM, then use the CWM option to MOUNT system, then use adb to copy your .apk to /cache, then use linux util 'cat' to get the apk from /cache to /system/app, then unmount /system using CWM, then reboot.所以,IMO,你可以安装 CWM 作为你的恢复,然后启动到 CWM,然后使用 CWM 选项到 MOUNT 系统,然后使用 adb 将你的 .apk 复制到 /cache,然后使用 linux util 'cat' 从/cache 到 /system/app,然后使用 CWM 卸载 /system,然后重新启动。

long answer - if you are developing system apps, learn the security environment of android.长答案 - 如果您正在开发系统应用程序,请了解android的安全环境。 Learn the issues around permissions in the /system folder, and learn the recovery type tools that allow a developer to have access to the /system folder where adb activities like install , uninstall are restricted.了解有关 /system 文件夹中权限的问题,并了解恢复类型工具,这些工具允许开发人员访问 /system 文件夹,其中安装、卸载等 adb 活动受到限制。

This is an older discussion 'froyo' on how-to install system app, illustrating some of the permissions issues in the /system folder. 是关于如何安装系统应用程序的旧讨论“froyo”,说明了 /system 文件夹中的一些权限问题。 I would not simply follow these instructions without reading up on how its done in honeycomb and in ICS.我不会简单地遵循这些说明而不阅读它在蜂窝和 ICS 中是如何完成的。

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

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