yashsingh1/xdaforums huggingface dataset:
[Android Software Development] DaOldMan:
I hope you know your tool makes thousands of people happy :). Android would never be the same without it !

Can I compile a new build or should I wait for more changes ?

With gratitude,

Thomas
[Android Software Development] iBotPeaches:
RC4's internal aapt fixed the addition of version qualifiers. If you are experiencing that, I would ensure you are running the internal aapt provided in Apktool and not using your own via --aapt, which will not have this patch. Using the term "duplicated" isn't really correct. aapt attempts to add qualifiers where needed, additional resources should never harm an APK since Android loads via a smart qualifier system. Either way, all of this is irrelevant because unit-tests and more say that patch (which adds the version qualifier) isn't in RC4.

You can compile as many builds as you want privately. I'll release a snapshot build here after I merge the LG apk bug.
[Android Software Development] inimaitimepass:
Looks like google at it again! Apktool not working with 5.1!! :eek:
[Android Software Development] nightrainbow:
Can't get it to install the framework file on 5.1

Trying with the 5.1 stock image for Nexus 5
[Android Software Development] Faiyaz5yaz:
Yeah.. it will added soon .. as aosp sources are pushed ..
[Android Software Development] iBotPeaches:
I'll post here when 5.1 support is added. I need to rebuild all internal aapts and frameworks and add a few patches. Having some troubles building AOSP currently, but otherwise I'm close.
[Android Software Development] Faiyaz5yaz:
that's great news man :)

will test in wen u r done .. all the best
[Android Software Development] Carotix:
i themed all the apps in lollipop samsung , i just need to mod the contacts app only but i can't ..... any news for this one?
[Android Software Development] claude96:
[MENTION=3924617]iBotPeaches[/MENTION] we really appreciate everything you're doing, thanks a million ton for that, but not be a pain I hope you can find some more time to fix the loolipop contacts not showing in app drawer after just a simple decompile / compile ( without any edits ), and without a single error while compiling !

[MENTION=4751298]Carotix[/MENTION] same here, the contacts stock look is really killing the looks of everything else, but hopefully iBotPeaches will take a look at it when he has some more free time ( I hope )

[MENTION=1140856]zelendel[/MENTION] any thoughts about the lollipop contacts issue ?, I see you've retired unfortunately, but The Dark Knight of Gotham theme is still here right .
[Android Software Development] core720:
Waiting for 5.1...
[Android Software Development] bovirus:
The 5.1 source are public. As build/platform tool.

iBotPeaches make some changes in his project (apktool) and now it should be compatible with 5.1.
[Android Software Development] Bubble-be:
Confirmed, I've just compiled one and can now edit the framework-res from 5.1. :good:

No pm's please
[Android Software Development] iBotPeaches:
A snapshot build has been released!

No fancy changelog. Basically Android 5.1 support and fix for rebuilding shared libraries. Needs

major

testing due to a change in how resources are handled. Let me know of any new bugs.

This doesn't have a proper version, its legitimately a snapshot of building as of commit: 35f9786facda2d6f148d303c00c14b929c35049c

(download. rename to apktool.jar, etc you know the drill)
[Android Software Development] inimaitimepass:
Java Version

What is the required Java version? I'm on JDK 7u75/windows. I can able to decompile/edit/recompile the apk but they are not working it seems, always stuck in bootloop.

Edit: Found that required version is 1.7. But I'm stuck at bootloop after flashing the modified apk's. Can somebody help.
[Android Software Development] Thebear j koss:
Need more info. What are you modding? Are you flashing modded files, pushing adb, using a root browser? Are permissions correct? After build are you signing apks or using original meta inf from original apks? Too many variables to go by just by saying it bootloops.

Thebe@r'$ G@L@XY

De-materializing Android 1 app at a time...
[Android Software Development] inimaitimepass:
Apologies for not providing any info like a noob :o.

1. First of, I edited Framework-res and SystemUI file to resize the navbar.

2. Created a zip file and flashed/sideloaded and even pushed apks. Also tried copying the framework-res to system folder using ES Explorer but failed. Yes, ES have root and system mounting permissions. Managed to move the apk to system folder form recovery and set permission, but again bootloop.

3. Used the permission chmod 0644.

