[TOOL] V4.0.3-xdaAutoTool ALL-Win | V5.0.0b-xdaautoAPKTool | V1.0.3-xdaautoDeoTool

Search This thread

xavierjohn22

Inactive Recognized Developer
May 24, 2006
5,105
1,999
www.xavierjohn22.com
Don't know if it's the best/fastest way, but what i did was download a programm called Diffmerge (Google it) and then compared the latest english source we have (APP-EN_BASE_1.4.22_20110423.rar) with a decompiled version of newest en/zh rom upgrade.

This way i could "quickly" find changes/additions/removal of strings and then apply them to my language pack :)

But again, i'm also a newbie at this, so i'm not sure if this is the correct thing to do..

@XJ What is the fastest and most simple way to compare the deleted and added strings?

Do i have to walk thu all the strings to compare or is there an other way that is faster and easier to do?
Do i have to check the "bugfixlist" and open only the strings that are mentioned there?

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
 
  • Like
Reactions: csking33

Raffie75

Senior Member
Sep 30, 2010
779
81
Amersfoort

xavierjohn22

Inactive Recognized Developer
May 24, 2006
5,105
1,999
www.xavierjohn22.com
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?

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.

Sent from my HTC Desire using XDA App
 

xavierjohn22

Inactive Recognized Developer
May 24, 2006
5,105
1,999
www.xavierjohn22.com
Okay, the first two apk's that I decompiled and recompiled worked fine. Now I am trying to invert the Dropbox app, but I am getting this error:


[*] C:\Users\Tim\AutoAPKTool1.0.2\_INPUT_APK\Dropbox.apk
decompiling C:\Users\Tim\AutoAPKTool1.0.2\_INPUT_APK\Dropbox.apk...
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: G:\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=hardwareAccelerated, value=0xffffffff
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010102d3
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)​


I was getting this with APK Manager, but I thought it was something to do with the program. Do you have any ideas? I am using Windows Home Premium-64 bit and APK Tool 1.3.1. I thought someone said the new .NET update was screwing things up, but I don't know.

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
 

Raffie75

Senior Member
Sep 30, 2010
779
81
Amersfoort
@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
 

Attachments

  • log_recompile_2.txt
    20.3 KB · Views: 14

xavierjohn22

Inactive Recognized Developer
May 24, 2006
5,105
1,999
www.xavierjohn22.com
@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

Here's the partial.
(first of all you can recompile those who have errors only when testing out the fixes)

Code:
aapt: warning: string 'music_picker' has no default translation in C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\MiuiMusic\res; found: nl

If you open your strings.xml in NL search for that 'music_picker' string, it is not used anymore

In english you will see that it is ringtone_picker now
<string name="ringtone_picker">Ringtone</string>

Mostly the "has no default translation" means you have some strings that is not existing in the public

MMS
This means you have duplicate entries
"batch_delete_confirm_dialog_message "
etc....
Code:
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:394: error: Resource entry batch_delete_confirm_dialog_message is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:388: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:395: error: Resource entry batch_bookmark_confirm_dialog_message_mms is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:389: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:396: error: Resource entry batch_bookmark_confirm_dialog_message is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:390: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:397: error: Resource entry batch_delete_thread_confirm_dialog_message is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:391: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:398: error: Resource entry batch_deleting_progress_message is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:392: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:399: error: Resource entry delete_subject is already defined.

NOTES
This means the xml has issue in format, or a wrong character is there
Usually i open it with Notepad++ if i have this issue,
This is usually special a, e, o characters with two dots above th eletter
Or the string <> has been wrongly edited in the xml.
Use internet explorer to see the form is correct
Use notepad++ to verify the characters

Code:
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Notes\res\values-nl\strings.xml:91: error: Error parsing XML: not well-formed (invalid token)

GALLERY
If you compare the menu-en file over your menu-nl file there should only be one difference, it has change from last week, open it and see what i mean, you only need the rename text change so copy that one to your menu-nl

Code:
W/ResourceType( 2172): Bad XML block: header size 326 or total size 0 is larger than data size 0
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Gallery\res\menu-nl\media_context_menu.xml:14: error: Error: No resource found that matches the given name (at 'id' with value '@id/set_or_cancel_cover').

FRAMEWORK
So many errors here, LOL
You can decompile the MULTI lang APKs in a saparate folder and compare
You will get the hang of it, then youll get tired and sleep over it, LOL

I have like 3 AUTO APK TOOL folder (EN ZH, MULTI LANG and TEMP)

Code:
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.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Raffie\AppData\Local\Temp\APKTOOL7500580028061186108.tmp, -x, -S, C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res, -M, C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_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\Raffie\AppData\Local\Temp\APKTOOL7500580028061186108.tmp, -x, -S, C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res, -M, C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\AndroidManifest.xml]
	at brut.util.OS.exec(Unknown Source)
	... 7 more
 
Last edited:

Raffie75

Senior Member
Sep 30, 2010
779
81
Amersfoort
Here's the partial.
(first of all you can recompile those who have errors only when testing out the fixes)

Code:
aapt: warning: string 'music_picker' has no default translation in C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\MiuiMusic\res; found: nl

If you open your strings.xml in NL search for that 'music_picker' string, it is not used anymore

In english you will see that it is ringtone_picker now
<string name="ringtone_picker">Ringtone</string>

Mostly the "has no default translation" means you have some strings that is not existing in the public

