yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] xavierjohn22:
Ill do it in pc tomorrow and post screenshots, ill be home by 11pm today, if dan, 1982strand is around he can walk you through because he is doing a lot like this and windows animation in framework.

Sent from my HTC Desire

EDIT:

I think this is the one you did wrong, the file to use is the one in the build folder, see steps below

METHOD ONE (MANUAL)

1) Edit the 'status_bar.xml' in _INPUT_APK\SystemUI\res\layout

2) Do a recompile

3) Use the compiled 'status_bar.xml' in _INPUT_APK\SystemUI\build\apk\res\layout

Copy that file in \_CUSTOM_RES\SystemUI\res\layout

4) Do a single build usable

5) Your apk is in \_OUT_APK_ZIPALIGN\

METHOD TWO

After doing your edits in 'status_bar.xml' in _INPUT_APK\SystemUI\res\layout

1) Edit this file in \_CUSTOM_RES\Copy_Resources.txt

2) Add a line (FROM || TO)

SystemUI\build\apk\res\layout\status_bar.xml||SystemUI\res\layout\status_bar.xml

3) [7] Single Recompile

4) [11] Copy_resource.txt to _CUSTOM_RES

5) [8] Single build usable

6) Your apk is in \_OUT_APK_ZIPALIGN\
[Desire Android Development] fshami:
Thanks again for the guide, one silly question that in METHOD_TWO, which folder do i need to use with option 7?_INPUT_APK\SystemUI?
[Desire Android Development] xavierjohn22:
Yes,

With:

[6] Single Decompile = Drag APK in the Window

[7] Single Recompile = Drag the Folder of the APK in Window (e.g. SystemUI for SystemUI.apk, you will not have a SyetemUI folder if you did not Decompile in the first place)
[Desire Android Development] lawsonmh15:
Is there a link to the 3.0 beta???
[Desire Android Development] xavierjohn22:
It's a work in progress, LOL

Will finish tomorrow

This is not updated, but if you wanna try in advance here:

Give it 15 minutes to finish uploading.....

http://www.htcfanboys.com/MIUIXJ/ota/xdaAutoTool_V3.0.0_Beta.rar
[Desire Android Development] lawsonmh15:
Thanks man. Do you have an irc? I have some questions about a few different things that would be quickly solved on chat, not so much through PM or replies.
[Desire Android Development] xavierjohn22:
Just catch me anywhere

Gtalk

Gmail

Yahoo

Skype

Im

All of these my handle is xavierjohn22

Sent from my HTC Desire
[Desire Android Development] lawsonmh15:
Will do.Thanks again man:D
[Desire Android Development] xavierjohn22:
Freaking deodex a full rom bug, i did not know it has been there for a while, LOL

edit:

went back and saw dans post on this. ha ha

Fixed for next release

I think i should put deodex all MIUI Roms all at once, wahahahaha

slowly building next update

Version 3.0.1 (BETA)

9:54 PM 11/3/2011

====================================

- Fixed deodex full rom

- Added xUltimate-d9pc for THEMES

.........................

Debug.print

False
core.jar:core-junit.jar:framework.jar:ext.jar:bouncycastle.jar:javax.obex.jar:com.android.location.provider.jar:core.jar:android.policy.jar:android.test.runner.jar:services.jar:ext.jar:android.policy.jar:sqlite-jdbc.jar:svc.jar:ime.jar:com.android.future.usb.accessory.jar:bmgr.jar:am.jar
JAR DONE
APK DONE
[Desire Android Development] joshndroid:
okay...

I installed autoxda and then tried to decompile my first apk

I registered the oca files all successfull

I keep getting the error 'invalid or corrupt jar file'

I tried searching for the term FAQ in the first page but there is nothing?

I know this is probably very dumb question so excuse the flame

cheers
[Desire Android Development] xavierjohn22:
You installed a framework apk?

apktool.jar in bin folder?
[Desire Android Development] xavierjohn22:
yeah, that is correct, there are many free file compare utility

Winmerge is good

http://www.techsupportalert.com/best-free-file-comparison-utility.htm

for hunting down in smali code

Wingrep
[Desire Android Development] Raffie75:
Thnx, used your link, now i have to translate about 100 lines and than i can try to make my lang pack.

Is it necessary to set the string in the right lane or can i place all the new strings at the end of the line/lane?
[Desire Android Development] xavierjohn22:
Does not matter what line.

