yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Shaftamle:
Can anyone give me a step by step how to Use the batch sign oprion? Whenever I try to do it it only signs the first one and then closes the command window. I can't find directions anywhere.

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

http://mycolorscreen.com/Shaftamle/
[Android Software Development] raziel23x:
Have you tried the 2.0 wip build was fixed in that
[Android Software Development] Shaftamle:
I did try it and the same happens. I must be doing something wrong.

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

http://mycolorscreen.com/Shaftamle/
[Android Software Development] professor_proton:
Hey ! I tried to create a new activity in my systemui by editing the manifest , after recompile , I know that I have to resign the apk , when I resign it and push to phone , it crashes. Logcat says , something like makeapk failed , same is with contacts app , however it works with third party apps , and it worked with "package installer "

Any help will be appreciated
[Android Software Development] Dawn_ddw:
Can somebody help me to test install my framework-res.apk coz i always got a brut

i have install other framework and success but this one not:( (framework in attachment)..Thanks

es was unexpected at this time.

D:\Dharma\DesignUI\APKMultiTool\other>apktool if framework-res.apk

Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars

c file

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource

s.java:611)

at brut.androlib.Androlib.installFramework(Androlib.java:469)

at brut.apktool.Main.cmdInstallFramework(Main.java:260)

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

Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000

at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)

at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:219)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:179)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:167

)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:133)

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

8)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)

... 5 more
[Android Software Development] gu5t3r:
Works for me, try using latest ApkTool versions -=> http://d-h.st/users/gu5t3r/?fld_id=30132
[Android Software Development] Dawn_ddw:
Thanks mate it works for me now :fingers-crossed:
[Android Software Development] Tyrany:
can someone help me with this error?

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

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

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

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

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)

at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)

at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)

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

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

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

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

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

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

at brut.apktool.Main.main(Main.java:77)
[Android Software Development] dully79:
Here's an

unofficial

update. This is what i use and thought others may benefit. It contains:

smali and baksmali v 2.0.3.

Option to delete "public.xml" from selected project.

Option to choose between apktool versions. Iv'e included v1.5.1, v1.5.2 and v2 beta9. v1.5.2 is set as default. To add more versions add them to "others/apktool/".

Reorganized main menu into a better workflow pattern (my opinion).

Some code editing.

Screenshot:

Download here:

http://www.mediafire.com/download/h9r85b70g7a7k3d/UN-OFFICIAL-APK-Multi-Tool-Stable-RELEASE.7z

Credits go to the OP and everyone he has mentioned.
[Android Software Development] bovirus:
[MENTION=2358349]Raziel2[/MENTION]3/gu5t3r/dully79

I have some doubts about your proposals

[MENTION=4665716]gu5t3r[/MENTION]

apktool.jar in the site that you posted is a completly differwnt project than apktool.jar included in APK-Multii-Tool-WIP 2.0 by raziel (first post).

Or are you working with raziel23 and your apktool.jar is just an update of official APK-Multi-Tool-WIP that stayed stopped in GitHub for long time?

[MENTION=2538774]dully79[/MENTION]

Is your proposal a completly different project that APK-Muti-Tool-WIP 2.0 (by raziel) or are you using it as base and then you will update it into the future?
[Android Software Development] dully79:
The update i posted is essentially the same as Raz's. Ive just tweaked/added a few things as described above.

As for updates, maybe, ill contact Raz and discuss it. I've just fixed the zip and zipalign option, strange that they wasnt working:confused:

Ive also tidied the code up some more. I noticed there was 2 install options which calls the same part of the script, ive removed one of them from the options.
[Android Software Development] bovirus:
[MENTION=2538774]dully79[/MENTION]

Please take care that as in the stable version abnd in your tool there are some errors to fix

SETUP.BAT

1. Installing framework-res appear an error as unexptected command and the operation didn't work. Same errors as official STABLE vversion. Teh error is not present in version 1.0.11.

SCRIPT.BAT

The decompilation didn't work

I checka in the log that the batch didn't find original file because the script use "/" as in Linux instead "\" as should be fine in Windows. Please change where its need "/" in "\"

The same problema appear in the batch that use just "LF" as terminator instead "CR LF" as shouild be OK for Windows. Please change where its need "LF" in "CR LF"