4. Not signing the apk's, just using the meta-inf and manifest xml for SystemUI, nothing for framework-res.

The same procedure was working flawlessly up until last week but then got the same issue lately even with apktool RC4. :confused:
[Android Software Development] Ticklefish:
"Nothing for framework-res"?

So you're trying to install an unsigned framework-res.apk? If it doesn't have the right META-INF files, it's pretty much guaranteed to FC..
[Android Software Development] inimaitimepass:
The only change in the framework-res apk is, the original resource file was replaced with the modified one.
[Android Software Development] Thebear j koss:
What Android build? Jb, lollipop, ics...? Try putting all original files from original except what you changed into new 1 or the other way around. Some apps are finicky the way you handle the modded apps. Maybe someone else that is on your device and build # has a trick. On touchwiz 4.3 for instance systemui needed to be decompiled with apktool 1.5.2 and recompiled with 1.5.1 for some odd reason or it would f/c.

Thebe@r'$ G@L@XY

De-materializing Android 1 app at a time...
[Android Software Development] superdild:
I'm testing this apktool version on framework and systemUI files from Nexus 5 with 5.1 os version ,

framework installed ok, decompiled SystemUI with no errors but with a lot of ic(1).png ....ic(39).png results in res/drawable-xhdpi, deleted all of them rebuilding went fine :)

Keep up the good work , many thanks for this ;)

saluti, mario
[Android Software Development] inimaitimepass:
Were you able to flash the modded framework-res and systemui apk's without any issues/bootloop?
[Android Software Development] superdild:
no issues and no bootloop at the moment....fingercross....:fingers-crossed:

anyway i've made little changes in systemUI (centerclock , lockscreen key) and framework-res(navbar height) ,rebuilding with original meta-inf and manifest either apk , zipalign and flash through twrp recovery.

saluti, mario
[Android Software Development] llevo3:
I can't decompile framework from 5.1 (Cataclysm ROM) with newest apktool.jar

D:\Work\APK Tool>apktool if framework-res.apk

Exception in thread "main" java.lang.NegativeArraySizeException

at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.ja

va:229)

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)

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

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

s.java:685)

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

s.java:667)

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

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

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

D:\Work\APK Tool>
[Android Software Development] iBotPeaches:
Never heard of Cataclysm ROM. Is it possible they are doing some qualifier changes that aren't in AOSP? Point being, I've never seen this error before. You'll have to get me all the framework apks so I can investigate.
[Android Software Development] llevo3:
Well, in fact this rom is not aosp, it is based on factory image
[Android Software Development] atl4ntis:
Stock images aren't coming out of nowhere, they're compiled aosp with google services added.

Either way my framework "comes from AOSP 5.1" not from stock image, and no, didn't change any qualifier.
[Android Software Development] llevo3:
OK, OK... maybe that was a noob answer, but how to decompile system files from your awesome rom. I want to theme it similar as I did with rro layers, eg https://plus.google.com/u/0/+DejanBaric/posts/VuJZb8BFDJU or https://plus.google.com/u/0/+DejanBaric/posts/5sgAcwSnaA7
[Android Software Development] atl4ntis:
That's something iBotPeaches can answer, i don't disassemble them.

He can PM me if he needs any kind of information but there's nothing in my framework that can justify any incompatibility with apktool if it works on other 5.1 frameworks.
[Android Software Development] Ticklefish:
I had nothing much to do today except abuse my company's lax internet policy so I downloaded the Cataclysm ROM myself to try this out.

And I had no issues at all with either installing framework-res.apk or decompiling SystemUI.apk....

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

I: Using Apktool 2.0.0-a766db-SNAPSHOT on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\CENSORED\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
[Android Software Development] llevo3:
[MENTION=4315551]Ticklefish[/MENTION] [MENTION=3924617]iBotPeaches[/MENTION] [MENTION=3913401]atl4ntis[/MENTION] ok guys, my problem was that I pull framework from my phone, but when I use framework from rom zip everythings ok :p
[Android Software Development] xenius9:
I can`t decode normally LGInCallUI.apk

Errors:

S: Could not decode file, replacing by FALSE value: drawable-mdpi-v4/ic_bluetooth_holo_dark.png

S: Could not decode file, replacing by FALSE value: drawable-ldpi-v4/ic_call_video_call.png

S: Could not decode file, replacing by FALSE value: drawable-xhdpi-v4/ic_call_roaming_video_call.png

.......

S: Could not decode file, replacing by FALSE value: drawable-mdpi-v4/ic_call_roaming_mms.png

I: Decoding values */* XMLs...

I: Copying raw classes.dex file...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

b:\apktool>

I install framework:

framework-res.apk => 1.apk

lge-res.apk => 2.apk

Android 5.0.1

New apktool-cli.jar 16.03.2015 build don`t fix problem.