You can do putting the last line. But it gets confusing wehn comparing side by side. He he.

For me i match it exactly line by line with the source.
[Desire Android Development] xavierjohn22:
If you got time, can you send me the apk as well, im trying out variety of decompiling by swapping aapt files and apktool jar files
[Desire Android Development] Raffie75:
@XJ Send you a mail with a huge log file, did you see it already?

I have looked at the file and solved a very little (had to delete some *.bak files don't know where they came from).

Here is the "cleaned" log file.

Can you please help me out and tell me what to do to solve the rest of the errors?

thnx
[Desire Android Development] Raffie75:
That 'music_picker' string, i replaced it with <string name="ringtone_picker">Ringtone</string>

*MMS i hope i have deleted and solved the duplicated strings.

*Notes You were right there was something with a strange caracter changed it.

*Gallery Copied the right lane in the right place, you were right again, my NL pack had a wrong line replaced it with the good one.

*framework Think you're right for the 3th time :p ik will look into framwork this evening i think and hope i can find it, at the moment i'm recompiling and checking if my adjustments en changes have worked.

Thnx for now XJ, you're the best :)
[Desire Android Development] Raffie75:
Pfff, It's not gonna work XJ.

When i change this another fault is coming from somewhere else?

Here is the last log.

How can i prevent this kind of errors the next time?

I'm afraid I'll just need to use multilang again :(
[Desire Android Development] Devildog8791:
Here it is. Maybe you can figure this out. I just got through reformatting my computer and setting up all the development tools. I thought maybe that would help (and it was time for some Spring cleaning anyway). I haven't tried to swap out the aapt.exe's yet though.
[Desire Android Development] xavierjohn22:
It is really hard catching errors, the best way is to get the latest EN ZH and compare what has changed and only edit those line by line.

CONTACTS

There is no "otherLabels" string

How did you get to add that, we have never had that in the multi lang.

You can decompile the contacts apk from the multi lang and see the strings.xml

C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Contacts\res\values\public.xml:404: error: Public symbol array/otherLabels declared here is not defined.

FRAMEWORK

also these strings in framework

You can just use the strings.xml in the multi lang,

you might have added something thats not suppose to be there

C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res\values\public.xml:2904: error: Public symbol array/netArbeitAttributes declared here is not defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res\values\public.xml:2905: error: Public symbol array/status_bar_icon_order declared here is not defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res\values\public.xml:2906: error: Public symbol array/usb_modes declared here is not defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res\values\public.xml:4292: error: Public symbol plurals/abbrev_in_num_times declared here is not defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res\values\public.xml:4290: error: Public symbol plurals/abbrev_num_sekonds_ago declared here is not defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res\values\public.xml:4291: error: Public symbol plurals/abbrev_num_times_ago declared here is not defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res\values\public.xml:4288: error: Public symbol plurals/in_num_sekunds declared here is not defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res\values\public.xml:4289: error: Public symbol plurals/in_num_times declared here is not defined.

THE other 3 APKS it is not in the ROM already i removed it

Magicsmoke

livewallpapers,....

visualization..

There is a another way you can start from a clean one,

Decompile the multi lang

Copy all the values-nl for the APKs in a separate folder

Build your structure with only those values-nl, like the way i post it in the sources in the ROM Thread

Then do your edits from there before overwriting it in your working input folder.

That way you know you are starting and building from a working string
[Desire Android Development] affmalg:
Thank you, it worked! I wait for the update ;)

How do you know which xml should be in "build" folder or not?

Where would xmls from the "layout" folder be? And what if i edit some images?

Keep on :)
[Desire Android Development] xavierjohn22:
The build folder will recreate all the res files right? that's the feature of bruts apk tool itself.

Check the build folder, If the layout folder is there, then your edited xml is there. If it is not there, its taken care of tby the resource file.

If you edit some images and you added them by using another folder it will be added in the apk if (number 13 ON, copy added resources)

If you edit some images directly in the folder itself (drawable-hdpi), do the same, place them in _CUSTOM_RES folder same structure, same thing you did with the overwrite xml.

As explained in the OP, _CUSTOM_RES overwrites anything you put in there.
[Desire Android Development] tonymontezuma:
Hi friend

Tks a lot, your system works like a charm to me.

