yashsingh1/xdaforums huggingface dataset:
[Android Software Development] J0KER!:
ok. i dont have the problem anymore. my modified files are in the compiled apk.

but now i cant install the .apk.. i get an error "app is not installed" (i changed only .png files. ; if i try to modify them with the 7zip method via drag and drop i get the same error while installing) whats my fault?
[Android Software Development] brock1909:
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.

decomp_apk function complete

decompile function complete

i get this when i try to decompile secmms,apk

ill be honest i dont know how to install the proper framework (GS4, Eclipse TW S4 Edition Rom)
[Android Software Development] min0rity:
|Sun 07/14/2013 -- 23:26:52.64|

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

java version "1.6.0_45"

Java(TM) SE Runtime Environment (build 1.6.0_45-b06)

Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

sigh, no luck with 1.6.x.x either :( [MENTION=637263]bovirus[/MENTION]
[Android Software Development] raziel23x:
Compiling issues and decompiling issues must be reported

Here

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

I had this noted in the op since the creation
[Android Software Development] Javier.D:
I´m trying to decomplie the system UI but it doesn´t work. What can I do??
[Android Software Development] raziel23x:
refer to post above you
[Android Software Development] Javier.D:
Ok, sorry, How can I install framewor-res and SystemUI?? I don't know what i have to do here:

Enviado desde mi Nexus 4 usando Tapatalk 4 Beta
[Android Software Development] SugarFreeMilkTea:
With 1.0.12, I can't run script.bat & setup.bat. Both quit directly...
[Android Software Development] raziel23x:
I am trying to figure that out since it does not affect me it is hard to troubleshoot can you give me your setup
[Android Software Development] SugarFreeMilkTea:
I'm using Win7 Ultimate x64 (Hong Kong Traditional Chinese version), latest JDK. After downloading, I extract the zip to the root of hard drive.

In the previous experimental version & the latest stable version, I can run scripts.bat with no problems. Also I can run setup.bat to setup folders but can't install framework. I need to use the previous stable version to install framework. And now, the latest experimental version do nothing for me...

I'm thinking about that is the problem caused by the language version of windows? But why the previous stable version didn't have that issue? I can't understand that... :crying:
[Android Software Development] raziel23x:
Pm me the last working experimental build you have so I can compare.
[Android Software Development] bstyle bears:
I did but in didn't compile apk files..
[Android Software Development] dany_danay:
I cant compile:

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

|18/07/2013 -- 14:09:15,79|

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

java version "1.7.0_25"

Java(TM) SE Runtime Environment (build 1.7.0_25-b17)

Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\DANY\apktool\framework\1.apk

I: Loaded.

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

hardwareAccelerated, value=0xffffffff

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

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

0x010102d3

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:58)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:50)

at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:3

5)

at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe

sourceParser.java:351)

at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu

e(XmlPullParserDelegate.java:69)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT

ag(StaticXmlSerializerWrapper.java:267)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati

cXmlSerializerWrapper.java:211)

at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD

ecoder.java:87)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe

coder.java:141)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull

StreamDecoder.java:155)

at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode

r.java:131)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264

)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:116)

at brut.apktool.Main.cmdDecode(Main.java:148)

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

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN

otExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:163)

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

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

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

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

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

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:

103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:159)

... 4 more

Presione una tecla para continuar . . .
[Android Software Development] dhirend_6d:
Keep framework-res.apk in other folder. And then select 1.Install framework-res.apk from selection. If you still get the error, then type this in the same cmd window.

apktool if framework-res.apk

.

Do the same for SystemUI.apk.

What app were you trying to edit and compile?? Delete public.xml and try again.
[Android Software Development] raziel23x:
I should have a update for the force closes of the application in a day or two that some are getting.

I am working on a fix as we speak because of some issue that has happened because of a spellchecker alternative that i used mucked up a lot of the characters of the code and have also corrupted some parts so it is taken me some time to go through every line of code which is a few thousands of line of code to look through and fix as needed
[Android Software Development] tacchan23:
Maybe this is stupid info... but maybe someone is stupid as me :D

