[Android Software Development] Deltadroid:
Japanese Input

The installation script for the Japanese Input addon has been fixed to not remove the stock Latin IME keyboard. The Japanese IME should not replace the stock Latin IME because they are not the same thing.

Google Japanese Input addon for 4.4.4: gapps-kk-google-japaneseime-20150508-2-signed.zip

Google Japanese Input addon for 5.0.2+: gapps-lp-google-japaneseime-20150508-2-signed.zip

Note: To get stock Latin IME keyboard back, do the following steps:

1) Reboot to Recovery

2) Install new Japanese Input addon from this post

3) Dirty Flash Rom

4) Reboot to system

diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-kk-google-japaneseime-20150508-1-signed/META-INF/com/google/android/updater-script gapps-kk-google-japaneseime-20150508-2-signed/META-INF/com/google/android/updater-script
--- gapps-kk-google-japaneseime-20150508-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
+++ gapps-kk-google-japaneseime-20150508-2-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
@@ -6,7 +6,7 @@
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/mount", "-o", "remount,rw", "/system", "/system");
show_progress(1, 15);
-delete("/system/app/LatinIME.apk","/system/app/JapaneseIMEGoogle.apk","/system/lib/libjni_latinime.so");
+delete("/system/app/JapaneseIMEGoogle.apk");
package_extract_dir("system", "/system");
show_progress(1, 15);
ui_print("Setting metadata.");
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-kk-google-japaneseime-20150508-1-signed/system/addon.d/94-gapps-japaneseime.sh gapps-kk-google-japaneseime-20150508-2-signed/system/addon.d/94-gapps-japaneseime.sh
--- gapps-kk-google-japaneseime-20150508-1-signed/system/addon.d/94-gapps-japaneseime.sh	2008-02-29 02:33:46.000000000 +0100
+++ gapps-kk-google-japaneseime-20150508-2-signed/system/addon.d/94-gapps-japaneseime.sh	2008-02-29 02:33:46.000000000 +0100
@@ -34,7 +34,6 @@
# Stub
;;
post-restore)
- rm -f /system/app/LatinIME.apk
- rm -f /system/lib/libjni_latinime.so
+ # Stub
;;
esac

diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-lp-google-japaneseime-20150508-1-signed/META-INF/com/google/android/updater-script gapps-lp-google-japaneseime-20150508-2-signed/META-INF/com/google/android/updater-script
--- gapps-lp-google-japaneseime-20150508-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
+++ gapps-lp-google-japaneseime-20150508-2-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
@@ -6,8 +6,7 @@
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/mount", "-o", "remount,rw", "/system", "/system");
show_progress(1, 15);
-delete_recursive("/system/app/LatinIME","/system/app/JapaneseIMEGoogle");
-delete("/system/lib/libjni_latinime.so");
+delete_recursive("/system/app/JapaneseIMEGoogle");
package_extract_dir("system", "/system");
show_progress(1, 15);
ui_print("Setting metadata.");
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-lp-google-japaneseime-20150508-1-signed/system/addon.d/94-gapps-japaneseime.sh gapps-lp-google-japaneseime-20150508-2-signed/system/addon.d/94-gapps-japaneseime.sh
--- gapps-lp-google-japaneseime-20150508-1-signed/system/addon.d/94-gapps-japaneseime.sh	2008-02-29 02:33:46.000000000 +0100
+++ gapps-lp-google-japaneseime-20150508-2-signed/system/addon.d/94-gapps-japaneseime.sh	2008-02-29 02:33:46.000000000 +0100
@@ -34,8 +34,6 @@
# Stub
;;
post-restore)
- rm -rf /system/app/LatinIME
- rm -f /system/lib/libjni_latinime.so
chmod 755 /system/app/JapaneseIMEGoogle
chmod 755 /system/app/JapaneseIMEGoogle/lib
chmod 755 /system/app/JapaneseIMEGoogle/lib/arm