yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] xavierjohn22:
Is it because you will need those files in _custom_res for editing purposes? Anything in that folder gets copied to apk when overwrite using _custom_res is turned on.

Actually I think I made this setting in a text file before. List the line items you want to copy in that text file and it will copy it to _custom_red. Even whole folder. Wait I'll check later

EDIT:

Xda autoapktool v3.0.2

Yeah it is there. Copy_Resources.txt file in _custom_res,

I may have forgotten this in the read me.

But I think it is in this topic.

You will see the format of line item

What to copy||where to copy in _custom_res

So if you want a binary copied over there it is easier.
[Desire Android Development] shoman94:
You got me confused... I when I recompile it's option 7...before I use option 8...I go to _input_res/folder/build/apk/res and copy that folder to _custom_res/folder/...then is option 8 to build the apk. Of I don't do that... any images etc that are added or modded.
[Desire Android Development] xavierjohn22:
Yes,

(7) single recompile

Then if you have the copy_resources.txt in custom_res you don't have to copy the folder. Just input what to copy in the folder or file. When option is turned on it will copy for you. Images modded, xmls, etc. In reality you dont modify all. Only some files and images so just input the files in the text file.

This is very useful if you do this each time a release is made like miui, translators use this a lot

(8) when you do build usable it does the copying before building.
[Desire Android Development] mastaan:
Hi xavierjohn22

Here, I would like just to replace the keyboard of my odexed ROM (Revolution ROM - built 4) by the keyboard of an official ROM for my Galaxy S2.

I am running Vista 32, I installed xADT, java is installed (build 1.7.0_45-b18), I do not know if I have Java HotSpot.

So my first question is how do I know if I have installed Java HotSpot? :confused:

I copied SamsungIME.apk and SamsungIME.odex in the official ROM, then I paste them in _app folder.

Finally, I typed 3 in xADT (i.e. DEODEX APKs), but it does not work :crying:

My second question is what do I do wrong? :eek:

A third question is: Is it possible to get a log when deodexing using xADT? (I do not have time to see the error messages sent by xADT.)

Thank you a lot
[Desire Android Development] xavierjohn22:
Your jar files should be present and correct as well. Thats the only hard part in deodexing
[Desire Android Development] mastaan:
Thank you very much but where to find the jar files? Should I generate them? How?
[Desire Android Development] xavierjohn22:
Its also inside the rom installer. Or your odex rom in phone. Search in xda as well for how yo do this.
[Desire Android Development] mastaan:
Thank you. I will try to find...
[Desire Android Development] xavierjohn22:
Need to know if matching with apktool version you set
[Desire Android Development] xavierjohn22:
It is also inside your rom /system/framework folder
[Desire Android Development] xavierjohn22:
Uploading new xdaautoapktool V4.0.0

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)

http://tweaksparadise.com/download/xavierjohn22/index.php?action=list&folder=2477
[Desire Android Development] shoman94:
So lets say for exapmle I wanna copy a complete folder:

After recompiling (OPTION-8 in v4.0.0) I want the _INPUT_APK\SystemUI\build\apk\res folder with its contents copied over to _CUSTOM_RES\SystemUI\

What do I input in the text file for that to happen and does it only happen when I select option-12?

Thanks...

Oh and I copied APKtool 2.0.0b7 into it and could see it in option 45 but it would not decompile. Says the APK's were unreadable.
[Desire Android Development] xavierjohn22:
It only happens when building and i think there's no option yet to say copy it only. I will look at it later. If i remember it correctly only files are copied before building and it happens when you do build apk. It copies the file in _CUSTOM_RES (whichever is written in text) then when option overwrite using custom res is ON it overwrites to apk. I'm sure one of the miui translator requested that. I could code what you want just give the exact thing what needs to happen.

I haven't tried 2.0b7, but if you could send me framework and apk and the apktool i can test it out.
[Desire Android Development] karo222:
I have trouble with compiling .dex files

Trieng to compile .dex file its done without any error but no new-classes.dex is created!!!!!!!!

Could you help me to fix this
[Desire Android Development] xavierjohn22:
Lol, I did not realize one of the modder of iCS added that message.

Anyways, do you have a basmali jar file in the root folder as shown in the error?
[Desire Android Development] karo222:
This is the video of what i did.

