Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,145 Members 44,604 Now Online
XDA Developers Android and Mobile Development Forum

[DPI] Dialer, MusicPlayer, Calc, FM, Camera + GUIDE +utility(kinda)

Tip us?
 
xan
Old
(Last edited by xan; 11th January 2011 at 11:29 PM.)
#1  
xan's Avatar
Recognized Developer - OP
Thanks Meter 456
Posts: 1,399
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
Default [DPI] Dialer, MusicPlayer, Calc, FM, Camera + GUIDE +utility(kinda)

Hello, you all know that when you change screen density in build.prop a problem with some apps appears.

[MultiDPI]GalaxySpack-CWM.zip contains Dialer, Music Player, FMRadio, Calculator
all modded to support multiple DPI
You can just flash this via CWM or extract individual APKs and replace them in /system/apk/
Newest: Camera.apk
Video Player
How to do it yourself? (example on DialerTabActivity.apk)
* its quite easy, if you want do fix any app you need to know how to edit .xml files, have some basic knowledge about android layout files. If you just want to repack Dialer its easier, because I supply the layout file you just need to recompile the file with apkmanager replacing one of layout files
- download layout_resize.zip file attached (you are welcome to improve the app);
- download APK Manager;
*optional step, not sure if its needed: get framework files from your device and goto apk_manager_4.9\other and install framework files:
Code:
java -jar apktool.jar if "[dir]\apk_manager_4.9\twframework-res.apk"
Code:
java -jar apktool.jar if "[dir]\apk_manager_4.9\framework-res.apk"
- copy DialerTabActivity.apk from your device to "\apk_manager_4.9\place-apk-here-for-modding"
- start script.bat and select decompile apk (if it doesnt work you probably need to do optional step and then try with dependencies, skipping part where it asks for apks)
* now there comes my small commandline java utility - it resizes (replaces hardcoded dip values with 1,5 times bigger rounded px values) layouts in files passed by commandline.
-copy .xml files you want to modify to its dir;
-invoke by (or just use convert_all.bat, now working, thanks Einride!) (windows!):
Code:
for /f %a IN ('dir /b *.xml') DO call java LayoutResizer %a
(idk why resize_all.bat doesnt work)
- modified files are in converted directory, you need to copy them over files in apk_manager_4.9\res\

- hit compile apk
- select yes for system apk and yes for min # of errors
- delete \apk_manager_4.9\keep\resources.arsc and \apk_manager_4.9\keep\res\layout\dialer_app.xml (and any other xml file corresponding to one you have modified
- hit any key
- the apk you need to copy back to your phone is \apk_manager_4.9\place-apk-here-for-modding\unsignedDialerTabActivity.apk

If any rommakers would like to include these apks feel free to do so
Also you are welcome to fix remaining apps including:
-clock
-calendar
-allshare


kudos:
APKTOOL + SIGNAPK authors
APKMANAGER author
Attached Files
File Type: apk TouchWizCalculator.apk - [Click for QR Code] (494.4 KB, 1072 views)
File Type: apk DialerTabActivity.apk - [Click for QR Code] (935.7 KB, 731 views)
File Type: zip dialer_app.zip - [Click for QR Code] (1.5 KB, 858 views)
File Type: zip [MultiDPI]GalaxySpack-CWM.zip - [Click for QR Code] (7.23 MB, 1832 views)
File Type: zip layout_resize.zip - [Click for QR Code] (5.2 KB, 1020 views)
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
The Following 20 Users Say Thank You to xan For This Useful Post: [ Click to Expand ]
 
ragin
Old
#2  
ragin's Avatar
Senior Member
Thanks Meter 151
Posts: 1,724
Join Date: Dec 2007
Location: Hubli
Quote:
Originally Posted by xan View Post
Hello, you all know that when you change screen density in build.prop a problem with some apps appears. On my first attempt to correct that:
Modded TW calculator (which i kinda like), to work with 200dpi density.
It may not be pixel perfect but hell it works

kudos:
APKTOOL + SIGNAPK authors
So, this is for people who change the screen density to 200 dpi, right?
if you like what I say, there is always a THANKS button below.

Super Sexy
GALAXY Note
 
Jumba
Old
#3  
Jumba's Avatar
Senior Member
Thanks Meter 514
Posts: 1,040
Join Date: Nov 2008
Location: Johannesburg

 
DONATE TO ME
This is a great idea! Do you take requests?
Please request permission before using any of my work in your own released themes!
-----
Android: NXG Icons for MIUI - NeonGT for Froyo - NeonGT, NeonBT and NeonRT for MIUI - ANGL for MIUI

WinMo: Blue Steel for Manila2Dv2 WQVGA - Skins for JMLToday - I C Thru U
-----
 
KLoNe1
Old
#4  
KLoNe1's Avatar
Senior Member
Thanks Meter 84
Posts: 578
Join Date: Jun 2010
Location: Brisbane

 
DONATE TO ME
Such a great idea! I'm on 170 density, but i'll give this a go anyway.
You'll become loved if you end up doing this to all the apps that don't scale correctly!

Sent from my GT-I9000 using XDA App



CLICK ABOVE TO SEE MY THEME



CLICK ABOVE TO SEE MY INSTALL
 
torres76
Old
#5  
torres76's Avatar
Senior Member
Thanks Meter 60
Posts: 596
Join Date: Apr 2010
Location: Reading
The dialler is the main one.

Sent from my GT-I9000 using XDA App
 
kevnangel
Old
#6  
Member
Thanks Meter 1
Posts: 51
Join Date: May 2010
Hello,

How do you change the screen density?
 
torres76
Old
#7  
torres76's Avatar
Senior Member
Thanks Meter 60
Posts: 596
Join Date: Apr 2010
Location: Reading
Quote:
Originally Posted by kevnangel View Post
Hello,

How do you change the screen density?
Hi you have to be rooted download lcddensity from the market.
 
xan
Old
(Last edited by xan; 7th December 2010 at 12:12 PM.)
#8  
xan's Avatar
Recognized Developer - OP
Thanks Meter 456
Posts: 1,399
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
Yes, this is for those who changed density to 200 or less (still looks better than stock one).

This was just a proof of concept, the main aim is to mod Phone.apk. At this stage I'm able to repack it, but due to its complexity and the fact its system apk, I'm doing something wrong. This needs more time, but I will try to figure it out today.

And yes, Samsung's layout files are a mess. Phone.apk >40 layout files.

No requests, since its kind of time demanding task, you can post list of STOCK apps that dont scale well for reference. After I'm done with Phone I'll write some guide.
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
 
DistortedWisdom
Old
#9  
DistortedWisdom's Avatar
Senior Member
Thanks Meter 27
Posts: 157
Join Date: Oct 2010
Location: Jeddah
Thanks for the great modification. I tried to onstall it on my Galaxy tab and it actually worked. Not perfect for the tab but Hey it works atleast, however, it keeps forcing close everytime i try to go landsacpe! It would be excellent if you would fix this cheers
 
RambJoe
Old
#10  
RambJoe's Avatar
Senior Member
Thanks Meter 18
Posts: 370
Join Date: Jul 2010
Any screenshots of how the phone looks with a different DPI?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes