yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] xavierjohn22:
The reason is you have SPACE, did not catch that space, he he.

Use underscore

Maybe next fix i will catch the space character

It is Beyond Compare, information posted in POST# 3, that is also why i did not feel the need for mods folder before, i use it a lot every friday to see what was changed from previous to current
[Desire Android Development] Gunthermic:
Oh dont i feel like a dumba**. LOL Duh Apply "Data" both lines. LOL

No matter, I have data_blue and data_red. under _MODS, either selection of 1 or 2 will always copy number 2. When selecting 1 it says copy from data_red.
[Desire Android Development] xavierjohn22:
Ah sh*t. Ill check that one tomorrow
[Desire Android Development] Gunthermic:
Also, can you put in that when it displays the mods it is in two columns? I have 20 some I am going to load up... Plz?

The copy and such worked fine.

Did you get chance to look at when you decompile you you log doesn't show broken png's?

Also every time I compile the resources file and then tell it to add to zip file, it never does add it to the zip flash. I do it manually, no biggie.
[Desire Android Development] xavierjohn22:
Ill see about the colums. Lol that would be something.

The log you can turn off the main log to show all outputs in cmd i believe.

It only copies apks in the out apk to flashable zip. If that is the apk you are using.

If you are using the out apk dist it wont copy to the zip.
[Desire Android Development] xavierjohn22:
Redownload V1.0.6, the mod folder copying should be fix there.
[Desire Android Development] MvSt:
GUI interface for APKTool ?

It goes more and more professionel!

Now put dex-(de)compiling into it and ask someone for a gui interface :D

Awsome Tool !!
[Desire Android Development] Gunthermic:
I think what I was talking about. Do this.

Apktool cmd line and decompile a apk and see if you get some broken .9.png's the com.HTC.resources or a modified resources file.

Now in your tool it does not log those.

In the Apktool cmd line, it would not decompile the same apk, but yours does. Why?
[Desire Android Development] xavierjohn22:
Lol. I was like thinking of doing thw windows version gui in vb my self but time is too much constraint at the moment. Thanks.
[Desire Android Development] xavierjohn22:
Because -f is on thats why it decompiles again. Force delete directory on decompile in settings (ON/OFF)

and i think my log redirection was the cause of that not displaying.
[Desire Android Development] reef2009:
com.htc.resources.apk

Hi Xavierjohn

Nice app you made!

Is it possible to use both framework-res.apk & com.htc.resources.apk as framework?It's needed to (de-)compile HTC Sense apps like rosie.apk etc..

Good job! thnx
[Desire Android Development] xavierjohn22:
There's only one for if framework res and it is hardcoded for that filename as of today, you have to manually command installing com.htc.resources.apk

how do we use two framework in default apk tool? LOL
[Desire Android Development] 1982Strand:
I think what he means is that some apks need more than one framework file to decompile, i've read about this before.. Some HTC apks (and others) do that:

http://code.google.com/p/android-apktool/wiki/FrameworkFiles

I guess that's why sometimes there's more than 1 file (1.apk) in the apktool folder, i've seen 2.apk and 127.apk in there too, but i've never really understood how/why they got there haha :D

.......... Then again, i'm not a developer and i'm just guessing, so i could be wrong (as many times before, hehe!)
[Desire Android Development] xavierjohn22:
Yeah he could manually command for now. Ill add it next release
[Desire Android Development] 1982Strand:
Hi XJ...

Another MIUI related question..

I downloaded the full rom directly from the chinese site (miui.com)

it seems it is not deodexed, but does that make any difference when decompiling/recompiling?

And what i did to translate the new 1.5.20 release is a little complicated, so i'm not entirely sure if i got everything, but i'll see when you release your pack ;)

(Took the english 1.5.13 and the 1.5.20 from miuiandroid, added/deleted strings. I hope those versions match yours, only with slightly different translations..)

