[Soot-list] Running soot on Android
Alexandre Bartel
alexandre.bartel at uni.lu
Tue Feb 18 05:44:30 EST 2014
Hello,
This has been successfully tried a few years ago [1].
However, as Steven mentioned, Android devices have constraints
(available heap for a process for instance) which make all kinds of
analysis almost impossible in practice.
I can successfully convert Soot's Jar (commit
759f70305eb8a36e829a3aecb3a957cff8de5442) into Dalvik Dex:
$ dx --version
dx version 1.7
$ dx -JXmx6g --num-threads=6 --dex --output=c.dex sootclasses-trunk.jar
$ ls
c.dex sootclasses-trunk.jar soot-trunk.jar
However, it does not work when converting soot-trunk.jar and I get the
following error message:
"trouble writing output: Too many methods: 70738; max is 65536. By
package: "
What you could try to reduce the number of methods is to remove packages
you do not use from the jar.
Best Regards,
Alexandre
[1] Bartel, A., Allix, K., Monperrus, M., Klein, J., & Le Traon, Y.
(2012). In-Vivo Bytecode Instrumentation for Improving Privacy on
Android Smartphones in Uncertain Environments. arXiv preprint
arXiv:1208.4536.
On Tue, 2014-02-18 at 10:24 +0100, Steven Arzt wrote:
> Hi Benedikt,
>
>
>
> To the best of my knowledge, no one has tried this so far. Since Android is
> different from Java in some aspects, I assume this not to be an easy task.
> That said, if you want to invest time and effort into it, I would be
> interested in hearing about your results.
>
>
>
> In general, it also depends on what you are trying to achieve with Soot on a
> resource-constrained phone. Keep in mind that you are usually quite
> restricted on memory on a phone.
>
>
>
> Best regards,
>
> Steven
>
>
>
> Von: soot-list-bounces at sable.mcgill.ca
> [mailto:soot-list-bounces at sable.mcgill.ca] Im Auftrag von Benedikt Lesch
> Gesendet: Montag, 17. Februar 2014 19:26
> An: soot-list at sable.mcgill.ca
> Betreff: [Soot-list] Running soot on Android
>
>
>
> Hi,
>
>
>
> ís it possible to run soot on android?
>
> I mean directly on the android device not analyzing an apk from another
> computer.
>
> I tried this but i always get an dalvik error 1 during the compile process
> of the apk containing the soot library.
>
>
>
> Did someone manage to do this?
>
>
>
> Thanks
>
> Benedikt
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
More information about the Soot-list
mailing list