[MOD][APP] Multi DPI Samsung Apps (Camera, Keyboard, Contacts/Dialer) & services.jar

dagrim1

Senior Member
Sep 1, 2008
1,706
365
83
But those modded apps are deodexed, as far as I know?
I mean... I have tried many Camera apks from xda and none worked - always FC.
There is one 5.1.1 odexed version camera app in the first post (you can recognize it by the name) based on the Xtrestolite 2.0 odexed rom.... That one worked for me at least.
 

disip

Senior Member
Jan 31, 2011
362
105
0
Gdańsk
I know. Unfortunately I am on 5.0.2 and that one didn't work for me neither.
(Don't want to upgrade to 5.1.1 because of not being able to have root without triping Knox)

Samsung did really bad thing to all of us!
 

dagrim1

Senior Member
Sep 1, 2008
1,706
365
83
I know. Unfortunately I am on 5.0.2 and that one didn't work for me neither.
(Don't want to upgrade to 5.1.1 because of not being able to have root without triping Knox)

Samsung did really bad thing to all of us!
Upload your Camera apk and I'll make a version for that specific one... (Gonna be tomorrow though, off to bed now ;) ).
 
  • Like
Reactions: disip

Maqical

Senior Member
Jun 5, 2012
1,198
1,177
0
@dagrim1 I'm on 5.1.1 now.. so all I gotta change is the camera apk?

edit; my apktool doesn't let me recompile due to not having permissions to write somehow lol idk I have to look into it.

Any possible way, for the camera you have uploaded, you can add the low battery removal gone with dpi mod?
and for the touchwiz launcher, can you add this to it as well with dpi. Thanks. :) Hope you're not too busy
http://forum.xda-developers.com/galaxy-s6/themes-apps/enable-s6-launcher-hidden-settings-t3147649
 
Last edited:

dagrim1

Senior Member
Sep 1, 2008
1,706
365
83
@dagrim1 I'm on 5.1.1 now.. so all I gotta change is the camera apk?

edit; my apktool doesn't let me recompile due to not having permissions to write somehow lol idk I have to look into it.

Any possible way, for the camera you have uploaded, you can add the low battery removal gone with dpi mod?
and for the touchwiz launcher, can you add this to it as well with dpi. Thanks. :) Hope you're not too busy
http://forum.xda-developers.com/galaxy-s6/themes-apps/enable-s6-launcher-hidden-settings-t3147649
Meh, think that would mean messing with the smali code... Not too experienced with that and busy weekend so don't think I will atm at least.

About the launcher, updated the 5.0.2 version from the starting post with the mod you mentioned... See attachment in this post. Can you give it a try? Not running 5.0.2 myself anymore and didn't do the 5.1.1. luancher yet as that one is more work (1 on 1 conversion isnt good enough, needs some manual editing) and I don't use it at all myself.

Oh, you're going to be my hero :D
https://www.dropbox.com/s/a7170laflt9axj6/SamsungCamera4.apk?dl=1

Do you need the arm64 folder too?
Can you give this one a try? I shouldn't need the arm64 folder afaik. Replace the apk, update permissions, clear app cahce and reboot.
 

Attachments

Last edited:

dagrim1

Senior Member
Sep 1, 2008
1,706
365
83
You know I can!
I will post the results in 1 hour.
Thanks!
Oh! When I say "Shouldn't need the arm64 folder" I mean that I shouldn't need it for modding... But you of course DO need it on odexed roms. Hope that was clear :p

And hope it works for you :)
 

disip

Senior Member
Jan 31, 2011
362
105
0
Gdańsk
Oh! When I say "Shouldn't need the arm64 folder" I mean that I shouldn't need it for modding... But you of course DO need it on odexed roms. Hope that was clear :p

And hope it works for you :)
Yeah that was clear for me.
Unfortunately your Camera4 doesn't work for me - the camera app is just gone after replacing the original apk :(
 

disip

Senior Member
Jan 31, 2011
362
105
0
Gdańsk
Oh! When I say "Shouldn't need the arm64 folder" I mean that I shouldn't need it for modding... But you of course DO need it on odexed roms. Hope that was clear :p

And hope it works for you :)
That's so weird... You did change the permissions? Really no clue why this is the case...
To 644, yes.
Seems I will have to get used to the original, large density, too bad :(

Thanks anyway for your help!
 

Fightoffyoredeamons

Senior Member
Apr 17, 2014
316
50
0
Meh, think that would mean messing with the smali code... Not too experienced with that and busy weekend so don't think I will atm at least.

About the launcher, updated the 5.0.2 version from the starting post with the mod you mentioned... See attachment in this post. Can you give it a try? Not running 5.0.2 myself anymore and didn't do the 5.1.1. luancher yet as that one is more work (1 on 1 conversion isnt good enough, needs some manual editing) and I don't use it at all myself.



Can you give this one a try? I shouldn't need the arm64 folder afaik. Replace the apk, update permissions, clear app cahce and reboot.
Tried flashing and twrp says failed.
 

Fightoffyoredeamons

Senior Member
Apr 17, 2014
316
50
0
Yeah, that's cause it's not a flashable zip... It's just a zip with the apk which you have to replace manually ;)
I mean ya, I knew that.. lol

---------- Post added at 02:38 PM ---------- Previous post was at 02:00 PM ----------

Yeah, that's cause it's not a flashable zip... It's just a zip with the apk which you have to replace manually ;)
OK so I did this and it still force closes
 

dagrim1

Senior Member
Sep 1, 2008
1,706
365
83
I mean ya, I knew that.. lol

---------- Post added at 02:38 PM ---------- Previous post was at 02:00 PM ----------



OK so I did this and it still force closes
Hmmm, and the one in the opening post (without hidden settings mod)? Only thing I can think of is that I rebuilt the latest one with the 5.1.1 framework instead of 5.0.2... Perhaps I'll check the 5.1.1 version out quickly tomorrow, as I can actually test that one myself. But I'm on a deodexed rom again.
 

char101

Senior Member
Jan 13, 2011
112
78
0
Patched SamsungIMEv2 odex from 5.1.1 ROM

SamsungIMEv2.apk http://d-h.st/tiCq

Python script to do the patching

Code:
from lxml import etree

def dip_to_px(file):
    replaced = False
    with open(file, 'r') as f:
        tree = etree.parse(f)
        resources = tree.getroot()
        for dimen in resources.findall('dimen'):
            value = dimen.text
            if value.endswith('dip'):
                new_value = '{}px'.format(float(value.replace('dip', '')) * 4)
                dimen.text = new_value
                replaced = True
    if replaced:
        with open(file, 'wb') as f:
            f.write(etree.tostring(tree, encoding='utf-8', xml_declaration=True, pretty_print=True))
        print('Patched', file)

if __name__ == '__main__':
    dip_to_px(r'SamsungIMEv2\res\values\dimens.xml')
    dip_to_px(r'SamsungIMEv2\res\values-land\dimens.xml')
    dip_to_px(r'SamsungIMEv2\res\values-sw360dp-xxxhdpi-v13\dimens.xml')
    dip_to_px(r'SamsungIMEv2\res\values-sw360dp-land-xxxhdpi-v13\dimens.xml')
 
  • Like
Reactions: dagrim1

dagrim1

Senior Member
Sep 1, 2008
1,706
365
83
Patched SamsungIMEv2 odex from 5.1.1 ROM

SamsungIMEv2.apk http://d-h.st/tiCq

Python script to do the patching

Code:
from lxml import etree

def dip_to_px(file):
    replaced = False
    with open(file, 'r') as f:
        tree = etree.parse(f)
        resources = tree.getroot()
        for dimen in resources.findall('dimen'):
            value = dimen.text
            if value.endswith('dip'):
                new_value = '{}px'.format(float(value.replace('dip', '')) * 4)
                dimen.text = new_value
                replaced = True
    if replaced:
        with open(file, 'wb') as f:
            f.write(etree.tostring(tree, encoding='utf-8', xml_declaration=True, pretty_print=True))
        print('Patched', file)

if __name__ == '__main__':
    dip_to_px(r'SamsungIMEv2\res\values\dimens.xml')
    dip_to_px(r'SamsungIMEv2\res\values-land\dimens.xml')
    dip_to_px(r'SamsungIMEv2\res\values-sw360dp-xxxhdpi-v13\dimens.xml')
    dip_to_px(r'SamsungIMEv2\res\values-sw360dp-land-xxxhdpi-v13\dimens.xml')
Cheers for that, indeed missed a few dimens.xml files (which explains why it wasn't working for me ;) ). Added the deodexed 5.1.1 version as well now...

Hi.. love your good work... need a help though... could you please make this TouchWizHome_ZERO_MR1.apk from XtreStoLite 2.1 Deo MOD edition a multi DPI app...? Thanks in advance...!

Google Drive link:
https://drive.google.com/file/d/0B6HixKe0IDEKVXRUcVFYZF9DT1E/view?usp=docslist_api

Sent from my SM-G920F using Tapatalk
Sorry, but not at this moment. Just try the toolkit from the second post...

Trouble with the launcher, at least the 5.0.2 one, was that simply changing dpi to px didn't work too great. Text was overlapping icons, layout was a bit wrong. So manual editing is necessary, which I did for the 5.0.2 version (just by trial and error until it was somewhat ok) but it's a bit of nasty work and I dont use the thing at all so honestly... I don't really feel like it atm ;)
 
Last edited:
  • Like
Reactions: akapu01

akapu01

Senior Member
Jun 5, 2015
134
23
0
Dhaka
Cheers for that, indeed missed a few dimens.xml files (which explains why it wasn't working for me ;) ). Added the deodexed 5.1.1 version as well now...



Sorry, but not at this moment. Just try the toolkit from the second post...

Trouble with the launcher, at least the 5.0.2 one, was that simply changing dpi to px didn't work too great. Text was overlapping icons, layout was a bit wrong. So manual editing is necessary, which I did for the 5.0.2 version (just by trial and error until it was somewhat ok) but it's a bit of nasty work and I dont use the thing at all so honestly... I don't really feel like it atm ;)
No problem... I tried it... But it doesn't work properly...☺

Sent from my SM-G920F using Tapatalk