[Galaxy S6 Themes and Apps] dagrim1:
Decided to start a new thread as this one was getting a bit messy (and I couldn't change the title anymore)

http://xdaforums.com/galaxy-s6/themes-apps/mod-multi-dpi-samsung-apps-camera-t3141148

----------------------------------------------------------

Hi all, after changing the dpi to 480 the camera was the main thing bugging me. Looking for a solution I found this thread:

http://xdaforums.com/galaxy-s6/themes-apps/mod-fix-samsung-camera-app-device-dpi-t3131995

But that did not work for me, so I decided to try it myself and I finally managed to create multi-dpi versions of the Camera and Samsung Keyboard apps. They are based on the apks from the XtreStoLite Universal Deo-Mod Edition 1.5 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...

Installation:

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

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.

I have not been able to fix the Contacts/Dialer (SecContacts_L.apk in the priv-app folder)! I either get a corrupt apk (parsing error) or it just won't show up in my apps. Corrupted apk gives a parsing error when trying to install manually, otherwise it just says 'install failed'.

I am guessing this is somethiong with the priv-app folder and other restrictions there. I also tried copying the apk to the system\app folder instead but that didn't work either...

If anyone has ANY idea how to fix this? (I tried with both apktool as apk multitool).

*SCRIPTS ADDED*

Added the scripts and all I've written for this to this post for those wanting to try themselves (dpi_mod.zip). They are not completely polished so need some manual editing every now and then...

Basically, doubleclicking apk_process.bat in the root will go through the apk's in the apk subfolder and

1. Decompile them to the decompiled subfolder

2. Edit the dimens.xml file in the res\values subfolder of the decompiled folder replacing all the <n>dip values with <4*n>px (So 640 dip becomes 2560px for example...)

3. Rebuild the apk to the dpimod_apk subfolder (using the -c option to keep original manifest and signature files)

The files folder contains the files used (apktool, the subscripts for each step, signature files, (g)awk and an awk script to process the xml file replacing the values, etc)

There is also a script for signing the apk manually, but somehow the apk then also doesn;t work in my case it seems...

ALl scripts are windows batch files (and an awk file) as I mainly use windows at home. Shouldn't be too hard for the linux users to convert them to bash files if desired...

*EDIT2*

Added patched services.jar (and original services.jar for restoration in case of issues). Flash through twrp recovery... This allows you to use the modded SecContacts_L.apk supplied, the services.jar needs to be patched to disable the signature verification for the (system) apk files. 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!