yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] xavierjohn22:
You could just create a shortcut in desktop for AutoAPKToolMain.bat or double click AutoAPKToolMain.bat, i just put the commandprompt.bat there for some other usage

multi lang i am not sure, i will have to research for it, lol. The main menu script can be change to any language pretty simple.
[Desire Android Development] xavierjohn22:
Yea that is correct. No need to be so exact about the steps. If you know what it does you can get what you are doing pretty qell.

If you have a ready multi lang pack. You just overwritw those apks plus edit build.prop or remove it. Anything you overwrite in a zip file change only the file. That way the script an meta filea are intact. Sign the zip after overwriting
[Desire Android Development] Droidzone:
Hi..

Bear with me, as theming is very new to me..

I tried Autoapktool to change an image in framework-res.apk (yes, I know I can just replace the file with a compression program). I changed _INPUT_APK\framework-res\res\drawable\default_wallpaper.jpg and \framework-res\res\drawable-hdpi\default_wallpaper.jpg.

Then I chose 3 followed by 4. I didnt change any default options. I found that in the new framework-res.apk, the images hadnt been replaced. What option have I missed?
[Desire Android Development] affmalg:
You habe to put the image into _CUSTOM_RES/"app name"/Res/drawable-hpdi. Then the image overwrites the original.

@XJ have you seen my post about the _CUSTOM_RES bug?
[Desire Android Development] JUGmobile:
Question?

Hi!

Yesterday I tried this tool, and for example I have translated calculator app in my own language succesfully, but then I formated my sd card, made new ext3 and fat32 partitions, and install new Rom on my desire (MIUI XJ D2EXT X-PART 1.4.29 - 2.3 GS 3P FINAL FIXED). Now I cant get any .apk files on my computer. I have now with this rom 453MB free internal memory, but no .apk files on SD card. All .apk files are in root directory of a phone memory, but I cant access this memory with my computer.

Any Idea how can I get .apk files from my phone to my computer, so I can start translating it, please?

Thanks

JUG
[Desire Android Development] xavierjohn22:
You just need to download the en zh update or multi lang pack in my miui xj rom thread. Why go to trouble of looking for it. All apks are in system app.
[Desire Android Development] xavierjohn22:
Ah sorry i missed that one out. Link please buddy.
[Desire Android Development] JUGmobile:
Question?

Thanks man, I didnt even think about that =) sory for dumb question :)
[Desire Android Development] KBizzle:
I will definitely try this. One last question that has been boggling me. If a theme can be flashed to a device and work, why would taking the themed items out of the theme zip and just simply replacing the corresponding files using 7zip, cause the rom to bootloop when flashed?? Thats what I am not understanding I suppose. I have tried every which way to get this to boot. I guess I should have been more clear on my intentions. I want to theme an already existing rom.

So what I know is that the theme flashed seperately works, but adding the files from the theme directly to the rom, creates a bootloop.

This is why I came here. I thought my methodology was causing the bootloop, and that I needed to recompile the framework from the rom with the files from the apk of the theme.

I know that this has rom development questions in it, and I am not asking that anyone can fix the bootloop, just trying to figure out why my method isnt working. Thought maybe a themer has dealt with this before and if all the answer I get is that its the roms fault, then I will accept it and move on. Thanks.

EDIT: And just to clarify, I have tried the above steps that I outlined on another theme and it worked. Every other theme I have tried just bootloops. Someone suggested that I need to sign the apk after I recompile, is that necessary and could it be causing my issue?
[Desire Android Development] qaysedcftgb:
you are on the right way.

my first steps were the same...

took a theme (with the APKs) and just exchanged the PNGs from the original already installed framework and apks with the corresponding from the alreday themed with the packing program method

Your thought and your way is perfect.

My suggestion with your bootloop:

-check the compression method

and

-afaik: never sign system apks!

Your question:

--

One last question that has been boggling me. If a theme can be flashed to a device and work, why would taking the themed items out of the theme zip and just simply replacing the corresponding files using 7zip, cause the rom to bootloop when flashed??