http://www.youtube.com/watch?v=MkXBjR6e_QY&feature=youtu.be
[Desire Android Development] carl1961:
try this simple tool with updated smali- files 2.0.2

karo222

simple tool with updated smali- files 2.0.2

you might try updating xdaAutoTool smili files

if you post file your trying and from what rom I can try on my end
[Desire Android Development] karo222:
Can you please make video guide for decompiling @ compiling ??

Is it necessary to install sdk??
[Desire Android Development] carl1961:
no you do not need sdk , but you might need java, I already have java installed so I cannot verify that part

video capture

for changing png's and icons and m-10 files and stuff in apk's I recommend Virtuous Ten Studio to decompile and compile
[Desire Android Development] karo222:
Thanks for your help.

using Virtuous Ten Studio can you tell me how to compile jar file after editing???

if be a video i will be thankful
[Desire Android Development] carl1961:
what version android or you decompiling, I have yet to find a fix to recompile android 4.3 4.2 seems to work
[Desire Android Development] Pneuma1985:
Select the 4.3 Api in settings
[Desire Android Development] xavierjohn22:
In settings browse 2.0.2 smali and baksmali then save, should work with 4.2, havent tested 4.3
[Desire Android Development] karo222:
Its 4.1
[Desire Android Development] xavierjohn22:
4.1 should have no issues, did you install correct framework of your rom?
[Desire Android Development] carl1961:
best I can do right now, give me link to your rom and file your trying to mod and I can try more

xdaAutoAPKTool_V4.0.0.wmv.zip
[Desire Android Development] xavierjohn22:
Thanks, when i have time ill upload this and use the video in op if you dont mind. I never got the chance to update the docs with the tool. Would be great if that documentation could be finish for users reference.
[Desire Android Development] carl1961:
it is ok with me
[Desire Android Development] hello00:
tried recompiling 4.4 googledialer.apk using ur latest autoapktool and it closes itself..doesn't happen with other apk's though
[Desire Android Development] xavierjohn22:
Please send framework apks and googledialer apk in email. Thanks
[Desire Android Development] hello00:
just did thanks
[Desire Android Development] xavierjohn22:
I tried it with apktool 1.5.2. It did not exit. There's error on min API which is 19 so i upgraded in my SDK manager. Did not exit as well.
[Desire Android Development] hello00:
is there any way to fix it?
[Desire Android Development] xavierjohn22:
I mean its working here without issues
[Desire Android Development] hello00:
fixed it :good:
[Desire Android Development] mrjoy:
It shows The system cannot find the drive specified while recompile. Whats wrong?
[Desire Android Development] xavierjohn22:
That error is known. Unless its followed by another. Cant remove it, generated by apktool jar itself when i diverted the error log into a notepad window.

Did it recompile?
[Desire Android Development] mrjoy:
yes it recompiled.....
[Desire Android Development] xavierjohn22:
Then that's good, left is to use the recompiled apk to see if mod works
[Desire Android Development] shoman94:
I still cannot get ApkTool 2.0.0 to function properly. It uses aapt differently so I"m assuming that is why.

This is the new ApkTool: http://connortumbleson.com/2013/10/apktool-2-0-0-beta-7-released/

This is the migration instructions: https://code.google.com/p/android-apktool/wiki/MigrationInstructions
[Desire Android Development] xavierjohn22:
EDIT

Will test...

EDIT:

Got it working.

But i need to recode. LOL

Was able to Decompile and Recompile MiuiSystemUI.apk

I might be able to do this on weekends. :)

EDIT:

Haven't fully tested "Recompile" but try

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

1. Change apktoolversion (45)

2. Turn ON support for new apktool version using (21)

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
[Desire Android Development] shoman94:
Thank you sir! I will download it tongiht and give it a try.... we'll see what happens! I'm using it with Samsung framework.
[Desire Android Development] xavierjohn22:
No problem, anytime
[Desire Android Development] karo222:
Trying to recompile .dex file after modifiying I will get this error

Do you know how to solve it??????
[Desire Android Development] xavierjohn22:
Looks like smali editing is wrong. if you open that smali file you might see cond_0 ,as in the error, declared but not defined in the smali file.