MMS
This means you have duplicate entries
"batch_delete_confirm_dialog_message "
etc....
Code:
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:394: error: Resource entry batch_delete_confirm_dialog_message is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:388: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:395: error: Resource entry batch_bookmark_confirm_dialog_message_mms is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:389: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:396: error: Resource entry batch_bookmark_confirm_dialog_message is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:390: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:397: error: Resource entry batch_delete_thread_confirm_dialog_message is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:391: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:398: error: Resource entry batch_deleting_progress_message is already defined.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:392: Originally defined here.
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Mms\res\values-nl\strings.xml:399: error: Resource entry delete_subject is already defined.

NOTES
This means the xml has issue in format, or a wrong character is there
Usually i open it with Notepad++ if i have this issue,
This is usually special a, e, o characters with two dots above th eletter
Or the string <> has been wrongly edited in the xml.
Use internet explorer to see the form is correct
Use notepad++ to verify the characters

Code:
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Notes\res\values-nl\strings.xml:91: error: Error parsing XML: not well-formed (invalid token)

GALLERY
If you compare the menu-en file over your menu-nl file there should only be one difference, it has change from last week, open it and see what i mean, you only need the rename text change so copy that one to your menu-nl

Code:
W/ResourceType( 2172): Bad XML block: header size 326 or total size 0 is larger than data size 0
C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\Gallery\res\menu-nl\media_context_menu.xml:14: error: Error: No resource found that matches the given name (at 'id' with value '@id/set_or_cancel_cover').

FRAMEWORK
So many errors here, LOL
You can decompile the MULTI lang APKs in a saparate folder and compare
You will get the hang of it, then youll get tired and sleep over it, LOL

I have like 3 AUTO APK TOOL folder (EN ZH, MULTI LANG and TEMP)

Code:
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.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Raffie\AppData\Local\Temp\APKTOOL7500580028061186108.tmp, -x, -S, C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res, -M, C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_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\Raffie\AppData\Local\Temp\APKTOOL7500580028061186108.tmp, -x, -S, C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\res, -M, C:\Users\Raffie\Desktop\HTC Desire\AutoAPKTool1.0.2\_INPUT_APK\framework-res\AndroidManifest.xml]
	at brut.util.OS.exec(Unknown Source)
	... 7 more

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 :)
 

Raffie75

Senior Member
Sep 30, 2010
779
81
Amersfoort
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 :(
 

Attachments

  • log_recompile_4.txt
    9.1 KB · Views: 10

Devildog8791

Senior Member
Sep 15, 2009
856
124
Lonoke, AR
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

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.
 

Attachments

  • Dropbox.apk
    2.3 MB · Views: 16

xavierjohn22

Inactive Recognized Developer
May 24, 2006
5,105
1,999
www.xavierjohn22.com
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 :(

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
Code:
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
Code:
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
 

affmalg

Senior Member
Oct 30, 2010
155
33
Stockholm
Ah yeah, geez. it only handles the added resources like values-en or drawable-en, since i am experimenting on the -u switches of 7za

Okay for now do this

1) After doing [3], recompiling the apk

2) Copy the file _INPUT_APK\framework-res\build\apk\res\drawable\progress_horizontal.xml to
_CUSTOM_RES\framework-res\build\apk\res\drawable\progress_horizontal.xml

3) Copy the file _INPUT_APK\framework-res\res\value\styles.xml to
_CUSTOM_RES\framework-res\res\value\styles.xml
(these are the binary of your edited file)

4) Once this is done, make sure that "Overwrite res using _CUSTOM_RES" is ON, it is ON by default

5) then do build usable, It should overwrite those binaries in the APK

Thanks for the catch, i'll update it when this week past, saturday and sunday is miui day for me, lol

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 :)
 

xavierjohn22

Inactive Recognized Developer
May 24, 2006
5,105
1,999
www.xavierjohn22.com
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 :)

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.
 

tonymontezuma

Senior Member
Aug 1, 2010
114
12
Londrina
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.
 

xavierjohn22

Inactive Recognized Developer
May 24, 2006
5,105
1,999
www.xavierjohn22.com
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.

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
 

tonymontezuma

Senior Member
Aug 1, 2010
114
12
Londrina
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
 
Last edited:

1982Strand

Senior Member
Feb 12, 2011
965
200
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.

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 :)
 

Attachments

  • Dropbox.zip
    3.1 MB · Views: 10
  • log_decompile.txt
    259 bytes · Views: 12

MvSt

