alibaba / dexposed

dexposed enable 'god' mode for single android application.
4.51k stars 1.07k forks source link

unnecessary dependency to AOSP source code #39

Open mitp0sh opened 9 years ago

mitp0sh commented 9 years ago

hey,

I don't see the reason why you enfore the AOSP source prebuild to compile dexposed. I managed to get rid of that dependency and resolved all necessary address and objects at runtime using some quite simple heuristics and scanning techniques. Especially for Dalvik this is no problem at all considering that the development ( at least for dalvik ) is stopped. The source is not changing much anymore.

Haven't tried it but once you have a working strategy for art as well, I think it can be done here also.

Building AOSP is s pain in the a..., not talking about the time which is wasted for setup, fixing issues and so on....

It is really not too hard to remove that dependency. Sure it is additional work and will require some restructuring of the project, but it is doable for sure.

Please think about it.

Thank you!

Best regards, mitp0sh

PS: I really love dexposed!!!!! Once of the best projects on github!! ;D

hwjump commented 9 years ago

Yes, you are right. It‘s not necessary. And also I receive a PR about this, you can refer this link https://github.com/pangliang/dexposed. But there was also some flaw in this PR. ".S" file can't automatic compile in Android Studio. So I was still looking some solution for this. If you have some better ideas, We hope you can give us some clue. Appreciate for this.