Jump to content


Photo

Change DPI or font size of a decompiled apk

- - - - -

  • Please log in to reply
18 replies to this topic

#1
vNa5h

vNa5h

    Addict

  • Members
  • PipPipPipPipPip
  • 774 posts
  • Gender:Male
  • Location:India
  • Devices:Dell XCD35 (ZTE Blade)
Is there any way to change the dpi or font size of a particular app...

like for eg the font size on the google currents app is too big ...
and the whole feed is not readable we have to touch the feed to read the content...

so is there any way to decompile the apk and edit some values to change the dpi/font size

  • 0

Dell XCD35 a.k.a ZTE Blade a.k.a Orange San Fransisco

Powered by

CM10.1 KonstaKANG, Soundmagic PL11 earphones, Samsung class 6 16GB



Apps installed

TV Shows / Movies .....I have watched....


#2
96frozen

96frozen

    Enthusiast

  • Members
  • PipPipPip
  • 159 posts

Is there any way to change the dpi or font size of a particular app...

like for eg the font size on the google currents app is too big ...
and the whole feed is not readable we have to touch the feed to read the content...

so is there any way to decompile the apk and edit some values to change the dpi/font size


AFAIK only Paranoid Android does that, and if you're going say that the ROM isn't updated with the latest patches by daemond, ganster and KonstaT ask zeelog to kindly update his ROM.

  • 0
ROM: CM10 by KonstaT

CWM: GEN2 CWM 6.0.1.1 by Snap.IT

Thank all of the developers topics, rate them 5 stars, they are the people who are keeping your cellphone alive.

Thanks to KonstaT, Snap.IT, tilal6991, daemond, Ganster (this guy is specially awesome for fixing OMX on 4.x ROMS), burstlam and many others that I can't think of right now :D

#3
gourav35

gourav35

    Regular

  • Members
  • PipPip
  • 105 posts
  • Gender:Male
  • Location:Mumbai IND
  • Devices:Dell XCD35
or go for pacman rom its updatated

  • 0

#4
vNa5h

vNa5h

    Addict

  • Members
  • PipPipPipPipPip
  • 774 posts
  • Gender:Male
  • Location:India
  • Devices:Dell XCD35 (ZTE Blade)
No the update for pa is not possible since pa has gone aosp way...

  • 0

Dell XCD35 a.k.a ZTE Blade a.k.a Orange San Fransisco

Powered by

CM10.1 KonstaKANG, Soundmagic PL11 earphones, Samsung class 6 16GB



Apps installed

TV Shows / Movies .....I have watched....


#5
elrond_bs

elrond_bs

    Diehard

  • Members
  • PipPipPipPip
  • 386 posts
  • Gender:Male
  • Devices:ZTE Blade
Decompile the app, search carefully all .xml files for font info and you may find a way. Don't try this if you don't know how to properly compile/decompile, you could mess things badly.

You can't expect someone else to do your work and experiment. Besides every app is different and we are not the authors to tell you what is possible.
You could simply ask the author to include such option.

Edited by elrond_bs, 23 January 2013 - 04:06 AM.

  • 0

ZTE Blade with CyanogenMod 11 (Android 4.4.4 KitKat)


#6
96frozen

96frozen

    Enthusiast

  • Members
  • PipPipPip
  • 159 posts
http://www.modaco.co...pdated-2012013/

Has the latest patches available for our device, and implements that function you need easily :P

  • 0
ROM: CM10 by KonstaT

CWM: GEN2 CWM 6.0.1.1 by Snap.IT

Thank all of the developers topics, rate them 5 stars, they are the people who are keeping your cellphone alive.

Thanks to KonstaT, Snap.IT, tilal6991, daemond, Ganster (this guy is specially awesome for fixing OMX on 4.x ROMS), burstlam and many others that I can't think of right now :D

#7
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III
just check text height from styles.xml
but i am not sure is it styles xml,,,, where you can find the text height

  • 0

#8
vNa5h

vNa5h

    Addict

  • Members
  • PipPipPipPipPip
  • 774 posts
  • Gender:Male
  • Location:India
  • Devices:Dell XCD35 (ZTE Blade)
finally got time to get my hands dirty...

narrowed to the xml which stores text size...
its dimens.xml...

now to figure out which textsize to edit...
Spoiler

  • 0

Dell XCD35 a.k.a ZTE Blade a.k.a Orange San Fransisco

Powered by

CM10.1 KonstaKANG, Soundmagic PL11 earphones, Samsung class 6 16GB



Apps installed

TV Shows / Movies .....I have watched....


#9
vNa5h

vNa5h

    Addict

  • Members
  • PipPipPipPipPip
  • 774 posts
  • Gender:Male
  • Location:India
  • Devices:Dell XCD35 (ZTE Blade)
guys any idea how to change the default appdata storage...
\data\data\com.google.android.apps.currents
to
sdcard\data\com.google.android.apps.currents

coz currents stores both cache and data to internal mem...which takes a whopping 100-150mb itself

can i change some vaules to make it store in the sdcard instead.....

  • 0

Dell XCD35 a.k.a ZTE Blade a.k.a Orange San Fransisco

Powered by

CM10.1 KonstaKANG, Soundmagic PL11 earphones, Samsung class 6 16GB



Apps installed

TV Shows / Movies .....I have watched....


#10
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III

just check text height from styles.xml
but i am not sure is it styles xml,,,, where you can find the text height

finally got time to get my hands dirty...