Please help me decode LGInCallUI.apk.

Sorry for bad english.
[Android Software Development] Kickoff:
I just installed the new version of apktool (I am using VTS), installed the LG D85520i framework und tried to decompile LGIncallUI. Everything works. I could even decompile lge-res.apk I was always struggling with since Lollipop. Many thanks for the update.
[Android Software Development] xenius9:
G3 android 5 files decompiled normal.

G Pro 2 files decompiled with errors((
[Android Software Development] DaOldMan:
In the new 2.0 the -b modifier doesn't always work. In a lot of smali code I still get .param lines. Why?

Thanks, Thomas
[Android Software Development] Crussader:
seems to be an old bug...

quick fix? decompile, compile, decompile again.... now it will be ".param" free
[Android Software Development] DaOldMan:
So I need to decompile the new compiled version? Not to decompile the original twice right?

Maybe the dev can finally fox this. Helps a lot to compare smallies...

Thanks for the tip !
[Android Software Development] Crussader:
exactly...

decompile SystemUI (original version)

compile SystemUI

decompile SystemUI (compiled version) <- this version won't have ".params"
[Android Software Development] chandarakk:
from where u get the VTS full :D
[Android Software Development] xdagee:
Recompiling always ends up not successful.

Have original Framework-res.apk & SystemUI.apk decompile successfully made my modifications now recompiling ends up in an error not successful on CM12, Android 5.0.2

Here is a full log report
[Android Software Development] wmn79:
Issues recompiling framework-res.apk Nexus 5 stock Lollipop 5.1

I have issues with recompiling the framework-res.apk with the snapshot version of the apktool.

When I use the recompiled framework-res.apk in an update.zip the phone gets in a infinite boot. I never get passed the coloured dots dancing around (boot animation).

When I recompile I get the following message:

apktool b framework-res -t h
head51
I: Using Apktool 2.0.0-a766db-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
warning: string 'ellipsis' has no default translation.
warning: string 'ellipsis_two_dots' has no default translation.
I: Building apk file...

Any ideas how this can be fixed?
[Android Software Development] Thebear j koss:
Not enough info. Framework built no issues. Warnings are fine, need to know what build, how you did framework, signed it, used original manifest, copied changes to original apk, etc. Is framework being flashed correctly? Right folder structure in the update zip?

Thebe@r'$ G@L@XY

De-materializing Android 1 app at a time...
[Android Software Development] wmn79:
Thanks a lot for your quick reply, sorry for not being clear enough:

What I do is:

apktool if framework-res.apk -t hhead51
I: Framework installed to: C:\Users\.......\apktool\framework\1-hhead51.apk

apktool d framework-res.apk -t hhead51
I: Using Apktool 2.0.0-a766db-SNAPSHOT on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

Then I add some xml files to the framework-res/res folder and recompile.

apktool b framework-res -t hhead51
I: Using Apktool 2.0.0-a766db-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
warning: string 'ellipsis' has no default translation.
warning: string 'ellipsis_two_dots' has no default translation.
I: Building apk file...

This finishes normally and seems to give no issues. I then copy the resources.arsc file to the original framework-res.apk file and put the updated original framework-res.apk in the update.zip (made by framework flasher) that I previously used for fixing these things (no roaming R with national data roaming) on Lollipop 5.0.1.

So unless the method to create update.zip files has changed for 5.1 I don't know what goes wrong here. I have attached the update.zip to this post. The flashing works without issues. Thanks again.
[Android Software Development] Thebear j koss:
Not too sure, maybe someone else can chime in. My guess would be something in the updater zip. But since it's not an official apktool, something else may be the culprit. A page or so back someone else had similar issues.

Thebe@r'$ G@L@XY

De-materializing Android 1 app at a time...
[Android Software Development] djdarkknight96:
BUSTED

Where you been hiding? Lol
[Android Software Development] Thebear j koss:
Lol. I'm Thebear's brother. He moved to Kentucky and doesn't have Internet or a phone yet. I've been using his xda account to keep up and do some theming in his absence. Hopefully he'll be back soon. He says hi to everyone.

Thebe@r'$ G@L@XY

De-materializing Android 1 app at a time...
[Android Software Development] djdarkknight96:
Ah ok, tell him the TBO team misses him big time. Thanks for letting us know.
[Android Software Development] Thebear j koss:
Will do. Hopefully he will be back soon. Trying to get settled into his new place and finding a new phone and carrier.

Thebe@r'$ G@L@XY

De-materializing Android 1 app at a time...
[Android Software Development] inimaitimepass:
The usual method of replacing the resource file alone won't work anymore.

Here is the solution: Before recompiling, extract the META-INF folder and Manifest XML file from the original apk and paste them into the build->apk folder. You have to do this every single time before recompiling. :good::highfive:
[Android Software Development] djdarkknight96:
Or just use -c to keep Mani and signature stock in dist apk
[Android Software Development] wmn79:
Thanks both for your directions. Went for the -c option and it works like a charm.
[Android Software Development] _alex74_:
Apparently..... even above it is not working with Lollipop SecContacts.apk

All af us [MENTION=5804277]themers[/MENTION] are stuck at this point......parsing error:rolleyes::(:mad:

Could you master@iBotPeaches have a look at this, as development and theming is stopped?

No errors in decompiling/recompiling of apk, signing and/or zipaligning or -c trick has changed nothing:(

If u need something x better understand the issue, lot of us will provide you stuff needed

yep neither this version with above tricks changes
[Android Software Development] Thebear j koss:
It's a touchwiz and LG issue from what I have seen. Last I read from Ibotpeaches it was being looked at. I know on touchwiz 4.3 systemui had to be decompiled with apktool 1.5.2 and recompiled with 1.5.1. It is just something with Samsung. Need to wait to find the trick.

Thebe@r'$ G@L@XY

De-materializing Android 1 app at a time...
[Android Software Development] iBotPeaches:
Give me a week to finish this Googlecode -> Github conversion and new site and I will take a look at this issue. So my understanding is that 1 application (SecContacts.apk) is not playing nice after recompile?
[Android Software Development] _alex74_:
Such big thanks mate.

after recompiling, app is not recognized by system, and make disappear even LegacyIncallUI.apk(untouched)

If i try to install it, says parsing error...

all other apk from lollipop working absolutely fine;););)
[Android Software Development] prdog1:
[MENTION=2126467]djdarkknight96[/MENTION] I spotted him lurking the other day. Been stalking him but you took the shot. :p:laugh::cool:
[Android Software Development] djdarkknight96:
Just a hunch....

Look in the manifest for an authority with a redirect going to strings...anything?
[Android Software Development] iBotPeaches:
It may be related to that bug which is now tracked here - https://github.com/iBotPeaches/Apktool/issues/636

Are any of these bugs related to the mentioned problem?

https://github.com/iBotPeaches/Apktool/issues/886

https://github.com/iBotPeaches/Apktool/issues/871
[Android Software Development] Ambor:
Hi

I'm read your post its nice and thanks.

I'm Sony Z2 user and producer of Rom Moonwalker 2.4 for Z2

I use this apktoolRC4 for decompile newest framework o Lolipop Sony and every think work but

Have problems with Sony Apps , after compile and compile,sign,zipaling using oryginal lolipop framework 1 and 2

applications don't install on device. Looks like app will not signed.

I use this configuration

ApkTool by dbDFreak 4.1 but i replice apktoolRC3 by RC4 from here.

And sdk and jawa from pictures

About sony app I'm tired of a lot of experience. But ApkTool small. can you help me.

Regards.

New Sony ROM

http://xdaforums.com/xperia-z2/development/stock-d6503-23-1-0-690-bal-rooted-t3057150
[Android Software Development] Ticklefish:
How are you signing your recompiled apk's?
[Android Software Development] niaboc79:
Use original apk signature
[Android Software Development] Ambor:
Im using ApkTool . Can you share details about original apk signature.

About ApkTool don't have knowledge:crying::crying::crying::crying:

OOhhh I remember You Ticklefish i use your guide last week . Realy nice Thanks

http://xdaforums.com/crossdevice-de...-add-brightness-bar-to-stock-4-4-2-4-t2878020
[Android Software Development] niaboc79:
Move meta folder and android.manifest from old apk to new one.
[Android Software Development] Ambor:
ooh Thanks remember this . I use this method to sign phonebook.apk

And about Theme i any chance to mod android.manifest o maybe better use eclipse.
[Android Software Development] Ticklefish:
lol I get about a lot. :D

[MENTION=599722]niaboc79[/MENTION]'s absolutely right. You need to use the original key (that's the META-INF folder). If you sign a system apk with anything else, it'll always FC.
[Android Software Development] iBotPeaches:
Hi all,

