Is it reliable to test an Android application on a rooted phone with cyanogenmod

梦想的初衷 提交于 2019-12-13 04:32:20

问题


I am learning how to program in Android and I am using Android Developer Tools to deploy and test on a Samsung GT-5830L

If I decide to root this device and install cyanogenmod will I be able to deploy and test ?, or is it posible that certain parts of the Android Api get broken in this process


回答1:


whether you are rooted or not, certain api calls to hardware features will act differently from stock android versus any skinned android OS.

Cameras functions will be unreliable, reading files from SD cards and other I/O functions like sqlite databases can function unreliably, fragment activities can behave ways different than documented, positioning services may not work as expected, image manipulation won't address different heap sizes, direct interfacing with certain wireless radios will also give different results

Using a rooted phone with a modified OS will just further remove you from reality (than if you use stock android, as a starting point), as you make code that works and doesn't crash on your device, but as soon as you release it into the wild, even stock android users experience crashes you couldn't have foreseen.




回答2:


Unless you use functionalities that require rooting in your application (which is quite uncommon), a rooted CyanogenMod device is perfectly fit for testing. I even think a lot of users are in this situation, as I was myself.

If it were not fit for testing (e.g. if it were a really different environment), you could expect all the apps you use to have a weird behavior ; which is definitely not the case.

If I recall right, Google was even selling "developer phones" that were already rooted a while back ; I might be mistaken on this one though.

Edit : google "dev phones" were sim-unlocked and bootloader-unlocked phones according to http://en.wikipedia.org/wiki/Android_Dev_Phone, probably not sold already rooted (but easily rootable).




回答3:


Yes it is fine! I myself have been developing on a rooted android phone running cyanogenmod and have had absolutely no problems so far.

My app uses everything from camera functions, reading SD card files, hibernate, fragment activities, location services, various libraries.



来源:https://stackoverflow.com/questions/18922971/is-it-reliable-to-test-an-android-application-on-a-rooted-phone-with-cyanogenmod

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!