yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Aman Dewett:
yes you are right it's a png on this path " C:\apktool\framework-res\res\drawable-hdpi\ic_contact_picture "

now what to do copy it to systemui/res/drawables or something else??
[Android Software Development] Thebear j koss:
I would, becsause for some reason it isn't being recognized. Copy the png over, delete the xml you created and change the line in the drawable.xml to reflect you are not pulling it from systemUi and not framework. Just delete the "android:" in that line.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] devadip:
You're right dear Thebear

IMHO material design is the worst android interface[emoji20] [emoji20]

Inviato telematicamente dal mio Leary jet
[Android Software Development] Thebear j koss:
Most will disagree, from a development side it is probably better, theme wise it is obviously easier. Everybody has some CM 12 theme out, most are just terrible. I just can't stand the ordinary, plain, flat garbage. Throwing a dropshadow and a tint does not make anything different thsn anything else. I prefer working with and creating images, all of that is gone now unless you want to create an icon pack. Luckily i choose not to use lollipop. I'm fine with my devices not being up to date...

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Aman Dewett:
I did what you said but still unable to re-compile it check new error log and screenshots
[Android Software Development] devadip:
You say the truth!!!!

I'm on lollipop but i've modded any apk.

I like lollipop cause is very fast and smooth, but at the same time I hate it for that boring graphic.

Anyway I agree with you in all these words you said. ???

Inviato telematicamente dal mio Leary jet
[Android Software Development] Thebear j koss:
Try this, rename the png to ic_contact1.png and change the line in drawable.xml to ic_contact1.

In drawable.xml if you look ic_contact, can't point to itself which is what i did. So define it as ic_contact1 so it's pointing to the image. It should build now.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.

---------- Post added at 02:12 PM ---------- Previous post was at 02:12 PM ----------

Yeah, there's a couple of us left. Lol

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Aman Dewett:
Done apk build complete but still i got some warnings is they important to notice? check attachment
[Android Software Development] Thebear j koss:
Nope. Don't worry about warnings...

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Aman Dewett:
ok thanks a lot i wish i can thank you multiple times :D

anyways i will tell you if that person get any problem after installing apk.
[Android Software Development] vandiaz_sairavinz:
[Solved]

port themes chooster recompile error

Exception in thread "main" org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65536

at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)

at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:312)

at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:980)

at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:759)

at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:214)

at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:192)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:57)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)

at brut.androlib.Androlib.buildSources(Androlib.java:289)

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

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

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

at brut.apktool.Main.main(Main.java:84)
[Android Software Development] Thebear j koss:
You are using advancrd apktool, not from this thread. Would need to just use the apktool 2.0 from here or ask in the thread for advanced apktool.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] vandiaz_sairavinz:
I'm upload file framework.jar... you recompile yea ???
[Android Software Development] Aman Dewett:
Thanks

Thanks [MENTION=4916750]Thebear j koss[/MENTION] the ui works :)
[Android Software Development] prdog1:
Hahaa. TheBear II rocks. :cool:
[Android Software Development] Thebear j koss:
Really weird that apktool dummied his ic contact picture. Never seen that before. And that was an easy fix, just add it and define it.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] prdog1:
Could have just swapped with 7-zip and saved all the drama. lol :cool:
[Android Software Development] zelendel:
He showed him the proper way to do it. This also helped him learn. Using 7zip that way is just asking for trouble and only the very new noobs use this method.
[Android Software Development] Thebear j koss:
Yeah, wasn't sure what he was doing but i'd rather him be happy his apk recompiled. He didn't need to decompile his app but since he did...

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] prdog1:
Yea good work. Regardless of other posts using 7-zip is not a noob process. If done correctly the apk would have decompiled and compiled correctly after as long as named correctly and not a .9. :cool:
[Android Software Development] zelendel:
I wont argue this fact with you, been doing this for far too long. Trust me. It is and your only asking for trouble.
[Android Software Development] porkyhontas:
And it's fugly.

Sent from my Galaxy Note 3 using AnaKonda Tapatalk

AnaKonda Theme

eREDicate Theme
[Android Software Development] aalupatti:
i am learning to decompile files.

I have Java and the apktool files.

When i try to install a specific framework-res file its giving me error. However it works with certain other framework-res files.

I have attached the framework-res file that causes the error and details of the error.

I tried to zip align the apk but that is not helping either

Any suggestions please ?

https://www.dropbox.com/s/6zf4pmcdh0gg478/framework-res.apk?dl=0

C:\Android\APK>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:52)

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

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