Before I hit the big button on the Googlecode site to switch the default to Github, I'd like to gather feedback. Any feedback at all. Let me know if you hate the colors, grammar errors, missing a link, etc. I looked at Google analytics and looked at the heatmap of the site to see what people "clicked" the most on each visit and thus designed this new site with that in mind.

I want to make it live in 1-2 days. So let me know any feedback you have.

http://ibotpeaches.github.io/Apktool/
[Android Software Development] Crussader:
Amazing work you did there :good:
[Android Software Development] daemon1666:
Thx for your amazing job for android 5.1

http://xdaforums.com/showpost.php?p=59436776&postcount=2812

For me, everything went very well as well as install framework-res.apk and decompile , all in 5.1
[Android Software Development] bovirus:
[MENTION=2126467]djdarkknight96[/MENTION]

In which command have you use -c option?
[Android Software Development] djdarkknight96:
Yep, that's where I was going with that question. Been dealing with that bug on a lot of apps now. The work around is ok but if I wanted to theme chrome for instance and make it a system app for let's say a themed gapps package. You can't flash on clean install, edited manifest will cause it not to register to Android..thus getting green Android oops guy in launcher.

Looks great to me! Nice work
[Android Software Development] bovirus:
[MENTION=2126467]djdarkknight96[/MENTION]

