How to exclude the android libraries when decompiling?

228 views
Skip to first unread message

Qidan He

unread,
Apr 16, 2013, 12:59:39 AM4/16/13
to dare-a...@googlegroups.com
I found every time the android library was also included when decompiling, which wastes a lot of time. I wonder if there is a way to exclude the android libs.

Thanks.

Dalvik Retargeting (Dare)

unread,
Apr 18, 2013, 11:14:32 AM4/18/13
to dare-a...@googlegroups.com
Hello,

It should not be decompiling the libraries, they are simply included so that Soot can resolve references to them. The included libraries can be modified using the -a option for dare-launcher (which is called by the dare script).

Regards,
Damien Octeau


On Apr 16, 2013, at 12:59 AM, Qidan He <flanke...@gmail.com> wrote:

I found every time the android library was also included when decompiling, which wastes a lot of time. I wonder if there is a way to exclude the android libs.

Thanks.

--
You received this message because you are subscribed to the Google Groups "dare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dare-android...@googlegroups.com.
To post to this group, send email to dare-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/dare-android/-/ER4GaVUVhBAJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Qidan He

unread,
Apr 18, 2013, 1:21:25 PM4/18/13
to dare-a...@googlegroups.com
Hi:

First thanks for your reply, but I have observed android library classes are being decompiled. 
Maybe the launch arguments need to be tuned and I will appreciate it if anyone tells me what should I do to avoid this. 

My command line argument for dare launcher is 

./dare -c -e -d output/ target.apk


After retargeting is finished then I got output like this:
 
Decompiling android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat... 
Analyzing output/optimized-decompiled/target/dava/src/android/support/v4/accessibilityservice/AccessibilityServiceInfoCompat.java... 
Generating output/optimized-decompiled/target/dava/src/android/support/v4/accessibilityservice/AccessibilityServiceInfoCompat.java... 

Which shows dava is actually decompiling android classes...

After I ran the script for several hours, I got hundreds of decompiled android classes source like

>> find ./ -name *.java
.//accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl.java
.//accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoStubImpl.java
.//accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl.java
.//accessibilityservice/AccessibilityServiceInfoCompat.java
.//accessibilityservice/AccessibilityServiceInfoCompatIcs.java
.//app/ActivityCompat.java
.//app/ActivityCompatHoneycomb.java 
.//app/BackStackRecord$Op.java
.................... 
 
 which obversely consumed a huge amount of time. 

Thanks.

Dalvik Retargeting (Dare)

unread,
Apr 19, 2013, 8:53:33 PM4/19/13
to dare-a...@googlegroups.com
Hello,

This is a support library, which is packaged with the application for backward compatibility. You can find more information about it at http://developer.android.com/tools/extras/support-library.html

Something you could do is launch Dare without the -c option and then launch Soot yourself and include only the classes you want to decompile. Information on Soot is available at http://www.sable.mcgill.ca/soot/

Regards,
Damien Octeau


To view this discussion on the web visit https://groups.google.com/d/msg/dare-android/-/6dqqHryqSFwJ.

Ashish Mishra

unread,
Jul 14, 2016, 4:24:43 AM7/14/16
to dare
Hi Qidan He 
I am facing the same issue, were you able to find a solution to exclude the support packages. I did not get the way to implement the suggestion, suggested by Damien.
Thanks and Regards
Ashish
Reply all
Reply to author
Forward
0 new messages