s.java:593)

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

s.java:575)

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

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

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

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

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

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

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

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

)

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

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

4)

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

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

... 6 more

C:\Android\APK>

Edit : Just realized that this bug is fixed but the version is not released yet. Can some one please compile apktool version from the source. Too noob to do that yet.

Thanks
[Android Software Development] mjraogr:
Hello [MENTION=3924617]iBotPeaches[/MENTION]

Im looking for .jar source to know decompile Baidu OS, The normal apktool can't do it

Are you know if exists source for this system?

tks
[Android Software Development] rodhiesutrawan:
Error install/decompile framework-res.apk (android lollipop 5.1.1 build LMY47V SPROUT DEVICES VARIANT)

Here the screenshoot;
[Android Software Development] maksnogin:
Error, decompile

Latest apktool

Exception in thread "main" brut.androlib.AndrolibException: Multiple res specs: attr/?

at brut.androlib.res.data.ResType.addResSpec(ResType.java:58)

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

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:188)

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

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:113)

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

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

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:622)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:73)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:65)

at brut.androlib.Androlib.getResTable(Androlib.java:63)

at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:209)

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

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

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

[*] ---> Error decompiling lbe_0.5.1295_beta.apk
[Android Software Development] Phone_Guru:


remove the spaces and full stops from the file name
[Android Software Development] maksnogin:
Name is lbe_0.5.1295_beta.apk
[Android Software Development] Phone_Guru:
An underscore is a space for apktool
[Android Software Development] maksnogin:
im renamed file to 9.apk

error decompile (
[Android Software Development] aalupatti:
There is a bug with apk tool and 5.1.1 framework. Op has fixed it but the version is not released yet. If u know how to compile the app, u can compile the latest version. Unfortunately for newbies like me have to wait[emoji45]
[Android Software Development] Azharkanorwala:
Link to apktool 2.0.1 dirty build??
[Android Software Development] bovirus:
[MENTION=4763243]Azharkanorwala[/MENTION]

You should compile it by sources via the instructiona avilable in first posts.
[Android Software Development] :
Can you link a Rom link?

If its lp use 2.0.0 snapshot build it works with 5.1

Maybe wrong apktool?

Yeah Sure http://ibotpeaches.github.io/Apktool/build/

If you didn't see it. Ibotpeaches highly recommend us to not post unofficial builds so you can just compile it by yourself. even on Windows
[Android Software Development] Thebear j koss:
You can always send it via pm if you have it built already. Ibotpeaches doesn't want them posted publicly where users are posting issues with an unofficial build. Of course it's up to your discretion to share or not and the best method is for users to compile from source themselves. [emoji106]

Thebe@r'$ G@L@XY
[Android Software Development] :
Well I'd like to. but I think its for the best if he build itself so he can later on update the tool whenever a new patch is pushed to git. Instead of needing sending a new one when a patch which is fixing bugs but might take some time until a stable version is released to public.

---------- Post added at 05:40 AM ---------- Previous post was at 05:29 AM ----------

There are 4 easy steps if you install git

Open cmd and follow the steps

1. git clone git://github.com/iBotPeaches/Apktool.git

2. cd Apktool

3. Double click on gradlew.bat it will run some stuffs.

4. in cmd write: gradlew.bat build fatJar

5. Navigate to brut.apktool/apktool-cli/build/libs/

Done. this is a simple info for Windows I removed the Linux related info and wrote some small details. Good luck, even a newbie can do this :)
[Android Software Development] DaOldMan:
Yes it's the best to learn how to use the git and compile alone. I also make dirty builds for myself and people who request by private msg get the links. This is to comply with [MENTION=3924617]iBotPeaches[/MENTION] request not to publicly post them as they go viral and may contain bugs.

Cheers !
[Android Software Development] Benjaminrice:
Great Post and Work!!!!
[Android Software Development] budi78:
good

nice sir
[Android Software Development] rodhiesutrawan:
I use stock rom sir. I dont have any link of because i upgrade from ota update
[Android Software Development] sasiskas:
Hello guys,

I need some help...I have been successfully decompiling and recompiling systemUi, Framework-res, settings etc.. But for some reason I can not decompile the messaging app of my Galaxy s4.

I have no idea what may be the problem. Attached is the apk file and the log.

Can someone guide me? or decompile the apk for me?
[Android Software Development] drdoulittle:
Hi Sir,

your Tool (apktool 2.0.0) work fine for decompile apk for android M...

I have install framework-res.apk and can decompile all apk from M...