And i was thinking, do you use another kernel or other stuff in your rom, so that it is different than the chinese? Well, i guess some gscripting too, as you have the 3 different versions.. Besides the translated apps of course..
[Desire Android Development] xavierjohn22:
1. Deodexing = You will need my AutoDeodexTool 1.0.0, LOL, havent release it yet, it's derived from auto deodexer, i made some options since bluetooth on previous months is being left out by the deodexer, then when sound recorder came in, it fcs when using the autodeodexer, so i made my own, he he he, I'll release it too in this thread. i'll just have to adjust some hardcoded paths first.

2. Yeah any site with 1.5.20 will have same strings as mine. I mean the number of strings, will vary in translation as you said. Thats right, Miui android is the place to go to if you want some fast official release, i think they have a big team there.

3. X-PART and D2W uses different kernel for better I/O in sdcard, only that then it's all stock only deodexed. The A2SD is the closest to MIUI CN rom, no change in kernel, no change in structure of files.

Changed:

- bootanimation = same but only english in miui xj

- all apks are still in miui xj from miui cn

- added htc ime kb, gb kb, miui 3dweather

- MIUICMUpdater and spareparts added

p.s. Xpart uses the gscript, that's from atroy's original rom and i want to keep it intact in the xpart version, we previously use that to enable swap and disable swap in previous versions, but it can be use for some other scripting
[Desire Android Development] xavierjohn22:
AUTO DEODEX is now posted
[Desire Android Development] Gunthermic:
Sweet another tool to play with
[Desire Android Development] xavierjohn22:
Lol. Yeah. Ill try to put in more functions this month for both.
[Desire Android Development] reef2009:
thnx for your explanation.

:) NICE !!!
[Desire Android Development] xavierjohn22:
Already added, might post it today as 1.0.7, lol seems like this tool has balloon already, cheers!

main log shows installed, so you may try it

I: Framework installed to: C:\Users\cad3dmdd\apktool\framework\1.apk
I: Framework installed to: C:\Users\cad3dmdd\apktool\framework\2.apk

Option [35] to install frameworks, will post updated download
[Desire Android Development] vua777:
very hard work, thanks bro

bookmarked
[Desire Android Development] GbNoR:
Thanks xavierjohn22, finally got it working.

I was struggling to get my wallpapers to work without getting

them cropped.

I'm new to android, coming from Windows 6.5, and it was really frustrating

not to been able to use wallpapers, as I have been using on my windows phone, without it getting cropped.

But now with your amazing tool, I can make my own wallpapers.apk,

and pick my wallpapers from menu-->Backgrounds-->GbNoR Wallpapers.:D

What I did:

*Put the ELWallpapers.apk (extracted from the rom to Elelinux) in

the _INPUT_APK folder.

*Decompile ELWallpapers.apk (*6*)

*Edit every file, folder, xml and smali. I just replaced the text Elelinux/ELWallpapers

with GbNoR/GBWallpapers

*Replaced the wallpapers and icon with my own.

Note: had to remember small letters (low case) for the icons and

wallpapers in the "drawable-mdpi" folder.

*Recompile the ELWallpapers folder (*7*)

*Closed the log, open the folder "dist"

(_INPUT_APK-->ELWallpapers-->dist)

*Now I had to sign the apk in the "dist" folder (*10*)

*Put the ELWallpapers_Signed.apk on my sdcard and install it.

Here is the result :)
[Desire Android Development] xavierjohn22:
Wowaa. Cool. Cheers dude!

Im starting to do a windows gui of these tools.
[Desire Android Development] wilam555:
Hay!

I have problem with changing arrays.xml under framerwork-res/res/values/.

I change only arrays.xml file (auto brightness settings) and then build (before compiling I put my changed arrays.xml into _CUSTOM_RES\framework-res\res\values)...Then I make flashable zip, instal it under CWM, wipe dalvik cache, boot up and..nothing changed. I have same auto-brightness like before.

Then I was decompile my framework-res and I saw that was nothing changed - Arrays.xml is the same like in original framework-res.

