[Galaxy S6 Themes and Apps] dagrim1:
[MOD][APP] Multi DPI Samsung Apps (Camera, Keyboard, Contacts/Dialer) & services.jar

Original thread: http://xdaforums.com/galaxy-s6/them...g-keyboard-t3139344/post61447011#post61447011

Samsung is known for releasing apps with crappy dpi scaling as I found out yet again when changing my dpi from 640 to 480. My main issue was with the camera app so I started there, but moved on to the keyboard and contacts app as well.

Available solutions ( http://xdaforums.com/galaxy-s6/themes-apps/mod-fix-samsung-camera-app-device-dpi-t3131995 ) weren't working for me, so I decided to try it myself and I finally managed to create multi-dpi versions of the various apps.

They are based on the XtreStoLite Universal Deo-Mod Edition 1.5 ROM as I'm currently running that. So just give it a try (backup the original apks first! I usually just rename them to "filename.org") and let me know if it works for you. I tested on 480 and 520 dpi and that works here...

I basically modified the dimens.xml file to hardcoded pixel sizes instead of dip value, modifying dip value caused other issues for me (camcorder not working, pro mode messing up). Hopefully it's of use to some.

Installation for Camera and Keyboard:

1. Backup original apk (in system\app\SamsungCamera4 and/or systemm\app\SamsungIMEv2 )

2. Extract modded apk to the corresponding folder

3. Wipe data for the app

4. Reboot

Contacts and Dialer:

People were also requesting a fix for the COntacts/Dialer app which is the SecContacts_L.apk but that caused some issues. Basically these need some extra work to get running in the form of patching the services.jar file in the frameworks folder in order to disable signature verification...

For details and the method used, see:

http://xdaforums.com/android/software-hacking/how-to-recompile-tw-contacts-phone-t3066350

http://xdaforums.com/showthread.php?t=2725233

I supplied two flashable zips for the services.jar.

patched_services_jar-signed.zip; this flashes the patched services.jar file

restore_services_jar-signed.zip; this flashes the original (unpatched) services.jar file

Install:

In order to get multidpi contacts working, first flash the patched services.jar file. Then copy over the SecContacts_L.apk (in the correspdonding zip) as before with the camera and keyboard. Again, make backups of the original! This onlky works with the patched services.jar!

Note that this might cause issues (an invalid services.jar caused my phone to get stuck in boot... had to restore the original to be able to continue) so use at your own risk!

EDIT

Added TouchWiz Home, default mod caused the icon sizes (and text) to be way out of line (too large, icons overlapped by text). Tried fixing this by hand, but it's a bit of trial and error at the moment. Also, different people prefer different sizes anyway. So supplied file has this (partially) fixed, at least better then the straightforward conversion. But as I'm not even using TOuchWiz myself I let it to other to play with it more.

Might need the modded services.jar (tw-home is also in the priv-app folder) but not sure about that (running the patched services.jar by default now).

EDIT2

Missed the landscape layout issue with the samsung keyboard (was centered to the left). Fixed in the updated apk in this post... (values-land folder contains another dimens.xml file which can be changed)

EDIT3

Added clock apk

EDIT4

Added 5.1.1. odexed and deodexed camera. Contacts/dialer and clock seem to be fine by default in 5.1.1 (and keyboard patchting didn't work at first, have to re-check)

EDIT5

Added 5.1.1 deodexed samsung keyboard

Odexed 5.1.1. keyboard also attached, supplied by char101 ( http://xdaforums.com/showpost.php?p=61891296&postcount=77 )