In this moment your tool is unsable under Windows.
[Android Software Development] dully79:
If your referring to me, then they only code ive touched in setup.bat is the color code @ line 3, anything else has nothing to do with me.

As for the script.bat, that remains on the whole largely unchanged. Raz has done a very good job so i would be reinventing the wheel.

Using "/" instead of "\" doesn't make too much difference unless its part of a large syntax, in which case you receive errors. That is one of the things I refereed to when i mentioned i was tidying up some code in my personal version.

And it works fine on my Windows 7 otherwise i wouldn't have let it out.
[Android Software Development] bovirus:
[MENTION=2538774]dully79[/MENTION]

I replicated to your post and I believe that was clear that I was referring to you (I changed the post to make the reference more clear).

Please don't uoqte previous emssage (is not necessary and make long the thread).

Of course I explained some errors (like the framework-res.apk installation error) was present also in the original stable version (1.0.12).

The script error ("/" instead "\") is present in your build and not in stable build 1.0.12.

This kind of error make your build unusable.

Please collaborate (you and raziel23) to fix the errors

SETUP.BAT

Framework-res.apk installation (comamnd not expected)

SCRIPT.BAT

Change where it need "/" with "\"

Fix the problem about signing (option 12 unsigned + 13). The apk signed cannot be install in the phone (wring sign).

SCRIPT.BAT & SETUP.BAT

Change end line "LF" with "CR LF"

I appreciated your mod with usefull tricks like apktool selection version.

I hope to see in the next stable build.
[Android Software Development] dully79:
Like i said i havent touched the setup.bat but i know what is wrong with it and i am going to fix it. I am working my way through the scripts and rectifying any errors i find. I only use decompile and compile, all the other options are redundant for my use. Im fixing errors out of good will, ill probably upload a new version shortly once ive tested every option.

Maybe ive got a broken, unstable version which im working from.
[Android Software Development] bovirus:
duffy79

Also for me the typical operation are

- decompiling application

- make some changes (ex. localization)

- recompile the application

- sign the application

Please fix all errors as possible.

In your build I cannot use decompiling (first operatin) didn't work for unexpected "/" in the path

Please check the log (I sugegst to call it APK-Multi-Tool-log.txt - now is log.txt)

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

|09/03/2014 -- 10.31.47,04|

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

java version "1.7.0_45"

Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing)

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

|09/03/2014 -- 10.32.53,12|

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

java version "1.7.0_45"

Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing)

Input file (d:\Download\Temp2\Android-APK-Multi-Tool-Stable--UN-OFFICIAL\projects/Sygic-14.0.0.1118459-reg.apk) was not found or was not readable.

Please check "/" after "project" in the file path
[Android Software Development] dully79:
[MENTION=2973711]borvrius[/MENTION], i heard you the first time dude, you dont have to keep repeating yourself, youll only piss me off.

Remove all the "." from you apk. "Sygic14001118459reg.apk".
[Android Software Development] bovirus:
OK. I removed the 2." for apk file name. Now it works (in decompiling).

I found and error in recompiling (with any version of apktool)

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:78: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:118: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:165: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:195: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:211: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:237: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:244: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.Base'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:261: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Base'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:294: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values-v14\styles.xml:50: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.

d:\Download\Temp2\Android-APK-Multi-Tool-Stable-UNOFFICIAL\projects\Sygic-reg.apk\res\values\styles.xml:486: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Base'.

I don't report any error using APK-Tool_WIP 2.0 version.
[Android Software Development] dully79:
Try switching apktool versions.
[Android Software Development] bovirus:
As I explianed before I trie (with your build) all version of APK tool but nothing changed (always error about missing resources).

The situation about APK tool it's quite stalled

- APK Tool Stable version 1.0.11

No error about framework-res installation

Problem about missing ersources regharding many apps

- APK Tool Stable version 1.0.12

Error about framework-res installation

Problem about missing ersources regarding in many apps

No error during compiling

The apps signed cannot be installed (App not installed - without any addition error)

- APK Tool Stable - Your build

Error about framework-res installation

Problem about missing ersources regarding in many apps

No error during compiling

The apps signed cannot be installed (App not installed - without any addition error)

- APK tool - WIP version

