Closed Dongzzzz closed 8 years ago
小米2 系统4.1.1
展示:2个页面 Activity7 Activity8.
目标:在Activity7进行动态修复 替换Activity8的onCreate方法, 在onCreate方法中为Activity8页面注册点击事件。事件输出log
操作流程:
以下是崩溃的log
06-02 17:31:37.934 28969-28969/cn.eclicks.chelun A/libc: Fatal signal 11 (SIGSEGV) at 0x00000064 (code=1), thread 28969 (.eclicks.chelun)
06-02 17:31:38.034 171-171/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-02 17:31:38.034 171-171/? I/DEBUG: Build fingerprint: 'Xiaomi/aries/aries:4.1.1/JRO03L/JLB52.0:user/release-keys'
06-02 17:31:38.034 171-171/? I/DEBUG: pid: 28969, tid: 28969, name: .eclicks.chelun >>> cn.eclicks.chelun <<<
06-02 17:31:38.034 171-171/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000064
06-02 17:31:38.134 30380-30380/? A/libc: Fatal signal 13 (SIGPIPE) at 0x000076ac (code=0), thread 30380 (sh)
06-02 17:31:38.134 171-171/? I/DEBUG: r0 626e7d60 r1 00000d92 r2 00000019 r3 00000000
06-02 17:31:38.134 171-171/? I/DEBUG: r4 63d43814 r5 40252cc8 r6 4013c0b0 r7 0000106e
06-02 17:31:38.134 171-171/? I/DEBUG: r8 412fcd00 r9 4216f548 sl 00000000 fp 42182b10
06-02 17:31:38.134 171-171/? I/DEBUG: ip 0000006e sp bef70770 lr 00000000 pc 41301578 cpsr 20000010
06-02 17:31:38.134 171-171/? I/DEBUG: d0 0000000000000022 d1 0000001100000007
06-02 17:31:38.134 171-171/? I/DEBUG: d2 0000000000000000 d3 00000004000000b0
06-02 17:31:38.134 171-171/? I/DEBUG: d4 41542de800000009 d5 65acce480000000a
06-02 17:31:38.134 171-171/? I/DEBUG: d6 664c07280000000b d7 664c1bc00000000c
06-02 17:31:38.134 171-171/? I/DEBUG: d8 0000000000000000 d9 0000000000000000
06-02 17:31:38.134 171-171/? I/DEBUG: d10 0000000000000000 d11 0000000000000000
06-02 17:31:38.134 171-171/? I/DEBUG: d12 0000000000000000 d13 0000000000000000
06-02 17:31:38.134 171-171/? I/DEBUG: d14 0000000000000000 d15 0000000000000000
06-02 17:31:38.134 171-171/? I/DEBUG: d16 7fffffffffffffff d17 7fffffffffffffff
06-02 17:31:38.134 171-171/? I/DEBUG: d18 0000000000000000 d19 006f006900730073
06-02 17:31:38.134 171-171/? I/DEBUG: d20 0000002d0000006e d21 0000000200000001
06-02 17:31:38.134 171-171/? I/DEBUG: d22 0000010100000005 d23 0000000400000001
06-02 17:31:38.134 171-171/? I/DEBUG: d24 0008000700060004 d25 000a0008000a0009
06-02 17:31:38.134 171-171/? I/DEBUG: d26 0000000000000000 d27 0000000000000000
06-02 17:31:38.134 171-171/? I/DEBUG: d28 3fe0000000000000 d29 0000000000000001
06-02 17:31:38.134 171-171/? I/DEBUG: d30 000a000a000a000a d31 0000000000000000
06-02 17:31:38.134 171-171/? I/DEBUG: scr 68000012
06-02 17:31:38.134 171-171/? I/DEBUG: backtrace:
06-02 17:31:38.134 171-171/? I/DEBUG: #00 pc 00024578 /system/lib/libdvm.so (dvmAsmSisterStart+2168)
06-02 17:31:38.134 171-171/? I/DEBUG: #01 pc 0002d7e8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
06-02 17:31:38.134 171-171/? I/DEBUG: #02 pc 000601db /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+374)
06-02 17:31:38.134 171-171/? I/DEBUG: #03 pc 00067199 /system/lib/libdvm.so
06-02 17:31:38.134 171-171/? I/DEBUG: #04 pc 00029020 /system/lib/libdvm.so
06-02 17:31:38.134 171-171/? I/DEBUG: #05 pc 0002d7e8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
06-02 17:31:38.134 171-171/? I/DEBUG: #06 pc 0005ff31 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
06-02 17:31:38.134 171-171/? I/DEBUG: #07 pc 0004aee7 /system/lib/libdvm.so
06-02 17:31:38.134 171-171/? I/DEBUG: #08 pc 00048c75 /system/lib/libandroid_runtime.so
06-02 17:31:38.134 171-171/? I/DEBUG: #09 pc 00049691 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+368)
06-02 17:31:38.134 171-171/? I/DEBUG: #10 pc 00000dcf /system/bin/app_process
06-02 17:31:38.134 171-171/? I/DEBUG: stack:
06-02 17:31:38.134 171-171/? I/DEBUG: bef70730 40035a60
06-02 17:31:38.134 171-171/? I/DEBUG: bef70734 40035a60
06-02 17:31:38.144 171-171/? I/DEBUG: bef70738 420fc2b8 /dev/ashmem/dalvik-heap (deleted)
06-02 17:31:38.144 171-171/? I/DEBUG: bef7073c 000089b0
06-02 17:31:38.144 171-171/? I/DEBUG: bef70740 00000004
06-02 17:31:38.144 171-171/? I/DEBUG: bef70744 401a77d0 /system/lib/libc.so
06-02 17:31:38.144 171-171/? I/DEBUG: bef70748 4138ba38 /system/lib/libdvm.so
06-02 17:31:38.144 171-171/? I/DEBUG: bef7074c 8995a1ca
06-02 17:31:38.144 171-171/? I/DEBUG: bef70750 000010f2
06-02 17:31:38.144 171-171/? I/DEBUG: bef70754 4018286f /system/lib/libc.so (lrand48+14)
06-02 17:31:38.144 171-171/? I/DEBUG: bef70758 4013c0b0
06-02 17:31:38.144 171-171/? I/DEBUG: bef7075c 41350ead /system/lib/libdvm.so (dvmJitCheckTraceRequest+296)
06-02 17:31:38.144 171-171/? I/DEBUG: bef70760 63face74 /data/dalvik-cache/system@framework@framework.jar@classes.dex
06-02 17:31:38.144 171-171/? I/DEBUG: bef70764 40252cc8
06-02 17:31:38.144 171-171/? I/DEBUG: bef70768 df0027ad
06-02 17:31:38.144 171-171/? I/DEBUG: bef7076c 00000000
06-02 17:31:38.144 171-171/? I/DEBUG: #00 bef70770 665841b4
06-02 17:31:38.144 171-171/? I/DEBUG: bef70774 4013c0b0
06-02 17:31:38.144 171-171/? I/DEBUG: bef70778 41385c5c /system/lib/libdvm.so
06-02 17:31:38.144 171-171/? I/DEBUG: bef7077c 626dccd0 /dev/ashmem/dalvik-LinearAlloc (deleted)
06-02 17:31:38.144 171-171/? I/DEBUG: bef70780 00000000
06-02 17:31:38.144 171-171/? I/DEBUG: bef70784 bef707a4 [stack]
06-02 17:31:38.144 171-171/? I/DEBUG: bef70788 bef70848 [stack]
06-02 17:31:38.144 171-171/? I/DEBUG: bef7078c 00000000
06-02 17:31:38.144 171-171/? I/DEBUG: bef70790 42082844 /dev/ashmem/dalvik-heap (deleted)
06-02 17:31:38.144 171-171/? I/DEBUG: bef70794 4130a7ec /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
06-02 17:31:38.144 171-171/? I/DEBUG: #01 bef70798 bef707c8 [stack]
06-02 17:31:38.144 171-171/? I/DEBUG: bef7079c 41323de3 /system/lib/libdvm.so (dvmHashTableLookup(HashTable*, unsigned int, void*, int (*)(void const*, void const*), bool)+50)
06-02 17:31:38.144 171-171/? I/DEBUG: bef707a0 4138b578 /system/lib/libdvm.so
06-02 17:31:38.144 171-171/? I/DEBUG: bef707a4 64096be8 /data/dalvik-cache/system@framework@framework.jar@classes.dex
06-02 17:31:38.144 171-171/? I/DEBUG: bef707a8 40252ec8
06-02 17:31:38.144 171-171/? I/DEBUG: bef707ac 6260b390 /dev/ashmem/dalvik-LinearAlloc (deleted)
06-02 17:31:38.144 171-171/? I/DEBUG: bef707b0 62242000 /dev/ashmem/dalvik-aux-structure (deleted)
06-02 17:31:38.144 171-171/? I/DEBUG: bef707b4 42082798 /dev/ashmem/dalvik-heap (deleted)
06-02 17:31:38.144 171-171/? I/DEBUG: bef707b8 b90600d9
06-02 17:31:38.144 171-171/? I/DEBUG: bef707bc bef708e0 [stack]
06-02 17:31:38.144 171-171/? I/DEBUG: bef707c0 00000000
06-02 17:31:38.144 171-171/? I/DEBUG: bef707c4 bef70914 [stack]
06-02 17:31:38.144 171-171/? I/DEBUG: bef707c8 00000000
06-02 17:31:38.144 171-171/? I/DEBUG: bef707cc 00000000
06-02 17:31:38.144 171-171/? I/DEBUG: bef707d0 00000000
06-02 17:31:38.144 171-171/? I/DEBUG: bef707d4 00000000
06-02 17:31:38.144 171-171/? I/DEBUG: ........ ........
06-02 17:31:38.144 171-171/? I/DEBUG: #02 bef70828 00000003
06-02 17:31:38.144 171-171/? I/DEBUG: bef7082c 4013c0b0
06-02 17:31:38.144 171-171/? I/DEBUG: bef70830 00000050
06-02 17:31:38.144 171-171/? I/DEBUG: bef70834 626dccd0 /dev/ashmem/dalvik-LinearAlloc (deleted)
06-02 17:31:38.154 171-171/? I/DEBUG: bef70838 4013c0b0
06-02 17:31:38.154 171-171/? I/DEBUG: bef7083c 4162f2a8 /dev/ashmem/dalvik-heap (deleted)
06-02 17:31:38.154 171-171/? I/DEBUG: bef70840 42082740 /dev/ashmem/dalvik-heap (deleted)
06-02 17:31:38.154 171-171/? I/DEBUG: bef70844 401b3a6c
06-02 17:31:38.154 171-171/? I/DEBUG: bef70848 42070018 /dev/ashmem/dalvik-heap (deleted)
06-02 17:31:38.154 171-171/? I/DEBUG: bef7084c 00000014
06-02 17:31:38.154 171-171/? I/DEBUG: bef70850 00000001
06-02 17:31:38.154 171-171/? I/DEBUG: bef70854 401ea66b /system/lib/libcutils.so (mspace_calloc+56)
06-02 17:31:38.154 171-171/? I/DEBUG: bef70858 4013c008
06-02 17:31:38.154 171-171/? I/DEBUG: bef7085c 4138d2c0
06-02 17:31:38.154 171-171/? I/DEBUG: bef70860 42082830 /dev/ashmem/dalvik-heap (deleted)
06-02 17:31:38.154 171-171/? I/DEBUG: bef70864 4134b5b5 /system/lib/libdvm.so (dvmHeapSourceAlloc(unsigned int)+76)
@Dongzzzz 已经修复,我这5.0已经不崩溃了,你看看你那
三星Note3 系统5.0 以下是执行runtimefix 时输出的log