change dpi of an APK - Galaxy Note II, Galaxy S III Developer Discussion

hello
how can I change the dpi of a decompiled apk?
thanks

simply install the apk over and use exposed framework modules called AppSettings and you will be able to change the dpi of every apk in ur phone

chiujiewei said:
simply install the apk over and use exposed framework modules called AppSettings and you will be able to change the dpi of every apk in ur phone
Click to expand...
Click to collapse
yes I know that I can use Xposed,
but how can I change the apk decompiled without depending on Xposed?

sp3600 said:
hello
how can I change the dpi of a decompiled apk?
thanks
Click to expand...
Click to collapse
Hey mate, not sure if its possible without xposed, I think I remember reading that It through xposed via the apps main activity triggering per-app settings to change the dpi when that app opens..

Related

[APP][Xposed] Per app DPI for all apps, Volume Skip Track, Status Bar Tweaks & more

[APP][Xposed] Per app DPI for all apps, Volume Skip Track, Status Bar Tweaks & more
Great News: Xposed Installer now supports Galaxy S4​
Galaxy S4 has a nice 5 inch display. But having phoneUI in all the apps doesn't justify the screen size. With Xposed App Settings you can change layout and density of each app to tabletUI or PhabletUI whatever your preferences are.
I have tried it on Stock Rom. So it should probably work with every rooted ROM ODEX or DEODEX.
How to Install
1. Make a Nandroid Backup. (Just in case you mess up any system file)
2. Download the XposedInstaller 2.1.4 apk and install it. Launch it and grant it root permissions. Then press Install/Update button. Then reboot.
3. Download the Per App Density Setting apk and install it.
4. Launch the Xposed Framework App then in the module tab, enable the Per App Density Module. Then reboot.
5. Launch the Per App Settings app and there you can now set per app density for all apps listed.
Galaxy S4 has a default dpi of 480, So if you want phabletUI for any app then set dpi to 320-380 and layout to 800x1080. For tabletUI try dpi value from 180-240.
I have tried phabletUI for some google apps like Playstore, Gmail and Google Now. You can try various settings and keep whatever suits you best.
I will share some settings I have tried later tonight.
Note: You can also try it with Multi DPI Stock apps shared by bala_gamer.
If not using above Multi DPI apps then don't try these settings with Samsung apps. for now. You will just end up with weird layout.
More Tweaks Here: For more tweaks like volume button skip music, status bar tweaks and many many more check out this thread!! It says that its only for At & T version but I have tested it on my I9500 its working fine.
I am just sharing cool stuff I find in this forum and I don't take any responsibility for any damage to your phone. So whatever mods you apply, always make a NANDROID Backup
Thanks to rovo89 and tungstwenty for Xposed Framework and Per App Settings. And special thanks to xperiacle, I have been using his mods in my Galaxy Note and if it wasn't him then maybe I wouldn't find this amazing app.
You can also use the smiley replacer.apk with the xposed app installer
Sent from my GT-I9505 using xda premium
---------- Post added at 06:24 PM ---------- Previous post was at 06:22 PM ----------
saywhatt said:
You can also use the smiley replacer.apk with the xposed app installer
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
Oh and your per app density settings link leads us to the xposed app
Sent from my GT-I9505 using xda premium
saywhatt said:
Oh and your per app density settings link leads us to the xposed app
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
Links Corrected
@op add thsi in OP as this module work fine on I9500 as well and no need for any other mods! It does all the job including volume skip for music mod as well! - Link
grgsiocl said:
@op add thsi in OP as this module work fine on I9500 as well and no need for any other mods! It does all the job including volume skip for music mod as well! - Link
Click to expand...
Click to collapse
Will test first and ask for his permission.
That is working great, many thanks.
Just trying to mod notification bar any advise what to select within the app list ?
Thanks again.
and what about sammys apps (TW launcher, camera, galery, lock screen)...they have always troubles with changing DPI
This works great now I wont be missing my note 2 :thumbup:
Sent from my GT-I9500 using xda premium
Doume said:
That is working great, many thanks.
Just trying to mod notification bar any advise what to select within the app list ?
Thanks again.
Click to expand...
Click to collapse
You can't just edit notification bar dpi. For that you will have to change DPI of your phone. But Stock Samsung apps won't fit properly if you change Phone's DPI. You can find more information about changing phone's DPI here
kultus said:
and what about sammys apps (TW launcher, camera, galery, lock screen)...they have always troubles with changing DPI
Click to expand...
Click to collapse
I wish there were PhabletUI Samsung apps available. But if you want to change just the dpi and not layout then read the OP. There's a link for some Multi-DPI stock apps. And for the TabletUI of stock apps lets wait for 4.2.2 updates for bigger devices like Tab, Note 10.1, Note 8 so that we can try pulling apks from them.
Installed and working fine
is it possible to change phone DPI to custom and set app specific density for samsung apps? will this kind of layout works ?
Yes I know about it im using it from SGS3 and for SGS4 waiting only for modded TW launcher, thats why I was so curious if this will handle it without the need to use modded multiDPI apps. Nevermind as the multi TW launcher will be avaible I wont need Xposed. THX for reply anyway enjoy it
pawandeep said:
Installed and working fine
is it possible to change phone DPI to custom and set app specific density for samsung apps? will this kind of layout works ?
Click to expand...
Click to collapse
No it's more tricky with Samsung apps. If you want for example 320 dpi for Contacts app then first you need a contacts app of 320 dpi and then you can change density from this app, just changing phones dpi won't do it. You can find some of these apps in another thread called Multi-DPI Samsung apps. Check op for the link.
You can also try to pull apps from another phones like gs3 or note which have different dpi but I'm not sure about their compatibility with 4.2.2 roms.
Sent from my GT-I9500 using Tapatalk 2
i've tried the NottachXposed and it's fully working on my GT-I9505
shubh961 said:
Galaxy S4 has a default dpi of 480, So if you want phabletUI for any app then set dpi to 320-380 and layout to 800x1080. For tabletUI try dpi value from 180-240.
Click to expand...
Click to collapse
the layout 800x1080 doesnt exist here.. just 800x1280 ... how to get x1080 pls?
saywhatt said:
i've tried the NottachXposed and it's fully working on my GT-I9505
Click to expand...
Click to collapse
tried this too, but i dont get my keyboard matching tried stock and swiftkey... all @ 320dpi @ screen (dpi) 800x1280
ChilliBo said:
tried this too, but i dont get my keyboard matching tried stock and swiftkey... all @ 320dpi @ screen (dpi) 800x1280
Click to expand...
Click to collapse
i didn't try on the dpi mod though :silly: but everything else worked fine
Is there any available CRT-Off Mod for this?
Sent from my GT-I9500
ChilliBo said:
the layout 800x1080 doesnt exist here.. just 800x1280 ... how to get x1080 pls?
tried this too, but i dont get my keyboard matching tried stock and swiftkey... all @ 320dpi @ screen (dpi) 800x1280
Click to expand...
Click to collapse
Sorry typing mistake, its 800x1280 only
Paolonicus said:
Is there any available CRT-Off Mod for this?
Sent from my GT-I9500
Click to expand...
Click to collapse
As for now no, but will share it as soon as I find it.
Hmm .. I wanted to see what happens if I toggle tablet to phone mode for the email client .. but I don't see an option to do this. Am I missing something?
Tested... and works pretty good on GTi9500
im on Doc Rom v2.2 + themed + 3minutes framework
running 3 mods/modules
- App Setting
- Modaco Toolkit
- nX (notach xposed)
hope to see more like crt mods!

