yashsingh1/xdaforums huggingface dataset:
[Android Software Development] iBotPeaches:
So we are 1-2 weeks away from the final 2.0.0 release. It's long overdue and should of been here months ago. Life happens though and you have to cope. Once 2.0.0 is released, Apktool will adopt Semantic Versioning. Basically for those who don't know.

So 2.0.1 will be a patch, 2.0.2 will be a patch. 2.1.0 will have a feature that still works in a backwards-compatible manner. 3.0.0 (if ever) will introduce a change that breaks compatibility. I have a pull request up that fixes that weird manifest problem (fixing [MENTION=936943]string[/MENTION] references) automatically. The website has been updated with SEO tweaks and we are already in 3rd place on Google and our open bugs is down to 21.

Things are looking good, minus that weird LG bug. Sorry to those waiting for that fix. I've had no success and with no LG device of my own. Actually I got a LG Watch yesterday. Maybe I can use that to test this bug.

TLDR;

2.0.0 in 2 weeks. Updates will come as needed in form of 2.0.x patches.
[Android Software Development] USMC retired:
IbotPeaches

Thank's so much for all of your hard work with the Apktool's, without said work no one would be able to do near the Developement that is possible thank's to your committment. If you have a donation link, I will be happy to kick in a lil sumpin.
[Android Software Development] Ticklefish:
There's a donation link. Have a look under his avatar. ;)
[Android Software Development] USMC retired:
none

Why thank you sir, I'm still waking up :D:silly:
[Android Software Development] Ticklefish:
No problem. I've been trying to wake up for the past few decades. Haven't got there yet..
[Android Software Development] bovirus:
Compiling the source file under Windows 7 Enterprise 64bit (I tested with latest version of JDK 1.7.x and 1.8.x) I got this error

:brut.apktool:apktool-lib:test

brut.androlib.BuildAndDecodeTest > classMethod FAILED

brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\TEMP\brut_util_Jar_2686174100927985847.tmp, p, --forced-package-id, 127, --version-code, 1, --version-name, 1.0, -F, C:\TEMP\APKTOOL1226848327973055298.tmp, -0, arsc, -I, C:\Users\xxxx\apktool\framework\1.apk, -S, C:\TEMP\BRUT4926736791392361471.tmp\testapp-orig\res, -M, C:\TEMP\BRUT4926736791392361471.tmp\testapp-orig\AndroidManifest.xml]

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

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

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

at brut.androlib.BuildAndDecodeTest.beforeClass(BuildAndDecodeTest.java:47)

Caused by:

brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\TEMP\brut_util_Jar_2686174100927985847.tmp, p, --forced-package-id, 127, --version-code, 1, --version-name, 1.0, -F, C:\TEMP\APKTOOL1226848327973055298.tmp, -0, arsc, -I, C:\Users\xxxxx\apktool\framework\1.apk, -S, C:\TEMP\BRUT4926736791392361471.tmp\testapp-orig\res, -M, C:\TEMP\BRUT4926736791392361471.tmp\testapp-orig\AndroidManifest.xml]

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

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

... 3 more

Caused by:

brut.common.BrutException: could not exec command: [C:\TEMP\brut_util_Jar_2686174100927985847.tmp, p, --forced-package-id, 127, --version-code, 1, --version-name, 1.0, -F, C:\TEMP\APKTOOL1226848327973055298.tmp, -0, arsc, -I, C:\Users\xxxx\apktool\framework\1.apk, -S, C:\TEMP\BRUT4926736791392361471.tmp\testapp-orig\res, -M, C:\TEMP\BRUT4926736791392361471.tmp\testapp-orig\AndroidManifest.xml]

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

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

... 4 more

7 tests completed, 1 failed

:brut.apktool:apktool-lib:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':brut.apktool:apktool-lib:test'.

> There were failing tests. See the report at: file:///D:/Apktool-master/brut.apktool/apktool-lib/build/reports/tests/index.html

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Make the same compilation under XP no error. What's the matter?
[Android Software Development] iBotPeaches:
A new version has been released!

v2.0.0 (Released April 21, 2015)

Download: https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.0.jar

Details of Release: http://connortumbleson.com/2015/04/20/apktool-v2-0-0-released/
[Android Software Development] Morningstar:
Did I read that right? 2.0 is "official" now? I'll be damned. Excellent work, iBotPeaches, as always. We'd all be lost without you.

