packages/inputmethods/PinyinIME
修订版 | 89b07ea50cdb0bd9079590edc55013b5ff0efacd (tree) |
---|---|
时间 | 2012-08-31 10:47:11 |
作者 | Hongyu Zhang <hongyu.zhang@inte...> |
Commiter | Xiaokang Qin |
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
@@ -22,6 +22,9 @@ LOCAL_PROGUARD_FLAG_FILES := proguard.cfg | ||
22 | 22 | # Make sure our dictionary file is not compressed, so we can read it with |
23 | 23 | # a raw file descriptor. |
24 | 24 | LOCAL_AAPT_FLAGS := -0 .dat |
25 | +LOCAL_AAPT_FLAGS += -0 .dict | |
26 | + | |
27 | +LOCAL_PROGUARD_FLAG_FILES := proguard.flags | |
25 | 28 | |
26 | 29 | include $(BUILD_PACKAGE) |
27 | 30 |
@@ -0,0 +1,3 @@ | ||
1 | +-keep class com.android.inputmethod.pinyin.PinyinDecoderService { | |
2 | + *; | |
3 | +} |