--

is eligible and I don´t understand the boot loop effect, too.

Just exchanging the PNGs shouldnt do a loop. With the correct packing method this way runs perfectly.

Therefore the question beside would be (and maybe this is the key question to your bootloop):

is your ROM deodexed?

-> never tried such theming actions with a non deodexed ROM

cheers

qaysed
[Desire Android Development] KBizzle:
Good question. I'm not sure. I suppose I figured if the theme works when it is flashed, replacing the same files into the rom wouldn't matter.

You say to check the compression method, does that matter if I am not physically unzipping/zipping a file?
[Desire Android Development] 3rdstring:
If you're decompiling / compiling there is compression happening. I generally run my recompiled apks through this script.
[Desire Android Development] KBizzle:
I sent you a pm.

---------- Post added at 07:55 PM ---------- Previous post was at 07:42 PM ----------

Dont want to clutter this useful thread up with any more of my novice ramblings. Many thanks to the guys that offered me help. I will keep grinding and hopefully get things figured out. I truly appreciate.
[Desire Android Development] qaysedcftgb:
-> I assume your mounting/opening the factory.rfs file and inject your modified apk into this?

Is this right?

Flashing the modded apk via CWM works?

(I hope that I got you right now?!)

In my first days I also tried to inject modded files and add scripts directly into the mounted *.rfs file. This worked one time, two times but suddenly got also bootloops.

In the end I tried the recommended way to dump the OS via the adb commands:

---

adb shell

su

mount -o remount,rw /dev/block/stl9 /system

dd if=/dev/block/stl6 of=/sdcard/factoryfs.rfs

---

-> from a windows cmd

The complete "rudolf guide" is found in this forum here:

http://xdaforums.com/showthread.php?t=1046306

^this runs like a charme!

Cheers

qaysed
[Desire Android Development] KBizzle:
Thank you for the info. Actually, its just a flashable rom in a zip format. I am attempting to view the zips contents by using 7zip. Not actually extracting but rather just dragging and dropping the framework res apk directly into the rom.
[Desire Android Development] xavierjohn22:
Thats fine. Winrar would be better imho, when you drag its prompting for how to put the files. Then you can choose "store" which almost everytime does not corrupt the format of the flashable zip.
[Desire Android Development] KBizzle:
Someone told me winrar causes problems when dragging files into a zip?
[Desire Android Development] Bardamuz:
hope to get the chance to see you when i return in SG , yet in China finishing to cook some good stuff

thanks a lot for your tool
[Desire Android Development] Aternus:
@xavierjohn22

I've written a new script to solve dependency issues with Windows x86 and x64. Please see attached ;)

Tested on all Windows 7 versions.
[Desire Android Development] qaysedcftgb:
how about using

%windir%

instead of "hardcoded"

c:\windows

-> different installation path of the OS?

Cheers

qaysed
[Desire Android Development] Aternus:
Good idea! :)
[Desire Android Development] PrimeDirective:
i dont have fileregister.exe on my computer. is there another way to register the ocx files? i'm using XP.
[Desire Android Development] KBizzle:
I did it using the aaa file located in the folder. Just make sure to run it as administrator.
[Desire Android Development] cmajetic:
nice tool, worked fine but i cant recompile my apk.

following screnario:

i decompiled a launcher.apk and got this files:

assets (folder)

res (folder)

smali (folder)

AndroidManifest.xml

apl.tool.yml

& changed the things i liked.

how can i create the launcher.apk now? i can't select folders to recompile, sorry i am a noob!
[Desire Android Development] Kameo:
I think that you need to reselect your main apk (launcher.apk, click the checkbox).

Then right-click your apk's name and select 'Single recompile with...' or 'Single recompile + Build with...'.
[Desire Android Development] cmajetic:
thanks for your help, but...

doesn't work...lol it is funny how many hours i spent because i just want to change some icons of the launcher standard theme (because theme engine is not included yet) and it still does not work...

i mean all apks have folders and xmls in it, i would just like to know how can i get an apk out of some folders, xmls...

