Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android aapt dump resources no output

When I try to dump an apk resources using the AAPT on Android Jellybean and pre-Jellybean versions, it works fine. It displays the expected output.

aapt dump --values resources /system/framework/framework-res.apk

But when I try to run this command on KitKat and newer versions, it outputs literally nothing. I'm not really sure if ART runtime has something to do with this though.

Anyone knows what could be the cause of this? and how to fix this?

like image 593
Julian Paolo Dayag Avatar asked Oct 30 '15 15:10

Julian Paolo Dayag


3 Answers

In android studio ,In between minimum SDK version and maximum SDK version keep as per your mobile android version.then clean project and try to run.

like image 188
Vasant Avatar answered Oct 20 '22 05:10

Vasant


Here is what I've done on a Marshmallow Nexus 6 (6.0/MRA58K):

adb pull /system/framework/framework-res.apk
aapt dump --values resources framework-res.apk

it produced a 19 MiB long list of resource identifiers. The same commands on a Jelly Bean Nexus S (4.1.2/JZO54K) produced equivalent output, except it was half the size.

like image 2
cuihtlauac Avatar answered Oct 20 '22 06:10

cuihtlauac


It seems the problem is in the android platform, when AAPT is ran on other OS, it works fine but when ran on inside android, it displays nothing.

like image 1
Julian Paolo Dayag Avatar answered Oct 20 '22 06:10

Julian Paolo Dayag