Giter Club home page Giter Club logo

Comments (15)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
[deleted comment]

from android-apktool.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
*Later -> Earlier ;-)

Original comment by Brut.alll on 12 Jun 2010 at 8:21

from android-apktool.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
Thanks for info :-)

Original comment by Brut.alll on 13 Jun 2010 at 5:30

from android-apktool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.