here is the picture with the apk and the files that i got when i decompiled it,

now how can i get the apk back (with my changes in /res) out of the 4 folders (left circle) and 2 other files (right circle) ?
[Desire Android Development] Tan9890:
Hi.. It seems the downloadlink for xdaAutoTool_V4.0.2.rar is broken... Can you please fix it? I need the tool..:D

Or any other link, if available...

Thankz..
[Desire Android Development] J3STUR:
This is not working for me either, I followed the directions and tired the Link in OP
[Desire Android Development] J3STUR:
Gonna try this and see if it works...

EDIT: Okay Thank You! Got her running now.
[Desire Android Development] J3STUR:
Yes! Okay so after a long time of play around with different apktools and different roms I was able to decompile and then recompile the SystemUI.apk with out any errors and its a great relief. I used unofficial CM9 nightly using apktool1.4.2.31e6dc5.jar to do both.

Yes Im new to the theming scene but i just started learning how to use these tools and how to make themes all in last week and I learn ALOT and will continue to learn more, but i am not stupid. I have CS degree and A+ certification and CIW certification and other fields of knowledge and this is something I always wanted to get in to, so I learned it real quick.

I could not get HTC ICS rom to decompile with with any of the apktools I have and yes put both framework files when I did it but maybe I need to find one that is more stock then the one i tired.

Any one have any advice or and an apktool that will decompile HTC ICS rom?

This is a nice program by the way, first I was just using apktool then I started using apkmanager and now this and it is very nice and work great and wanna say thanks for creating it and help making this learning process a little bit easier then what I was doing. Keep up the good work!
[Desire Android Development] sengab1991:
I got this when trying to deodex ICS apps and framework

"

Deodexing AccuWeatherDaemonService.apk ...

UNEXPECTED TOP-LEVEL EXCEPTION:

org.jf.dexlib.Util.ExceptionWithContext: Unknown opcode: f1

at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)

at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:87)

at org.jf.dexlib.CodeItem.readItem(CodeItem.java:157)

at org.jf.dexlib.Item.readFrom(Item.java:76)

at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)

at org.jf.dexlib.Section.readFrom(Section.java:143)

at org.jf.dexlib.DexFile.<init>(DexFile.java:431)

at org.jf.baksmali.main.main(main.java:250)

Caused by: java.lang.RuntimeException: Unknown opcode: f1

at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:51)

... 6 more

Error occured at code address 20

code_item @0x60d4

"

any help ??
[Desire Android Development] 1982Strand:
Quick help to the last couple of issues:

Update the sdk to get latest aapt.

Google for apktool 1.4.5, or search the original apktool thread and use that.

Remember to install the right framework (s)

When editing images, put them I.. custom_res folder before "build usable" If editing binary xmls, put the recompiled (coded) xml (from the /build/apk/res folder) in custom_res too, or use the copy_files.txt.

To deodex ics, you'll need latest (1.3.2) smali/baksmali version.

Last thing, make sure you have no spaces in folder paths and filenames, it won't play nice with the tool. :-)

Sendt fra min HTC Desire med Tapatalk2
[Desire Android Development] sengab1991:
thanks for replaying I managed to deodex some jars of the framework folder but other give me that exceptions

Error occured while loading boot class path files. Aborting.

org.jf.dexlib.Util.ExceptionWithContext: Cannot locate boot class path file core.odex

I have installed the Framework-res.apk and TwFramework-res.apk successfully

any ideas how to solve that ??
[Desire Android Development] 1982Strand:
Check your bootclass path files, the error says there's no core.odex file, or there are made a wrong reference in the bootclass path

Sendt fra min HTC Desire med Tapatalk2
[Desire Android Development] GabrielSousa:
need some help,

i can decompile SystemUI.apk (ics 4.0.4) without erros

but when i compile i have errors, what i'm doing wrong ?

---------- Post added at 12:59 AM ---------- Previous post was at 12:16 AM ----------