[emoji106] [emoji106] [emoji106]
[Android Software Development] porkyhontas:
Thanks again for your hard work and continued support of this project!

Sent from my SGS3 using AnaKonda Tapatalk
[Android Software Development] Crussader:
Xmas coming early ;)

Thanks so much.
[Android Software Development] DaOldMan:
Great work !

I am enclosing my Samsung LP SecSettings I talked about. I found out the problem is with ApkTool, not modding. If I decompile and compile (even with 2.0.0) I get new settings where I can barely see the points in Pattern Lockscreen settings (before decompile they are solid black). If I decompile them again and compare to the first decompile I see that just some strings are changed which makes no sense.

You can find the Settings + Framework files HERE

Thanks for checking out what is the problem.
[Android Software Development] dekefake:
I face an issue trying to decompile Xperia z3 lollipop framework-res.apk, can you help me ?

Thanks
[Android Software Development] Crussader:
Hmmm are the dots white? I mean... they're working but you can't see them?
[Android Software Development] Thebear j koss:
It says you need to install framework files. Did you use command apktool if framework-res.apk.apk? You would need to reinstall framework into the new apktool I believe. Is there any more necessary framework files you need to install?

Thebe@r'$ G@L@XY

Support TBO and the continuation of inverted and transparent apps and look as cool as your phone with a TBO t shirt- http://teespring.com/teamblackout
[Android Software Development] dekefake:
Yes i did "./apktool if framework-res.apk && ./apktool d framework-res.apk"

What do you mean with "more framework files" ?

Thanks
[Android Software Development] JoHnNYBlaZE716:
By 'more framework files' he means, are there any more apk's in the framework folder? If so they also need to be installed.
[Android Software Development] Ticklefish:
That's this bit of your error message:

You need to install a second framework file for your APK to decompile.

In this case, I happen to know that modern Sony Xperia ROM's need SemcGenericUxpRes.apk to be installed as well as the usual framework-res.apk. You should find it in the system/framework/ folder.
[Android Software Development] dekefake:
Worked THANKS !!!!
[Android Software Development] DaOldMan:
They are working and YES I can see them. The background is white but not 100% and the dots are 100% white so if I look very carefully I can see them there :). Still, why are they white and not black like in the original apk ?
[Android Software Development] Crussader:
Dunno... but I was having the same issue... got it fixed by changing res/styles.xml like this (regularColor, errorColor, sucessColor):

<style name="Theme.CryptKeeper" parent="@android:style/Theme.Material.NoActionBar">
<item name="android:windowTranslucentStatus">false</item>
<item name="android:windowTranslucentNavigation">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:regularColor">@color/unlock_pattern_view_regular_color</item>
<item name="android:errorColor">@color/unlock_pattern_view_error_color</item>
<item name="android:successColor">@color/unlock_pattern_view_success_color</item>
</style>
[Android Software Development] mamdroid:
Wow thanks for the up date and the hard work!!!!!:cowboy:

---------- Post added at 05:21 AM ---------- Previous post was at 04:57 AM ----------

Hello buddy I am just getting back with you and letting you know that the list of commands you linked me to has helped me tremendously!!! Thanks you much for that. :cowboy:

I do have another question I am hoping someone can answer for me. I have downloaded the new version of apktool. I know I need to reinstall my frameworks but do I need to update my apktool.batt because I am updating the apktool.jar file? Or can I use the apktool.batt that I have been using?
[Android Software Development] MegaHz:
Hi guys, i am facing a problem, if you can help it would be great, i get parsing errors when installing the app, please have a look:

i am compiling successfuly:

## Compile apk

APKTOOL JAR = Program_Files\apktool.jar
SOURCE FOLDER = Decompiled_apk\com_test_app
DESTINATION APK = Compiled_apk\com_test_app.apk.apk

## Compiling Compiled_apk\com_test_app.apk

I: Using Apktool 2.0.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...

## Adding AndroidManifest.xml file and META-INF folder started...

## Adding AndroidManifest.xml file and META-INF folder completed

# Press any ket to continue or CTRL + C to break

and then i tried to sign and got:

## Sign apk

SIGN TOOL = Program_Files\signapk.jar
CERTIFICATE = Program_Files\testkey.x509.pem
KEY = Program_Files\testkey.pk8

