Excuse me if I'm asking stupid questions, I'm a newbie to Android Dev.
Am I right in saying that the tool doesn't currently work with Android 4.2 APKs? I tried decompiling, editing (trying to add a new language dictionary) and recompiling the 4.2 Android Keyboard. But it wouldn't compile.
The error
Code:
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
D:\apktool\LatinImeGoogle_signed.apk\res\layout\more_suggestions.xml:4: error: No resource identifier found for attribute 'keyLetterSize' in package 'com.android.inputmethod.latin'
D:\apktool\LatinImeGoogle_signed.apk\res\layout\more_suggestions.xml:4: error: No resource identifier found for attribute 'keyLabelSize' in package 'com.android.inputmethod.latin'
D:\apktool\LatinImeGoogle_signed.apk\res\layout\more_suggestions.xml:4: error: No resource identifier found for attribute 'keyHintLetterRatio' in package 'com.android.inputmethod.latin'
and so on it goes for the entire list of resources.
Is there something I'm doing wrong?
Next, I tried changing the package name in AndroidManifest.xml from:
Code:
<manifest android:versionCode="1700" android:versionName="JellyBeanMR1-448013" coreApp="true" package="com.google.android.inputmethod.latin"
xmlns:android="http://schemas.android.com/apk/res/android">
to
Code:
<manifest android:versionCode="1700" android:versionName="JellyBeanMR1-448013" coreApp="true" package="com.android.inputmethod.latin"
xmlns:android="http://schemas.android.com/apk/res/android">
and then the compile works correctly.
however, the size of the new apk now becomes around 8.7 MB instead of the original 12 MB. This, despite adding a 400 KB .dict file.
Am I doing something wrong?