(CustomKeyboard) Inverted Stock With Sound Mods (SamsungIME.apk)

must have root/root browser
change attachment file name to SamsungIME.apk
replace system apps at /system/apps
change permissions to rw-r-r--
change ownerships to :root, :root
reboot
ENJOY!!!
Download--
https://drive.google.com/file/d/0B_Z9LO7EjUxcTm5wMjZGejZPYkE/edit?usp=sharing
What are the sound mods?
Sent from my SAMSUNG-SM-N900A using xda app-developers app
Thank you very much I love it
derekmurray said:
must have root/root browser
change attachment file name to SamsungIME.apk
replace system apps at /system/apps
change permissions to rw-r-r--
change ownerships to :root, :root
reboot
ENJOY!!!
Download--
https://drive.google.com/file/d/0B_Z9LO7EjUxcTm5wMjZGejZPYkE/edit?usp=sharing
Click to expand...
Click to collapse
Can you instruct me on how to theme a keyboard?
DustinKimble said:
Can you instruct me on how to theme a keyboard?
Click to expand...
Click to collapse
Decompile the apk on the computer. You need the Android sdk and java sdk. Go to the resources folder go to the drawable folders. Change the .pngs to your liking and then recompile the apk and you're good to go =)
Anyway to turn the sound up a little bit
It's a trap!!
Thanks for this
I want this keyboard on my custom ROM. Will this work if I put the api in the root directory or is this only for stock rom?
What ROM versions is this compatible with?
D150shorty said:
What ROM versions is this compatible with?
Click to expand...
Click to collapse
Doesnt work with the NC2 roms i tryied it
Doesn't work on Sprint s5 port moar rom

