array parsing in resources
See original GitHub issueInformation
apktool version 2.4.0-29355f-SNAPSHOT
Error with parsing resources.
I am use this apk
after decode in file res/values/arrays.xml contains the following code
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="autoteka_benefits" />
<style name="loader_circle_colors" />
<style name="loader_circle_sizes" />
<style name="messenger_attachment_options" />
<style name="messenger_attachment_options_legacy" />
<style name="on_day_of_week" />
<style name="pull_refresh_color_scheme" />
<style name="rating_score_text" />
</resources>
public.xml code
<public type="array" name="autoteka_benefits" id="0x7f030000" />
<public type="array" name="loader_circle_colors" id="0x7f030001" />
<public type="array" name="loader_circle_sizes" id="0x7f030002" />
<public type="array" name="messenger_attachment_options" id="0x7f030003" />
<public type="array" name="messenger_attachment_options_legacy" id="0x7f030004" />
<public type="array" name="on_day_of_week" id="0x7f030005" />
<public type="array" name="pull_refresh_color_scheme" id="0x7f030006" />
<public type="array" name="rating_score_text" id="0x7f030007" />
im try to list files of this apk via aapt.exe and fount this:
type 2 configCount=1 entryCount=8
spec resource 0x7f030000 com.avito.android:array/autoteka_benefits: flags=0x00000000
spec resource 0x7f030001 com.avito.android:array/loader_circle_colors: flags=0x00000000
spec resource 0x7f030002 com.avito.android:array/loader_circle_sizes: flags=0x00000000
spec resource 0x7f030003 com.avito.android:array/messenger_attachment_options: flags=0x00000000
spec resource 0x7f030004 com.avito.android:array/messenger_attachment_options_legacy: flags=0x00000000
spec resource 0x7f030005 com.avito.android:array/on_day_of_week: flags=0x00000000
spec resource 0x7f030006 com.avito.android:array/pull_refresh_color_scheme: flags=0x00000000
spec resource 0x7f030007 com.avito.android:array/rating_score_text: flags=0x00000000
config (default):
resource 0x7f030000 com.avito.android:array/autoteka_benefits: <bag>
resource 0x7f030001 com.avito.android:array/loader_circle_colors: <bag>
resource 0x7f030002 com.avito.android:array/loader_circle_sizes: <bag>
resource 0x7f030003 com.avito.android:array/messenger_attachment_options: <bag>
resource 0x7f030004 com.avito.android:array/messenger_attachment_options_legacy: <bag>
resource 0x7f030005 com.avito.android:array/on_day_of_week: <bag>
resource 0x7f030006 com.avito.android:array/pull_refresh_color_scheme: <bag>
resource 0x7f030007 com.avito.android:array/rating_score_text: <bag>
And aapt2.exe(Android Asset Packaging Tool (aapt) 2:19) print this
type array id=03 entryCount=8
resource 0x7f030000 array/autoteka_benefits
() (array) size=10
["История регистраций в ГИБДД", "Нахождение в розыске", "Нахождение в залоге", "Наличие ограничений на регистрацию",
"Участие в ДТП", "Использование в такси", "Записи о пробеге", "Факты расчёта стоимости страхового ремонта",
"История обслуживания у дилеров", "История размещения на Авито"]
resource 0x7f030001 array/loader_circle_colors
() (array) size=4
[@color/blue, @color/red, @color/green, @color/purple]
resource 0x7f030002 array/loader_circle_sizes
() (array) size=4
[44, 34, 54, 25]
resource 0x7f030003 array/messenger_attachment_options
() (array) size=3
["Отправить фото", "Отправить объявление", "Указать место встречи"]
resource 0x7f030004 array/messenger_attachment_options_legacy
() (array) size=2
["Отправить фото", "Отправить объявление"]
resource 0x7f030005 array/on_day_of_week
() (array) size=7
["в воскресенье", "в понедельник", "во вторник", "в среду",
"в четверг", "в пятницу", "в субботу"]
resource 0x7f030006 array/pull_refresh_color_scheme
() (array) size=4
[@color/blue, @color/purple, @color/green, @color/red]
resource 0x7f030007 array/rating_score_text
() (array) size=6
["Нажмите, чтобы оценить", "Нельзя иметь дело", "Не рекомендую", "Есть над чем работать",
"Почти нет вопросов", "Всё отлично"]
Your program does not correctly identify the array and its contents.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
how to parse array in resource collections - Laracasts
how to parse array in resource collections. this is my function. Copy Code public function test(Request $request){ $products = Product::with(['category', ...
Read more >Resource Parsing - Docs - FullCalendar
Resource Parsing. All of the techniques for specifying resources accept an array of raw objects. These raw objects are “parsed” into proper Resource...
Read more >How to parse themed references from a resource array
Use method public boolean resolveAttribute (int resid, TypedValue outValue, boolean resolveRefs) TypedArray ca = getResources().
Read more >How Can I Parse Data to a Hash of Arrays in Perl?
To parse data to a hash of arrays, the data must be in a format that Perl can read. One format that will...
Read more >Parsing JSON array based on values from another array
Parsing JSON array based on values from another array. Hello Community, ... I am trying to Parse the following data: ... Free Resources...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Confirmed.
I build it by this instructions https://ibotpeaches.github.io/Apktool/build/