Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shortcut for showing device google accounts #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions res/app/control-panes/dashboard/shell/shell-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ module.exports = function ShellCtrl($scope) {
$scope.$digest()
})
}

$scope.runGetGoogleAccounts = function() {
$scope.run('dumpsys content 2>/dev/null | sed -n \"s/^Account \\([^ ]*\\) .*com.google\\$/\\1/p\"')
}
// WANDERA CUSTOM - END

$scope.clear = function() {
Expand Down
7 changes: 7 additions & 0 deletions res/app/control-panes/dashboard/shell/shell.pug
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
uib-tooltip='{{ "window_animation_scale 1, transition_animation_scale 1, animator_duration_scale 1" | translate }}')
i.fa.fa-play
span(translate) Enable Animations

.clearfix

button.btn.btn-xs.btn-info-outline(ng-click='runGetGoogleAccounts()',
uib-tooltip='{{ "Show device google accounts" | translate }}')
i.fa.fa-list
span(translate) Device google accounts
// NOTE: autofill doesn't work here
form(method='post', enable-autofill, ng-submit='run(command)')

Expand Down