yashsingh1/xdaforums huggingface dataset:
[Android Software Development] bovirus:
What does it eman?

:brut.apktool:apktool-lib:compileJava

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

:brut.apktool:apktool-lib:processResources UP-TO-DATE

:brut.apktool:apktool-lib:classes

Compiled under XP SP3 Java 1.7.0.71.
[Android Software Development] iBotPeaches:
https://code.google.com/p/android-apktool/issues/detail?id=690
[Android Software Development] bovirus:
Sorry But I didn't udnderstand if it's important or not and what I have to do to to avoid it.
[Android Software Development] Darkman:
How can i decopmilie the File bootanimation from /system/bin/ ??

This file have no *.jar or *.apk ... the name is only "bootanimation" ... how can i open and edit this File?
[Android Software Development] djdarkknight96:
WinZip, 7zip....it's not an app to decompile.

Sent from my BlakKat CM11 powered OnePlus One "BACON"
[Android Software Development] Darkman:
Thanks yes thats right but now the Files inside i can only open the first file "0"

See attach .. this Files can i not open with 7Zip and not with notepad++
[Android Software Development] djdarkknight96:
This is way off topic, search how to edit or create boot animations.

Bootanimation Factory is a nice program that will help.
[Android Software Development] Darkman:
Thanks! This Tool is great i know but first i must enable Bootanimation.zip in my ROM. And this ist the Reason why i must edit this "bootanimation" File.
[Android Software Development] vauss:
Hi ibotpeaches

On previous versions when no exists the default translation apktool shows a message like this: warning string "xxxx" has no default translation. found es-rES but now on RC2 i can't see which language exist. can we restore this option? I need it for MIUI translations

Thanks

Enviado desde mi GT-N7100 usando Tapatalk 2
[Android Software Development] iBotPeaches:
Apktool has nothing to do with dismantling Boot animations nor will it. Please take this discussion elsewhere. This is not the location for it. Apktool handles JARs and APKs. Nothing else.

That use to be a very verbose warning when building applications. Sometimes as bad as 100-200 warning lines for an 8 line build output. This commit here shows that was removed: https://github.com/android/platform_frameworks_base/commit/e119b22146c602dac1e8bdfdb325b6c83fc66d66 . This was done upstream by aapt and not by Apktool directly.

It appears that after reading that commit real quick that the old output has been moved under verbose (-v) option. If you run apktool in verbose mode, we pipe verbose mode to aapt as well. So running with apktool b -v etc, It should work like the old way you expected except with more debug output (assuming I read that diff correctly).
[Android Software Development] zelendel:
Also make sure to install systemui as well as the OEM framework. I bet the style it is looking for is there.
[Android Software Development] Ticklefish:
The answer's in your error messages:

C:\Users\Afshinpc\Desktop\apktool\settings\res\layout\preference_header_switch_i
tem.xml:11: error: Error: No resource found that matches the given name (at 'sty
le' with value '@com.mediatek:style/ImageSwitch').

Apktool is looking for a style in "com.mediatek". That's normally the package name for mediatek-res.apk

Install that before trying to decompile this file and that error should be no more. [emoji4]

If you're using Tickle My Android, there is an option for that in the pull menu. :Thumbsup:

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

SENT FROM TAPATALK

---------------------------------------
[Android Software Development] laura almeida:
When will the Lollipop version release ?
[Android Software Development] danman0:
I have a LG G3 D850. I'm trying to decode it's framework-res.apk (from the new cm 12 lollipop) to add mcc and mnc configs of my provider to the database, so it isn't roaming. I've done this before on my moto g, however, I can't even install the framework-res.apk with this error that it's giving me.

C:\Android\Apktool>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01030128 style/Theme.DeviceDefault, config=[DEFAULT]
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:186)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
0)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:657)
at brut.androlib.Androlib.installFramework(Androlib.java:649)
at brut.apktool.Main.cmdInstallFramework(Main.java:256)
at brut.apktool.Main.main(Main.java:92)

C:\Android\Apktool>
[Android Software Development] Kickoff:
Read some pages back they are full of the information that apktool does not work with Lollipop.
[Android Software Development] iBotPeaches:
A new version has been released!

v2.0.0 RC3 (Released November 26, 2014)

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

Details of Release: http://connortumbleson.com/2014/11/27/apktool-rc3-released/
[Android Software Development] enotar:
Thank you
[Android Software Development] daemon1666:
Thx

