ENV

魅族 flyme 4.5.6A Android 5.1
taobao 客户端:5.3.4

重现 步骤

Precondition
安装淘宝手机端拒绝定位权限

  1. 打开淘宝手机客户端
  2. 找到司法拍卖并进入
  3. 点击司法拍卖的任意一个分类 如:机动车 ,点击 机动车 crash

Log

从 log 分析看,是因为没有找到定位不城市导致 crash 的

0-10 12:43:49.220 4606-4627/? E/AndroidRuntime: Process: android.process.acore, PID: 4606
10-10 12:43:49.220 4606-4627/? E/AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference
10-10 12:43:49.220 4606-4627/? E/AndroidRuntime: at com.meizu.stats.UsageStatsManager.init(UsageStatsManager.java:70)
10-10 12:43:49.220 4606-4627/? E/AndroidRuntime: at com.meizu.stats.UsageStatsManager.access$000(UsageStatsManager.java:28)
10-10 12:43:49.220 4606-4627/? E/AndroidRuntime: at com.meizu.stats.UsageStatsManager$1.run(UsageStatsManager.java:58)
10-10 12:43:49.220 4606-4627/? E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:815)
10-10 12:43:49.220 4606-4627/? E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:104)
10-10 12:43:49.220 4606-4627/? E/AndroidRuntime: at android.os.Looper.loop(Looper.java:194)
10-10 12:43:49.220 4606-4627/? E/AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:61)
10-10 12:43:49.263 4178-4511/? E/TEST_INTERFACE: TEST_INTERFACE==WebViewClient==shouldOverrideUrlLoading==url:https://h5.m.taobao.com/paimai/v2/judicial/judicialList.html?categoryName=%E6%9C%BA%E5%8A%A8%E8%BD%A6&category=50025972&time=1444452229248&city=&for=paimaiApp&ttid=1219@paimai_h5_1.0&spm=a2129.7389565.0.i1
10-10 12:43:49.352 4178-4523/? E/NativeCrypto: ssl=0xd2616400 cert_verify_callback x509_store_ctx=0xccd2d680 arg=0x0
10-10 12:43:49.352 4178-4523/? E/NativeCrypto: ssl=0xd2616400 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: FATAL EXCEPTION: RecordEventThread
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: Process: android.process.acore, PID: 4632
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: at com.meizu.stats.UsageStatsManager.init(UsageStatsManager.java:70)
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: at com.meizu.stats.UsageStatsManager.access$000(UsageStatsManager.java:28)
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: at com.meizu.stats.UsageStatsManager$1.run(UsageStatsManager.java:58)
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:815)
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:104)
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: at android.os.Looper.loop(Looper.java:194)
10-10 12:43:49.436 4632-4654/? E/AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:61)
10-10 12:43:49.441 749-749/? E/WifiTrafficPoller: TRAFFIC_STATS_POLL true Token 710 num clients 20
10-10 12:43:49.441 749-749/? E/WifiTrafficPoller: packet count Tx=293569 Rx=341023
10-10 12:43:49.441 749-749/? E/WifiTrafficPoller: notifying of data activity 3
10-10 12:43:49.465 749-899/? E/WifiStateMachine: ConnectedState (when=-14ms what=131155 arg1=140! CMD_RSSI_POLL 140 0 "CMCC" d8:15:0d:5f:c3:08 rssi=-62 f=2462 sc=60 link=65 tx=3.3, 0.0, 0.0 rx=1.7 bcn=0 [on:0 tx:0 rx:0 period:3004] from screen [on:0 period:1343218009] gl hn u24 rssi=-57 ag=0 hr ticks 1,2,313 ls-=0 [56,56,56,56,61] brc=0 lrc=0
10-10 12:43:49.466 749-899/? E/WifiStateMachine: L2ConnectedState (when=-16ms what=131155 arg1=140! CMD_RSSI_POLL 140 0 "CMCC" d8:15:0d:5f:c3:08 rssi=-62 f=2462 sc=60 link=65 tx=3.3, 0.0, 0.0 rx=1.7 bcn=0 [on:0 tx:0 rx:0 period:1] from screen [on:0 period:1343218010] gl hn u24 rssi=-57 ag=0 hr ticks 1,2,313 ls-=0 [56,56,56,56,61] brc=0 lrc=0
10-10 12:43:49.466 749-899/? E/WifiStateMachine: get link layer stats 0
10-10 12:43:49.469 749-899/? E/WifiConfigStore: updateConfiguration freq=2462 BSSID=d8:15:0d:5f:c3:08 RSSI=-63 "CMCC"WPA_PSK
10-10 12:43:49.553 22014-23047/? E/ActivityThread: Failed to find provider info for user_dictionary
10-10 12:43:49.555 1628-1704/? E/CellLocation: create GsmCellLocation
10-10 12:43:49.633 4178-4524/? E/NativeCrypto: ssl=0xc7bf1000 cert_verify_callback x509_store_ctx=0xccc29680 arg=0x0
10-10 12:43:49.634 4178-4524/? E/NativeCrypto: ssl=0xc7bf1000 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
10-10 12:43:49.647 4178-4178/? E/Web Console: Uncaught TypeError: Cannot call method 'onSuccess' of undefined at https://h5.m.taobao.com/paimai/v2/judicial/judicialList.html?categoryName=%E6%9C%BA%E5%8A%A8%E8%BD%A6&category=50025972&time=1444452229248&city=&for=paimaiApp&ttid=1219@paimai_h5_1.0&spm=a2129.7389565.0.i1:1
10-10 12:43:49.681 1628-1704/? E/CellLocation: create GsmCellLocation
.......
10-10 12:43:49.990 4178-4522/? E/NativeCrypto: ssl=0xcd074e00 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: FATAL EXCEPTION: Thread-14125
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: Process: com.taobao.taobao, PID: 4178
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/amap/api/location/LocationManagerProxy;
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at com.taobao.activelocation.location.impl.a$b.run(Taobao:64)
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at java.lang.Thread.run(Thread.java:818)
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Can't find class com.amap.api.location.LocationManagerProxy in BundleClassLoader: com.taobao.passivelocation
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at android.taobao.atlas.framework.c.findClass(Taobao:226)
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at com.taobao.activelocation.location.impl.a$b.run(Taobao:64) 
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at java.lang.Thread.run(Thread.java:818) 
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: Suppressed: java.lang.ClassNotFoundException: com.amap.api.location.LocationManagerProxy
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at java.lang.Class.classForName(Native Method)
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: ... 3 more
10-10 12:43:50.199 4178-4666/? E/AndroidRuntime: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
10-10 12:43:50.337 749-889/? E/InputDispatcher: channel '19489579 com.taobao.taobao/com.taobao.tao.homepage.MainActivity3 (server)' ~ Channel is unrecoverably broken and will be disposed!


↙↙↙阅读原文可查看相关链接,并与作者交流