but i might be wrong, i have to see the file
[Desire Android Development] Spz0:
Hey there. Im running into the following error when I try to change my framework file.

I've been manually putting framework into the user/name/apktool/framework/ directory as a result. But on recompile Im still getting this error:

[*] G:\xdaAutoAPKTool_V4.0.1b\_INPUT_APK\com.google.android.googlequicksearchbox-1
recompiling G:\xdaAutoAPKTool_V4.0.1b\_INPUT_APK\com.google.android.googlequicksearchbox-1...
The system cannot find the drive specified.

As you can see, Im trying to fiddle with Google Now. Its been a bear to work with all along, but apktool2.0b7 has been the best to work with so far -- I've managed to fix all the errors except for this one.

Now, the apk builds, but it does not have a MANIFEST.MF file, which is what I need, because Im editing "AndroidManifest.xml" to offer more screen support for it. So with not having the proper MANIFEST.MF, I get SHA1 mismatch error when trying to A) run the apk, or B)copy the edited AndroidManifest.xml from the modified apk to the original.

Any help would be greatly appreciated.

Thanks m8. :)
[Desire Android Development] xavierjohn22:
You can send me the framework and apk so i can try it.

Why put apk to username/ directory? It should be apktool handling the install.

Anyways, send me if you want.
[Desire Android Development] Spz0:
Sure thing.

The tool states that it uses framework from /users/name/apktool/ every time I decompile, regardless of changing the tools framework (option 48). When navigated there, there is apktool's default framework. So I've just been inserting my framework manually there and renaming to 1.apk.

Heres the framework and gnow Im working with. Im using the N5 framework instead of my native phones framework, as there are just too many errors using my stock framework to fix, and since the goal is to get GEL working on my device, I figured to use the N5 framework, since thats what GEL was made for natively.

http://d-h.st/1vd
[Desire Android Development] xavierjohn22:
Its not always 1.apk when apktool install, there's 2,6, etc if you have more than one work needed too. Anyways I'll try your files. Does this require only one framework? Thanks
[Desire Android Development] Spz0:
Aye, this I know from using various other batch programs (ie apk manager, etc...). Autotool has never generated beyond 1.apk for me.

Thanks for taking a look m8.

I'll also be trying it on a different computer today to make sure it's not a local issue.
[Desire Android Development] xavierjohn22:
Is there any framework file in your rom besides this framework.apk?
[Desire Android Development] Gunthermic:
I am not the master. However since I always do Gnow for my inverted threads...

1. Apktool 1.5.2 jar files works perfectly fine.

2. Stock framework 4.3 or 4.4 to decompile and recompile gnow.

3. After compiling to prevent a lot of fc's in Gnow. You should copy over all u r changes to Org apk.. to maintain siganture..

Sent from my SM-N900V using Xparent BlueTapatalk 2
[Desire Android Development] Spz0:
Well, as I stated, I used the Nexus 5's framework for decompiling, because the launcher portion was compiled using stock N5 framework, so thats the framework you have.

Here is my phones native framework if it interests you. I have way more errors using my stock framework (well over 25) over the N5's.

Good Luck!!

http://d-h.st/C2v
[Desire Android Development] Gunthermic:
Sorry missed that part. Yea use nexus 5 framework.

Post the errors?

Sent from my SM-N900V using Xparent BlueTapatalk 2
[Desire Android Development] Spz0:
You can look back a few threads for the specific error. The minor errors are no default translation errors, which I've corrected, now its just the "Cannot find the drive specified" error on recompiling.

Thats funny, cuz 1.5.2 throws a tonne of errors on decompiling Gnow for me. I've had the most luck on a variety of apks using the 2.0.0b7 (love that update).

I'll be rebuilding my windows build environment soon (as well as my linux build env), so I'll be reinstalling everything fresh. Hoping that may fix the issue, that is _if_ its something related to my computer.

But maybe xavierjohn22 can pull a rabbit out of his hat. :)

~Cheers!
[Desire Android Development] xavierjohn22:
My take is use my recompiled apk if the error is drive specified. Thats a known bug. Use the build usable apk menu and try that apk
[Desire Android Development] Spz0:
K I'll give it a shot. Where's your recompiled framework located?
[Desire Android Development] Gunthermic:
Only trying to help.

