mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 05:07:41 +02:00
fix: decoding references to private resources (#2650)
* fix: decoding references to private resources * style: fix naming in constructor parameter * test: add test to check build/decode private references
This commit is contained in:
@ -72,6 +72,16 @@ public class BuildAndDecodeTest extends BaseTest {
|
||||
compareValuesFiles("values/strings.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void valuesColorsTest() throws BrutException {
|
||||
compareValuesFiles("values/colors.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void valuesBoolsTest() throws BrutException {
|
||||
compareValuesFiles("values/bools.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void valuesMaxLengthTest() throws BrutException {
|
||||
compareValuesFiles("values-es/strings.xml");
|
||||
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<item type="bool" name="bool_private_reference">@*android:bool/config_enableActivityRecognitionHardwareOverlay</item>
|
||||
</resources>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="color_private_reference">@*android:color/Indigo_700</color>
|
||||
</resources>
|
Reference in New Issue
Block a user