UNSIGNED APK = Compiled_apk\com_test_app.apk
SIGNED APK = Signed_apk\com_test_app.apk

## Signing Signed_apk\com_test_app.apk...

java.security.cert.CertificateException: Unable to initialize, java.io.IOExcepti
on: DerInputStream.getLength(): lengthTag=127, too big.
at sun.security.x509.X509CertImpl.<init>(Unknown Source)
at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown S
ource)
at java.security.cert.CertificateFactory.generateCertificate(Unknown Sou
rce)
at com.android.signapk.SignApk.readPublicKey(SignApk.java:88)
at com.android.signapk.SignApk.main(SignApk.java:431)
Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=127, too b
ig.
at sun.security.util.DerInputStream.getLength(Unknown Source)
at sun.security.util.DerValue.<init>(Unknown Source)
at sun.security.util.DerInputStream.getDerValue(Unknown Source)
at sun.security.x509.X509CertImpl.parse(Unknown Source)
... 5 more
## Sign Signed_apk\com_test_app.apk completed

# Press any key to continue or CTRL + C to break

this used to work ok a few months ago.

could you help?

thanks
[Android Software Development] fhem:
Hello buddy I am just getting back with you and letting you know that the list of commands you linked me to has helped me tremendously!!! Thanks you much for that. :cowboy:

I do have another question I am hoping someone can answer for me. I have downloaded the new version of apktool. I know I need to reinstall my frameworks but do I need to update my apktool.batt because I am updating the apktool.jar file? Or can I use the apktool.batt that I have been using?[/QUOTE]

same batt will work as long as you rename apktool_2.0.0.jar -------> apktool.jar I personally put the batt and jar in the root of my windows directory.
[Android Software Development] tiboric:
Wondering if anybody could help me, I'm trying to re-compile my framework-res but getting the following errors

any help would be much appreciated.

Thank you in advance
[Android Software Development] zelendel:
Your issue is in the first line of the error. You have 2 images the same name one is just a capital PNG extension.
[Android Software Development] tiboric:
WOW, it was really as simple as that, THANK YOU so much, and thanks for getting back to me so quickly.

will push to device now and so If mod worked.

Cheers
[Android Software Development] zelendel:
No prob. Normally if you just read the error you will find the issue. Don't let it intimidate you.
[Android Software Development] tiboric:
Sorry to bother you again, everything seems to be compiling fine, and the framework-res is allowing the device to boot but the changes i made to the xml don't seem to have 'stuck' (removing of the safe volume warning)

I remember seeing something about this and resources.arsc being the compressed version of all the xml's

and also found a post you wrote in another thread about deleting the keep folder, but I don't seem to have a keep folder, the nearest i can approximate is a build folder, that is created while compiling.

am i total going in the wrong direction,

apologies but I've spent an entire day trying to get this to work, I don't want the day to have been wasted.

Thank You
[Android Software Development] zelendel:
The post you saw was for a tool that I use for decompiling and building themes. It also depends on the type of rom you have. Yes the resources file is the compressed xml files.

Why rom are you trying to mod for this?
[Android Software Development] tiboric:
its s6 edge Stock TW. - modding the integers.xml in values folder to stop the safe volume message appearing once a day.

but even now framework-res is compiling and there are no boot loops anymore, the warning is still present.
[Android Software Development] zelendel:
Ok you might have to look in the TWframeworks for it. Many Time OEM roms will have these things in their frameworks as well.
[Android Software Development] tiboric:
Brill, I cant see the integer.xml in there but i'll have a better look when I get up,it might be in a different file.

I've gota get some sleep as its 5 am now lol

Thanks a Lot
[Android Software Development] Thebear j koss:
I'm not 100% on this, but I think that is in sec settings apk. I think there is more involved than just editing the integer.

Thebe@r'$ G@L@XY

Support TBO and the continuation of inverted and transparent apps and look as cool as your phone with a TBO t shirt- http://teespring.com/teamblackout
[Android Software Development] bovirus:
Make a text copy of DOS Prompt (right click -> Select -> selct with mouse the area -> Press ENTER - Now is the clipboard) and attach it.
[Android Software Development] tiboric:
Thanks for the help bear, I was following this guide ( I know its for 4.2X but i thought it would still work on 5.0.2, maybe not ) any ideas, i checked out an xposed module thread that does this very thing and i though the author said he was using this method, back to the drawing board.