i have the same problem, but with me didnt solve :(
[Desire Android Development] GabrielSousa:
found the problem, had an old aapt.exe on c:\windows :S
[Desire Android Development] AllAboutAndroids:
Hey folks, I just started off editing APKs and so far I can easily decompile whichever one I want. I go in and edit all images found in the Drawable folders BUT this is where my issue comes into play. I cannot recompile the APK. It gives a very famous error "INVALID RESOURCE DIRECTORY" however, the only ting I changed was the images. I saved them in the exact same format and left the naming the same. Anyone know a fix for this?

NOTE: I have already set the IF with my ROM's Framework-res and I have used APKTOOL 1.4.3 as well as the modded 1.4.2. Also weirdly enough, I decompiled Launcher2.apk and then without editing, I ran the Build so Compiling and it gave the same "Invalid Resource Directory" issue...so any help would be appreciated :D

EDIT: Here are 2 screenshots: https://docs.google.com/folder/d/0B-NvHMKK7IuARXRHR2t5a0x0dlE/edit

Thanks!
[Desire Android Development] Peteragent5:
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)

All credit goes to xavierjohn22
[Desire Android Development] Glen L:
is xdaAutoTool compatible with 32bit windows 7?

When I run xdaAutoTool.exe nothing happens, the app doesnt run. :(
[Desire Android Development] wolfpack612:
yes mine works. did you register the needed files ?
[Desire Android Development] Glen L:
Yes I registered the needed files.

I got it to work on my 64bit laptop, but it doesnt run on my 32bit desktop.

anyways, I can decompile with no problems, but upon recompiling i get the following errors

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
[Desire Android Development] sniperkill:
Hey guy's, I got a small problem. When I first used this app, I had no problems starting it up and using it to an entent, but after my computer crashed, I had to re-install it again, but now after I manually registered all the ocx files, I double click the "xdaAutoTool" application extention but nothing happens? It does not start anymore. Has anyone had a problem like this? Or does anyone have any suggestions? Please?

I'm going to bed so i'll check back in the AM. TIA
[Desire Android Development] sniperkill:
I have windows 7 32 bit OS, and it did work at one time. But for some reason, I had to uninstall it, but when I re-installed it it didn't work. I try to run the shortcut but nothing happens.
[Desire Android Development] xavierjohn22:
I better add this in open, lol. Hi to all. It was a long long vacation. Ha ha ha.

I updated the downloads and OP with your attachment.

The ReadME history will read like this

And there is Version 2.0.4 there in the downloads which has ICS

I combined your addition to Agat63 which complete the 2.0.4

To others,

It should run in 32 and 64 windows 7.
[Desire Android Development] xavierjohn22:
Apktool.yml not present when you decompile? Or can't find its path.
[Desire Android Development] boyq:
Hi. This is just my first time to comple/recompile apks so please bear with me.

Can I use auto APKTOOL (aAT) CURRENT VERSION: 2.0.4 to edit apks from Sony stock ROM or this is just for those apks working in MIUI XJ Rom?

Thank you.

EDIT:

I'm currently using this one:

xdaAutoTool (xAT)

CURRENT VERSION: 4.0.2 RELEASE

I'll just feedback if it works alright.

Thank you.
[Desire Android Development] toxicOne:
Yeah that is the Best Windows re/decompile tool ever... ;)

Send via Tapatalk SKYBLUE DELUXE ~ MOTOROLA XOOM2 ME ~ TAB
[Desire Android Development] Multisaft7:
hey guys, this is my first try to compile/decompile, so pls bear with me :fingers-crossed:

I wanted to change my framework-res.apk, i compiled it, made my changes, and then i wanted to recompile but this didn't work.

What could it be?!

I only have to push recompile All or?