I tried to sign an APK but got the jarsigner error.

I then followed the instructions to add the jdk to path in my system variables, but I still kept getting the same error.

After a lot of searching on google, someone mentioned (on a similar problem) to close the and reopen the program.

Now it works^^
[Android Software Development] georgiecasey:
great tool, thanks, really saves me time.

is there any option to sign with a different key other than testkey?
[Android Software Development] raziel23x:
I think i fixed the force closes on the scripts
[Android Software Development] peter_baz:
first of all thanks for your work!

i have been using it for long time but now i bought a s3 mini and installed enox rom

i try to edit systemui but i get errors when i try to decompile it..
[Android Software Development] Javho:
Hi, anyone know how i can sign apks with the new option 13 ? (Android Market ... ) please

and thx for your aweosome work :D
[Android Software Development] HackitZ:
APK is from JB 4.2.2, it's a sony apk.

Ok I'm not a complete noob, but i do need some help, i can decompile the apk, then compile the apk without any errors (i have tried both options)

Building Apk

Aside from the signatures, would you like to copy

over any additional files that you didn't modify

from the original apk in order to ensure least

# of errors (y/n)

with the same result, i'm missing the values folder, and this is where my mod is as it's an xml i'm altering.

as I'm sure the answer is simple can someone shed a little light?

Thanks
[Android Software Development] georgiecasey:
ah class, i didn't see this in the experimental release!

looking at the source of script.bat, it looks very easy. just place your keystore file in the 'other/' directory and remember the filename.

edit script.bat starting at line 825

set KEYSTORE_FILE=filename_of_your.keystore

set KEYSTORE_PASS=password_to_keystore

set KEYSTORE_ALIAS=alias_of_keystore

i could only get it working by removing the %1 at the end of line 830. it was giving me an 'Only one alias can be specified' error. i don't know if raziel23x is using that for something or is it a bug, not sure.

then try to sign. it will output an error if JAVA_HOME isn't set right on your path.

if it all works, don't forgot option 5 to zipalign for the play store.
[Android Software Development] Javho:
im using the latest stable release and this is my error

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
"jarsigner" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
El sistema no puede encontrar la ruta especificada.

And i tried to PATH, but i dont understand that's what I have to patch and how
[Android Software Development] georgiecasey:
ah, you're right, it's in the latest stable release as well.

yep, that error means you haven't added java_home to the path. there's loads of info online on how to do it. it's very simple. no point repeating stuff

http://stackoverflow.com/a/6521412/467509

that's assuming you're on windows.
[Android Software Development] skyx26:
Hi, I'm trying to edit and recompile framework-res.apk and SemcUxpGeneric.apk.

Should I recompile them as "Compile System AKP files" or as "Compile Non-System APK files"?
[Android Software Development] Javho:
i follow he guide mate, but now i got this error

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Only one alias can be specified
[Android Software Development] georgiecasey:
you forgot what i said in the first post but you're getting there. you need to remove the %1 at the end of line 830. but i've come across another bug for jre 1.7, which you seem to be using. jarsigner needs '-sigalg MD5withRSA -digestalg SHA1' added in java 1.7. so replace line 830 in script.bat with this full line:
[Android Software Development] Javho:
but what is the name of the file that I edit and edit it with notepad++?, I'm a little confused sorry for so many questions
[Android Software Development] georgiecasey:
Script.bat in the APK-Multi-Tool root folder.

line 830 of the latest release.
[Android Software Development] Javho:
now its work perfectly :D thks for evrething mate :D
[Android Software Development] raziel23x:
resources.arsc file in the keep folder is where all the xml data is compiled and where that folder is contained as well in the compiled format
[Android Software Development] HackitZ:
Is there a way to edit xml's and have the file structure stay the same?

Or Can i compress the one xml file and use 7zip to over white the original?

Thanks for the reply