Error about framework-res installation

No problem about missing resources regarding in many apps

No error during compiling

The apps signed cannot be installed (App not installed - without any addition error)

In other word there are no available versions that can compile and sign correctly most recent apps.
[Android Software Development] dully79:
Im talking about switching apktool.jar, not apk-multi-tool scripts.

Select option 24 in my version and try v2_beta9
[Android Software Development] bovirus:
[MENTION=747865]duffy79[/MENTION]

I already selecetd 24 -> first option1 / then option2 / then option 3

Always same error. Missing resourcxs (Widget) as explained into the log.

Only WIp version no report any error in teh compilation.

If you wan I can provide you the app and you can check yourself

[MENTION=747865]duffy79[/MENTION]/raziel23x

I can provdie as an a recent (eas example) and you can check all errors and find the solution to make the compilation without error and sign the app to make it valid for installation.
[Android Software Development] dully79:
Here's an update to my UNOFFICIAL update.

Changelog:

Setup.bat runs automatically on initial run to set up working directories. YOU MUST HAVE THESE CREATED BEFORE OPENING THE MAIN SCRIPT.

Fixed zip, zipalign and batch sign options.

Added option to open setup.bat from main script.

Added an escape function choice when decompiling dependency apk's.

Added adb pull system/priv-app/SystemUI.apk to dependencies script.

Moved "setup.bat" to "/other". THIS HAS BROKEN THE LOG FUNCTION FOR THIS BAT. "script" log.txt still works.

Setup now creates "framework" folder in "/others" for dependency apk's to be adb pulled to and installed from.

Lots code shuffling and re-organizing.

Some other stuff i forgot.

Dowload:

http://www.mediafire.com/download/3...ICIAL-APK-Multi-Tool-Stable-RELEASE-v1.3.1.7z

Every function, in every script except "B.T.I.T" has been tested and works on my Windows 7.:good:

Once again thanks to Raz and everyone he mentioned in the OP.

Regards.:)

... I really should learn how to use GitHub.:confused:
[Android Software Development] bovirus:
dull79

SETUP.BAT - Error creating directories

Creating framework folder

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

Creating project folder

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

Creating place-apk-here-for-modding folder

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

Creating place-ogg-here folder

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

Creating place-apk-here-to-batch-optimize folder

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

Creating place-apk-here-for-signing folder

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

Creating transferred folder

Sundirectory or file transferred already available

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

DIRECTORIES SCRIPT COMPLETED

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

*** Installing framework-res.apk

Installing framework-res.apk the batch open a second dos window that at the end of installation remain opend (you have type exit to close it)

***Warning***

Make sure framework-res.apk is in

"other\framework" folder before Continuing

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

Press any key to continue . . .

I: Framework installed to: C:\Users\Roberto.Boriotti\apktool\framework\1.apk

D:\Download\Android-APK-Multi-Tool-UNOFFICIAL-1.3\other>

the script should show the resiult of framework-res.apk installation, ask to press a key to close the window then after key pressed close the window
[Android Software Development] dully79:
You posted all of that to report an install confirmation? :confused:

Why should it show the result? Ive written the script so it only reports errors when installing dependency apk's.

I used "START" instead of "CALL" which opens the extra window, something i forgot to change but is hardly a major bug.

If you dont like the script dont use it. Ive created/modified this to suit

MY

personal preference and decided to share as it contains up to date tools which isnt available from the OP.

Feel free to create your own and show us how it should be done.:good:
[Android Software Development] bovirus:
Sorry but I didn't understand your position.

I just report the problems that I found with your build to help you to fix the problems (as I did for raziel job)

Of course I'd like to use your build.

My intention is to help you to build it and to fix the problems.
[Android Software Development] dully79:
Its fine.

Im aware there are some bugs i need to iron but we all have lives and jobs so we cant devote all of our time to XDA.