Need to know which apk to edit

Hi guys need help
Iam using Xperia C with latest update. I was able to deodex my rom & changing the settings to white. With lot's of search here on xda to deodex & change the settings to white. but where to find this apk or file to change it to white.
Xenon1978 said:
Hi guys need help
Iam using Xperia C with latest update. I was able to deodex my rom & changing the settings to white. With lot's of search here on xda to deodex & change the settings to white. but where to find this apk or file to change it to white.
Click to expand...
Click to collapse
first of all you have to make a complete deodexed rom
coz in odex rom you cant just change an apk having odex file with it
here i think every one is trying to deodex whole rom
if you are done with it then install rom and then
go to system/app
chauhanjayc said:
first of all you have to make a complete deodexed rom
coz in odex rom you cant just change an apk having odex file with it
here i think every one is trying to deodex whole rom
if you are done with it then install rom and then
go to system/app
Click to expand...
Click to collapse
Thanks
I have already deodexed rom completely.
where to look to change to white settings for call settings/Xperia settings/Phone rongtone settings.
Xenon1978 said:
Thanks
I have already deodexed rom completely.
where to look to change to white settings for call settings/Xperia settings/Phone rongtone settings.
Click to expand...
Click to collapse
Please share white settings.apk file with us. Thank you
TacoNikky said:
Please share white settings.apk file with us. Thank you
Click to expand...
Click to collapse
uploaded settings.apk.
Xenon1978 said:
uploaded settings.apk.
Click to expand...
Click to collapse
Thanks a lot mate ) i was waiting this for a long time. You are king mate i appreciate you :good:
Xenon1978 said:
Hi guys need help
Iam using Xperia C with latest update. I was able to deodex my rom & changing the settings to white. With lot's of search here on xda to deodex & change the settings to white. but where to find this apk or file to change it to white.
Click to expand...
Click to collapse
You helped me, then i help you
I have found white Xperia settings, just change SemcSettings.apk in system/app folder.
Here you go
Edit: White background themes picker is added.
Xenon1978 said:
Hi guys need help
Iam using Xperia C with latest update. I was able to deodex my rom & changing the settings to white. With lot's of search here on xda to deodex & change the settings to white. but where to find this apk or file to change it to white.
Click to expand...
Click to collapse
thanks alot for sharing the apk file.can you please tell us how did you deodex the rom without cwm please...thanks
TacoNikky said:
You helped me, then i help you
I have found white Xperia settings, just change SemcSettings.apk in system/app folder.
Here you go
Edit: White background themes picker is added.
Click to expand...
Click to collapse
Thanks
have tried it its not working SemcSettings
rocker00 said:
thanks alot for sharing the apk file.can you please tell us how did you deodex the rom without cwm please...thanks
Click to expand...
Click to collapse
ok I will post it later today
Posted here
How to Deodex Xperia C Stock rom JB 4.2.2 B# 16.0.B.2.6 without cwm
Xenon1978 said:
Thanks
have tried it its not working SemcSettings
Click to expand...
Click to collapse
It worked on my device. Here are the screenshots
Xenon1978 said:
Hi guys need help
Iam using Xperia C with latest update. I was able to deodex my rom & changing the settings to white. With lot's of search here on xda to deodex & change the settings to white. but where to find this apk or file to change it to white.
Click to expand...
Click to collapse
I tried to change background of settings application and I found that it cannot be changed through settings.apk. There is another way of doing that.
Decompile "SemcGenericUxpRes.apk" present in framework folder.
then go to
res>>drawable-hdpi>> here you will find a file named "semc_bg_tile.png">> replace that file with whatever background you want
then go to
res>>drawable-hdpi-960x540>> here you will find a file named "semc_bg_tile.png">> replace that file with whatever background you want
then go to
res>>drawable-mdpi>> here you will find a file named "semc_bg_tile.png">> replace that file with whatever background you want
Recompile "SemcGenericUxpRes.apk" and place it in framework folder.
By doing this you can create Custom Backgrounds in Settings!
Another alternative is to install Xposed Framework and the Holo Themer module.

Any way to theme phones any more?

