Is there a way to modify the Android emulator? For example, can we somehow intercept user inputs to the emulator and interpret them differently? Also, is there existing tools to do dynamic binary rewrite inside the emulator or qemu?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The emulator is emulating the hardware. You can do dynamic binary rewrites inside the emulator in exactly the same as on a device (for example, using LD_PRELOAD for native, or by changing the loader), or not at all. There is nothing that the fact it is an emulator helps you with, as there are too many layers between the emulator (hardware) and the abstraction you are trying to change. In the middle, you have the kernel, binary loader, dalvik virtual machine etc.
User input might be easier, but, again, it seems to me it will be easier to change the open source framework code that processes the input, rather than the emulator itself.
Shachar