Ive just fixed a couple of bugs now and im trying to improve the UI, although thats like putting lipstick on a pig. :(

Raz had his script "ECHO" a install complete dialog directly underneath the install dialog.

IF EXIST framework-res.apk (
cls
ECHO *********************************************************************************
ECHO * *
ECHO * framework-res.apk Found Installing *
ECHO * *
ECHO *********************************************************************************
apktool if framework-res.apk
PAUSE
cls
ECHO *********************************************************************************
ECHO * *
ECHO * Installation of framework-res.apk Complete *
ECHO * Returning to Dependencies menu *
ECHO * *
ECHO *********************************************************************************

I'm trying to do something slightly different. Not sure if i can get it to work though.
[Android Software Development] bovirus:
My previous replaywas the copy of text DOS window.

I found a bug (changing apktool version).

When yoiu change apktool version you cannot decompile/compile because teh script read wrong the relative path of apktool.jar

Ex. changing apktool to v. 2.0 beta, selecting decompiling you have an error

java version "1.7.0_17"

Java(TM) SE Runtime Environment (build 1.7.0_17-b02)

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

Error: Unable to access jarfile d:\APK-tool-Tool-UNOFFICIAL\other\apktool\other\apktool\apktool_v2_beta9.jar
[Android Software Development] dully79:
I must have uploaded the wrong version in haste to go to bed.:o

Here's an updated version with some tweaks:

Added prompt for folder creation.

Added prompt to install framework files.

Added confirmation dialogue and output to log.txt when installing framework files. *cough*bovirus*cough*

Fixed typos.

Other stuff.

:fingers-crossed:

Download link in previous post here:

http://xdaforums.com/showpost.php?p=50955993&postcount=1480
[Android Software Development] bovirus:
Unofficial 1.3.1. Should be some other problems

SETUP

When you install framework.res it open a new prompt without any request. You have to type exit to close the dos window and the appear "Installation completed".

SCRIPT

After setup all directories and installed framework-res.apk, running script go into continuous loop.

The log.txt report that it's impossible to access to the file (??) because it's in use in an other process.

Generally speaking (not only about you mod but about teh tools available).

Many apps can be compiled only with APK-Multi-Tool-WIP. Other versions reported that there are some resource (like widget) are not available.

All tool have some problem into signing apk.

If you load the apk, compiled and signed, when you try to install apk, the phone report just "Application not installed" with "X" without other additional info.
[Android Software Development] dully79:
I dont know what your doing but i tried this numerous times with no problems.

Are you running the setup.bat as a stand alone batch? If so DONT!!

Its controlled through the "script.bat". Ive tried to keep the main folder clutter free, hence the reason i moved the "setup.bat" to "\others".

If you open "apkinstall.bat", [MENTION=617960]line[/MENTION] 16 you will see "start cmd", delete it and save. That will remove the rogue cmd window.I must have forgot to save before uploading. And you do know you can just click the close instead of typing "exit".
[Android Software Development] raziel23x:
I basically placed this project on hold as the last 4 years of this project I have not received nothing in donations which help fund this project and does not make me feel entitled work on this. As of now the last 4 years only 5 donations of these donations one guy donated 35 cents another just a dollar.
[Android Software Development] dully79:
[MENTION=2968938]raziel23x[/MENTION], that sucks and i know how you feel. Ive spent far to much time on various projects for receiving nothing to little in return, but i mainly do stuff for personal use and share it.

There are far too many people that complain about something that has been given to them for free, and something they cannot develop themselves. A little gratitude goes a long way.:good:

Maybe you could create a free limited version and a premium full version.
[Android Software Development] gu5t3r:
Dunno which ApkTool.jar version is raziel23 using in Multi-Tool.

I'm always compiling latest ApkTool from official github https://github.com/iBotPeaches/Apktool/tree/wip-2.0 for myself and by the way I upload it to http://d-h.st/users/gu5t3r/?fld_id=30132 for GOptimize users and others to use (that don't know to compile themself).
[Android Software Development] Anang_Galih:
SIGN SystemApk

Sir, how to sign system apk? when I put apk in place-apk-here-for-signing and in command script I selected option. command close. Its right?
[Android Software Development] spiderio:
people should appreciate your work..

if Only I knew it before...

I hope i can sent you some donation before
[Android Software Development] spiderio:
still can't open it, continous loop with flashing adb debug bridget version xxxxx all over

here's the log

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
The process cannot access the file because it is being used by another process.
[Android Software Development] dully79:
I'm uploading a new version tonight, lots of fixes and new features. I've been testing it on various desktops and laptops for most of the week and I can only find one bug.