Skip to content

Commit

Permalink
modules/android_integration: termux-setup-storage & unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
t184256 committed Jul 6, 2024
1 parent 9e6a42b commit 1d176ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/environment/android-integration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ in
description = lib.mdDoc ''
Provide a `termux-setup-storage` command
that makes the app request storage permission,
and then creates a $HOME/storage symlink.
and then creates a $HOME/storage directory with symlinks to storage.
'';
};

Expand Down
5 changes: 4 additions & 1 deletion tests/emulator/android_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def run(d):
screenshot(d, 'termux-setup-storage-invoked')
wait_for(d, 'Allow Nix to access')
screenshot(d, 'permission-requested')
d.ui(text='Allow').click()
if 'text="Allow"' in d.ui.dump_hierarchy():
d.ui(text='Allow').click()
elif 'text="ALLOW"' in d.ui.dump_hierarchy():
d.ui(text='ALLOW').click()
screenshot(d, 'permission-granted')

d('input text "ls -l storage"')
Expand Down

0 comments on commit 1d176ea

Please sign in to comment.