简体   繁体   English

开发Android应用程序是否需要Root设备?

[英]Does Developing Android Applications require a Rooted Device?

I am looking generally in to Android development. 我一般都在寻找Android开发。

I keep seeing information on root however I am unclear how this relates to general android app development. 我一直看到有关root的信息,但我不清楚这与一般的Android应用程序开发有什么关系。

I understand that there is an emulator however when I get to actually test the software on a phone does that phone have to be a rooted device or is this only required if you wish to edit the core features of the os? 我知道有一个模拟器,但是当我在手机上实际测试软件时,手机必须是一个有根的设备,还是只有你想编辑操作系统的核心功能才需要这个?

Finally are there are any development disadvantages to rooting the device such as that is no longer behaves like other android phones I may deploy too? 最后是否有任何开发缺点,以支持设备,如不再像我可能部署的其他Android手机一样?

Thank you 谢谢

You don't need root to develop for Android. 您不需要root来为Android开发。

The easiest setup is to run Eclipse with the Android Development Tools installed. 最简单的设置是在安装了Android开发工具的情况下运行Eclipse。 Then, you can debug your application in the emulator, or register your phone with the SDK and debug directly on your phone. 然后,您可以在模拟器中调试应用程序,或者使用SDK注册手机并直接在手机上进行调试。 The only thing you need to do on your phone is check the development mode under Settings -> Applications 您需要在手机上执行的唯一操作是检查设置 - >应用程序下的开发模式

I can understand the allure of having a rooted device, but I can't really see a reason for changing the bootloader or os binaries. 我可以理解拥有root设备的诱惑力,但我无法真正看到更改bootloader或os二进制文件的原因。 You can, however, change most of the default applications (including the Home application) with other applications available on the Market. 但是,您可以使用市场上提供的其他应用程序更改大多数默认应用程序(包括Home应用程序)。 For instance, OpenHome is about $5 and allows you to replace the home app, add themes, and replace many of the core apps (eg clock). 例如,OpenHome约为5美元,允许您替换家庭应用程序,添加主题,并替换许多核心应用程序(例如时钟)。

Rooting is only required, if you want to play around with advanced features or update your firmware, etc. 只有在想要使用高级功能或更新固件等时才需要生根。

If you develop your software using the Android SDK you will be able to use it on your phone regularly (as long as you have the corresponding version). 如果您使用Android SDK开发软件,您将能够定期在手机上使用它(只要您有相应的版本)。 No rooting needed. 不需要生根。

I have never heard of any problems according to your concerns. 根据您的担忧,我从未听说过任何问题。 But I cannot deny that there are none. 但我不能否认没有。 Though I personally don't expect that there are any problems with rooted phones. 虽然我个人不希望根电话有任何问题。

On the Nexus S running Android 2.3, the /data folder is not visible in the DDMS File Explorer or the ADB shell, but it is visible in the emulator. 在运行Android 2.3的Nexus S上,/ data文件夹在DDMS文件资源管理器或ADB shell中不可见,但在模拟器中可见。 This occurred with debug turned on in both the manifest and on the phone. 在清单和电话上打开调试时都会发生这种情况。 I confirmed that debug mode was properly enabled by successfully stepping through the app using breakpoints and also by receiving messages from logcat. 我确认通过使用断点成功单步执行应用程序以及从logcat接收消息来正确启用调试模式。

Not being able to see the /data folder means that you will not be able to get your application's private data. 无法看到/ data文件夹意味着您将无法获取应用程序的私有数据。

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

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