Вы находитесь на странице: 1из 4

Devices by OS or Manufacturer FIN

PORTAL WIKI IPHONE FORUMS TODAY'S POSTS

Sony Ericsson XPERIA X8 XPERIA X8 Android Development User Name Remem


[TUT] Advance Framework Edit

[TUT] Advance Framework Edit Thread Tools:


THREAD TOOLS SEARCH THIS THREAD
suhel28 25th January 2011, 05:29 PM

[TUT] Advance Framework Edit


Thanks Meter 83

things you'll need

1. APK MANAGER
2. 7zip
Senior Member |OP|

DESCRIPTION :
Posts: 194
Join Date: Oct 2010 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=

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
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.
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 care
it step by step, its all easy as a PIE

Attached Files
stat_sys_battery.zip - [Click for QR Code] (829 Bytes, 80 views)

__________________
no more updates from my side.
kindly don't waste your time replying in my topics.

Last edited by suhel28; 25th January 2011 at 05:32 PM.

The Following 2 Users Say Thank You to suhel28 For This Useful Post: Show/Hide

Previous Thread [TUT] Advance Framework Edit Next Thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Rules

All times are GMT +1. The time now is 08:09 AM.

-- XDA 2010 Follow us on Twitter - Contact Us - Are you a developer?


Copyright xda-developers. XDA-Developers Home - View Forum Leaders - Legacy Devices - Top
Powered by Searchlight 2012 Axivo Inc.

Вам также может понравиться