uds-se / droidmate

DroidMate-2: A Platform for Android Test Generation
http://www.boxmate.org/
GNU General Public License v3.0
28 stars 14 forks source link

Interaction.devicelogs is empty #8

Closed chanhduc closed 3 years ago

chanhduc commented 4 years ago

Dear,

I tried to use your ActivitySeenSummary model feature but I realized that devicelogs of all interactions are empty. Do I have to configure anything to record devicelogs for each interaction?

Thank you.

natanieljr commented 4 years ago

Hi,

Those logs are created using "inlined" apks, where the API calls are monitored.

The monitor is available at: https://github.com/uds-se/droidmate-monitor/

You should inline your apk with it to log the start activity calls and should run this inline apk with the flag: --Deploy-installMonitor=true

Please note that this feature is highly experimental and works only on Android 6 to 9

chanhduc commented 4 years ago

Hi,

After I inline apk, I cannot install the apk on the emulator. The installation process appeared the error: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Package /data/app/vmdl661139191.tmp/base.apk has no certificates at entry AndroidManifest.xml]

From your wiki (https://github.com/uds-se/droidmate/wiki/Monitoring-and-restricting-APIs), you noticed that "Note: Inlined apps do not work on emulators." Is that the reason for this issue?

natanieljr commented 4 years ago

Could you attach the apk for debugging?

I haven't seen this error yet and cannot reproduce with the apks which I normally use for testing.

natanieljr commented 4 years ago

From your wiki (https://github.com/uds-se/droidmate/wiki/Monitoring-and-restricting-APIs), you noticed that "Note: Inlined apps do not work on emulators." Is that the reason for this issue?

I forgot to add an answer to this point.

We use the library ArtHook as a proxy between the app and the OS. This library doesn't support x86 architecture, just ARM.

natanieljr commented 3 years ago

Assuming everything is working since there was no feedback after the solution