Thx for your job and for your help. Now, I don't have problem with your tool.
[Android Software Development] MJPollard:
Thanks for all you've done; this is an indispensable tool, and is only getting better! That being said, however :), this has started to happen, which didn't happen with RC2:

I: Using Apktool 2.0.0-RC3 on TestTheme
W: Could not find sources
I: Building resources...
W/ResourceType( 8576): ResTable_typeSpec entry count inconsistent: given 1, previously 942
W/ResourceType( 8576): ResTable_typeSpec entry count inconsistent: given 2, previously 820
I: Building apk file...

The lines beginning with W/ are the issue (the number in the parentheses changes every time). I have deleted the old 1.apk framework and reinstalled it with RC3. The warning doesn't appear to affect the theme I'm compiling, but like I said, this wasn't happening with RC2. Just FYI...
[Android Software Development] brolee93:
Thanks for this update bro
[Android Software Development] laura almeida:
Thank you so much...

Kisses...
[Android Software Development] 412070391:
I have a problem with rc3

I decompile a apk, then recompile it and find build\apk\res\drawable-hdpi-v4, drawable-xxhdpi-4, etc... but it should be drawable-hdpi, drawable-xxhdpi... (no -v4)

this made the apk FC on phones
[Android Software Development] Ticklefish:
Fantastic work, thank you!

Why this isn't mentioned on the Portal, I have no idea...
[Android Software Development] bovirus:
[MENTION=3924617]iBotPeaches[/MENTION]

Error downloding update from GitHub. Some files has a path too long

Cloning into 'Apktool-iBotPeaches'...

remote: Counting objects: 10211, done.

remote: Compressing objects: 100% (3835/3835), done.

remote: Total 10211 (delta 4854), reused 10102 (delta 4803)

Receiving objects: 100% (10211/10211), 40.83 MiB | 523 KiB/s, done.

Resolving deltas: 100% (4854/4854), done.

fatal: cannot create directory at 'brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/res/values-mcc004-mnc04-en-rUS-ldrtl-sw100dp-w200dp-h300dp-xlarge-long-land-desk-night-xhdpi-finger-keyssoft-12key-navhidden-dpad': No such file or directory

You can get the same error downloading package from

https://github.com/iBotPeaches/Apktool/archive/master.zip

and try to decompress it.

Please check.
[Android Software Development] bovirus:
[MENTION=3924617]iBotPeaches[/MENTION]

Whics the differences between apjtool.jar ()only 6.8Mb) and the file apktool.jar compield from your latest sources (9.5 and 13Mb)?
[Android Software Development] iBotPeaches:
Uh oh. That sounds like regression. I must not have a unit-test for that. Either upload the APK here or report a bug w/ the apk here: https://code.google.com/p/android-apktool/issues/list (So I can get it logged in the system, as I'm away on Thanksgiving and don't have my usual setup)

That is 194 characters. Windows has a limit of 260 I believe. Install Apktool in a shorter path location. That long qualifier test is needed for unit-tests. Once again though, you do not need to build it from source to use it. I released binaries. I would use those since you are having quite a lot of troubles with things.

Umm. The changelog that I posted when I released it. One of the bugs caused an increase in size which explains the smaller binary this time around.
[Android Software Development] cbucz24:
Great update [MENTION=3924617]iBotPeaches[/MENTION]!

I've not been personally been able to use it since I don't have my new phone yet. We are all getting a Samsung note 4 or edge.

I have kinda teammates who do though. I guess our issues relate to an outside issue.

It does decompile everything. But the main problem is there is nothing yet that has the ability to edit a qmg, astc, or webp file.

Don't mean to add additional work, but is there a possibility of a recommendation or possibility of converting the files to usable types. Then upon recompile, convert back to original formats?

Just figured I'd give some feedback. It does fully decompile the apk, so it's closer. Thanks for the super hard work. I know none of this is easy. :thumbup:
[Android Software Development] bovirus:
[MENTION=3924617]iBotPeaches[/MENTION]

I compiled (with normal and proguard option) but I didn't obtain the same file size that you posted already compield.

And I used the compilation info that you posted in GitHub.

What compilation option did you use to have smaller size?

For this I asked about the size difference about the file (2..0.0.RC3) that you posted and the file that I obtained from compilation from Github sources.