Work nothing when recompile my apk from M and become error...:p

You can tell me ( Update for M) ?

>or have you Tip for me....

> in android lollypop 5.1.1 all work fine and no problems!!
[Android Software Development] zelendel:
Gonna have to wait until the source for android m is available in full.
[Android Software Development] Kickoff:
I would like to report about my latest experience. I just released my Hybrid Theme for the G4 that would be impossible without this beautiful tool. Had to struggle with changes in SystemUI for days and got always bootloop. Then I decompiled and recompiled stock LGSystemUI.apk without touching anything and it resulted in the same bootloop. With the help of this thread and the nice guys present here I compiled apktool and suddenly everything worked. The -v4 folder names are there now and SystemUI works well. Many thanks for all.
[Android Software Development] nixx-X1:
Lame ass guy (me :) )

Is here someone that can help me to unpack an .apk file for me?

It's an selfmade (not by me, but owner got no time) app of which i want some functions to be stripped but to do that it first needs to be unpacked..

something which i can't seem to get working and have no more time to figure it out myself.

if someone wants to help with this, please PM me.
[Android Software Development] Morningstar:
No offense, but if you don't have the time to learn something simple, like how to decompile an apk, how do you expect to be able to mod it? Any sort of modding will take considerably longer than the 5-10 minutes it takes to figure out how to use apktool.

Edit: I may be able to assist you (no promises), but it won't be right away, as I'm busy with several other things at the moment. What type of app is it, and what sort of functions are you wanting to remove from it?
[Android Software Development] nixx-X1:
none taken :) For me it's only simple as long as there are no errors popping up as then I need in-depth knowledge which i miss. For me 3D-animation / creating visual effects is simple.. everyone has there own area's they are comfortable with and this isn't really one that suits me very well and I know will take a giant investment of time to learn.

However, I do love to tinker and like to have customized apps to help me out. (my LEDS-U-CTRL app was build entirely in Tasker... )

