yashsingh1/xdaforums huggingface dataset:
[Android Software Development] hardrockcaffe:
Log say:

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)

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

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

I: Loaded.

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

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

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.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:61)

at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:52)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:489)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:290)

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.PathNotExist: 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
[Android Software Development] Epikarus:
Hey. I'm using the WIP/Experimental builds and I'm running into a really odd problem. I used this tool to theme the 4.2.2 Keyboard from CM10.1 and everything worked perfectly. Now I have updated to 4.3 Im trying to theme the CM10.2 keyboard. When I compile the apk without changing any XML files (only 9.png files changed), things go well and I can push to system no problem. When I compile the apk with a small change to an XML file the apk no longer is viable. It compiles, but it wont install in system. I think I was using an older version for APK multitool when i was working on the older 4.2.2 APK before. I do not remember there being an option to change the compression level for resources.arsc, and now that I updated to the newest experimental/WIP build i think it is causing problems. I dunno, The compression level for the APK is 0 just like i had it set to before, and the compression level for resrouces.arsc is 0 aswell.

TL;DR - Making changes to resources.arsc by editing xml file causes the apk to not be viable. No changes in the xml and only to png files leaves the apk working as normal. Is the compression level for resources.arsc causing this?
[Android Software Development] raziel23x:
when you compile the new one open it up in 7 zip and compare it to the original
[Android Software Development] raziel23x:
this is a apktool issue and needs to be reported to http://xdaforums.com/showthread.php?t=1755243
[Android Software Development] Epikarus:
I'm not sure what I would be looking for when I do this.
[Android Software Development] raziel23x:
Compression levels differences.
[Android Software Development] Epikarus:
Im comparing the resources.arsc files from the original and modified apk and i see that they are slightly different. The compression level i used was 0 for both the resources and the apk. You can see in the attached image. The only changes i made was to two colors in the xml.
[Android Software Development] raziel23x:
No right click both APK files and select open as archive and compare the compression using 7zip
[Android Software Development] Epikarus:
Here you go. The top archive is the modified apk, and the bottom is the original apk. I can see that in the original apk the resources.arsc file is not compressed.

*edit* I notice that if i compile the apk without making any changes to the xml but still deleting the resources.arsc file in the keep folder, the resource.arsc file is the same size as if it was modified.
[Android Software Development] raziel23x:
well from the picture it is showing them co being correctly compressed after recompile

as for the size difference from no changes it will still have a slight size difference because of the compiler
[Android Software Development] Epikarus:
Hi, I'm back. I couldn't figure out what to do to fix the problem. I was thinking that I should install the framework-res.pak and systemUI.apk. I put them in the other folder, but when i try to installed them i get this: "es was unexpected at this time". Is there any specific reason im getting this?
[Android Software Development] raziel23x:
made more updates to the tool as well as merged in the latest changes to APKTOOL 2.0 into the 2.0 WIP Branch and I think i found the installation errors and fixed them please report back
[Android Software Development] jimmydene84:
Awesome.....will try it out!

Sent from my Nexus 7
[Android Software Development] Epikarus:
Thanks for your efforts. I still cannot install the framework and systemui apks same errors. And unfortunately the app im trying to modify is still not working when i edit xml files.
[Android Software Development] raziel23x:
have you tried to manually install them
[Android Software Development] iamteachme:
Any hope for Linux release.
[Android Software Development] raziel23x:
I am guessing since your using tapatalk because you would not be asking this as it is in my signature and have not used the search function either since i released a linux version at the same time
[Android Software Development] iamteachme:
the title more than anything

thanks so much for the fast response i cant wait ti try this out. the windowsutilitytool confused me name i been trying to use the apkmanager for linux on SecPhone.apk i got my PhoneFeature smali file out and edited and put back into classes.dex but i have trouble when i try to reassemble the apk hopefully this tool will work better.
[Android Software Development] raziel23x:
your using this

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

correct
[Android Software Development] iamteachme:
I will be when I get home have been using apkmanager
[Android Software Development] josh8519:
error when trying to install framework.apk and systemui.apk it says es unexpected at this time. when i checked the about section by pressing 5 it shows 1.0.12 but i downloaded 2.0
[Android Software Development] raziel23x:
what does it say when you open up the other folder in command line and type