Note: I'm using the compilation from Github source because the file already compiled by you are less frequently available than your updates that you released on GitHub.

Thanks for your work.
[Android Software Development] suerya46:
[MENTION=3924617]iBotPeaches[/MENTION]

•°•♡ⓣⓗⓐⓝⓚⓢ♡ •°•work bro

Sent from my Nexus 5 using Xparent BlueTapatalk 2
[Android Software Development] bigsupersquid:
rc3 worked well for me on a troublesome app that nothing else would tear down, older apktool crashed on it.

was able to change version number without issues and the rebuilt app runs fine.

Thanks for the hard work!
[Android Software Development] S3V3N:
Lg g3 lollipop

Welcome!

Sorry stock of LG G3 is still based. I've tried everything - to no avail.

Any ideas?
[Android Software Development] :
Same here. LG G3 running official Lolipop. I was trying to decompile QRemote (IR blaster app), both lge_res.apk and framework_res.apk were installed.

Log: http://pastebin.com/SfJcjdvw
[Android Software Development] superdragonpt:
Hi

Some LG's firmwares, requires systemui and phone apps to be installed as frameworks... In adition to the regular frameworks.

Regards and good luck
[Android Software Development] Kickoff:
On KitKat we could decompile systemui without installing it as framework.
[Android Software Development] :
Thanks for suggestion!

