[Android Software Development] Deltadroid:
Google Messenger (Multi DPI)

Google Messenger has been updated to version 1.3.030-1885066-3x. Also, the installation script for Google Messenger has been updated to install the DPI specific version, depending on the DPI defined in build.prop.

1.3.030-1885066-30 = Universal DPI

1.3.030-1885066-34 = 240 DPI

1.3.030-1885066-36 = 320 DPI

1.3.030-1885066-38 = 480 DPI

Note: The 160 DPI (1885066-32) and 640 DPI (1885066-39) specific versions of Google Messenger still need to be added to this installer, so if you have this version, please let me know so that I can verify and add it. Currently, if your device is 160 or 640 DPI, then the universal DPI version of Google Messenger will be installed to the system.

Google Messenger addon for 4.4.4: gapps-kk-google-messenger-20150502-1-signed.zip (replaces stock sms/mms application)

Google Messenger addon for 5.0.2+: gapps-lp-google-messenger-20150502-1-signed.zip (replaces stock sms/mms application)

diff -ru gapps-kk-google-messenger-20150327-1-signed/META-INF/com/google/android/updater-script gapps-kk-google-messenger-20150502-1-signed/META-INF/com/google/android/updater-script
--- gapps-kk-google-messenger-20150327-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
+++ gapps-kk-google-messenger-20150502-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
@@ -2,16 +2,39 @@
ui_print(" Google Messenger for Android 4.4.4 ");
ui_print("***********************************************");

-ui_print("Installing files.");
+ui_print("Mounting system.");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/mount", "-o", "remount,rw", "/system", "/system");
show_progress(1, 15);
+
+ui_print("Cleaning system.");
delete("/system/priv-app/Mms.apk","/system/priv-app/GoogleMessenger.apk");
+
+ui_print("Installing files.");
+run_program("/sbin/mkdir", "/tmp/messenger");
package_extract_dir("system", "/system");
+package_extract_dir("scripts", "/tmp");
+set_perm(0, 0, 0777, "/tmp/install-core-0.sh");
+set_perm(0, 0, 0777, "/tmp/install-core-4.sh");
+set_perm(0, 0, 0777, "/tmp/install-core-6.sh");
+set_perm(0, 0, 0777, "/tmp/install-core-8.sh");
+package_extract_dir("optional/messenger/0", "/tmp/messenger");
+run_program("/tmp/install-core-0.sh", "");
+package_extract_dir("optional/messenger/4", "/tmp/messenger");
+run_program("/tmp/install-core-4.sh", "");
+package_extract_dir("optional/messenger/6", "/tmp/messenger");
+run_program("/tmp/install-core-6.sh", "");
+package_extract_dir("optional/messenger/8", "/tmp/messenger");
+run_program("/tmp/install-core-8.sh", "");
show_progress(1, 15);
+
ui_print("Setting metadata.");
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/priv-app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/lib", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+
+ui_print("Unmounting system.");
run_program("/sbin/busybox", "umount", "/system");
+
ui_print("Done.");
+
Only in gapps-kk-google-messenger-20150502-1-signed: optional
Only in gapps-kk-google-messenger-20150502-1-signed: scripts
Binary files gapps-kk-google-messenger-20150327-1-signed/system/lib/libframesequence.so and gapps-kk-google-messenger-20150502-1-signed/system/lib/libframesequence.so differ
Binary files gapps-kk-google-messenger-20150327-1-signed/system/lib/libgiftranscode.so and gapps-kk-google-messenger-20150502-1-signed/system/lib/libgiftranscode.so differ
Only in gapps-kk-google-messenger-20150327-1-signed/system: priv-app

diff -ru gapps-lp-google-messenger-20150327-1-signed/META-INF/com/google/android/updater-script gapps-lp-google-messenger-20150502-1-signed/META-INF/com/google/android/updater-script
--- gapps-lp-google-messenger-20150327-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
+++ gapps-lp-google-messenger-20150502-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
@@ -2,15 +2,38 @@
ui_print(" Google Messenger for Android 5.0.x ");
ui_print("***********************************************");

-ui_print("Installing files.");
+ui_print("Mounting system.");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/mount", "-o", "remount,rw", "/system", "/system");
show_progress(1, 15);
+
+ui_print("Cleaning system.");
delete_recursive("/system/priv-app/Mms","/system/priv-app/GoogleMessenger");
+
+ui_print("Installing files.");
+run_program("/sbin/mkdir", "/tmp/messenger");
package_extract_dir("system", "/system");
+package_extract_dir("scripts", "/tmp");
+set_perm(0, 0, 0777, "/tmp/install-core-0.sh");
+set_perm(0, 0, 0777, "/tmp/install-core-4.sh");
+set_perm(0, 0, 0777, "/tmp/install-core-6.sh");
+set_perm(0, 0, 0777, "/tmp/install-core-8.sh");
+package_extract_dir("optional/messenger/0", "/tmp/messenger");
+run_program("/tmp/install-core-0.sh", "");
+package_extract_dir("optional/messenger/4", "/tmp/messenger");
+run_program("/tmp/install-core-4.sh", "");
+package_extract_dir("optional/messenger/6", "/tmp/messenger");
+run_program("/tmp/install-core-6.sh", "");
+package_extract_dir("optional/messenger/8", "/tmp/messenger");
+run_program("/tmp/install-core-8.sh", "");
show_progress(1, 15);
+
ui_print("Setting metadata.");
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/priv-app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+
+ui_print("Unmounting system.");
run_program("/sbin/busybox", "umount", "/system");
+
ui_print("Done.");
+
Only in gapps-lp-google-messenger-20150502-1-signed: optional
Only in gapps-lp-google-messenger-20150502-1-signed: scripts
Only in gapps-lp-google-messenger-20150327-1-signed/system/priv-app/GoogleMessenger: GoogleMessenger.apk
Binary files gapps-lp-google-messenger-20150327-1-signed/system/priv-app/GoogleMessenger/lib/arm/libframesequence.so and gapps-lp-google-messenger-20150502-1-signed/system/priv-app/GoogleMessenger/lib/arm/libframesequence.so differ
Binary files gapps-lp-google-messenger-20150327-1-signed/system/priv-app/GoogleMessenger/lib/arm/libgiftranscode.so and gapps-lp-google-messenger-20150502-1-signed/system/priv-app/GoogleMessenger/lib/arm/libgiftranscode.so differ