I try several times to build framework-res.apk with unchanged arrays.xml in _INPUT_APK\framework-res\res\values, or I put arrays.xml in _INPUT_APK\framework-res\build\apk\res\values...and i try many other combinations, but result is the same. When I decompile new-created framewor-res.apk, arrays.xml is like in original. Only think I notice is that in some framework-res.apk I have uncompiled only arrays.xml file under res/values folder. But this folder don't exist in original framework-res.

I don't know what I am doing wrong..

Can somebody look my framework-res.apk and try put my changed arrays.xml into it, then compile and upload back?

Thx
[Desire Android Development] xavierjohn22:
These should be the steps.

Decompile

Make change in input apk framework res values as you have done.

Then recompile.

After recompile go to the input apk, framework res, build folder res values.

Grab the arrays.xml there.

That is the one you should copy to custom res....

Then do build usable apk.

Get the apk in out apk folder.
[Desire Android Development] wilam555:
The "build" folder not contain "res" folder, it has only empty "apk" folder.
[Desire Android Development] 1982Strand:
Hmm, i don't see why you need to use the custom_res folder with the arrays.xml file?

Try deleting the framework-res folder from both INPUT_APK and CUSTOM_RES and start over. Then just decompile, edit, recompile and build usable...

With all options ON in the script settings, besides the last 2 with the png optimising. I tested it and it works here :)
[Desire Android Development] GbNoR:
If you look at my post just above, I made a little step by step there.

U properly has the same "bug" as me.

The "res" and "dist" folder were placed in _INPUT_APK-->*name of my decompile apk folder*-->dist, when I recompile it...

edit: read throw the answer you got from xavierjohn22 again. Looks