I've tried to install system_ui as framework, and that haven't solved anything :(

Do you know where else they could've put their resources? Because regardless of which frameworks i install (Qslide framework, etc), apktool fails to find same resources...
[Android Software Development] p4rot:
Is that working on LInux?
[Android Software Development] daemon1666:
Yes he work on Linux

I'm using it on Archlinux

without problem
[Android Software Development] :
It's good on Linux Mint and Windows 8.1 also. Both 64 bit.
[Android Software Development] :
I just cannot decompile my SystemUI.apk. It always fails. (KitKat 4.4.2) Here is the log:
[Android Software Development] S3V3N:
LG G3

as you have enough, we will use:

framework-res.apk

lge-res.apk
[Android Software Development] Ticklefish:
Have you tried LGSystemUI.apk?

I don't think there's any resources in there normally that other apk's use...but there's no harm in trying!
[Android Software Development] Kickoff:
It doesn't help. Apktool seems not to be able to handle any LG system app even resources are correctly installed.
[Android Software Development] iBotPeaches:
If you followed the Build Guide, you would get the same filesize. Please just stick with the released binaries.

Those errors have a leading package id of 0x7F, which is ID 127, which is internal. Frameworks have package IDs from 1 -> 10. This means that either the resources are decoded improperly which explains the errors, or that there is another private resource apk (0x7F) which has the resources that APK requires.

I see there is a bug report now. I will take a look at it later today.

Your resources are missing that have a package ID of 1 or 0x01. I would delete the file at $HOME/apktool/framework/1.apk and try again.
[Android Software Development] PerfectSlayer:
Hi all,

I'm making some mods to SystemUI.apk in Lollipop to switch locations of navbar buttons.

I succeed to relocate buttons but I got strange behavior with modded SystemUI.apk: my status bar is stuck at left (instead to be centered).

Even if I just decompile then recompile the SystemUI (without editing layouts), I got the mistake... :(

(I got no error on build and I didn't decompile source.)

Could it be a problem with apktooll and aapt ? (wrong resource qualifier loading ?)

Can anyone has an idea to fix it ? Thanks :good:

Result of rebuild SystemUI on my Nexus 7 (LRX21P) :
[Android Software Development] gemini16:
I got same problem with you. Decompile then recompile file SecSettings.apk for Samsung Galaxy S5 4.4.2. When put in phone, it's not show right icon of Settings, open Settings then got FC. open recompiled SecSettings look in res folder, i've got some folders with name:

drawable-hdpi-v4

layout-sw360dp-land-hdpi-v13

.....

in the folder that Decompile earlier, every folders is normal with no -v4 or -v13 etc...
[Android Software Development] Ticklefish:
Now this I didn't know. So if there was an error that looked like:

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0[B][U]2[/U][/B]0810b1

That would be an issue with 2.apk, right?

That depends on the mod you did, really. What did you actually do?
[Android Software Development] PerfectSlayer:
Even if I made no mod, just decompile then recompile, I got the mistake...
[Android Software Development] iBotPeaches:
Sounds like regression. I asked the last guy who posted this exact error (like 3 days ago) to post an APK or submit a bug report here (with an apk): https://code.google.com/p/android-apktool/issues/list I haven't seen either yet. Do that real quick for me and when I have time to look into the LG problem, I will check that out.

Ultimately the 2.apk would be a fault for either lacking the resource or just not existing. Apktool's management of framework files isn't the best, so I use tags all the time. I have tags for every bug report, so that way I know which frameworks I have associated with each bug report. If you have just 1,2,4-5.apk in your framework folder and you mess with Google, LG, HTC, Samsung apks frequently you are probably constantly reinstalling frameworks which is where most of the these UndefinedResObject errors come from (an outdated framework). I might try and add some output to tell users this if this error occurs.
[Android Software Development] fisha21:
I'd agree that framework tags do make things a lot cleaner, and tend to minimise missing resource errors.

I did do a [URL="http://xdaforums.com/showthread.php?p=51437526" ]little write up[/URL] explaining a bit about frameworks and public ids, in case anyone finds it useful (you'll need to scroll halfway down the post). I only tend to work with HTC devices, so there is some HTC-specific stuff in there, but most of it is generally applicable.

@ iBotPeaches: I am coming from a non-coding background, and the info there is all stuff I pieced together myself over years of messing win apks, so if I got anything grossly wrong, I'm happy to be corrected!
[Android Software Development] PerfectSlayer:
I also got -v4 and -v13 suffix only in apk, not in the decompiled resources. Is it the expected behavior ?
[Android Software Development] _alex74_:
thanks for your update, here we go.

on the left apk as it is before decompiling, on the right after recompiling

Old version works well indeed

SystemUI

thanks x your time
[Android Software Development] zelendel:
That error came up because you edited the . 9.png wrong. You can not just open them in ps and edit the color. You have to edit them properly. Do a search for editing those images
[Android Software Development] bdorr1105:
Thank you so much, you are absolutely correct I was completely unaware, it was a really easy adjustment. All is well and I have done what I wanted to do
[Android Software Development] gemini16:
I have submitted issue #714. Thanks for your time. By the way, i forgot to add Android 4.4.2 Galaxy S5 to that issue.
[Android Software Development] gemini16:
go to decompiled resources folder, you'll see a "build" folder(if you have recompiled) go to build/apk/res and you'll see.

Seem this not only happen to samsung devices, it's happen when recompile any apk
[Android Software Development] iBotPeaches:
For for those interested in following that bug, here is my response: https://code.google.com/p/android-apktool/issues/detail?id=714#c1

Basically, the new aapt is causing this. Not Apktool. Will need to do more research (logcats of failures on device) and checking AssetManager on device (4.2/4.3/4.4/5.0) to see if it fails on any of those apks with the new aapt.
[Android Software Development] jcejohnson:
This may be the same as what GlenniBoy is seeing.

For my Galaxy SIII, I decompile SystemUI, recompile it and reboot.

When the phone comes up, I don't have a status bar or wallpaper,

it looks like SystemUI is failing to start.

linux $ apktool | head -5
Apktool v1.4.9.aed20bd - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wiśniewski <brut.alll@gmail.com>
with smali v1.3.4-dev, and baksmali v1.3.4-dev
Updated by iBotPeaches (@iBotPeaches) and yyj
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
linux $ apktool d SystemUI.apk-Nostalgia-7.3
... no errors
linux $ apktool b SystemUI.apk-Nostalgia-7.3.out SystemUI.apk
... no errors
linux $ md5sum SystemUI.apk
cbe8cf2bcb635337e3bb4c5f45a937d9 SystemUI.apk
linux $ adb push SystemUI.apk /mnt/sdcard
2501 KB/s (1155662 bytes in 0.451s)
linux $ adb shell
sh-3.2$ su
sh-3.2# mount -o rw,remount /system
sh-3.2# cd /system/app
sh-3.2# cp /mnt/sdcard/SystemUI.apk .
sh-3.2# chmod 644 SystemUI.apk
sh-3.2# md5sum SystemUI.apk
cbe8cf2bcb635337e3bb4c5f45a937d9 SystemUI.apk
sh-3.2# cd /
sh-3.2# mount -o ro,remount /system
mount: Device or resource busy
sh-3.2# exit
sh-3.2$ exit
linux $ adb reboot

Possibly useful logcat output:

linux $ grep -i systemui 2012-08-10_23-05-37.log
Unable to start service Intent { cmp=com.android.systemui/.SystemUIService }: not found
Failed verifying certificates for package:com.android.systemui

Ubunto Linux, java 1.7, apktool v1.4.9.aed20bd & the patched aapt, android-sdk_r20.0.1-linux.tgz

The ROM is Nostalgia 7.3 (stock 4.0.4 deodexed, I747UCALG1)
[Android Software Development] djdarkknight96:
The log cat is saying it's not installed or can't be located.

Did you sign it? I do believe ICS and Jellybean needs system apps signed. If so then try dropping your res folder, classes.dex and resources.arc to an untouched systemui. Then flash or push it back. Hope that helps.

DarkJelly Gnex on JellyBean sent this using the app
[Android Software Development] :
Decompile services.jar look for packagservicemanager.Somali and the method comparesignatures.

Delete all from that method and put in:

.locals 1

const/4 v0, 0x0

return v0

..if I remember that right it's correct, currently on my phone, so can't check out on my desktop.

Problem is, that when you modify an .aspk the signature doesn't match anymore...and with the mod posted you can deactivate that signature check.

Feel free to pm me if it doesn't work.

Jan
[Android Software Development] lichti1901:
I have never signed a systemui or a framework-res on ics or jellybean. It works without signing.

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Android Software Development] djdarkknight96:
Hmmm, well I always have since I had an issue with settings. I guess systemui and framework are the exception? I don't have any issues with signing them. I guess it doesn't matter. Hope what you gave him for a solution works. Thanks!

DarkJelly Gnex on JellyBean sent this using the app
[Android Software Development] adulfo:
Thank you for this tool.

I can decompile and compile without any problems, but I am very amazed that the newly compiled apk has a different amount of storage than the original one, say the original apk has 7.49Mb but the new compiled apk has only 7.33Mb. I just only change a line, "true to false".

Also I discovered that some lines of the .xml are not totally decompiled, apktool just place a dummy lines for it like these lines:

<item type="drawable" name="APKTOOL_DUMMY_00cc">false</item>

<item type="drawable" name="APKTOOL_DUMMY_00cd">false</item>

<item type="drawable" name="APKTOOL_DUMMY_00ce">false</item>

<item type="drawable" name="APKTOOL_DUMMY_00cf">false</item>

<item type="drawable" name="APKTOOL_DUMMY_02c6">false</item>

Please advice me what to do.
[Android Software Development] Ticklefish:
Apktool compresses resources.arsc when it compiles. This will need to be extracted and added back in again at store rate of compression.

And it sounds like you need to install a resource file first.
[Android Software Development] adulfo:
Thanks for that info... And how about those "dummy lines"?
[Android Software Development] 3rdstring:
I was under the impression that you never resign system apks. The instructions in Brute.all's thread ... "Don't resign system files. Unzip it, copy META-INF and AndroidManifest.xml from original apk, zip it back and push to device."
[Android Software Development] Ticklefish:
That's what I meant about installing the resource files. You need to install framework-res.apk at the very least. What are you compiling? And what type of rom are you on? Sense, Touchwiz, etc?
[Android Software Development] adulfo:
MIUI... I see... Sorry for the noob questions... Just figuring out android matters..
[Android Software Development] djdarkknight96:
Been signing them after compile over a year now..never ever an issue!

DarkJelly Gnex on JellyBean sent this using the app
[Android Software Development] Ticklefish:
We're all noobs at first. :)

If you're on MIUI, try installing framework-res.apk and framework-miui-res.apk before you try decompiling and recompiling your apk.
[Android Software Development] 1brainsurgeon:
Setting up the environment and correct paths has proven to be quite challenging for this dummy :banghead:

Sent from my SPH-L710 using Xparent ICS Tapatalk 2
[Android Software Development] iBotPeaches:
Following my suspicion around SystemUI, I think there is a new resource type that apktool doesn't understand. I believe it has something to do with T9Maps.

More details to follow once I have my phone back. Its been at mobiletechvideos for eh 3 days. Haven't really been able to test my recent code changes, so if your brave enough to build from source go ahead. Otherwise wait for me to get my phone back and test this out.