Shangwendada
是的,我在开头提到过,部分手机不会崩溃
复现了AOSP12-pixel3不会,Android13官方系统pixel6,正确长度格式第一行不会崩溃,多按一次按钮就崩溃。05-30 09:53:25.042 15057 15057 F DEBUG : uid: 10279
05-30 09:53:25.042 15057 15057 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
05-30 09:53:25.042 15057 15057 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
05-30 09:53:25.042 15057 15057 F DEBUG : Abort message: 'JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal continuation byte 0x43
05-30 09:53:25.042 15057 15057 F DEBUG : string: '�Cx�w'
05-30 09:53:25.042 15057 15057 F DEBUG : input: '0xc7 <0x43> 0x07 0x78 0x1d 0x7f 0xe5 0x77'
05-30 09:53:25.042 15057 15057 F DEBUG : in call to NewStringUTF
05-30 09:53:25.042 15057 15057 F DEBUG : from java.lang.String com.example.re11113.jni.getkey()'
05-30 09:53:25.042 15057 15057 F DEBUG : x0 0000000000000000 x1 00000000000039c8 x2 0000000000000006 x3 0000007fd0d59dc0
05-30 09:53:25.042 15057 15057 F DEBUG : x4 5151441f43445342 x5 5151441f43445342 x6 5151441f43445342 x7 7f7f7f7f7f7f7f7f
05-30 09:53:25.042 15057 15057 F DEBUG : x8 00000000000000f0 x9 00000076672979e0 x10 0000000000000001 x11 00000076672d9370
05-30 09:53:25.042 15057 15057 F DEBUG : x12 000000000000473d x13 000000000000015a x14 0000007fd0d58be0 x15 000000074337fa42
05-30 09:53:25.042 15057 15057 F DEBUG : x16 0000007667346d50 x17 0000007667321eb0 x18 000000767865a000 x19 00000000000039c8
05-30 09:53:25.042 15057 15057 F DEBUG : x20 00000000000039c8 x21 00000000ffffffff x22 00000073c5215000 x23 000000000000000b
05-30 09:53:25.042 15057 15057 F DEBUG : x24 0000007fd0d59f98 x25 0000007678063000 x26 0000007678063000 x27 0000000000000002
05-30 09:53:25.042 15057 15057 F DEBUG : x28 0000007fd0d5a7f0 x29 0000007fd0d59e40
05-30 09:53:25.042 15057 15057 F DEBUG : lr 00000076672c91c8 sp 0000007fd0d59da0 pc 00000076672c91f4 pst 0000000000001000
05-30 09:53:25.042 15057 15057 F DEBUG : backtrace:
05-30 09:53:25.042 15057 15057 F DEBUG : #00 pc 00000000000531f4 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: dc4001c2ef2dfc23467040797a96840c)
05-30 09:53:25.042 15057 15057 F DEBUG : #01 pc 00000000006d2a4c /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+704) (BuildId: d307dc6adc4105b5e392ad710770385d)
05-30 09:53:25.042 15057 15057 F DEBUG : #02 pc 0000000000016ea8 /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+80) (BuildId: 420d56eac27a210c92900f3ddb760c86)
05-30 09:53:25.042 15057 15057 F DEBUG : #03 pc 0000000000016450 /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+352) (BuildId: 420d56eac27a210c92900f3ddb760c86)
05-30 09:53:25.042 15057 15057 F DEBUG : #04 pc 0000000000445224 /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1612) (BuildId: d307dc6adc4105b5e392ad710770385d)
05-30 09:53:25.042 15057 15057 F DEBUG : #05 pc 00000000003292a4 /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+108) (BuildId: d307dc6adc4105b5e392ad710770385d)
05-30 09:53:25.042 15057 15057 F DEBUG : #06 pc 000000000048d59c /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...) (.__uniq.99033978352804627313491551960229047428)+144) (BuildId: d307dc6adc4105b5e392ad710770385d)
05-30 09:53:25.042 15057 15057 F DEBUG : #07 pc 0000000000453804 /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*) (.__uniq.99033978352804627313491551960229047428)+3932) (BuildId: d307dc6adc4105b5e392ad710770385d)
05-30 09:53:25.042 15057 15057 F DEBUG : #08 pc 00000000005cbb94 /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::NewStringUTF(_JNIEnv*, char const*) (.__uniq.99033978352804627313491551960229047428.llvm.7740520650885256591)+192) (BuildId: d307dc6adc4105b5e392ad710770385d)
05-30 09:53:25.042 15057 15057 F DEBUG : #09 pc 00000000000021e4 /data/app/~~9Utdaw0X5V98d6siE81kRA==/com.example.re11113-POnDDkNb6UF7kwVDA6YKzw==/lib/arm64/libSecret_entrance.so (Java_com_example_re11113_jni_getkey+504) (BuildId: f4e4adeea9bf275a7b45d8a84851f159242ef093)
05-30 09:53:25.042 15057 15057 F DEBUG : #10 pc 0000000000440554 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: d307dc6adc4105b5e392ad710770385d)
05-30 09:53:25.042 15057 15057 F DEBUG : #11 pc 0000000000209398 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: d307dc6adc4105b5e392ad710770385d)