=D
[Desire Android Development] xavierjohn22:
you are welcome my friend, will still add more functions in the future.

Thanks
[Desire Android Development] tonymontezuma:
Xavier

Can I install the flashable zip in any device with MIUI?

Yesterday I build my flashable zip with your files (Desire) and install in my N1, I have only one FC in Google Voice Search, so far my device still fast and smooth, since yesterday.
[Desire Android Development] xavierjohn22:
It can be use in many roms, just make own flashable template (and build.prop and script inside the template)

It's not only for desire
[Desire Android Development] tonymontezuma:
Xavier

Could you help me please?

Where I format phone number?

In Brazil we use this format 0000-0000, but I see on my device 000-000-00

tks
[Desire Android Development] 1982Strand:
Sorry, but couldn't help following your issue a little :)

I downloaded your dropbox.apk and tried decompiling it. didn't work with apktool 1.3.2, but worked fine with 1.3.1

I used AutoAPKTool 1.0.0.2

I didn't do anything with my framework-res - file, i've only decompiled MIUI, so the AutoAPKTool got the framework from this installed. (Don't know if this is relevant)

See the decompile log in the attachments.

I zipped the decompiled dropbox for you also, hope you can use it :)
[Desire Android Development] Kalashnikitty:
So, i have suggested this tool for xda portal.!!!
[Desire Android Development] MvSt:
Hey XJ,

Is it a problem when I offer your programm on my homepage?

I want to write a little How To where i explain de- an recompiling an apk-file for edditing xyz.9.png files

For this I want to use your Tool. It's the easiest way!
[Desire Android Development] xavierjohn22:
No resource,

You did not install a framework apk or it is the wrong framework

You need to understand how apktool.jar works too

In the op,

Follow the quick guide

Before decompiling,

"Install framework"

Decompile systemui.apk

Edits

Recompile systemui.apk

Buuld usable

Sent from my HTC Desire
[Desire Android Development] DaveDH:
Hey Dani , thanks 4 the repley ,

you tell me that i need to understand how apktool works , could you please tell met that ? I tried the help function and it show's that i have to work with an framework-re.apk , but i do not intent to change an framework-res.apk .

just an .apk i took from the market .

*edit* it worked !!!!

i just had to put an framework-res.apk in the same folder , it does actually say it in your eplanaition :D

now i am going to find out how to sign it :P
[Desire Android Development] xavierjohn22:
Yeah. Something like this in laymans term

Like for example in my rom

I have framework-res.apk located in system/framework

I have systemui.apk located in system/app

If i want to decompile the ayatemui.apk and edit it. I would put both framework-res.apk and system.ui apk in _input_apk folder. Then install framework-res first, then decompile system ui, then edit, then recompile, then build.

In the op theres a link to bruts apktool. In bruts thread is the github link which will take you to most of the question and answers there.

Sent from my HTC Desire
[Desire Android Development] mimidudu:
Hi Xavier,

I am new to android system

I'm trying to understand the logic of this wonderful tool.

Got an apk any, and did the following:

1 - Install ...

2 - Decompile ...

3. Recompile ...

I received the following error:

[*] Folder ExtDateWidgetXL

ExtDateWidgetXL.apk recompiling ...

I: Smaling ...

I: Building resources ...

I: Building apk file ...

El sistema no puede encontrar el controlador especificado.

[*] Framework-res folder

recompiling framework-res.apk ...

W: Could not find sources

I: Building resources ...

I: Building apk file ...

El sistema no puede encontrar el controlador especificado.

What could it be?

Thank you
[Desire Android Development] xavierjohn22:
Theres no resource.arsc in framework res, thats fine

Sent from my HTC Desire
[Desire Android Development] firefds:
Hey

I love your xdaAutoTool and it works great for me!!

Just want to ask -

A new smali/baksmali version came out (1.3.0) and it adds a use of a -api-level option for deodexing files lower than ICS version.

so for example if i want to deodex a level 10 API file i need to use the option

-a 10

for smali and baksmali.

The default API level is 14 for ICS.

are you going to implement this in a new release?

thanks!
[Desire Android Development] xavierjohn22:
Sure.

Just point me where the new smali/baksmali are.

Ill have to recode it to make the "a" value variable so it can be change.

Sent from my HTC Desire
[Desire Android Development] firefds:
Great!