First look I would suggest you make the path easier sir. You App path has "." in it. I would remove those and only use _

I have never had issues using 1.5.2 with Google Now decompiling or recompiling.

Like I said was only trying to help... When his app says it cant find drive specified it's either one of two things. Your trying to compile an apk folder in another input folder other than the one the app is running from(do it all the time.. I have 2 or 3 version of this running doing many apps). or it doesn't like the path the app is running in...
[Desire Android Development] Spz0:
I'll also give that a shot m8. Thanks. :)

Did I come across harsh in my prior conversation? No harshness was intended, I openly welcome your help and any others. ;)

~Cheers!
[Desire Android Development] Gunthermic:
Did anything help?
[Desire Android Development] Spz0:
Unfortunately no, nothing has helped thusfar.

Renaming the path of apktool, as well as the apk folder does not work.

Using option 8 (build usable apk) _will_ build the apk, but it does _not_ write my edited AndroidManifest.xml file -- it retains the original xml.

You see, Im editing the androidmanifest.xml to support more screen sizes (a simple edit really - just 6 lines of code). Upon recompiling, the /META-INF/MANIFEST.MF file needs to be updated as well -- updating the sha1 digest for AndroidManifest.xml. This is not happening, therefor nerfing the whole apk. :(

Im still working on it sporadically, but Im a new father, so its few and far between these days that I can actually sit down for a few hours at a time and brainstorm. lol

Cheers!
[Desire Android Development] xavierjohn22:
Congratulations.

Anyways, try using the overwrite usibng custom res, and use your compiled android manifest to inject in the apk being rebuild. I havent done that in a while but its worth a try. On the op of this topic there is an explanation how i use overwrite using custom res folder. I use it mainly for images and compiled edits of xmls.
[Desire Android Development] shoman94:
So I finally had a chance to try some things.... Decompiled fine except previously I was able to rename .jar to .apk and decompile them. So I decided to try the baksmali jar and I get this for an error.

[*] C:\ROMs\SHOstock-SGS4\XXUFNAD-4.4\xdaAutoAPKTool_V4.0.1b\_Jar_Files\android.policy.jar
decompiling C:\ROMs\SHOstock-SGS4\XXUFNAD-4.4\xdaAutoAPKTool_V4.0.1b\_Jar_Files\android.policy.jar...
'jar' is not recognized as an internal or external command,
operable program or batch file.
Can't find the file _JAR_FILES\android.policy.dex\classes.dex
[Desire Android Development] xavierjohn22:
Please send me all files or link to files so i can try too
[Desire Android Development] Chirtagh:
Hi here...

Hi i don't know what this means need help here pls!!!
[Desire Android Development] carl1961:
1. Copy comdlg32.zip and save to Desktop.

2. Unzip the file using WinZip , 7-zip or any other utility.

3. Extract comdlg32.ocx to Windows\System32 folder.

4. Type the following command from Start, Type Run then Hit enter then under Run type

5. regsvr32 %Systemroot%\System32\comdlg32.ocx
[Desire Android Development] xavierjohn22:
4.0.1b-xdaautoAPKTool host links updated
[Desire Android Development] Shaftamle:
Edit: It does work with apktool 2.0b9. My only issue is even when using _custom_res, the /res/raw file is compressed which breaks the apk. Is there any way to edit the "build usable apk" script to prevent compression of that file??

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

CheckOutMyThemedGoogleKeyboards!!!!!!

TouchWiz was designed by a child.

MyColorScreen
[Desire Android Development] noooooo:
TRied to de compile aan apk and everithing gone very well, without modifying the apk i tried to recompile and it said me impossible to fin the specificated unit, what does that mean??
[Desire Android Development] IRoN MaN9:
hi

sorry if this repeated question i searched the threat but no result

i tried to compiling apk file (font) with xdaAutoAPKTool_V4.0.1b so after recompiling the file i get 2 apk files in dist folder and the other apk in _OUT_APK

so now i want to sign it which apk file i have to drag the one on dist or in _OUT_APK folder

im noob in this so be patience with me guys

regards
[Desire Android Development] Shaftamle:
The dist folder contains your recompiled app,the _out_apk folder contains APK files that are built after using function number 4, build usable apk.That's the one you want to sign.

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

CheckOutMyThemedGoogleKeyboards!!!!!!

Verizon: Making modders lives' miserable since 2008

MyColorScreen
[Desire Android Development] MishFdM:
Great work, thanks :)
[Desire Android Development] xavierjohn22:
No problem man, i started too asking pips here.
[Desire Android Development] affmalg:
One page earlier.

