在我的设备生根后,我需要运行adb root然后adb shell我才能访问我的应用程序数据库.在尝试运行时,adb root我不断得到"adbd无法在生产版本中以root身份运行".为什么是这样?唯一的另一个选择是使用Android模拟器进行测试,但我们都知道模拟器有多糟糕(不是真正可行的开发解决方案).
我有一个Android智能手机使用USB线连接到我的Mac.运行Android Studio时,LOGCAT中会显示以下内容.这些线不断重复,有时以略微不同的顺序重复.我不清楚导致这种情况的原因以及如何解决这个问题......
08-09 16:17:31.554 2208-20167/? D/NetlinkSocketObserver: NeighborEvent{elapsedMs=11269730, 192.168.1.254, [5464D91A00EE], RTM_NEWNEIGH, NUD_STALE}
08-09 16:17:32.829 27970-27970/? E/NEW_BHD: Battery Power Supply logging Daemon start!!!!!
08-09 16:17:32.830 27970-27970/? E/NEW_BHD: Cannot run on production devices!
08-09 16:17:37.856 27971-27971/? E/NEW_BHD: Battery Power Supply logging Daemon start!!!!!
08-09 16:17:37.857 27971-27971/? E/NEW_BHD: Cannot run on production devices!
08-09 16:17:42.881 27972-27972/? E/NEW_BHD: Battery Power Supply logging Daemon start!!!!!
08-09 16:17:42.882 27972-27972/? E/NEW_BHD: Cannot run on production devices!
08-09 16:17:47.901 27973-27973/? E/NEW_BHD: Battery Power Supply logging Daemon start!!!!!
08-09 16:17:47.902 …Run Code Online (Sandbox Code Playgroud)