Here is the link -

http://code.google.com/p/smali/
[Desire Android Development] firefds:
hey xavier, I have another problem.

If I change xml files that are in the Layout/Drawable/XML/any other folder that is not in resources.arc the changes do not get effected when recompiling.

If I use apk-manager I have an option to delete all the files that I want to update and then it work.

I love your program and it I couldn't find a way to update these files..

Thanks!
[Desire Android Development] xavierjohn22:
Copy_files.txt

Copy_folders.txt

These two files are in the custom_res folder

If the option is enable you can use it to copy those in the build apk

Format is

Source || destination

See example

Sent from my HTC Desire
[Desire Android Development] orlith:
HI XJ

I got perhaps a stupid question asked many times (but i was not able to find some relevant information on it) :

Using Autoapktools 2.03 for building Zip files. When trying to flash I always got "signature verification failed".

I tried to isolate the sign.bat and directly key in the real names of my files, that works fine. I mean no error during signature. But same result when flashing.

If I use another version of Signapk.jar (the one in the zip file) and adding a -w parameter on the command line the error disapears. There is only one "trouble" with this version :all files in the signed zip comes with a date equl to 29/02/2008 instaed of the today's date.

Any idea please ?

any help appreciate (i'm not very used to java)

Thnaks
[Desire Android Development] xavierjohn22:
Ill take look later buddy, im still doing some lockscreen mods. Lol

Sent from my HTC Desire
[Desire Android Development] zabhi:
Recompiling Mms.apk folder...

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(Unknown Source)

... 5 more

Error what happend :mad:
[Desire Android Development] xavierjohn22:
Apktool.yml is there?
[Desire Android Development] zabhi:
Apktool.yml...what is this..?

where to find it:confused:
[Desire Android Development] 3rdstring:
Apktool.yml is created when a app is decompiled. It should be in the top folder of the decompiled app & if it's not there then there were errors in the decompilation process.
[Desire Android Development] zabhi:
Apktool.yml is not there ....:eek:

how to solve this prob..?:confused:
[Desire Android Development] xavierjohn22:
What framework did you use?

What apktool version?

Sent from my HTC Desire
[Desire Android Development] zabhi:
.net framework 4.0

xdaAutoTool 3.0.1

XWKK5 2.3.6
[Desire Android Development] xavierjohn22:
Not that framework.

Framework.apk or framework-res.apk, that kind needs to be installed

Sent from my HTC Desire
[Desire Android Development] zabhi:
framework-res.apk :D
[Desire Android Development] xavierjohn22:
1.

Install frameqork-res

2.

Decompile single apk

Look for yml file, if not there then it would be a problem, or you use.a framework which is wrong

Sent from my HTC Desire
[Desire Android Development] xavierjohn22:
What rom are these apk from?

What apktool version are you using?

And what appt?

Sent from my HTC Desire
[Desire Android Development] brainmaster:
You also need the aapt.exe from the ICS SDK to compile the ICS coded apps, not just the APKTool 1.4.2.
[Desire Android Development] zabhi:
these are samsung galaxy s2 stock odexed 2.3.6 XWKK5 files

i use xdaAutoTool 3.0.1.
[Desire Android Development] firefds:
You need to put twframework-res.apk in input file.

Then you need to press "install other" and choose it.

Then you wont get any errors.
[Desire Android Development] xavierjohn22:
Brut just released 1.4.3

Decompile with it manually to see if you have the right files.

Aapt.exe should match as previously posted.

So if you got errors manually theres something wrong with your apk as well
[Desire Android Development] MishFdM:
Hi xavierjohn22 ^_^

I still have issues with ICS apks (from MIUI ROM), does Autoapktool 2.0.3 work with them ? (for what I read in previous posts it should) Or maybe I'm doing something wrong ?

Thanks in advance :)

PS: we opened a bug report on apktool page http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
[Desire Android Development] xavierjohn22:
Using Ics sdk appt and apktool 1.4.3?

Sent from my HTC Desire
[Desire Android Development] MishFdM:
Yea, if I use apktool 1.4.3 and appt from ICS SDK (outside from autoapktool) I can decompile and rebuild but when I decompile I have broken strings and some formatted="false" tags in the xmls.. And this is not a good thing, especially for people who works on xml translations because is impossible to diffmerge xmls in this way. There is still something wrong.