Thank you all for trying to help it is very much appreciated!
[Android Software Development] Thebear j koss:
Maybe that method is still used, but chances are it is probably different. I haven't really looked at lollipop yet. If I see something about it, I'll pm you a link.

Edit-pm sent with link.

Thebe@r'$ G@L@XY

Support TBO and the continuation of inverted and transparent apps and look as cool as your phone with a TBO t shirt- http://teespring.com/teamblackout
[Android Software Development] Vivek_Neel:
Okay. So are you sure that you are using the modded resources.arch in your fw? :)
[Android Software Development] tiboric:
Well. That's what I'm wondering.

My method:

Decompile framework-res.apk

Modify the intragers.XML in values folder of decomiled apk

Then recople using . apktool b framework-res

Wait...

Then open the new apk in dist folder using 7zip

Then copy over original meta-inf and android manifest.XML to keep signature.

More back over to device.

Reboot
[Android Software Development] Thebear j koss:
Check your pm

Thebe@r'$ G@L@XY

Support TBO and the continuation of inverted and transparent apps and look as cool as your phone with a TBO t shirt- http://teespring.com/teamblackout
[Android Software Development] tiboric:
Cheers bear this is simalar to another method i was trying to use from the note 4 forum but when i decompile framework.jar i only

\framework.jar.out\unknown\com\absolute\android\persistence/ bunch od aidl files,

am i doing this wrong as well lol
[Android Software Development] Thebear j koss:
Nope. You are doing it right but it may have moved. Would need to just find that method in smali. I know it's a pain, but they are making things more and more difficult to do. I would ask on that thread for some guidance, seriously they know Samsung devices forward and back. If it can be done, they can help.

Thebe@r'$ G@L@XY

Support TBO and the continuation of inverted and transparent apps and look as cool as your phone with a TBO t shirt- http://teespring.com/teamblackout
[Android Software Development] tiboric:
Cheers Bear, you've been a real help, Thank You so much
[Android Software Development] Morningstar:
Just FYI, you can also just add "2 > log.txt" to the end if any command in cmd prompt, and it will dump just about the entire output to a text file...
[Android Software Development] Basil3:
Hey guys. I've been having a few random issues with some of my themes and mods recently, and only just made the connection the other day that the 2.0.0 release version of apktool doesn't put classes.dex in the compiled apk. Is this a known issue, or I'm missing something?

Edit: Think it's actually something else, looking into it.
[Android Software Development] Ticklefish:
It's worth putting ">log.txt 2>&1" at the end of the command (if you're using Windows) to make sure you get everything. For some commands, the output can be piped to a different channel.

I don't think this is an issue with apktool, but it's a handy trick to know. :)

I haven't noticed any issues like this. I've just tried decompiling and recompiling a KitKat SystemUI.apk and the classes.dex file is there so I'm not sure what's happening to you. :confused:
[Android Software Development] Basil3:
Hmm, actually it's with apktool, so will have to figure what I've done. Think it's a problem with my setup, rather than apktool.
[Android Software Development] Ticklefish:
This may be a stupid question, and no offence meant, but are you definitely decompiling a deodexed APK?
[Android Software Development] Basil3:
Yeah, pulled from device. Original apk has classes.dex, decompiles and shows all smali. After compile, there's no classes.dex. I'm using VTS, and can't remember change my setup in any way. Weird.
[Android Software Development] Ticklefish:
Hmm..that seems to suggest that VTS is doing something weird. Try using apktool in the command line to decompile and recompile your file. If the new file has the classes.dex file, then VTS is recompiling it incorrectly. Probably just something in the syntax, I reckon.
[Android Software Development] Basil3:
Yeah, manually decompile and compile with apktool 2.0.0 is fine, so is a VTS issue. Thanks for your help, sorry for wasting your time!
[Android Software Development] Ticklefish:
We tracked down where the problem is..I call that time well spent! ;)
[Android Software Development] nodz13:
Is there apktool.apk for cm12.1 /Android 5.1.X????
[Android Software Development] Morningstar:
You can make one yourself.....The source for the apk is available....Although I would highly recommend using apktool from a PC....
[Android Software Development] iBotPeaches:
There are two dependencies not supported on Android. SnakeYAML and Java7 features (NIO). Due to this, there is not.
[Android Software Development] Morningstar:
Well, I stand corrected.

