Skip to content

Commit

Permalink
push dummy files to device sdcard
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchun-li committed Aug 11, 2016
1 parent 96b3b9c commit 1a51143
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion droidbot/app_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def produce_envs(self):
"""
produce a list of dummy environment
"""
envs = [ContactAppEnv(), SettingsAppEnv(), CallLogEnv(), SMSLogEnv(), GPSAppEnv()]
envs = [ContactAppEnv(), SettingsAppEnv(), CallLogEnv(), SMSLogEnv(), GPSAppEnv(), DummyFilesEnv()]
return envs


Expand Down Expand Up @@ -352,6 +352,11 @@ def produce_envs(self):
if 'android.permission.READ_SMS' in permissions:
envs.append(SMSLogEnv())
envs.append(SMSLogEnv(sms_in=False))
if 'android.permission.READ_EXTERNAL_STORAGE' in permissions or \
'android.permission.WRITE_EXTERNAL_STORAGE' in permissions or \
'android.permission.MOUNT_UNMOUNT_FILESYSTEMS' in permissions:
envs.append(DummyFilesEnv())

# TODO add more app-specific app environment
return envs

Expand Down

0 comments on commit 1a51143

Please sign in to comment.