I tried to do it with the apk-multi-tool, but somehow I can't get it to unpack properly and am get either errors or i'm missing parts of the code. So step 1 would be getting help to unpack it and get it working in eclipse (think it's made there).

Step 2 would be to figure out if I can find my way around the code.

I do have android studio / eclipse and understand a little bit of the code structure/scripting.

But it'll be lots of trail and error, but if I know the core is solid I don't mind. Then I hope to be able to de-activate parts of the code. Of course it would be cool to have help with that too.

Attached the apk. If you feel like having a look and getting it to function and are able to make it exportable in eclipse that would mean the world to me.

thanks.
[Android Software Development] erikalin:
I'm not sure what you mean, but (if I am guessing right) you cannot decompile an app and turn it into an Eclipse or Android Studio project.

Sent from my USA Verizon HTC One M8
[Android Software Development] Morningstar:
I can decompile the apk for you in a few, but you're not going to get anything that can be imported into Eclipse or Android Studio.

Apks decompile to Smali, which is an assembly language for Android's Dalvik VM, based on Jasmin. You can take the Dex file containing all the smali and convert it to a .jar file, then decompile that .jar into pseudo-Java, which will give you kind of a framework for what the Java source looks like, but in order to actually get usable source code, you'd still have to manually go through the pseudo-code and fix a lot of things.

It can be done, but it's incredibly tedious, requires a good understanding of both Java and Smali, and would take so many hours that it's almost never worth it.

You'd do better to familiarize yourself with Smali, which is no small task (I still struggle quite a bit with it), and make your modifications/changes directly in Smali, but again, it will take many, many hours of research and trial-and-error, even for relatively simple mods.

If you know who made the app, your best bet would be to talk to them and see if they'd be willing/able to give you the actual source.
[Android Software Development] Morningstar:
Here you go, I decompiled the apk, and rolled the Smali into pseudo-code for you. This is a real small app, and it looks to be fairly simple, so it's entirely possible to work out the actual source from it, but it's still gonna take quite a bit of work...Good luck!
[Android Software Development] Thebear j koss:
Man for once i can say i'm glad i'm not that guy. Lol. I think it would still be easier to just post a log from the apktool error. If morningstar decompiled it and recompiled it with no issue it is most likely an easy fix in the apktool serup. And it's really useful and easy to use once you get going and get some help when you get stuck. Only way to learn is to practice and ask questions. There`s unlimited knowledge here in xda from devs like ibotpeaches and morningstar, who i don't think i've ever seen say no to anyone on any thread. But without source you are heading for a real nightmare trying to decipher and mod an app like that. It's like trying to rebuild a Lamborghini engine and you have never worked on an engine before and all the instructions are in a dead language like Phonecian. Lol
[Android Software Development] iBotPeaches:
A new version has been released!

v1.4.10 ( Released August 21 – 2012) Codename: KOJAN

Fix bad whitespace in manifest.xml

Fix for bad decompilation of some APKs (Thanks KOJAN)

http://miui.connortumbleson.com/other/apktool/apktool_1.4.10.jar (v1.4.10) 6de3e097943c553da5db2e604bced332
[Android Software Development] noobtoob:
You have made this thing amazing. Thank you for all your hard work. I have this figured out on the PC side of things, but I am new to mac and linux. My macbook pro is dual booted with os x and linux mint. I see you have a patched aapt for mac os x and linux, but I am unable to patch as I am an extreme noob when it comes to unix and linux. Is it possible you throw some guidance my way? I would appreciate it so much. And yes, I searched and searched before anyone asks. I am lost in this world.

Thank you in advance for anyone that can help me out.
[Android Software Development] nick1313:
Good work man...Thanks for keeping at this and taking this project on while brut is MIA. :D

Much appreciated.
[Android Software Development] iBotPeaches:
Can you send me the German and Italian values/strings.xml from that apk?

The language must have something different because I've fixed that bug a lot of times.

Sent from my SGS3 AT&T Variant
[Android Software Development] NCandiano:
Here is the apk itself, and the 4 affected language packs.

https://dl.dropbox.com/u/73166566/apktoolbugdocs.zip
[Android Software Development] pinky059:
Those are just warning's (hence the W:)....it should still compile and decompile fine. I have used the modded one for Sense 4 a few times in Linux.
[Android Software Development] ahmad.afef:
first i want to thank you about the really good work you done with this tool :D

2nd, i have this bug i'm not sure is it because i'm a complete noob or it is a real bug

every time i try to compile the framework file with the tool, it don't work :(

what I've done:

1- load the ifs: framework-res, 2, 3, 4, 5, framework-miui-res.apk

2- apktool d framework-res.apk

3- i didn't touch anything at all i just recompiled after

4- apktool d framework-res

--> i added the file to my deodexed rom and flashed but it didn't boot

--> i reflashed with the original framework and it booted

--> i replaced the framework with a fully working rom and it worked, but when i wipe data it won't boot again :(

here is a link for the original and compiled apks please take a look and tell me what is going on

http://www.mediafire.com/?be0bpp0s9ok330c

Rom: MIUI 2.8.17

Android: 4.1.1

Phone: Galaxy Nexus GSM

thank you in advance :D
[Android Software Development] kong:
Did you copy over the signature (META-INF and AndroidManifest.xml) from original apk into the newly compiled one?
[Android Software Development] ahmad.afef:
No, but i've just compiled and copied META-INF and AndroidManifest.xml into the newly compiled files and it didn't work too :(
[Android Software Development] mekanismen:
Thanks for the update!
[Android Software Development] dhostetter:
I'm very new to this so if I'm asking something that has been answered before please don't beat me up.

I was able to decompile my apk after installing the framework with no issues.

I changed a few png's just to see how they looked after installation.

I recompiled fine with no errors. (i thought I was good)

Copied APK to phone and clicked the apk to install.

Started the installation process and errored out stating "App not installed"

Did I miss a set somewhere?

Should the apk be signed and if so how is that accomplished?

Basically I was taking a theme.apk and changing the battery icons.

Any suggestions would be helpful.

Thanks,

Dave
[Android Software Development] ahmad.afef:
you never change PNGs and recompile

after doing what ever you need, just recompile and extract the images using 7-Zip and copy them back using it without decompiling them
[Android Software Development] he_stheone64:
Thx peaches, just hate the 8 thx per day limit, need to retun later to hit the button for your tremendous effort. Really appreciated :cowboy:
[Android Software Development] 3rdstring:
Zip Signer 2
[Android Software Development] dhostetter:
That worked.
[Android Software Development] iBotPeaches:
Taken a step into the com.htc.resources.apk problem. After a long day and then a rant blog post: http://connortumbleson.com/2012/08/development-blog-apktool/

Point being. I think I'm closer. Really want to get this thing polished with no bugs for v1.5.0.
[Android Software Development] raziel23x:
Or you can just use my tool APK Multi-Tools over at http://apkmultitool.com

I try to keep it up to date with each and every apktool update. Also it has many features like a signer, optimize, zipalign, and multiple compiler options to correct any issues that may happen with the apktool