Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

packages-inputmethods-PinyinIME: 提交

packages/inputmethods/PinyinIME


Commit MetaInfo

修订版89b07ea50cdb0bd9079590edc55013b5ff0efacd (tree)
时间2012-08-31 10:47:11
作者Hongyu Zhang <hongyu.zhang@inte...>
CommiterXiaokang Qin

Log Message

PinyinIME crashed in userdebug version

The root cause of this issue is nativeImOpenDecoder method
is optimized by JAVA compiler in userdebug version. And JVM could
not find this symbol in the virtual table of PinyinDecoderService
class, and this will cause JNI library load fail.
Solution is avoid this optimization.

Change-Id: I095860c407877ca3b9184cc82fa5c0c0d71302c0
Author: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 22639

更改概述

差异

--- a/Android.mk
+++ b/Android.mk
@@ -22,6 +22,9 @@ LOCAL_PROGUARD_FLAG_FILES := proguard.cfg
2222 # Make sure our dictionary file is not compressed, so we can read it with
2323 # a raw file descriptor.
2424 LOCAL_AAPT_FLAGS := -0 .dat
25+LOCAL_AAPT_FLAGS += -0 .dict
26+
27+LOCAL_PROGUARD_FLAG_FILES := proguard.flags
2528
2629 include $(BUILD_PACKAGE)
2730
--- /dev/null
+++ b/proguard.flags
@@ -0,0 +1,3 @@
1+-keep class com.android.inputmethod.pinyin.PinyinDecoderService {
2+ *;
3+}
Show on old repository browser