http://xdaforums.com/showthread.php?p=13465691
[Desire Android Development] xavierjohn22:
Welcome mish, and thank you too.
[Desire Android Development] xavierjohn22:
MIUI Smali hunting on third post
[Desire Android Development] 1982Strand:
Hey XJ..

I could use some assistance in some error-correction :)

I'm recompiling and get an error in DSPManager

Recompile log attached.

For DSPManager, i figure it has something to do with a string, a single one got deleted: <string name="dsp_settings">DSP Settings</string> and some others were added..

Am i right that it's because the arrays.xml isn't updated with the changes in the -ZW folder and can i ignore it as i'm not using the -ZW language?

But also, it gives me a parsing error, which i'm not sure why i get...?

(Ignore the Gallery3Dold error, it's because there is no such apk in my input-folder, but i forgot to delete it before recompiling..)
[Desire Android Development] MishFdM:
Check C:\Users\Administrator\Desktop\AutoAPKTool1.0.4\_INPUT_APK\DSPManager\res\values-da\arrays.xml , line 64 or string 'dsp_settings' , there is some kind of error, sometimes it's just a "<" missed, sometime something more :)
[Desire Android Development] 1982Strand:
Doh!!

Missed line :) I searched and searched for errors in the strings, but never saw that last one, haha!

Thanks!

EDIT: added the 1.5.6 changes to the -ZW folder, so now everything is cool, no errors at all ;)
[Desire Android Development] Devildog8791:
Okay I am able to decompile with no errors, but I still can't recompile. I have attached my recompile log.

Edit: I only thought that it was recompiling. I was blind.
[Desire Android Development] xavierjohn22:
my framework is base on miui's framework every week, your framework should be base on the rom you are trying to decompile and recompile apks
[Desire Android Development] xavierjohn22:
Why should it br a bug?

It does what it says

only overwrite files placed in that CUSTOM_RES folder

I made a wrong HOW TO in the OP when i made the binary sample for the framework xml

Just need to changed my instruction to

PLACE TO THIS PATH FOR EXAMPLE:

"_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"

If you read "EXAMPLE 1: IMAGE", it explains how it works

It do just that, there's a detailed structure on where to put the files in the OP, if you wanna do all files in build thats your call, you can edit and manipulate the script to your liking.
[Desire Android Development] Devildog8791:
I'm trying to do the Dropbox app from the market. I want to invert it. Would I still need my framework since it will be for different kinds of phones?
[Desire Android Development] xavierjohn22:
LINE NUMBER 6, check that

C:\Users\Tim\AutoAPKTool1.0.4\_INPUT_APK\Dropbox\AndroidManifest.xml:6: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'

"hardwareAccelerated"

AND FYI, You must find the right framework file for drpbox i think
[Desire Android Development] 1982Strand:
So, this might be a dumb question..

But, if i got a full rom zip, can i just copy/paste my customized apks into the zip, overwriting the originals? Will the zip still be flashable?

Or do i have to re-sign it or do something else?

:)
[Desire Android Development] xavierjohn22:
yeah exactly, you can edit a full rom now. LOL

Just overwrite as you said

- APKS (add also and remove)

- build.prop

- also other files like themes, images, etc

Choose to SIGN zip, (8) i think, that is why i put it there
[Desire Android Development] Devildog8791:
This is becoming more trouble than it's worth.
[Desire Android Development] 1982Strand:
Yeah i get it, hehe, i did the whole thing and made a language pack, but that was an edit of an OTA upgrader. So i just wanted to copy my edited apks from that and into a full rom zip :)

And that worked like a charm, didn't have to re-sign either ;)
[Desire Android Development] xavierjohn22:
If sure is, then maybe you have to rest or stop. I'm slowing down too on Modding Apks for troubles like this.
[Desire Android Development] xavierjohn22:
Cheers. But may have been your recovery,s signature verification is disabled already.