Comments (4)
The issue was fixed. Thanks.
from arsclib.
Your issue is a bug and will be fixed soon, but i would like to comment on your encode code
- You need to provide your package not framework's package.
encodeMaterials.setCurrentPackage(packageBlock);
it will fail where going to resolve local resource id - EncodeMaterials is resource intensive , better to initialize once if you are going to encode multiple times
from arsclib.
Your issue is a bug and will be fixed soon, but i would like to comment on your encode code
Interesting fact is that it only happened with this particular case. In other cases, such as the one below, it worked as expected:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:fitsSystemWindows="false"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:animateLayoutChanges="false">
<TextView
android:layout_gravity="center"
android:id="@0x7f0902c2"
android:layout_width="?0x7f0403c0"
android:layout_height="?0x7f0403c0"
android:text=" ">
</TextView>
</FrameLayout>
I do not know why it happened for android:label
.
- You need to provide your package not framework's package.
encodeMaterials.setCurrentPackage(packageBlock);
it will fail where going to resolve local resource id
It okay since it is a random binary XML file not tied to any particular package. I can see that in implementing this, you have assumed that an XML file would belong to a package. But in practice, this may not always be the case. This, of course, assumes that the local resources in the input file will be hexadecimal values.
- EncodeMaterials is resource intensive , better to initialize once if you are going to encode multiple times
Thanks. I'll keep that in mind.
from arsclib.
Check this commit
from arsclib.
Related Issues (20)
- Failed compile multi-package resources HOT 2
- [feature request] ninepatch support
- Add xml file to apk HOT 6
- Change package name HOT 1
- Decompilation error array.xml HOT 2
- error 1.2.0 and master HOT 2
- Repacked APK crash on runtime HOT 1
- gradle 7.0 or above, enable D8 proguard apk cannot be installed HOT 1
- XXP3 HOT 2
- Proposal according of the dex lib HOT 1
- NPE in xml decoder HOT 1
- ResXmlPullParser returns 0 for non existing arguments instead of defaultValue
- `ResXmlDocument#decodeToXml()` is not processing namespaces correctly HOT 5
- How to use HOT 1
- [Question] Adding style tag to resources.arsc file
- Publish this library to maven HOT 1
- rename apk packagename and run crash
- Allow specifying deflate compression level HOT 3
- New files added to ApkModule won't retain uncompressed state HOT 1
- Error encountered while compiling APK HOT 6
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 arsclib.