mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 09:47:34 +01:00
8254764c6c
Previously in 4882396163f978884256e008fc7fae9201f156b4, strings that resembled a filepath (ie res/foo/file), would be assigned to a ResFileValue, which when attempted to be casted to ResScalarValue would error out. Attempting to check the filesystem for such files, slowed apktool's execution majorly. In order to prevent this, the ClassCastException and other checks related to checking ResFileValue when type is string was added. This allows bogus strings such as (res/foo/file) to be added, but the exception is caught and allows decoding to continues. Fixes #921.