Could you explain -c details (commands used)? thanks.
[Android Software Development] laura almeida:
apktool b test.apk -c

This command will build and sign the test.apk with its original Signature
[Android Software Development] Ambor:
Thanks

Still have problem

Like i said i relay small knowledge about apktool process . im still learning:)

im doin like that

1 decompile

2 compile

3 move file

4 zipaling

you tested this method on sony apps
[Android Software Development] bovirus:
[MENTION=5331708]laura almeida[/MENTION]

When you decompile an apk you didn't need any special option switch to maintain/extract/save locally original signature fiels?
[Android Software Development] laura almeida:
No no other special options needed.

apktool if framework-res.apk

apktool d test.apk

apktool b test.apk -c

That's all
[Android Software Development] bovirus:
Thanks again.
[Android Software Development] Ticklefish:
I've only got enough time right now to give it a quick look but it seems good to me. I like the new layout, it should help people who are new to this understand things better. It's easy to forget sometimes how confusing this can be to a noob.

Slightly off-topic, has apktool really been going for five years? Wow...where does the time go? lol
[Android Software Development] laura almeida:
What five years?

OMG

I don't want to aged this quickly :crying:
[Android Software Development] daemon1666:
Hi,

anyone have an idea?

http://xdaforums.com/showpost.php?p=59527559&postcount=2869

I have the same error when I decompile and recompile without making changes

thx
[Android Software Development] Ticklefish:
There's no need to wait only an hour and a half before bumping your post, you know...

As for your error, did you install all the relevant frameworks?
[Android Software Development] daemon1666:
I'm sorry for this

Yes, I have installed the framework-res from the 5.1 (api 22)

---------- Post added at 05:57 PM ---------- Previous post was at 05:50 PM ----------

I don't know why....

But I have reinstalled framework-res.apk and now it's OK

Thx [MENTION=4315551]Ticklefish[/MENTION] for your help