narrowed to the xml which stores text size...
its dimens.xml...

now to figure out which textsize to edit...

Spoiler

just change every text_height line value to you want(set less height if you want smaller text,,

  • 0

#11
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III

guys any idea how to change the default appdata storage...
\data\data\com.google.android.apps.currents
to
sdcard\data\com.google.android.apps.currents

coz currents stores both cache and data to internal mem...which takes a whopping 100-150mb itself

can i change some vaules to make it store in the sdcard instead.....

the data save dir could be set on bools.xml(if there if xml called bools.xml, not sure.
if you have problems post your framework-res and currents apk, i can maybe change the textsize and data dir location :)

  • 0

#12
vNa5h

vNa5h

    Addict

  • Members
  • PipPipPipPipPip
  • 774 posts
  • Gender:Male
  • Location:India
  • Devices:Dell XCD35 (ZTE Blade)
heres the res/values/bools.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="abs__action_bar_embed_tabs">false</bool>
<bool name="abs__split_action_bar_is_narrow">true</bool>
<bool name="abs__action_bar_expanded_action_views_exclusive">true</bool>
<bool name="abs__config_showMenuShortcutsWhenKeyboardPresent">false</bool>
<bool name="abs__config_actionMenuItemAllCaps">true</bool>
<bool name="abs__config_allowActionMenuItemTextWithIcon">false</bool>
<bool name="enable_trending">true</bool>
<bool name="enable_translate">true</bool>
<bool name="is_magazines">false</bool>
<bool name="crash_report_on_uncaught_exception">true</bool>
<bool name="dump_hprof_on_uncaught_exception">false</bool>
<bool name="beep_on_c2dm">false</bool>
<bool name="enable_synced_files_update">true</bool>
<bool name="enable_youtube_from_subscriptions">false</bool>
<bool name="enable_c2dm_new_app_notification">false</bool>
<bool name="enable_developer_options">false</bool>
<bool name="enable_magazines_outline_mode">true</bool>
</resources>

no such value for appdata path

  • 0

Dell XCD35 a.k.a ZTE Blade a.k.a Orange San Fransisco

Powered by

CM10.1 KonstaKANG, Soundmagic PL11 earphones, Samsung class 6 16GB



Apps installed

TV Shows / Movies .....I have watched....


#13
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III
i will decompile it myself and look,,,,

  • 1

#14
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III
i cant see where can be the data dir changed, maybe its smali, but i cant edit smali.
have you changed the textheight already?

  • 0

#15
vNa5h

vNa5h

    Addict

  • Members
  • PipPipPipPipPip
  • 774 posts
  • Gender:Male
  • Location:India
  • Devices:Dell XCD35 (ZTE Blade)
i th

guys any idea how to change the default appdata storage...
\data\data\com.google.android.apps.currents
to
sdcard\data\com.google.android.apps.currents

coz currents stores both cache and data to internal mem...which takes a whopping 100-150mb itself

can i change some vaules to make it store in the sdcard instead.....



i think the best option would be to use this app
http://forum.xda-dev...d.php?t=1410262
for appdata...

  • 0

Dell XCD35 a.k.a ZTE Blade a.k.a Orange San Fransisco

Powered by

CM10.1 KonstaKANG, Soundmagic PL11 earphones, Samsung class 6 16GB



Apps installed

TV Shows / Movies .....I have watched....


#16
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III
Just use s2e. Its handy and it will mount every partition to your sdcard.

  • 0

#17
vNa5h

vNa5h

    Addict

  • Members
  • PipPipPipPipPip
  • 774 posts
  • Gender:Male
  • Location:India
  • Devices:Dell XCD35 (ZTE Blade)

Just use s2e. Its handy and it will mount every partition to your sdcard.


if i use s2e to move all app,dalvik,data then there would be nothing on internal mem :P...
btw i have 280mb internal mem

besides moving data to ext wouldnt be healthy for sdcard(again this can be a myth)

Edited by vNa5h, 27 January 2013 - 05:11 PM.

  • 0

Dell XCD35 a.k.a ZTE Blade a.k.a Orange San Fransisco

Powered by

CM10.1 KonstaKANG, Soundmagic PL11 earphones, Samsung class 6 16GB



Apps installed

TV Shows / Movies .....I have watched....


#18
vNa5h

vNa5h

    Addict

  • Members
  • PipPipPipPipPip
  • 774 posts
  • Gender:Male
  • Location:India
  • Devices:Dell XCD35 (ZTE Blade)

guys any idea how to change the default appdata storage...
\data\data\com.google.android.apps.currents
to
sdcard\data\com.google.android.apps.currents

coz currents stores both cache and data to internal mem...which takes a whopping 100-150mb itself

can i change some vaules to make it store in the sdcard instead.....


found out another way to use mount -o bind in init.d...,
still couldnt find nothing to change in app

  • 0

Dell XCD35 a.k.a ZTE Blade a.k.a Orange San Fransisco

Powered by

CM10.1 KonstaKANG, Soundmagic PL11 earphones, Samsung class 6 16GB



Apps installed

TV Shows / Movies .....I have watched....


#19
peetu20

peetu20

    Addict

  • Members
  • PipPipPipPipPip
  • 927 posts
  • Gender:Male
  • Location:Finland
  • Devices:Zte Blade, Zte Blade III
I dont know, i have moved all data to sd with my cm10...
But play with s2e and u wont get problems with data space:)

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users