I've been trying to skin my phone and run into a problem I can't seem to theme where the navigation bar is Eg using uccw you can't place nothing or when using docks on launchers it places a rectangle that stops above nav bar. I know with lollipop there is no xposed framework
Sent from my Nexus 5
You decompile the apk packages, change what you want and recompile.
Lethargy said:
You decompile the apk packages, change what you want and recompile.
Click to expand...
Click to collapse
There is no need to decompile and recompile. You can just copy/paste same named png-s in .apk/res/drawable nodpi or drawable xxhdpi for our device. That works for all apps from factory image.
Regards, Zagor
Is it possible to theme nav from homescreen only so I can give it its own background
Sent from my Nexus 5
zagorteney said:
There is no need to decompile and recompile. You can just copy/paste same named png-s in .apk/res/drawable nodpi or drawable xxhdpi for our device. That works for all apps from factory image.
Regards, Zagor
Click to expand...
Click to collapse
Recompilation is required to edit things like XML. Signing properly is also important.
Lethargy said:
Recompilation is required to edit things like XML. Signing properly is also important.
Click to expand...
Click to collapse
Whith respecr dear Lethargy! You don't need to decompile and signing properly stock app. For example: if you want to change almost all of UI, you just have to change images in framework-res.apk. You don' t need to do things mentioned before. When I was on Xperia I made this way too UI look like AOSP as possible.
I think that for noob is enough to know that. But off course, if you are UI designer and developer that isn't enough.
Regards, Zagor
zagorteney said:
Whith respecr dear Lethargy! You don't need to decompile and signing properly stock app. For example: if you want to change almost all of UI, you just have to change images in framework-res.apk. You don' t need to do things mentioned before. When I was on Xperia I made this way too UI look like AOSP as possible.
I think that for noob is enough to know that. But off course, if you are UI designer and developer that isn't enough.
Regards, Zagor
Click to expand...
Click to collapse
For replacing a .png it might be okay, but in no way are you going to modify anything else that way. Recompiling is the PROPER way to do it.
So in short someone like me I'm out of luck
Sent from my Nexus 5
tonyt3rry said:
So in short someone like me I'm out of luck
Sent from my Nexus 5
Click to expand...
Click to collapse
If your launcher supports it you can hide the navbar then attempt to use something like Zooper Widget to imitate them on the bottom, but other than that, you have to recompile SystemUI.apk.
Wouldn't I need it for when I'm in apps
Sent from my Nexus 5
tonyt3rry said:
Wouldn't I need it for when I'm in apps
Sent from my Nexus 5
Click to expand...
Click to collapse
Read my post again, I said on the launcher.
Can you tell me what launcher supports it I know if I had pie or what ever it is called I could hide it
Sent from my Nexus 5

Unable to change DPI

Any ideas on how to change DPI? Tried Xposed Module App Settings and TextDroider. Neither make any change to the DPI...
christopherhammer said:
Any ideas on how to change DPI? Tried Xposed Module App Settings and TextDroider. Neither make any change to the DPI...
Click to expand...
Click to collapse
I've always used ROM toolbox for dpi since 2012.
It never has failed me. Obviously must be rooted.
I use a dpi of 500. Then use app settings on xposed to change phone and camera to normalize the dpi to stock so it doesn't look all weird.
Good luck
Haven't tried Rom Toolbox but with App Settings Module not working I am going to end up with stock apps that don't scale correctly....I want to change the DPI per app... not globally, otherwise the stock apps look screwy..
http://forum.xda-developers.com/android/apps-games/app-screen-shift-change-screen-t3138718
christopherhammer said:
Haven't tried Rom Toolbox but with App Settings Module not working I am going to end up with stock apps that don't scale correctly....I want to change the DPI per app... not globally, otherwise the stock apps look screwy..
Click to expand...
Click to collapse
App settings works fine. Are you using xposed? Did you get the app settings lolipop version?
christopherhammer said:
Any ideas on how to change DPI? Tried Xposed Module App Settings and TextDroider. Neither make any change to the DPI...
Click to expand...
Click to collapse
Either you didn't reboot after changing DPI "it's a bug" supposed to do it on the fly, or your xposed setup isn't right.
The stock dpi on the note 5 is perfect. It's the only dpi on any phone that I have not changed
paniro187 said:
The stock dpi on the note 5 is perfect. It's the only dpi on any phone that I have not changed
Click to expand...
Click to collapse
Agree, I only moved it from 560 to 500, not a huge increase compared to 100 to other phones.

Categories

Resources