Thanks in advance.
[Desire Android Development] schmeggy929:
I have a similar issue when trying to decompile and recomplie SystemUI.apk. Andriod 4.0.3( HTC Evo 4G LTE. It shows done! but isnt there supposed to be a new SystemUI.apk in OUTPUT_APK folder???

[*] SystemUI.apk

-----------------------------------------------------

Recompiling SystemUI.apk folder...

I: Smaling...

I: Building resources...

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\SCHMEG~1\AppData\Local\Temp\APKTOOL4085164090938618212.tmp, -I, C:\Users\Schmeggy929\apktool\framework\1.apk, -I, C:\Users\Schmeggy929\apktool\framework\2.apk, -S, C:\Users\Schmeggy929\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\Schmeggy929\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)

at brut.androlib.Androlib.buildResources(Androlib.java:248)

at brut.androlib.Androlib.build(Androlib.java:171)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:182)

at brut.apktool.Main.main(Main.java:67)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\SCHMEG~1\AppData\Local\Temp\APKTOOL4085164090938618212.tmp, -I, C:\Users\Schmeggy929\apktool\framework\1.apk, -I, C:\Users\Schmeggy929\apktool\framework\2.apk, -S, C:\Users\Schmeggy929\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\Schmeggy929\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:87)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)

... 6 more

Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified

at java.lang.ProcessBuilder.start(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at brut.util.OS.exec(OS.java:78)

... 7 more

Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified

at java.lang.ProcessImpl.create(Native Method)

at java.lang.ProcessImpl.<init>(Unknown Source)

at java.lang.ProcessImpl.start(Unknown Source)

... 11 more

Done!
[Desire Android Development] 1982Strand:
Seems the tool can't find aapt. Check your paths, if you can run aapt without error from anywhere in a command prompt, you're good to go.. And make sure the aapt is the latest version :)
[Desire Android Development] schmeggy929:
In Environment variables

I have one PATH for User Variables and one for System Variables:

.;C:\Program Files\Java\jre7\bin;C:\Program Files\Java\jdk1.7.0_05\bin;C:\Users\Schmeggy929\De sktop\xdaAutoTool\bin\

Is this the right syntax?
[Desire Android Development] alkhafaf:
are these tools compatible with Samsung devices? i9000?
[Desire Android Development] jayallen1980:
Keep getting System error 53 file not found for xda auto tool
[Desire Android Development] 1982Strand:
You need to add the path to android sdk folders "tools" and "platform-tools" instead and remove the autotool path.

Sendt fra min HTC Desire med Tapatalk2
[Desire Android Development] xavierjohn22:
My System environment "Path" points directly to my aapt so everytime i switch aapt its looking for that.

C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\android-sdk-windows\platform-tools;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Pinnacle\Shared Files\;C:\Program Files (x86)\Pinnacle\Shared Files\Filter\
[Desire Android Development] xavierjohn22:
are you using correct framework and aapt versions?
[Desire Android Development] schmeggy929:
Ok So I somewhat got Auto Apktool to work(I think)

I want to decompile/recompile SystemUI.apk (from Sense 4.0/Android 4.0.3)

I would like some help on some of the settings.

1. Should I use decompile/recompile ICS apk ( 14 and 15)?

2. And what should be on or off in Settings 23-31? and 42-43?

3. And I know it is a system Apk after its all done should I sign it and and then rename to SusyemUI.apk and push?

Thanks any help would be great!
[Desire Android Development] Impact7:
When I want to decompile the MIUI HomeLauncher I get this log:

Does someone know how to fix it?
[Desire Android Development] 1982Strand:
Are you using newest aapt and apktool 1.4.5 or newer?

Sendt fra min HTC Desire med Tapatalk2
[Desire Android Development] Impact7:
Yes I do..

Maybe it´s because I implemented an framework with #1, which don´t belong to the app?
[Desire Android Development] mahdijafari:
hi

I download xdaautotool but I haven't FileRegister.exe

where is FileRegister.exe?I don't see it in res so I can't run xdaautotool.exe

please help me

thanks
[Desire Android Development] xavierjohn22:
register manually using windows. google is your best friend on how to do this.
[Desire Android Development] xavierjohn22:
Version 3.0.1 autoapktool to be uploaded this evening

Coded to dynamically change apktool version

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

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)

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

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