Comments (15)
Apktool 1.0 automatically workarounds this issue, but 9-patch images are still
undecoded.
Original comment by Brut.alll
on 2 Apr 2010 at 7:06
from android-apktool.
I was just thinking about this, would it be possible to skip 9 patch
altogether? Or is that going to create problems?
Original comment by [email protected]
on 11 Jun 2010 at 1:48
from android-apktool.
What do you mean by "skip"? Just unpack them as any other image? Then aapt will
throw errors, because it will find *.9.png files without 9patch borders.
Original comment by Brut.alll
on 11 Jun 2010 at 7:14
from android-apktool.
[deleted comment]
from android-apktool.
Let me know, how it works. If there will be some errors, then you will have to
wait for fix or move back to 1.2.0. There is no way to disable this feature.
Original comment by Brut.alll
on 12 Jun 2010 at 7:38
- Changed state: Done
from android-apktool.
As I can see, it creates .9.png files in main res tree, instead of separate
9patch dir.
Can anyone explain what for?
In any way it works well, as it did before. I fully decoded and rebuild rom
without any problems.
Can anyone point me to good info about 9patch? (don't understand how it works)
Original comment by [email protected]
on 12 Jun 2010 at 8:09
from android-apktool.
http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
Later apktool didn't support decoding these files, so you couldn't modify them.
9patch dir was a workaround, now you could use these files, as you would be an
author of an app.
Original comment by Brut.alll
on 12 Jun 2010 at 8:18
from android-apktool.
*Later -> Earlier ;-)
Original comment by Brut.alll
on 12 Jun 2010 at 8:21
from android-apktool.
Thanks for the link.
Now I see those stretch/padding markers.
Great job!
By the way, I decoded legend rom without any problems too.
1.3 rocks!
I didn't try repacked rom on the real device yet. Hope there won't be any
surprises.
Original comment by [email protected]
on 12 Jun 2010 at 8:44
from android-apktool.
When you will be testing it, look for some visual artifacts, especially in
buttons, etc. Unfortunately potential issues are "hidden", because they don't
simply FC, but may change a look a little.
Original comment by Brut.alll
on 12 Jun 2010 at 8:56
from android-apktool.
Seems there are some misunderstandings related to 9patch images, so I copy my
msg from private discussion:
*.9.png files could be in two forms: "source" (9patch data stored as 1px
borders) and binary one (9patch data stored as hidden, binary data). When you
create your own app with 9patch images, you create them in "source" form, you
could easily modify 9patch data using draw9patch tool or any image editor. When
you build this app, all 9patch images are compiled to binary form - borders are
removed. Then you can't easily modify 9patch data, because it's binary - you
would need hex editor and quite good hacking skills to do it.
Apktool 1.2.0 couldn't decompile binary 9patch images to source ones, so:
* they had to be renamed to *.png, so aapt won't try to compile them second time. It would throw errors.
* you couldn't modify 9patch data easily
* you couldn't modify these images at all, because they must be in source form to modify them.
Apktool 1.3.0 can decompile binary 9patch images to source ones (it adds
borders where they should be), so you can do everything with them. Also there
is no need for hacking and doing workarounds - all works as you would have
sources of an app.
Original comment by Brut.alll
on 12 Jun 2010 at 9:43
from android-apktool.
And if you read some guides for themers, there are usually warnings like "Don't
touch *.9.png files!". If you try to modify not decompiled 9patch image, then
you would probably have problems. Now themers can modify them, thanks to
apktool :-)
Original comment by Brut.alll
on 12 Jun 2010 at 9:45
from android-apktool.
Thank you for sharing your knowledges. It's really interesting.
And of cause thank you for your great work.
I'll pay extra attention to UI. And it's ability to stretch =)
Original comment by [email protected]
on 12 Jun 2010 at 11:09
from android-apktool.
One day left. Everythong is fine. Don't see any UI problems.
Original comment by [email protected]
on 13 Jun 2010 at 5:13
from android-apktool.
Thanks for info :-)
Original comment by Brut.alll
on 13 Jun 2010 at 5:30
from android-apktool.
Related Issues (20)
- Netflix app can't be decoded HOT 1
- AndroidManifest HOT 4
- Exception in thread "main" org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65565 HOT 2
- Uncompressed unknown files becomes compressed. HOT 2
- recompiling HOT 3
- INSTALL_FAILED_DEXOPT HOT 5
- Error while apktool tring to decode resource xml files HOT 4
- Unable to decode app HOT 1
- Supporting dex.force.jumbo=true HOT 7
- different size of classes.dex when decompiling and recompiling same file HOT 4
- Error parsing XML: not well-formed (invalid token) HOT 8
- TW Lollipop Contacts app compiles but app disappears upon flashing HOT 2
- Apktool fails to reassemble twitter HOT 1
- Decoding resources of gmail HOT 2
- XML-Compiler HOT 1
- XML-Compiler feature missing - surpress overwriting platformBuildVersionName to "APKTOOL" HOT 3
- Lollipop 5.1 Decompile framework-res.apk and SystemUI.apk errors
- Decoding issue problem with filename HOT 1
- Apktool erro....on Android 5.1 HOT 1
- Exception in thread "main" brut.androlib.AndrolibException: Multiple res specs: attr/name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-apktool.