Senior Member
Sep 26, 2008
124
5
NRW, Dorsten
www.von-steinkwich.de
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!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 197
    ********************************************************
    xda AutoTool (xAT)
    CURRENT VERSION: 4.0.3 RELEASE

    ********************************************************
    This POST: xda AutoTool (xAT) Windows Version (AIO)
    2nd POST: xda autoAPKTool (xaAT) Command Line automation
    3rd POST: xda autoDeodexTool (xaDT) Command Line automation
    5th POST : MIUI smali editing and translation tips
    7th POST : MIUI System Update modified for OTA

    LATEST DOWNLOAD: http://tweaksparadise.com/download/xavierjohn22/index.php?action=list&folder=2100









    NOTES:
    there's no need for a how-to and full doc in this beta
    all auto apk tool and auto deodex tool applies here
    adb functionality is in progress
    still a lot of room for improvement

    REQUESTS:
    If you happen to have an idea, please post and make a clear description or screenshot of what you want to happen or do

    TO DO:
    add more options in the settings menu
    catch errors and better handling errors
    add more tabs for custom commands

    PLANS:
    my looking forward is to be able to create custom scripts and run with the tool
    also to be able to put many jar files by just adding it in settings and run custom commands for that jar
    that way it will automate whatever manual things users do in their customization of apks, rom zip, lang pack, etc

    IMPORTANT:
    ALL THE DEPENDENCIES LIKE OCX WILL PROMPT ERROR if not in your machine
    YOU MAY NOT HAVE THESE OCX YET SO I INCLUDED IT IN THE Res folder

    STEPS on FIRST RUN ONLY
    1) Go to /Res/
    2) Run FileRegister.exe to register these ocx files
    If you are using latest w7 it may probably be registering in the wrong path so register manually.

    INSTALL:
    Place the folder where there is no space yet
    C:xdaAutoTool
    I havent handled white space yet

    - Tested on Windows 7 workstation, it should run in XP as well
    - All ocx and posibble dll references and dependecies will be in your machine if you are close to W7 X64 and had installed ms vb runtime in the past
    - All the dependency file list are inside the docs folder (docs/xdaAutoTool.xml)
    - This means i used mainly files in your Windows 7 system to run it without installation
    - Installer will come later or when issues with running is that massive

    ********************************************************
    xdaAutoTool CHANGELOG:
    ********************************************************
    Version 4.0.3
    10:30 AM 8/5/2012
    ====================================
    - Fixed code of changing apktool version via combobox

    Version 4.0.2
    9:30 PM 3/7/2012
    ====================================
    - Move apktool choose settings to combobox
    - Fixed theming folder creation runtime error
    - Speed up reading columns and lines on multiple apk to display in listview

    Version 4.0.1
    9:27 PM 2/28/2012
    ====================================
    - Added MULTIPLE INPUT apk support, choose working folder in combobox
    - Added code to detect status after recompile or decompile
    - Update code to handle listview loading
    - Executable size is still down to 1.476KB, decent, he he he

    Version 4.0.0
    7:58 PM 2/27/2012
    ====================================
    - Recode detecting BIN folder for faster loading
    - Load all available apktool versions in menu and use
    - Added color code for text on compiled and not compiled apk
    - Added save form position to remember when loading app (for testing)
    - Added Decompile With..... apktool version
    - Added Recompile With..... apktool version
    - Added more columns:
    -- Compiled (YES or NO)
    -- Last compiled (apk)
    -- Decompiled with (apktool version from yml file)

    Version 3.0.1 (BETA)
    2:59 PM 11/5/2011
    ====================================
    - Fixed deodex full rom and timers
    - Added bottom last panel as application path panel
    - Added xUltimate-d9pc for THEMES
    - Added running draw9patch compiler in pngs using xUltimate-d9pc
    - Redo zipalign dist code in build usable apk, when option to zipalign is ON, the dist out apk will now be deleted
    - Added toolbar icons
    - Changed application icon temporarily
    - Fixed changing apktool jar file version after pressing save button

    Version 3.0.0 (BETA)
    5:15 PM 10/29/2011
    ====================================
    - Added mogrify theming options
    - Added create themed folders
    - Added apply Hue and Saturation using mogrify
    - Added Build All Themed APKS, all apks in specific folder structure
    - Added Build One Set themed apks
    - Added support for Copy_Folders.txt in _CUSTOM_RES
    USAGE:
    "Left file path source" + delimeter "||" + "Right file path destination"
    SAMPLE:
    Launcher2buildapkresxmldefault_workspace.xml||Launcher2resxmldefault_workspace.xml
    NOTE:
    Folder gets deleted after build usable
    - Added support for Copy_Files.txt in _CUSTOM_RES
    USAGE:
    "Left folder path source" + delimeter "||" + "Right folder path destination"
    SAMPLE:
    framework-resbuildapkresanim||framework-resresanim
    NOTE:
    File does not get deleted yet after build usable,
    thinking if it make sense, filecopy command already overwrites
    - Added MOD TAB, use for multiple modding apks
    - Added overwrite AndroidManifest.xml binary file
    In APK DIST generated apks this is not necessary
    Using the apks _OUTPUT_APK_DIST_ZIPALIGN after AndroidManifest.xml is better
    It generates a build apk and put it in _OUTPUT_APK_DIST_ZIPALIGN
    This then will be signed and gets a new META-INF file to ake the apk usable
    (overwrite AndroidManifest.xml binary file is only use when all else fails)
    - Added reference to microsoft scripting runtime,
    Better folder/file handling,
    Space not yet handled for these are third party executables
    - Switch to Native Code compiler, no-optimization
    - Exe is now 800kb, compiled optimized exe is throwing error atm
    P-Code is not an option

    Version 2.0.0 (BETA)
    8:02 PM 8/28/2011
    ====================================
    - Added zipalign.exe file in bin folder
    - Added generate zip aligned APKs option in build usable APKs command
    - Added move zip aligned apks in _OUTPUT_APK_ZIPALIGN to _OUTPUT_APK folder
    - Added move zip aligned apks in _OUTPUT_APK_DIST_ZIPALIGN to _OUTPUT_APK folder
    - Added apktool dist generated apks copy option
    - Added apktool dist generated apks zipaligned option
    - Added make zipaligned apks independent button for apks in _OUTPUT_APK
    - Fixed enabling selection buttons bug
    - Fixed error restarting when app save window position on exit
    - Fixed saving tab to remember it next time app is started
    - Optimized BUILD USABLE apk commands

    Version 1.0.3 (BETA)
    11:03 AM 6/14/2011
    ====================================
    - Added optimized pngs in TOOLS tab
    - Added clear files of working directories in TOOLS tab
    - Added feature to add to open with menu, in "Edit" menu
    - Added copy to phone and delete to phone function in phone explorer
    - Added save column width on all listviews
    - Changed UI for progress bar when executing commands

    Version 1.0.2 (BETA)
    12:33 PM 6/11/2011
    ====================================
    - Added Phone Explorer in ADB TAB
    ----display system app and data app as initial
    ----able to copy files from those folders for now
    ----filter files and save last browse path in worstation
    ----some adb commands added to UI
    - Added Apply Mods
    - Added saving of TAB positions when exiting app
    - Added save form positions for main and future phone explorer
    - Added load input folder when APK Tab was pressed
    - Moved all adb related commands in the Phone Explorer form
    - Fixed error when double clicking list view without files
    - Fixed deodexing rom zip picked from directory with spaces in file path
    - Fixed editing bootclass files and adb files
    - Changed SIGN to TOOLS, more sign commands in mouse Right Click
    - Changed UI for folders and file list views
    - Changed the way icons are shown when loading files, now associated

    Version 1.0.1 (BETA)
    3:34 PM 6/6/2011
    ====================================
    - Fixed list files error when all items are deleted
    - Fixed error on check uncheck option when no item is in the list
    - Fixed deo rom directory clean up, will clear all source/deo directory
    - Added capability to change apktool, smali and baksmali jar file versions
    - Added experimental deodexed a full rom and create rom zip file
    - Added more flexibility on selection method for files in the list

    Version 1.0.0 (BETA)
    11:30 PM 6/3/2011
    ====================================
    - Initial release
    - apk tool automation
    - deodexing basics automation
    - sign apk and zip commands
    - adb commands- Initial release
    - apk tool automation
    - deodexing basics automation
    - sign apk and zip commands
    - adb commands

    ********************************************************
    Acknowledgement:
    ********************************************************
    My thanks to the support of the people here in xda and people who
    appreciate my work in any way expressed, Cheers!!!
    MGunther, JHatley

    ********************************************************
    CREDITS:
    ********************************************************
    Brut.all for Apktool - a tool for reengineering apk files
    http://www.7-zip.org - 7za commandline version
    - signapk.jar
    - optipng http://code.google.com/p/roptipng/
    - smali/baksmali
    - JesusFreke, Daneshm90's script and crzyruski
    - mogrify executable by ImageMagick
    - http://www.imagemagick.org/script/index.php
    - xeudoxus xUltimate Draw9Patch Compiler
    - http://www.droidforums.net/forum/xeudoxus/47283-release-xultimate.html

    XDA:DevDB Information
    [TOOL] V4.0.3-xdaAutoTool ALL-Win | V5.0.0b-xdaautoAPKTool | V1.0.3-xdaautoDeoTool, Tool/Utility for the HTC Desire

    Contributors
    xavierjohn22

    Version Information
    Status: Testing

    Created 2014-11-05
    Last Updated 2014-11-04
    71
    xda AutoAPKTOOL

    ********************************************************
    xda AutoAPKTOOL (xAAT)
    CURRENT VERSION: 5.0.0b

    ********************************************************

    LATEST DOWNLOAD: http://tweaksparadise.com/download/xavierjohn22/index.php?action=list&folder=2100



    5th POST: MIUI smali hunting and images to be change + PSD sources
    This tool has been tested MIUI XJ Rom HERE
    Compile and Decompile APKS, Build language packs faster with many devices, N1, G7, Galaxy S, etc..

    OBJECTIVE:
    Main intention is to automate/batch processing decompiling and recompiling, flashable zip creation, etc
    Initially made when translating miui apks and building lang pack

    USAGE:
    Run AutoAPKToolMain.bat

    QUICK HOW TO:
    THE 1-2-3-4 + 5 PROCESS
    - Place ALL apks to decompile in _INPUT_APK folder
    - Place the framework-res apk in the _INPUT_APK as well (filename: framework-res.apk)

    - Choose 1 then hit enter for if framework-res.apk command
    (note that framework-res.apk will always be in the _INPUT_APK folder)

    - Choose 2 to decompile all in one shot
    (this will create the resources and sources folder inside _INPUT_APK folder)
    - Do your edits for all in that folder, add your values-en, values-pt, raw-en, etc.
    You may add drawable-en-hdpi as well
    Edit your strings.xml and many more...
    Remember to keep the folder structure intact
    After all edits are done

    - Choose 3 and hit enter
    This will recompile all in one shot
    A notepad will appear to show if there are errors in recompiling, check the log
    Adjust if necessary, you can choose to recompile a single folder if you need to

    - Choose 4 to build usable APKs
    All apks will be in the _OUT_APK folder (These will not FC)
    All overwriting of files are automated
    These APKs are from the Original apk with:
    resource.arsc + classes.dex changed + other resources added

    -Choose 5 (the fun part, lol)
    It will build your flashable zip signed already, there's a template in the _FLASHABLES folder
    You may edit it, replace it with the same name, just keep templates by renaming, place your build.prop there, etc
    Read the text file thoroughly...

    So that is the short story....
    For other options and features read the ReadMeHistory.txt
    FYI, read notes below (in _OUT_APKTOOL_DIST folder, those are build by APK Tool)
    I manage to build APKs that don't FC in the _OUT_APKTOOL_DIST only that...... (see txt for complete explanation)

    EXAMPLE 1: IMAGE
    If you are overwriting an image in an APK (widget_1x.png)
    _CUSTOM_RES
    -MiuiMusic
    --res
    ---drawable-hdpi
    ----widget_1x.png (this is the image i will overwrite)

    Otherwise if you are adding folders no need to turn on "overwrite resources), put all your files in:
    _INPUT_APK
    -MiuiMusic
    --res
    ---drawable-de-hdpi (this is the image folder i added)
    ----widget_1x.png
    The Copy added resources "ON" will take care of copying these added resources or files

    SOME EXAMPLES OF IMAGES AND FILES OVERRIDING:
    "_CUSTOM_RES\AppShare\res\drawable-hdpi\installed.png"
    "_CUSTOM_RES\Gallery\res\menu\media_context_menu.xml"
    "_CUSTOM_RES\ThemeManager\res\drawable-hdpi\desktop_mask.png"

    EXAMPLE 2: XML BINARY WHEN YOU DO DIRECT EDITS
    Say you are editing a file straight from framework-res\res\drawable\progress_horizontal.xml
    FOR NOW YOU HAVE TO DO THIS:
    1) After doing [3], recompiling the apk

    2) Copy the file _INPUT_APK\framework-res\build\apk\res\drawable\progress_horizontal.xml
    to
    _CUSTOM_RES\framework-res\res\drawable\progress_horizontal.xml
    (this is the binary of your edited file, by doing this, you are telling the tool to overwrite it when building the apk)

    3) Once this is done, make sure that "Overwrite res using _CUSTOM_RES" is ON, it is ON by default

    4) then do build usable, It should overwrite those binaries in the APK

    NOTES:
    "Build Usable APKs" perform these depending on options
    - overwrite resources.arsc (ON/OFF)
    - overwrite classes.dex (ON/OFF)
    - copy added resources (e.g. drawable-de-hdpi) (ON/OFF)
    - overwrite any file in APK using _CUSTOM_RES (ON/OFF)
    - copy optimized pngs to APK (ON/OFF) - EXPERIMENTAL @ the moment (20110503)
    - -mx3 is the compression level for the meantime, i'll make it flexible after deotool and windows version

    REQUIREMENTS:
    - you must have java installed on your machine, you may even have it already, mine is this per the main log file
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0-b17, mixed mode)
    - tested on windows 7, x64 pc
    - adb must be installed in the system, download the image attached to configure adb to be called globally in cmds

    CREDITS
    Brut.all for Apktool - a tool for reengineering apk files
    http://www.7-zip.org - 7za commandline version
    signapk.jar
    optipng http://code.google.com/p/roptipng/
    mogrify http://www.imagemagick.org/www/binary-releases.html#windows
    guntherm6​6 for bringing mogrify close to this tool

    gn3b.png


    ********************************************************
    AUTO APK TOOL CHANGELOG:
    ********************************************************
    Version 5.0.0b
    - Massive overhaul of codes
    - New in this version is 87 and 88
    87 = Can be use to remember single recompile of the last path (after 8)
    Turn this ON and it will be active
    88 = Is use to trigger the single recompile action
    recompiling what is the last path
    - Redo the recompile code
    - Redo menu, starting from 21 is the new apktool 2.0.0.X settings
    - 21 Use New apktool version
    - 22 Use -f on recompile (this was migrated to work with new apktool and old apktool)
    - 23 Use -c on recompile (this is new to work on new apktool)
    - 24 Use -o on recompile (this is new to work on new apktool)
    This will create a apkname_NEW.apk in _OUT_NEW folder
    - 31 Overwrite resources.arsc
    - 32 Overwrite classes.dex
    - 33 Overwrite using _CUSTOM_RES
    - 34 Copy added resources to APK
    - 35 Make zipaligned apk from _OUT_APK
    - 36 Force delete dir on Decompile (-f)
    - 37 Optimized All PNGS in APKs
    - 38 Optimized "xyz.9.png" PNGS in APKs

    ISSUE:
    - The ZIP Align is broken on some apks
    - Use 42 ON but leave 43 and 44 off for now
    - This will also be redo because the code right now zipaligns then sign
    should be sign then zipalign

    Version 4.0.2
    - Added Menu 21 ON/OFF for new apktool support
    - Changed Menu 22 ON/OFF settings saved, Overwrite resources.arsc
    - Changed Menu 23 ON/OFF settings saved, Overwrite classes.dex
    - Changed Menu 24 ON/OFF settings saved, Overwrite using _CUSTOM_RES
    - Changed Menu 25 ON/OFF settings saved, Copy added resources to APK
    - Changed Menu 26 ON/OFF settings saved, Make zipaligned apk from _OUT_APK
    - Changed Menu 27 ON/OFF settings saved, Force delete dir on Decompile (-f)
    - Changed Menu 28 ON/OFF settings saved, Force delete dir on Recompile (-f)
    - Changed Menu 29 ON/OFF settings saved, Optimized All PNGS in APKs
    - Changed Menu 30 ON/OFF settings saved, Optimized "xyz.9.png" PNGS in APKs
    - Changed Menu 85 ON/OFF settings saved, Sign APKs after build themed apks
    - Changed Menu 86 ON/OFF settings saved, Build a Flashable Theme Zip (after 84, 85)

    version 4.0.1b
    - Added support for new apktool 2.0.0b7
    - Added menu 58, Open installed framework folder
    - Improved colored menu to easily determine numbers from text
    Colored_AutoAPKToolMain.bat = colored code
    AutoAPKToolMain.bat = default code
    - Obsoleted 13recompileICS.bat = 13recompileICS.bat.obsolete
    - Obsoleted 14rebuildusableICS.bat.obsolete = 14rebuildusableICS.bat.obsolete

    version 4.0.0
    8:08 PM 12/20/2013
    - Added autoinstall frameworks on application load
    55, 56, 57
    - chgcolor options for screen clarity (see acknowledgement in hep file)
    - clean-up code for ICS decompile, unneeded file obsoleted but still on root directory
    - clean-up menus and simplify terms on menus
    - input text is set to yellow
    - AutoAPKToolMain_Colored.bat is a colored text screen
    - AutoAPKToolMain.bat is the original file (use this if _Colored fails on your system)

    version 3.0.2
    6:56 PM 8/19/2012
    - Fixed displaying apktool version, remove 'if codes', now displays apktool name
    as its version number, there's no need to change and add to this in the future

    version 3.0.1
    2:12 PM 8/4/2012
    - Make the choosing of apktool version dynamic
    - Your apktool must have "apktool" in the filename as prefix and obviously
    extension is ".jar" (e.g. apktool_1.4.3.jar, apktool_1.3.1.jar)
    - Fixed detecting apk before signing using option 43 and 44

    version 3.0.0
    10:09 PM 8/3/2012
    - Option 42, 43, 44 explained
    - Option 42, This is the raw APK tool output in dist (Without using my build apk)
    _OUT_APKTOOL_DIST
    - Option 43, This is the raw APK tool output then Zipaligned
    _OUT_APKTOOL_DIST_ZIPALIGN
    - Option 44, When 43 is ON, 44 is ON, the zipalinged apk gets signed
    Option 44 wont work without 43 ON
    There's a text file Sign_These_Then_Move.txt in _OUT_APKTOOL_DIST_ZIPALIGN
    Apks listed here gets signed and moved to _OUT_APKTOOL_DIST_ZIPALIGN_SIGNED

    modified by Agat63 03/31/12
    version 2.0.4
    1:31 AM 3/31/12
    - Added decompile ICS apk
    - Added recompile ICS apk
    - Added baksmali JAR files
    - Added baksmali DEX files
    - Added smali JAR files
    - Added smali DEX files

    Version 2.0.3e
    1:19 AM 7/5/2012
    by xdaer Peteragent5
    http://xdaforums.com/showpost.php?p=27566198&postcount=811
    - I've added the option to use: apktool_1.4.3.jar
    - And I've updated the aapt.exe from latest Android SDK
    (Android SDK Platfrorm Tools - Rev.11)

    Version 2.0.3b/c/d
    3:27 PM 10/24/2011
    (d)
    - Added flexibility of building flashable zip, will build according to folder name
    - Redo folder structure in building themed apks
    (b)
    - Added create themed folders
    - Added apply Hue and Saturation on pngs
    (a)
    - Added build all themed, apks in all folders _THEMES
    - Added build one themed, apks in specified folder _THEMES
    - Option to sign apks after build
    - Option to make a flashable zip

    Version 2.0.3
    - Changed folder handling in mogrify commands
    - Added option to sign apk after mogrify themed apks are build and zipalign
    - Fixed signing apks/zip commands

    Version 2.0.2
    - Added mogrify.exe and mogrify features
    (Ability to change hues of PNGs, see acknowledgements for mogrify usage)
    - Move Following APK DIST generated apk commands to recompile
    (Copy generated apks of apktool in _OUT_APKTOOL_DIST)
    (Create Zipalign apks in _OUT_APKTOOL_DIST to _OUT_APKTOOL_DIST_ZIPALIGN)

    Version 2.0.1
    - Added saving settings of copy apks and generate zip aligns in dist gen apks
    - Added saving settings of compression level

    Version 2.0.0
    - Added adb reboot commands
    - Added script to save apktool version after changing and use that on start of app
    - Added option to only zipalign apks placed in the _OUT_APK folder
    - Added move apks from _OUT_APK_ZIPALIGN to _OUT_APK
    (useful before building flashable zip)

    Version 1.0.9
    - Added option to generate zipalign apks after each recompile
    - goes to _OUT_APKTOOL_DIST_ZIPALIGN
    - Separate option for apktool generated apks

    Version 1.0.8
    - Added option to toggle copying of apk from DIST folder of apktool gen directory
    - Added zip align apks (generated apk from _OUT_APK to _OUT_APK_ZIPALIGN)
    - Added setting of compression level
    - Added Delete "folder name" of mod file text file
    ___If you have "Mod1" folder the file should be "Delete_Mod1.txt"
    ___Sample line in the text file is "AppShare\res\drawable-hdpi\installed.png"
    ___No need to specify the _INPUT_APK folder
    ___It will delete any file in that path once listed in the text file
    - Fixed code jumping over optimization of pngs

    Version 1.0.7
    - Added install additional resources

    Version 1.0.6
    - Added more adb functions
    - Added request for mods folders
    - Fixed error handling when "Enter" key is pressed without choice
    - Fixed menu choices for blank entry and "Enter" key is pressed as well
    - Fixed mod folders applying only the last folder in menu

    Version 1.0.5
    - Added apktool 1.4.1, see brut's site for changelog
    (Make sure you also have the aapt file from the latest migration notes)
    http://code.google.com/p/android-apktool/downloads/list
    - Added Single Recompile then Build
    - Added adb commands and tools, you must have ADB installed and configure already,
    (download "configure_adb_to_be_called_anywhere_in_cmd.rar")
    - Reorganized menu for future improvements

    Version 1.0.4
    - Added optimized "xyz.9.png" in APKs option

    Version 1.0.3
    - Fix menu handling for option 19 to 21
    - Changed "u" switch to "a" for handling copy added resources
    - Added optimized PNGs in APKs option

    Version 1.0.2
    - Initial release
    51
    xda AutoDeodexTOOL

    ********************************************************
    xda AutoDEODEXTOOL (xADT)
    CURRENT VERSION: 1.0.3

    ********************************************************

    LATEST DOWNLOAD: http://tweaksparadise.com/download/xavierjohn22/index.php?action=list&folder=2100



    OBJECTIVE:
    Automate/batch processing of deodexing jars and apks (odexed rom)

    USAGE:
    Run AutoDEOToolMain.bat

    IMPORTANT:
    - PLEASE AVOID SPACES IN THE TOOL FOLDER PATH FOR NOW
    - Good path use underscores or only letters, nos. (L:\TOOL\AutoDEOTool1.0.1)
    - Some of the APKs does not like the -mX optimization so watch for those

    QUICK HOW TO:
    To deodex framework files,
    - Place the JARs and corresponding ODEX files in the directory "_framework".
    - Otherwise, place deodexed framework JARs into the directory "deodexed_JAR".
    To deodex APK files,
    - Place the APKs and corresponding ODEX files in the directory "_app".
    (1) is for stock android deodexing
    (2) is for non stock, such as sense, miui where you can put a custom bootclasspath
    (3 to 6) options are for deodexing apks only or jars with 1 and 2 functionality
    Options to change between smali-baksmali versions

    NOTES:
    - Basic out is performed by the tool and classes.dex is just added to the jar/apk
    - No compression feature yet for that would be a separate option, i turned it off for FC with miui soundrecorder apk

    REQUIREMENTS:
    - you must have java installed on your machine, you may even have it already, mine is:
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0-b17, mixed mode)
    - tested on windows 7, x64 pc

    CREDITS
    CREDITS:
    - JesusFreke, Daneshm90's script and crzyruski Auto-Deodexer
    - 7za commandline version http://www.7-zip.org
    - sggua @ xda (Sergiy G) http://sgg.im/




    ********************************************************
    AUTO DEODEX TOOL CHANGELOG:
    ********************************************************
    Version 1.0.3
    sggua @ xda
    http://sgg.im/
    - New smali/backsmali version 1.3.2
    - API number for right deodex

    Version 1.0.2
    - Added optimized JARs and APKs option
    - Added compression level, functioning separately
    - Added clean folders
    - Fixed compression levels when -a for all called batch

    Version 1.0.1
    - Initial Release
    - Deodex stock and custom bootclass jars and apks of a rom
    - Deodex stock and custom bootclass apks only
    - Deodex stock and custom bootclass jars only
    14
    These are some of the smalis you need to change
    Posted here during MIUI Ver 1.4.22/1.5.6
    (this means, it may change next week, anyways basics are posted)
    Use Beyond Compare or other folder, file comparer, for comparing changes
    Use Windows Grep for hunting down other smalis in the future
    If you got chinese character and you have translated all in strings, arrays, raw, etc.., it is most likely to be in the smali files


    Backup
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Backup\smali\com\miui\backup\ui\LocalBackupMain.smali
    Code:
        const-string v1, "yyyy\u5e74MM\u6708dd\u65e5 HH:mm:ss"
        const-string v1, "yyyy MM dd HH:mm:ss"

    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Backup\smali\com\miui\milk\ui\PreferenceCloudBackup.smali
    Code:
        const-string v1, "yyyy\u5e74MM\u6708dd\u65e5 HH:mm"
        const-string v1, "yyyy MM dd HH:mm:ss"

    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Backup\smali\com\miui\milk\ui\ProgressResultActivity.smali
    Code:
        const-string v1, "yyyy\u5e74MM\u6708dd\u65e5 HH:mm"
        const-string v1, "yyyy MM dd HH:mm:ss"

    FileExplorer
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\FileExplorer\smali\com\android\fileexplorer\Util.smali
    Code:
        const-string v2, "\u7167\u7247"
        const-string v2, "MIUI Camera Shots"
    
        const-string v2, "SD\u5361"
        const-string v2, "SD Card"
    
        const-string v2, "MIUI\u622a\u5c4f"
        const-string v2, "MIUI Screenshots"
    
        const-string v2, "\u94c3\u58f0"
        const-string v2, "Downloads"

    Gallery
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Gallery\smali\com\android\gallery\app\AppHelper.smali
    Code:
        const-string v3, "\u25cf"
        const-string v3, "Menu" or const-string v3, "Sort"

    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Gallery\smali\com\android\gallery\fileexplorer\FileViewInteractionHub$5.smali
    Code:
        const-string v8, "\u8bbe\u7f6e\u58c1\u7eb8"
        const-string v8, "Use as wallpaper"
    
        const-string v9, "\u8bbe\u4e3a\u684c\u9762\u58c1\u7eb8"
        const-string v9, "Set as desktop wallpaper"
    
        const-string v9, "\u8bbe\u4e3a\u9501\u5c4f\u58c1\u7eb8"
        const-string v9, "Set as lockscreen wallpaper"

    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Gallery\smali\com\android\gallery\ui\FolderViewActivity$6.smali
    Code:
        const-string v2, "\u91cd\u547d\u540d\u5931\u8d25"
        const-string v2, "Rename failed"

    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Gallery\smali\com\android\gallery\ui\InformationDialog.smali
    Code:
        const-string v18, "\u89c6\u9891\u5c5e\u6027"
        const-string v18, "Video properties"
    
        const-string v18, "\u56fe\u7247\u5c5e\u6027"
        const-string v18, "Video properties"
    
        const-string v5, "\u89c6\u9891\u5c5e\u6027"
        const-string v5, "Video properties"
    
    
        const-string v5, "\u56fe\u7247\u5c5e\u6027"
        const-string v5, "Image properties"

    + this xml file in Gallery
    \Gallery\res\menu\media_context_menu.xml
    Code:
        <item android:id="@id/rename" android:title="???" />
        <item android:id="@id/rename" android:title="Rename" />


    Launcher2
    Make your own workspace in desktop
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Launcher2\res\xml\default_workspace.xml

    MiuiCamera
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\MiuiCamera\smali\com\miui\camera\ui\PictureSizePreferenceActivity.smali
    Code:
        const-string v10, " (\u5168\u5c4f)"
        const-string v10, " (Full Screen)"

    MiuiMusic
    I don't change and remove tabs in MiuiMusic, it's okay for us here in Singapore
    Don't forget to translate plurals.xml too
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\MiuiMusic\res\values\plurals.xml

    Mms
    translate
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_TEMP\_INPUT_APK\Mms\res\raw-en\sms_frequently_used_phrase

    to remove the third tab
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Mms\smali\com\android\mms\ui\MmsTabActivity.smali
    remove these lines:
    Code:
    ----------------------------
    .method static constructor <clinit>()V
        .locals 1
    
        .prologue
        .line 22
        const/4 v0, 0x0
    
        sput-boolean v0, Lcom/android/mms/ui/MmsTabActivity;->sPasswordConfirmed:Z
    
        return-void
    .end method
    -----------------------------
    .method private setupRecommendationTab()V
        .locals 4
    
        .prologue
        .line 95
        new-instance v0, Landroid/content/Intent;
    
        invoke-direct {v0}, Landroid/content/Intent;-><init>()V
    
        .line 96
        const-class v1, Lcom/android/mms/ui/FestivalSmsCategoryList;
    
        invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
    
        .line 97
        iget-object v1, p0, Lcom/android/mms/ui/MmsTabActivity;->mTabHost:Landroid/widget/TabHost;
    
        iget-object v2, p0, Lcom/android/mms/ui/MmsTabActivity;->mTabHost:Landroid/widget/TabHost;
    
        const-string v3, "festival"
    
        invoke-virtual {v2, v3}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;
    
        move-result-object v2
    
        const v3, 0x7f090135
    
        invoke-virtual {p0, v3}, Lcom/android/mms/ui/MmsTabActivity;->getText(I)Ljava/lang/CharSequence;
    
        move-result-object v3
    
        invoke-virtual {v2, v3}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;)Landroid/widget/TabHost$TabSpec;
    
        move-result-object v2
    
        invoke-virtual {v2, v0}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;
    
        move-result-object v0
    
        invoke-virtual {v1, v0}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V
    
        .line 99
        return-void
    .end method
    -----------------------------
        .line 45
        invoke-direct {p0}, Lcom/android/mms/ui/MmsTabActivity;->setupRecommendationTab()V

    Notes
    Introduction translation
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\Notes\res\raw\introduction

    Settings
    if you are en base provide html helpfile for tethering too
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_TEMP\_INPUT_APK\Settings\assets\html\en\tethering_help.html
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_TEMP\_INPUT_APK\Settings\assets\html\en\tethering_usb_help.html
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_TEMP\_INPUT_APK\Settings\assets\html\en\tethering_wifi_help.html

    Sidekick
    L:\_000 _MIUI_ROMs\000_AUTOAPKTOOL_EN\_INPUT_APK\SideKick\smali\com\android\sidekick\InputHistoryAdapter.smali
    Code:
        const-string v2, "\u4eca\u5929"
        const-string v2, "Today"
    
        const-string v2, "\u6628\u5929"
        const-string v2, "Yesterday"

    IMAGES that needs to be taken care of,
    Decompile my Updates or Full ROM apks and grab the images there if you want to use it


    13
    How to set-up System Update with MIUI

    1. Set-up your server
    2. Modify the Update.apk smali file pointing to your json file
    3. Make your json file and upload it to the server
    4. Upload your files (see folder structure)
    5. Optional grab my ota binary in xbin, it's from atroy of china, else make your own ota binary