Edit: still gives me issue rebuildind some apks
[Desire Android Development] xavierjohn22:
Ill Check it out this weekend when i do ics.

Sent from my HTC Desire
[Desire Android Development] MishFdM:
Thank you very much xavierjohn22. Look forward to hearing from you :)
[Desire Android Development] firefds:
The xml issues are an apktool bug. Brut is aware of those bugs and he said they will be fixed in 1.4.4
[Desire Android Development] MishFdM:
Are you sure ? For what I read here http://code.google.com/p/android-apktool/issues/detail?id=267 it seems he has nothing to fix in 1.4.3 version about that issue..
[Desire Android Development] firefds:
Hey,

got another problem.

I'm trying to change an Androidmanifest.xml.

I edited it and tried to put it on the device and it didn't show (even after reboot).

So I just decompiled the apk again and recompiled it back without changes, but I did select "Replace AndroidManifest.xml".

The apk didn't show up again..

I'm using apktool 1.4.3.

Do you think its an apktool bug or something else?

I'm trying to do this on the brut maps apk - http://xdaforums.com/showthread.php?t=1007132
[Desire Android Development] xavierjohn22:
Check all options below copy android manifest

Use the one outputed in out apktool dist zipalign folder

That is the one which have the manifest xml edited

Sent from my HTC Desire
[Desire Android Development] firefds:
thanks for the reply, but it still doesn't work..
[Desire Android Development] xavierjohn22:
When iam on pc i will show image, i use the method editing galaxy tab launcher to have landscape
[Desire Android Development] saszseb:
Yes, I'm interested. Ubuntu 11.10.

Thanks.
[Desire Android Development] firefds:
Its an apktool bug. If you are decompiling a GB rom use an older version of apktool
[Desire Android Development] xavierjohn22:
I think its the recompile command not capturing the second framework.

Whats the noral command for recompiling with two framework? Then ill look at the tool code

Sent from my HTC Desire
[Desire Android Development] brainmaster:
Hi Xavier, I have a question.

I'm using your AutoAPKTool to decompile MIUI ICS apps, add language strings and recompile again. But its allot of work, since I'm doing it copy-paste for every app.

Is there an easier way to do so, maybe with the xdaAutoTool? Do you have a Tutorial for that?

I'm very familiar with the AutoAPKTool, but not with the xdaAutoTool and need some help.
[Desire Android Development] dhostetter:
I'm not sure what you mean.

I haven't done any recompiling other than this tool.

I did try an older version 1.0.3 and got the same type of errors.
[Desire Android Development] xavierjohn22:
Use diffmerge, winmerge or third party programs for copying strings, miui only changes some every week

Sent from my HTC Desire
[Desire Android Development] xavierjohn22:
Ah okay will see, when i am able to pc, i think you are using two framework

Sent from my HTC Desire
[Desire Android Development] dhostetter:
Xavier I was wondering if you had time to look at my issue?

I'd like to start using this tool.

Thanks
[Desire Android Development] xavierjohn22:
Is this ics? Sorry was too busy with mobi. Anyways ill do it when i have the time yeah

Sent from my HTC Desire
[Desire Android Development] dhostetter:
No gingerbread.

Hope you feel better.
[Desire Android Development] totalcmdext:
I have the following issue

*] D:\AutoAPKTool2.0.3d\_INPUT_APK\framework-res

recompiling D:\AutoAPKTool2.0.3d\_INPUT_APK\framework-res...

W: Could not find sources

I: Building resources...

d:\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res\values-iw\strings.xml:91: error: Error parsing XML: not well-formed (invalid token)

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\z000jyvx\AppData\Local\Temp\APKTOOL3561845719915568161.tmp, -x, -0, arsc, -S, d:\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res, -M, d:\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)

at brut.androlib.Androlib.buildResourcesFull(Unknown Source)

at brut.androlib.Androlib.buildResources(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\z000jyvx\AppData\Local\Temp\APKTOOL3561845719915568161.tmp, -x, -0, arsc, -S, d:\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res, -M, d:\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\AndroidManifest.xml]

at brut.util.OS.exec(Unknown Source)

... 7 more

The system cannot find the drive specified.
[Desire Android Development] xavierjohn22:
OPEN XML, LINE 91, INAVALID STRING, NOT WELL FORMED

Sent from my HTC Desire