Sent from my custom ZL, with mind control.
[Android Software Development] SXUsr:
As you need to compile it anyway it's much simpler to just use the recompiled apk.
[Android Software Development] nitinvaid:
Every thing was running perfect until my system crashed and from then getting same error always no matter i have tried many things

I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Administrator\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=hasCode, value=0x00000000
I: Loading resource table from file: C:\Users\Administrator\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000074
I: Loading resource table from file: C:\Users\Administrator\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000010
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Writer.java:157)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:64)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:98)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:112)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:126)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:152)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)

EDIT Strange Problem solved
[Android Software Development] raziel23x:
I have done some changes and if you want to test out apktool.jar 2.0 beta release check out the WIP-2.0 branch

I have merged the experimental build branch into the stable branch as it is quite stable now and will work on more changes to the script in the experimental build
[Android Software Development] raziel23x:
I am working on two branches right now both the Experimental Build as well as the WIP-2.0

the only Difference between the two Builds are what version of APKTOOL.JAR is in use

The experimental/Stable builds uses 1.5.x version of APKTOOL.JAR

The WIP-2.0 Build uses the 2.0 Version of APKTOOL.JAR

There is other is some major differences between both the experimental/Stable and the WIP-2.0 because how apktool.jar is handled because of changes to jar file has been completely redone

QUOTED FROM

https://code.google.com/p/android-apktool/wiki/MigrationInstructions

Examples of new usage

Apktool 1.5.x

apktool if framework-res.apk tag

Apktool 2.0.x

apktool if framework-res.apk -t tag

Apktool 1.5.x

apktool d framework-res.apk output

Apktool 2.0.x

apktool d framework.res.apk -o output

Apktool 1.5.x

apktool b output new.apk

Apktool 2.0.x

apktool b output -o new.apk

Java JRE 1.7 is required!

Update apktool to v2.0.0

aapt is now included inside the apktool binary. Its not required to maintain your own aapt install under $PATH. (However, features like -a / --aapt are still used and can override the internal aapt).

Remove framework $HOME/apktool/framework/1.apk or manually update

Parameter Changes

Smali/baksmali 2.0 are included. This is a big change from 1.4.2. Please read the smali updates here for more information.

-o / --output is now used for the output of apk/directory.

-t / --tag is required for tagging framework files

apktool -advance / --advanced will launch advance parameters and information.

After [d]ecode, there will be new folders (original / unknown) in the decoded apk folder.

original/ = META-INF/ / AndroidManifest.xml, which are needed to retain the signature of APKs to prevent resigning. Used with -c / --copy-original on uild.

unknown/ = Files / folders that are not part of the standard AOSP build procedure. These files will be injected back into the rebuilt APK.

apktool.yml collects more information than before

SdkInfo = Used to re-populate the sdk information in AndroidManifest.xml since aapt requires it to be passed at runtime.

packageInfo = Used to help support Android 4.2 due to renamed manifest packages. Automatically detects difference between manifest and resources and performs automatic --rename-manifest-package on uild.

versionInfo = Used to re-populate the version information in the AndroidManifest.xml since aapt requires it to be passed at runtime.

compressionType = Used to determine the compression that resources.arsc had on the original apk to duplicate on uild.

unknownFiles = Used to record the name/location/compression type of non-standard files in Apk.
[Android Software Development] jimmydene84:
keep getting this error when installing framework-res...

would love to upgrade as im still on 1.0.11 but every time i have tried in the past i always get that??
[Android Software Development] raziel23x:
the frameworks-res.apk needs to be placed in the other folder when running the install script

have you tried the wip-2.0 branch and see if that works on anything

remember when you try updating to the wip-2.0 you need to delete the apktool folder located at

C:\Users\XXX\apktool
[Android Software Development] slicingtaco:
I have searched endlessly with no answer.

