Logcat中的信息,不知道怎么定位错误,求大手指导!,要是能说出定位错误的思路就更好了

移动开发 码拜 8年前 (2016-05-16) 1640次浏览
07-28 13:54:48.370: E/android_hardware_fm.cpp(10284): register_android_hardware_fm_fmradio
07-28 13:54:48.370: E/FM_HAL(10284): [FM_HAL], fm_dynamic_lib is libbcmfm_if
07-28 13:54:48.370: E/FM_HAL(10284): [FM_HAL], libname is libbcmfm_if
07-28 13:54:48.370: E/fm_if.c(10284): find the id:libbcmfm_if and begins to open the devices
07-28 13:54:48.370: E/android_hardware_fm.cpp(10284): register_android_hardware_fm_fmradio, ret is 0
07-28 13:54:48.370: E/(10284): ProtocolErrorLog wangkang test!!
07-28 13:54:49.015: E/android_hardware_fm.cpp(10298): register_android_hardware_fm_fmradio
07-28 13:54:49.015: E/FM_HAL(10298): [FM_HAL], fm_dynamic_lib is libbcmfm_if
07-28 13:54:49.015: E/FM_HAL(10298): [FM_HAL], libname is libbcmfm_if
07-28 13:54:49.015: E/fm_if.c(10298): find the id:libbcmfm_if and begins to open the devices
07-28 13:54:49.015: E/android_hardware_fm.cpp(10298): register_android_hardware_fm_fmradio, ret is 0
07-28 13:54:49.015: E/(10298): ProtocolErrorLog wangkang test!!
07-28 13:54:49.330: E/HwLauncher(3372): Launcher dialog dismiss failed : java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog
07-28 13:54:50.115: E/MtpServerEx(4278): SendStorageInfoChanged 00010001
07-28 13:54:50.115: E/MtpServerEx(4278): SendStorageInfoChanged 00020001
07-28 13:54:50.450: E/CommandListener(2417): readDefRoute call readDefRoute
07-28 13:54:50.450: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
07-28 13:54:50.665: E/DatabaseUtils(3372): Writing exception to parcel
07-28 13:54:50.665: E/DatabaseUtils(3372): java.lang.SecurityException: Permission Denial: reading com.huawei.android.launcher.LauncherProvider from pid=858, uid=10168 requires com.huawei.android.launcher.permission.WRITE_SETTINGS: uid 10168 does not have com.huawei.android.launcher.permission.WRITE_SETTINGS.
07-28 13:54:50.665: E/DatabaseUtils(3372):  at android.app.ContextImpl.enforce(ContextImpl.java:1775)
07-28 13:54:50.665: E/DatabaseUtils(3372):  at android.app.ContextImpl.enforcePermission(ContextImpl.java:1787)
07-28 13:54:50.665: E/DatabaseUtils(3372):  at android.content.ContextWrapper.enforcePermission(ContextWrapper.java:561)
07-28 13:54:50.665: E/DatabaseUtils(3372):  at com.huawei.android.launcher.LauncherProvider.checkPermission(LauncherProvider.java:560)
07-28 13:54:50.665: E/DatabaseUtils(3372):  at com.huawei.android.launcher.LauncherProvider.call(LauncherProvider.java:575)
07-28 13:54:50.665: E/DatabaseUtils(3372):  at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
07-28 13:54:50.665: E/DatabaseUtils(3372):  at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:284)
07-28 13:54:50.665: E/DatabaseUtils(3372):  at android.os.Binder.execTransact(Binder.java:404)
07-28 13:54:50.665: E/DatabaseUtils(3372):  at dalvik.system.NativeStart.run(Native Method)
07-28 13:54:51.455: E/CommandListener(2417): readDefRoute Rsp ok
07-28 13:54:53.785: E/Thermal-daemon(2430): [ap] temp_new :39  temp_old :38
07-28 13:54:53.785: E/Thermal-daemon(2430): Report temperature: [ap] temp :39  report_threshold:1
07-28 13:55:01.165: E/SubmitMessage(3268): Submit string: submit:trigger=0,bugtype=2,modulename=com.example.defect_manager,level=1,testtype=NORMAL,path=/data/log/unzip/H60-L02_V100R001CHNC00B317_022TAN147J004056_20160728135501_crash
07-28 13:55:01.410: E/PackageLogInfoManager(3268): checkPackageLogState, cr: android.app.ContextImpl$ApplicationContentResolver@4329cfa8, packageNames: null
07-28 13:55:06.915: E/MtpServerEx(4278): SendStorageInfoChanged 00010001
07-28 13:55:06.915: E/MtpServerEx(4278): SendStorageInfoChanged 00020001
07-28 13:55:08.830: E/DatabaseUtils(3372): Writing exception to parcel
07-28 13:55:08.830: E/DatabaseUtils(3372): java.lang.SecurityException: Permission Denial: reading com.huawei.android.launcher.LauncherProvider from pid=858, uid=10168 requires com.huawei.android.launcher.permission.WRITE_SETTINGS: uid 10168 does not have com.huawei.android.launcher.permission.WRITE_SETTINGS.
07-28 13:55:08.830: E/DatabaseUtils(3372):  at android.app.ContextImpl.enforce(ContextImpl.java:1775)
07-28 13:55:08.830: E/DatabaseUtils(3372):  at android.app.ContextImpl.enforcePermission(ContextImpl.java:1787)
07-28 13:55:08.830: E/DatabaseUtils(3372):  at android.content.ContextWrapper.enforcePermission(ContextWrapper.java:561)
07-28 13:55:08.830: E/DatabaseUtils(3372):  at com.huawei.android.launcher.LauncherProvider.checkPermission(LauncherProvider.java:560)
07-28 13:55:08.830: E/DatabaseUtils(3372):  at com.huawei.android.launcher.LauncherProvider.call(LauncherProvider.java:575)
07-28 13:55:08.830: E/DatabaseUtils(3372):  at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
07-28 13:55:08.830: E/DatabaseUtils(3372):  at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:284)
07-28 13:55:08.830: E/DatabaseUtils(3372):  at android.os.Binder.execTransact(Binder.java:404)
07-28 13:55:08.830: E/DatabaseUtils(3372):  at dalvik.system.NativeStart.run(Native Method)
07-28 13:55:21.455: E/CommandListener(2417): readDefRoute call readDefRoute
07-28 13:55:21.460: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
07-28 13:55:22.465: E/CommandListener(2417): readDefRoute Rsp ok
07-28 13:55:23.810: E/Thermal-daemon(2430): [ap] temp_new :38  temp_old :39
07-28 13:55:23.810: E/Thermal-daemon(2430): Report temperature: [ap] temp :38  report_threshold:1
07-28 13:55:37.480: E/MtpServerEx(4278): SendStorageInfoChanged 00010001
07-28 13:55:37.480: E/MtpServerEx(4278): SendStorageInfoChanged 00020001
解决方案

20

定位错误思路:
1.log中信息太多,进行关键词筛选,譬如你的APK包名,或红色的错误Log。
2.通过观测log.e报的错误,根据错误查找崩溃堆栈
3.查看崩溃堆栈类型以及错误原因
重要的是关键词定位定位本人APK的错误Log信息

10

看看有没有允许定位权限

10

Android 6.0 以上的动态权限问题?
不是光声明了权限就万事OK了,需要动态检查和申请

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明Logcat中的信息,不知道怎么定位错误,求大手指导!,要是能说出定位错误的思路就更好了
喜欢 (0)
[1034331897@qq.com]
分享 (0)