apktool if framework-res.apk
[Android Software Development] josh8519:
i just tried it and it says it was installed
[Android Software Development] raziel23x:
I think i fixed the setup.bat to install correctly
[Android Software Development] jimmydene84:
Awesome. ..would love to test that out for ya :cool:
[Android Software Development] raziel23x:
Download the experimental build then anf tell me if it works
[Android Software Development] Epikarus:
framework installation works now thanks!~

My APK is still not working. Is it maybe because APKtool is not compatible with Android 4.3 apps yet? I have no idea what to do. I put a lot of work into theming the 4.2.2 keyboard and it seems so wasteful to not be able to theme the 4.3 keyboard. Neverthelesss, thanks for all the hard work.
[Android Software Development] HackitZ:
nice to hear the new experimental build is coming along, i will install the latest version, i was also having framework install issue's, i ended up just dropping a copy in the other folder.

with that said, any progress on editing framework-res xml's and flashing it to android 4.2.2 or 4.3?

i'm able to edit framework-res xml's and images and compile without any issue's but it still force closes when i flash.

great work raziel23x
[Android Software Development] raziel23x:
Well that issue should be fixed with the OFFICIAL RELEASE of APKTOOL.JAR 2.0 Which You can test out the latest beta BUILDS of that in the 2.0WIP BRANCH and see if that fixes you issues
[Android Software Development] cesanaboia:
Error when I try compile APK:

"An Error Occured, Please Check The Log (option 21)"

Why?
[Android Software Development] bovirus:
Please read LOG (option 21).. here you can find the error.

If you change somethinbgs probably there is an error . In the text the typical error is us e of special charcater like ' that it should be add as \'

---------- Post added at 02:08 PM ---------- Previous post was at 02:04 PM ----------

@raziel23x

Selecting '27 - Set current project' in the list there is no number 10 in the list.

If you select 10 you can setup the relative project file name also if you didn't see it.
[Android Software Development] josh8519:
i am having trouble decompiling the file seccontacts.apk it keeps giving me an error
[Android Software Development] bovirus:
[MENTION=2968938]raziel23x[/MENTION]

I found some problems about the scripts.

1. LF as end line (instead CRLF as DOS standard)

It can create some problems to recognize the command because some command in multiline enviroment require CR/LF

Please replace in all .bat file LF as end line with CR/LF

Note: ( multiline command ) as explained before can create problem. It's better to use GOTO.

2. Use "/" in path instead "\" in batch file (.BAT)

In many complex path you are using / (that in DOS is a parameter specification) instead \ that is path defintion. Ex. like

.../unsign... instead ..\unsigned....

.../sign... instead ..\sign....

Due to this some file are not deleted/created.

3. Installation of framwer-res.apk didn't work

Selecting the installation of frameworks-res I receive and error (es not expected)

The IF EXIST (or NOT EXIST) with "(" and ")" with multilne coomand didn't work as expected with some DOS commands.

I believe that to avoid this kind of problem could be better to use the standard GOTO command instead ")" multiline command ")".

Add line in script to show JAVA_HOME value

In SCRIPT.BAT pelase add for option 13 (Sign APK) after the note about teh JAVA_HOME variable a comamnd to show the current value of JAVA_HOME. Ex

ECHO Current value of JAVA_HOME = %JAVA_HOME%

In this way it's easy to check if right set.

Problem to recompile an application - file not updated.

I experimented a strange probelm (only with Dolphin Browser APK)

I downloaded it as APK file

I unpacked it

I edit the /res/values-it/strings.xml

I repacked the .APK and I signed it

For test I unpacked the new APK

The /res/values-it/strings.xml is not the file that I revised but the original file (and in the folder that I used to create the new APK the file is the revised file - not the original). Where did get the new APK the original /res/values-it/strings.xml file?

Problem in apk list. 10 item not showd

Current script

:filesel

CLS

set /A count=0