My question is which option do i use to compile the framework-res.apk (#11 or #12) also do i sign it?

I ask because everywhere i search i've gotten different responses with two days on constant bootloop.

I am editing the storage_list.xml under res/xml/ and i follow the directions when i compile (delete the xml file and the resources.rcs)

I get an option right before compiling if i want to sign it or you the same signatures as the original file which do i choose?
[Android Software Development] starbucks2010:
I tried both versions: the stable one and WIP 2.0. With both I have the bellow issues.

I try to decompile the SecSettings.apk from FoxHound ROM v1.3 (XXUBMG7) and I get many error lines like this:

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

|31/07/2013 -- 9:35:34,79|

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

java version "1.7.0_25"

Java(TM) SE Runtime Environment (build 1.7.0_25-b17)

Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)

Could Not Find C:\ApkManager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSecSettings.apk

Could Not Find C:\ApkManager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSecSettings.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: D:\Documents and Settings\username\apktool\framework\1.apk

I: Loaded.

I: Regular manifest package...

I: Decoding file-resources...

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

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

.

.

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

I: Decoding values */* XMLs...

I: Done.

Also, when I tried to install framework-res.apk taken from the ROM I get the following errors:

D:\Documents and Settings\username>apktool if c:/framework-res.apk

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:

spec=0x010802f5 drawable/ic_ab_back_holo_dark, config=-hdpi

at brut.androlib.res.data.ResConfig.addResource(ResCo nfig.java:65)

at brut.androlib.res.data.ResConfig.addResource(ResCo nfig.java:58)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(AR SCDecoder.java:196)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(A RSCDecoder.java:165

)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARS CDecoder.java:130)

at brut.androlib.res.decoder.ARSCDecoder.readPackage( ARSCDecoder.java:10

5)

at brut.androlib.res.decoder.ARSCDecoder.readTable(AR SCDecoder.java:82)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCD ecoder.java:48)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCD ecoder.java:39)

at brut.androlib.res.AndrolibResources.installFramewo rk(AndrolibResource

s.java:384)

at brut.androlib.Androlib.installFramework(Androlib.j ava:365)

at brut.apktool.Main.cmdInstallFramework(Main.java:19 3)

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

Can you tell me what is wrong?

Thank you in advance.
[Android Software Development] raziel23x:
seem to be a issue with both 1.5X and 2.0 apktool.jar you can report your findings for both here to the official thread for the binary http://xdaforums.com/showthread.php?t=1755243
[Android Software Development] iamareebjamal:
Have you installed the ROM's framework-res.apk already?

Not to forget it should be 4.1.2 also
[Android Software Development] peter_baz:
es was unexpected at this time.

C:\Users\asdf\Desktop\APK-Multi-Tool-Stable-RELEASE\other>

i get this message when itry to install...

btw framework decompiles just fine
[Android Software Development] raziel23x:
if you get the java issues when decompiling or recompiling this seem to be a issue with both 1.5X and 2.0 apktool.jar you can report your findings for both these versions

Good examples if you see errors such as

at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)

at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)

at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:64)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:98)

anytime a failure is because of a compile or trying to decompile is not a apk multi-tool issue as this tool in itself cannot decompile a apk file but it is able to do other functions but as for the compiling issues and decompile issues that is in itself a apktool.jar issues and all of them needs to be reported here to the official thread for the binary http://xdaforums.com/showthread.php?t=1755243
[Android Software Development] jimmydene84:
Alright, when I decompile I have no meta-inf in the project's folder? 4.3 nexus 7? Wip 2.0 branch fix it? Been having hell upgrading to it so I hope there is something different?

Sent from my Nexus 7
[Android Software Development] raziel23x:
The meta-inf is just the signature and is not needed for editing the apk files

During recompiling the apk file you will be given the choice to inject it from the original apk into the newly compiled one or to create a unsigned version as well to allow you to use your own keystore to sign the apk
[Android Software Development] hardrockcaffe:
Cant Compile Apk

I can decompile, but when i try to compile apk after editing xml files (edit the name apk in androidmanifiest.xml) i press 12 (because isnt a system app) but then appears.

Building Apk

"An error ocurred, please check the log (option 26)"

Press a key to continue...

Nothing happens; I've downloaded the stable version and put it into C:/APKMultiTools
[Android Software Development] raziel23x:
well what does the log says when u use option 26