• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [TUT] Advance Framework Edit

suhel28

Android Enthusiast
things you'll need

  1. APK MANAGER
  2. 7zip


DESCRIPTION :

Q : Basic
A : The icons are stored in the Drawable-mdpi folder in the framework.
these icons are linked to XML's in Drawable folder
if you just add the icons and don't change the xml, you'll get nothing.

Q : Why Cant we just Edit the XML files?
A : The XML files are encrypted. if you try to edit it you will get weird characters.

Q : No XML No Edits, Are we Done?
A : Yes, No XML No Edits. But we've a walkaround. The APK MANAGER
it decompiles the apk and unencrypts the xml file.

BASIC :



  1. Extract the contents of APK MANAGER to any folder
  2. you'll have few folders
  3. place your apk in the place-apk-here-for-modding folder
  4. open Script.bat
  5. and chose option to decompile and minimize
  6. it will create a folder namely PROJECTS
  7. now you can edit the xml files
  8. after your done, maximize the apkmanager window and choose comiple apk


HOW TO ADD MORE PNGS :

if you want to add pngs like the battery percentage you'll need to link the png to the xml file
this can be done by two ways

1. assigning resource_id
&
2. directly putting in the names

the 1st method is easy but complex so forget it

the second method is simpler.

just find the xml file corresponding to the png and than simply add the name.

for eg.

stat_sys_battery.xml is the battery status xml.

<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
here the
android:drawable is the android code
and
@drawable/stat_sys_battery_* is the file location

check the attachment for better understanding

THE PROBLEM & THE SOLUTION :

if you try to edit any modded framework file you'll get error while compiling.
and your phone will hang if you use that file.

SOLUTION

instead of using modded file. use the STOCK framework. Edit your files and compile your apk
now when you compile it, it will give you few options

1. is it a system file [y/n]
choose yes
2. (...blah blah.. do you wish to keep files)
choose yes


now it will extract the stock (unedited) framework in a KEEP folder
minimize the window

open the folder and delete all the files you modified.
if you had modified xml file you'll also need to delete resources.asrc

now maximize the apkmanager window and press any key.

your modded apk will be compiled in the place-apk-here-for-modding folder

PS : IT WOULD BE UNSIGNED


LAST STEP :

open the compiled unsigned apk and extract all the files you edited (including resources.asrc)
simply replace these files in the framework-res.apk you wanted to mod

only part to take care is the resources.asrc file you don't have to replace it directly

do this steps for replacing resources.asrc

1. right click the resources.asrc
2. select add to archive
3. archive format zip
4. compression method Store
5. select the path of your framework-res.apk


I know this all seems way to complex but if you read carefully and do it step by step, its all easy as a PIE
 

Attachments

Hey nice to see something new :) Thx Suhel

OT : Is it possible to change the font in our phone ? :)
 
Hey nice to see something new :) Thx Suhel

OT : Is it possible to change the font in our phone ? :)

darn easy,

pick any font you want rename it to the name of the fonts in /system/fonts (don't remember the path but would be there somewhere)
 
/assets ? i dont have this folder in root of my device o.O

I found many fonts in /system/fonts ...
 
Sorry m8, you're right. I was talking about framework. You have to replace all or almost all. Is it easier to wait fir answers here instead of opening 11 font files? Of course it is! :-)
 
Sorry m8, you're right. I was talking about framework. You have to replace all or almost all. Is it easier to wait fir answers here instead of opening 11 font files? Of course it is! :-)

Try playing with the fonts..
Not everything can be spoonfeeded lol

You may have the same font with different names ;-)
 
Lets have an example.
Ginger v3 theme in /assets/fonts there are two files :) I want to change them for basic helvetica font ...
I rename helvetica.ttf for those two files. How to compile it back as an working .apk ?
 
Lets have an example.
Ginger v3 theme in /assets/fonts there are two files :) I want to change them for basic helvetica font ...
I rename helvetica.ttf for those two files. How to compile it back as an working .apk ?


No lol..

Rename helblabla.ttf to the font name in the /system/fonts
 
Lol but there are too many of them :/ I don't know what font is being used atm. :confused:


All of them..lol
Just have a backup of original..
What's wrong in trying you can always switch back to original

EDIT : ok enough of playing, you need to change the DROIDSANS.TTF & DROIDSANSBOLD.TTF (not sure about the name but must be having the text bold in it)
make sure you've the bold version of the font you want to replace (normally they are available along with the font )
 
20110128225212.png


Downloaded a random font and replaced only Droidsans.Ttf
 
Back
Top Bottom