FOR %%F IN (place-apk-here-for-modding/*.apk) DO (

set /A count+=1

set a!count!=%%F

IF /I !count! LEQ 9 (ECHO ^- !count! - %%F )

IF /I !count! GTR 10 (ECHO ^- !count! - %%F )

)

FOR %%F IN (place-apk-here-for-modding/*.jar) DO (

set /A count+=1

set a!count!=%%F

IF /I !count! LEQ 9 (ECHO ^- !count! - %%F )

IF /I !count! GTR 10 (ECHO ^- !count! - %%F )

)

Modified script

:filesel

CLS

set /A count=0

FOR %%F IN (place-apk-here-for-modding/*.apk) DO (

set /A count+=1

set a!count!=%%F

IF /I !count! LEQ 9 (ECHO ^- !count! - %%F )

IF /I !count! GTR 9 (ECHO ^- !count! - %%F )

)

FOR %%F IN (place-apk-here-for-modding/*.jar) DO (

set /A count+=1

set a!count!=%%F

IF /I !count! LEQ 9 (ECHO ^- !count! - %%F )

IF /I !count! GTR 9 (ECHO ^- !count! - %%F )

)

Thanks.
[Android Software Development] MuSaddiq:
Compiling issue!

I was decompiling my contacts.apk

And after decompiling i edited XML Files there

And after editing when i tried to compile it

there is a error

please fix it

ss added
[Android Software Development] bovirus:
Proposal for signing batch section

cls

cd other

ECHO Signing Apk

set KEYSTORE_FILE=apksigner.keystore

set KEYSTORE_PASS=apksigner

set KEYSTORE_ALIAS=apksigner.keystore

set JAVAC_PATH=%JAVA_HOME%\bin\

set PATH=%PATH%;%JAVAC_PATH%;

ECHO *Notice this option requires you to have the Java JDK installed before this option will function*

ECHO *Notice you need to go into your Environment Variables and set the path to your JAVA_HOME*

ECHO *For example define it as C:\Program Files\Java\jdk1.6.0_43 as a system variables slot not the User Variables*

ECHO Current value JAVA_HOME = %JAVA_HOME%

PAUSE

echo call jarsigner -keystore %KEYSTORE_FILE% -storepass %KEYSTORE_PASS% -keypass %KEYSTORE_PASS% -signedjar %~dp0place-apk-here-for-signing\signed%capp% %~dp0place-apk-here-for-signing\unsigned%capp% %KEYSTORE_ALIAS% %1 > jarsign.bat

call jarsigner -keystore %KEYSTORE_FILE% -storepass %KEYSTORE_PASS% -keypass %KEYSTORE_PASS% -signedjar %~dp0place-apk-here-for-signing\signed%capp% %~dp0place-apk-here-for-signing\unsigned%capp% %KEYSTORE_ALIAS% %1

IF errorlevel 1 (

ECHO.

ECHO "An Error Occurred, Please Check The Log (option 26)"

ECHO.

)

ELSE (

ECHO.

ECHO "Signing completed"

ECHO.

)

PAUSE

Changes

Clear screen

show JAVA:HOME

Show emssage signing completed

Ask to press a key also when the sign was complete

I used GOTO instad IF ( ) because didn't work with all comamnds.
[Android Software Development] bigpappapuff:
help

hey guys can anyone help me i ran the script and it wont stay on it did before but now it wont thnx
[Android Software Development] gaosphappy:
When that happened to me it was because it wasn't running in adminstrator mode could try that. :eek:

---------- Post added at 05:25 PM ---------- Previous post was at 05:22 PM ----------

Select option 23 and read error log it has your answer in there. If you can't work it out post back. :eek:
[Android Software Development] gaosphappy:
Now bare in mind that I am truly rubbish at reading these things but it looks to me like you put some bad code in android:textunderline think ness double check there if you read the error back it mentions it. My 2 cents and best guess. Good luck :eek:
[Android Software Development] m1trand1r:
i've figured out....:good:

thanks anyway :)

Sent from /SlimBean//Android 4.3:p//
[Android Software Development] m1trand1r:
hey guys...I have a problem here....

i'm trying to compile framework-res.apk with few modifications(text colors) and it compiles fine....but after pushing it to system/framework/*....I get bootloop and I looked at logcat....it shows this:

06:42:31.656 Error Zygote 18551 Error preloading android.database.CursorWindow.

06:42:31.656 Error Zygote 18551 java.lang.ExceptionInInitializerError

06:42:31.656 Error Zygote 18551 at java.lang.Class.classForName(Native Method)

06:42:31.656 Error Zygote 18551 at java.lang.Class.forName(Class.java:204)

06:42:31.656 Error Zygote 18551 at java.lang.Class.forName(Class.java:169)

06:42:31.656 Error Zygote 18551 at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:280)

06:42:31.656 Error Zygote 18551 at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:227)

06:42:31.656 Error Zygote 18551 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:523)

06:42:31.656 Error Zygote 18551 at dalvik.system.NativeStart.main(Native Method)

06:42:31.656 Error Zygote 18551 Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x10e0037 type #0x5 is not valid

06:42:31.656 Error Zygote 18551 at android.content.res.Resources.getInteger(Resources.java:907)

06:42:31.656 Error Zygote 18551 at android.database.CursorWindow.<clinit>(CursorWindow.java:47)

06:42:31.656 Error Zygote 18551 ... 7 more

I did modify values/styles.xml and later deleted resources.arsc from keep folder since i'm not sure as i'm new to this.....can anyone give me a hand with this?

I can provide more info if needed ;)

Thanks in advance;

Sent from /SlimBean//Android 4.3:p//
[Android Software Development] _HIM_:
I cant sign my apk, it shows me error numer 26
[Android Software Development] m1trand1r:
type 26 in shell and log will open....and you'll see what the error is:)

Sent from /SlimBean//Android 4.3:p//
[Android Software Development] _HIM_:
I get this error :/
[Android Software Development] raziel23x:
Yea it is called not downloading it off the website and unziping it
[Android Software Development] zelendel:
OK then that is odd. As it works fine if I revert to an older backup of the apkmultitool and then disconnect from the internet before running the script. But if I run it the script while I'm connected to the internet it errors out like apktool jar updated
[Android Software Development] raziel23x:
That is odd there should not be any online activity as it is disabled server side
[Android Software Development] MJPollard:
That's kinda what I figured, but thought I'd throw the suggestion out there anyway. :) I'm a Windows guy so it doesn't affect me, but hopefully you'll be able to get our Linux brothers hooked up eventually. Great tool, by the way; kudos!
[Android Software Development] Mko979:
Yes, as soon as I finished writing that post and everything is working perfectly. Thank you so much, I wonder if it had anything to do with the updated version of a apktool.
[Android Software Development] zelendel:
Yeah that's what I thought as well. Ill swap thebfiles one by one till I find out what is causing it, but that is what we do. Seek and dystroy bugs
[Android Software Development] raziel23x:
Yea remember this application is basically still in pre alpha not even in beta
[Android Software Development] zelendel:
Yeah I understand man. That why I always keep a back up
[Android Software Development] raziel23x:
Due to me getting married december 8th development will be on hold until after the wedding in which case I will resume development the following week
[Android Software Development] memnoc:
Mate don't worry;-) i'm happy for U, take your time and think about your family, when you'll come back we'll here waiting for you! Thanks for your work;-)

Inviato dal mio HTC Desire HD usando Tapatalk
[Android Software Development] akshaybz:
Congratz :D

Btw, can anyone upload this for me please?

apkmultitool.com is having errors :(
[Android Software Development] raziel23x:
it is being fixed

Here is the email response from my webhost
[Android Software Development] raziel23x:
website fixed
[Android Software Development] lanternslight456:
Congrats :D

this has been a message from the dead pool.
[Android Software Development] raziel23x:
I am planning on soon to restructor the application a bit and move things around to fix a bunch of issues.

I originally planned to have this stand alone but I will be restructoring it making it a requirement to have the sdk installed and be installed in a certain section to work for the windows version.

Do not worry I am also creating a self installer that will detect your install location of the sdk and install it in the proper location as well as create a short cut to the tool to your desktop.

I will then have patch installers for upkeep once stage one is completed.

I will be taken it out of alpha soon since the error reports have basically slowed and rare.
[Android Software Development] zelendel:
The reason for the messed up decompile of the .9.PNG is due to the image being edited wrong to begin with. Now you say you are swapping them with another PNG, is it another .9.PNG? As sometimes a normal PNG will work but it can mess things up often.

As for your issue with the keep folder. The problem comes from an older apktool error that would change the hdpi folder to an hdpi-v4 folder when decompiled. When you delete everything in the keep folder and recompile check the folder you edited and you may have an extra -v4 folder as well and one will be empty as the stock apk never had the folder.

Just because a theme flashes and seems to work doesn't mean the .9 are not broken. I have seen this ALOT In the themes around XDA. If not edited properly and remade properly it will kill the apk when decompiled and when recompiled and flashed.

Here is what I would do. Find a non themed stock framework for your device. Decompile it then use those stock images to swap out the bad ones. Also if you don't decompile the framework with the proper support file for the device it can lead to things like bootloops, biting of nails and many sleepless WTF nights
[Android Software Development] Jarmezrocks:
I knew these would be the nest questions. Glad you asked. No all PNGs and all .9 PNGs are swapped for exactly the same type of PNGs from other apks.

I've done the decompile and recompile with a fresh stock apk. Many times actually, thats where I have built from. It seems that as I compile and I add more blocks (chunks/rows amounts what ever) of PNGs or .9PNGs for my theme the more it FCs on me. That means there is a point at which it will compile again and leave no 0Kb .9s and it will work, but add any more and I start FCs....and the strange part is that it doesn't matter what images I remove then, if I back off from the the amount of images that worked in the theme then it compiles and works perfect again???

So how am I meant to figures out who is the culprit for the FCs?

Am happy to upload my framework-res or message it to you/drop box it to you if your able to help me?

Should I use photoshop CS5 to redo all my PNGs?

Also no hdpi-v4 folders formed? Is this good or bad?
[Android Software Development] zelendel:
Check your pm. Don't want to clutter up the thread as we find the issue
[Android Software Development] raziel23x:
Have you tried the theme porter options in the nightly build section of the website download for the github releases?

read up on the doc in the doc folder for information on how to use the theme porter before use though as there is some steps that are needed before use
[Android Software Development] winamp26:
hi

When I want to recompile a mms.apk, error occurs(android 4.3)

please help me

i used apk multi tool last version.
[Android Software Development] Javho:
i've got the same problem ...
[Android Software Development] djb77:
Found a small bug in your DOS script for the Windows Experimental:

Line 273

IF /I !count! GTR 10 (ECHO ^- !count! - %%F )

should be this:

IF /I !count! GTR 9 (ECHO ^- !count! - %%F )

While it was set to GTR 10, the #10 would actually be skipped in the file selection menu.
[Android Software Development] Phone_Guru:
Gmai 4.6

Everyone is having trouble with the new gmail. I can decompile, edit and recompile fine but when I flash the new resources.arsc file the app stops running. Is this something that you could fix with APK Multi-Tool or does the issue lie elsewhere?
[Android Software Development] raziel23x:
anything above 4.1 is not supported just yet as it is a issue with the apktool.jar binary which i have control of which ibotpeaches works on
[Android Software Development] bovirus:
Hi raziel23x.

What's about the problem reported

- Program list don't include item n. 10

- The path in many row of the script use "/" (Linux standard) than "/" (Windows standard)

Could you update multi-tool with necessary fixes?

As I wrote I have some problem to create an apk signed that was recognized as good.

Decompression/Compression/Signing is OK (no error).

Question: In the path variable should I use "" for space as IN JAVA_HOME variable?

Ex. My path is %SYSTEMROOT%;C:\Program Files\Java\jre1.7.0_25

In this case should be %SYSTEMROOT%;"C:\Program Files\Java\jre.7.0_25" ?

Thanks.
[Android Software Development] raziel23x:
yea working on both linux and windows some commands get duplicated is unintentional.

if you like i could add you to github and you could debug and recheck my work if you like.

i lost internet for awhile is why no one has seen me around i just got it back up
[Android Software Development] bovirus:
I'm registered on GitHub (nick bovirus). I will be happy to help you with your tool.

Thanks.
[Android Software Development] raziel23x:
do not see you when i try to add you can yo give a profile link