[emoji23]
[Android Software Development] MegaHz:
hi guys,

i am wondering, anybody can help out on this:

thanks
[Android Software Development] Morningstar:
Disable signature validation, then you'll never have to worry about it.
[Android Software Development] Kedharnadh:
APK force closing after editing

Hi,

I just edited a apk using apktool and replaced png files and re-complied then signed. but after installing it in mobile. it just force closing:confused:,

i think its a problem of signature verification or security, can someone help plzz :crying::crying:
[Android Software Development] Ticklefish:
You're probably right. If you're modifying a system APK, the new file has to be signed with the same key as the original..

Unless you've disabled signature verification, that is.
[Android Software Development] Kedharnadh:
Could you please suggest me, how to disable signature verification .....:(
[Android Software Development] Ticklefish:
It's called the Superuser mod (not to be confused with the superuser app) and it really depends on your phone and/or ROM. I don't know how to do it for everything but this link is a good place to start: http://lmgtfy.com/?q=android+disable+signature+verification

Or try asking in the XDA assist forum: http://xdaforums.com/general/xda-assist
[Android Software Development] prdog1:
If just changing pngs no need for apktool. :cool:
[Android Software Development] Kedharnadh:
Any other method...?
[Android Software Development] Ticklefish:
Oh, is that all you're doing? In that case, all you need to do is open the APK with 7zip and extract your images. Make your changes and insert them back into the APK. Then put the APK back on your phone, making sure you get the permissions right.

If you're modding a .9.png, you are better off decompiling though.
[Android Software Development] Kedharnadh:
Thanks for your information :) :D:D:D:):)
[Android Software Development] MegaHz:
thanks

emm, how to do that?

---------- Post added at 04:31 PM ---------- Previous post was at 04:18 PM ----------

hi guys,

newbie java signing quesiton here,

i have my keystore file, how to create my own testkey.x509.pem and testkey.pk8 that will be used to sign the app?

i was running:

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore andreas.keystore 1.apk alias_name

this used to work, but not when installing hte app it says that "There was a problem when parsing the package". If i sign using the testkeys its working ok.

any ideas?

thanks
[Android Software Development] Spannaa:
You can convert your .keystore to a x509 cert and pk8 private key on Windows if you grab the correct openssl binaries.
[Android Software Development] MegaHz:
got it thanks
[Android Software Development] Morningstar:
I'm on my phone right now, so I don't have a link handy, but just search xda. There's a bunch of guides on how to do it. A lot of custom ROMs already have it disabled.
[Android Software Development] fhem:
7 zip
[Android Software Development] Crussader:
there's even a guide on this thread ;)

link
[Android Software Development] munjeni:
True but must change locals to 1 instead of 11 since only one V :) Lolipop have allso compareSignaturesCompact and compareSignatureRestore but I realy have not analysed what is usage of it, probably it is allso used on something!
[Android Software Development] Morningstar:
Are you sure those smali files work?

Also, I don't know about not being able to decompile with older versions, as I haven't tried, but why would you want/need to?
[Android Software Development] UzUmAKI_NaRuTo1:
yes i am sure those smali work... since am following guides ...!!! gt smalis frm tested guides !! now the question why wld i need 1.5.2 , since 2.0.0 nt wrking fr me......... i tried using older version !! and noticed now older version cnt even install framewrks
[Android Software Development] _alex74_:
that u are following guides.... does not mean that smali works....

To must prove that is apktool issue, at least do the right tests....

so before to blame last version.... the right sentence will be

:rolleyes::rolleyes::rolleyes:

...and..... for sure framework recompiled with last version will fail with 1.5.2(gosh how much old is this version??)

Read well well changelog between all version to learn why...

and btw...... which device/android version(if lollipop then this apk handling is not for u)??

......lollipop will never work with 1.5.2
[Android Software Development] Morningstar:
Following guides is not a guarantee of success. There are just too many variables (and the guide could always be wrong). If you haven't used the same smali files, in the same apk, successfully before (with a different version of apktool), you can't say that apktool is the problem.

In fact, I can just about promise you that apktool is not the problem, as myself and many others use it daily, without issue....