like he saying it should be placed in the _INPUT_APK folder.
[Desire Android Development] wilam555:
I try this and get same unchanged arrays.xml... :(
[Desire Android Development] wilam555:
I tried even that, but nothing.. :(
[Desire Android Development] xavierjohn22:
No first is what framework is this from. Sense? Honeycomb. You will have to switch apk tool version if thats the case and use bruts latest aapt.exe

And then when you decompile do you get errors like broken 9 pngs.

Is this rhe original framework or modded already.

If you have that you really cannot have the dist folder.
[Desire Android Development] Kalashnikitty:
haaai xj :rolleyes:

request: decompile/compile boot.img with automatically copy and paste the zimage.

status readout from the rom like dsixda´s kitchen, like name etc.

automatically translating the apks from a database you´ve set up before.. LOL!
[Desire Android Development] wilam555:
This framework-res is from Leedroid 3.0.3 sense rom with applied Honey HD theme for 2.36 rom.

Yes, I get errors broken 9pngs.

So, I guess I can't modify Auto-brightness in this already modified framework-res?

Anyway THANKS!
[Desire Android Development] xavierjohn22:
This one for future. I still need to look at the routine and do one myself so i can add it.
[Desire Android Development] xavierjohn22:
Try looking at bruts site how broken pngs are treated to have a successful compile from a modded apk.
[Desire Android Development] Gunthermic:
I ran into a problem xj. After using Number 34 to apply a mod, If I type 99 to exit program, it just redoes what ever i did in 34. i.e If I apply a mod then go back to main menu and hit 99 it just reaplies the same mod again. If I after applying a Mod then do a compile or something then 99 works once again.
[Desire Android Development] wm542971618:
bravo~~~~~~~~ i like it~~
[Desire Android Development] xavierjohn22:
That would be my code goto bug. He he. Anyways ill be focusing more on my windows version so i is much flexible to code.

Sent from Singapore Desire
[Desire Android Development] Gunthermic:
Cool beans. I work around it.
[Desire Android Development] xavierjohn22:
I'll try to get more into it this Saturday and Sunday and next Saturday, Sunday so that i may have a working beta
[Desire Android Development] Araviel:
Hi !

Thanks for this awesome tool !

But i've an problem, i'm from sony xperia x10 forums and I want to change some status bar icons (taken from a theme) I put all the custom icons of the other theme in the CUSTOM folder, recompile, build, build a flash and nothing new appears in the status bar (old icons)

I've extracted the framework-res apk with rootexplorer and I doesn't see new icons too

but in the update.zip there are new icons.

I don't know what to do ;_;

thanks in advance !!!

Edit: OMG after 2 reboots it worked

shame on me

and i love your tool
[Desire Android Development] xavierjohn22:
LOL, no problem, almost there on the Windows version, next week would add the deo tool + some customization to make own commands or something
[Desire Android Development] MvSt:
This sounds great!

When we can await a beta - version? :D
[Desire Android Development] xavierjohn22:
At least a week or two. Only working real hard on saturdays and sundays.

Sent from Singapore Desire
[Desire Android Development] Pepe.II:
Gallery.apk decompiling error

Hi, i have problem to decompile Gallery.apk from XJ version 1.5.27. Error messages:

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: /home/pepe2/apktool/framework/1.apk

I: Loaded.

I: Decoding file-resources...

W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0c007b

W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0c007c

W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0c007d

W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0c007e

I: Decoding values*/* XMLs...

I: Done.

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x7f0c007b

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.data.value.ResReferenceValue.getReferent(Unknown Source)

at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)

at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(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.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)

When i try original (only deodexed) Gallery.apk decompilation is OK !!!.

I tried your "APK AUTO TOOL 1.0.7" with same errors. I tried all 3 versions of apktool with same errors.

Can you tell me, what special you do with Gallery.apk. How other translators translating this package ?

Thnx for help
[Desire Android Development] xavierjohn22:
I modified the smali codes to remove the chinese in gallery.

I also modify the images and inject a menu xml with rhe rename text.

Sent from Singapore Desire
[Desire Android Development] Pepe.II:
Hmm, hmm ... i tried modify original Gallery.apk with all your changes (menu-xx, smali). Finalized Gallery.apk i can decode without any problems. I see problem in your /res/menu/media_context_menu.xml where i find "numerical ids":

<item android:id="@2131492987" android:title="Rename" />

<item android:id="@2131492988" android:title="@string/confirm_delete_file" />

<item android:id="@2131492989" />

<item android:id="@2131492990" android:title="@string/error" />

Please repair this.

Thnx
[Desire Android Development] 1982Strand:
Is it just me, or did the smali coding change A LOT for gallery in 1.6.1?

And i have same issue as above, but when i use the chinese deodexed version, decompiles fine and i make my edits, recompile and build usable, then i have a fully working apk...

What i don't understand is why we can't decompile the Gallery.apk it AFTER XJ's edits. Isn't it the same as when we edit other apks?

I mean, for me Gallery.apk is the only troublemaker, not all the rest :)
[Desire Android Development] xavierjohn22:
lol, i'm lazy i have the file in my auto apk tool which overwrites that xml file.

since you find it out then every week you can decompile the original gallery as source, still busy with the other stuffs.

yeah, as i mentioned in my custom-res folder was not the latest xml build of the menu xml thats why you cant decompile without erros, he he, maybe next week ill update
[Desire Android Development] 1982Strand:
Hahaha, now i get it :) Good to know.. Looking forward to the windows tool, it looks awesome!

EDIT: Just downloaded the tool, but also had to download several .ocx files, as they were not installed on my system, but got it working in the end. Great program XJ! :)
[Desire Android Development] Hatman41:
Decompile issue

Tryied your autoapktool and I am trying to decompile HtcClockwidget.apk and I get the following errros. Also I could not get your xdaAutoTool Windows Version

to work. I run windows 7 64 and when I launch it I get the error Component COMDLG32.OCX or one of its dependencies not correctly registered a file is missing or invalid.

[*] D:\android-sdk-windows\AutoAPKTool1.0.7\_INPUT_APK\HtcClockWidget.apk
decompiling D:\android-sdk-windows\AutoAPKTool1.0.7\_INPUT_APK\HtcClockWidget.apk...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Jeffrey\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Jeffrey\apktool\framework\2.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=, name=layout, value=0x02090013
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0208013b
W: Could not decode attr value, using undecoded value instead: ns=, name=layout, value=0x02090013
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x020c00ba
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.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResScalarValue.serializeToXml(Unknown Source)
at brut.androlib.res.AndrolibResources.generateValuesFile(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)

***Edit*** I think it might be because you do not have an IF command for com.htc.resources. I just used the apktool.jar and on the command line loaded the com.htc.resources and it decompiled it but not with your tool.
[Desire Android Development] xavierjohn22:
yes im not sure, no if i think in second file, you can edit it,

or change apktool version, maybe the one you use in command line is version 1.3.1, the tool is 1.3.2 by default

if you dont have the comdlg32.ocx get it from the web or microsot redistibutable

that ocx cannot be posted here

http://www.google.com.sg/#hl=en&xhr...+7&pbx=1&fp=4e0d4bf5cb7c59d1&biw=1516&bih=562
[Desire Android Development] xavierjohn22:
Yeah sorry about that, cannot redistribute ocx on my windows yet until i made an installer. lol.
[Desire Android Development] Hatman41:
Thanks I have it working now....now if you could make it work to decompile honeycomb that would be great...Brut.all fixed 1.4.1 for me so that it will decompile HC...but when I put it into your program it does not decompile.
[Desire Android Development] xavierjohn22:
where's the new 1.4.1? you have to change version right? the default is 1.3.2
[Desire Android Development] Hatman41:
I do not see in your windows version were you can change the apktool version.
[Desire Android Development] tonymontezuma:
OCX error

I use Win 7 64 too and can't use your windows version yeat because the OCX files erros.

Anyway i really like your work, tks
[Desire Android Development] Hatman41:
I got it to work by doing a google search for those ocx files and then by typing regsvr32 c:\Windows\SysWOW64\richtx32.ocx at the command prompt. You need comdlg32.ocx, tabct132.ocx and richtx32.ocx
[Desire Android Development] xavierjohn22:
I have it now on the latest in my system, i am still coding when i post this,

for now you can just edit the ini file in the application directory

APKToolPath=L:\AutoTool\bin\apktool_1.3.2.jar

point it to apktool_1.4.1.jar

later when i upload the new version after a week maybe the option to change apk tool file will be there
[Desire Android Development] tonymontezuma:
hi friend

I typed cmd in the Start Search box and when cmd.exe appears at the top of the Start Menu I right clicked on it and selected "Run as

Administrator" and then executed the regsvr command

regsvr32.exe C:\windows\SysWOW64\TABCTL32.OCX

works like a charm, tkU
[Desire Android Development] Hatman41:
Thanks works like a champ...I had to rename the one that Brut.all modified for me to 1.4.1 but it decompiles HC apk's now. I also had to update the aapt.exe and apktool.bat for the HC to decompile. I can also use these new files to decompile 2.2.
[Desire Android Development] xavierjohn22:
yeah after some days ill put up the new one, i still have to do a massive error handling on some of the features,

You guys may get some unhandled errors while interacting with the app, but it would not be related to the apktool, smali and baksmali or any jar files

the latest i am using have the option to change apktool version now, whatever the filename is

also added some more tabs for other features
[Desire Android Development] Hatman41:
Very good work and I really like this app. Dropped ya some beer money :)
[Desire Android Development] xavierjohn22:
thanks mate! appreciate it a lot. :D:D:D
[Desire Android Development] Raffie75:
What am i doing wrong?

XDA Autotool is working (read, the cmd part)

Now i wont to compile recompile and so on but it is not possible to install the framework file somehow.

If i push the button for installing the framework-res it say: No framwork file installed! I know that because i am trying to install it :P

After clinking on oke i get a log.

-

C:\Users\Raffie\Desktop\HTC Desire\xdaAutoTool\_INPUT_APK\framework-res.apk

Unable to access jarfile C:\Users\Raffie\Desktop\HTC

And then... What do i have to do? Please help me out. Thnx.
[Desire Android Development] kyrillos13:
A question: In the auto deodex tool, how exactly works? "the .apk/.jar optimization option". Thanks
[Desire Android Development] 1982Strand:
Isn't it just the option "install another" under framework???

Correct me if i'm wrong, but when you use this function, the tool makes a 2.apk in the apktool system folder, right? Which it uses to look for resources not found in 1.apk..