Upcoming Feature: Resource Resolving Mode #3314
Closed
iBotPeaches
started this conversation in
Ideas
Replies: 1 comment
-
This was merged in: a117132 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While I think of a better name. While working on #2836 - I realized we need to have some options.
leave
(default) - Resources are left as they are in the application - even if unknown or missing. This will remain default as its more than likely preferred for static analysis.dummy
- Missing/malformed resources are replaced with a dummyAPKTOOL_DUMMY_xxx
resources.remove
- Missing/malformed resources are removed during write-phase.This would work as follows via an example.
(aapt d resources apk)
leave (default)
We cannot resolve resource
0x7f090459
so it ends up becoming0
then casted to@null
. This is subject to changing from@null
as that was written originally for values and never intended to be a replacement for names. What the true value should be for a named resource whose resource does not exist remains unknown.dummy
We identified that
0x7f090459
was malformed so introduced a dummy resource of proper type in its place.remove
We identified a malformed resource of
0x7f090459
and removed it. This is much easier with child items of arrays and would require further investigation on how well "removing" elements could work depending on the location of the removal.Beta Was this translation helpful? Give feedback.
All reactions