Run GAM on Android and Chrome OS

654 views
Skip to first unread message

Jay Lee

unread,
Mar 23, 2017, 9:16:32 PM3/23/17
to google-ap...@googlegroups.com
Disclaimer: This is unsupported. I mean, it's even less supported than GAM itself which is unsupported. So it's really unsupported. Running GAM on Android and Chrome OS devices may not be reliable and could break at any time. If and when it does, you get to keep both pieces.

It's possible to run GAM on your Android and Chrome OS devices which support Google Play Store. It's not very fast, can be a bit cumbersome and may not always be reliable but at the same time, it may save you when you're on the go and need to run a quick command.

I've had luck running GAM on a Nexus 6P, Pixel XL, Asus Chromebook Flip and Nexus 7 tablet.

For up to date step by step instructions, see the wiki instructions at:


Questions / comments / issues feel free to post back here (but again, this is unsupported so no guarantees it will ever work for you.

Jay

Bri Hatch

unread,
Mar 23, 2017, 10:40:58 PM3/23/17
to google-ap...@googlegroups.com
Oh my god, what a horrible idea!

/me goes to google play store now.....


--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp-ZPTuhXim8f%3DWAo1MRgNN2%2Bs4z_BDCXeQOsArkB7LKLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Bri Hatch, Systems and Security Engineer. http://www.ifokr.org/bri/

The sooner you fall behind, the more time you'll have to catch up.

Nathan Acks

unread,
Mar 24, 2017, 4:00:32 AM3/24/17
to GAM for G Suite
IMHO, Termux is a bit faster and lighter than GNURoot Debian. It takes a little more work, but I think I have GAM working there as well. The following was tested on an Asus Chromebook Flip:
  1. Install necessary pre-requisites: apt install clang python2-dev
  2. Download PyInstaller: pip download pyinstaller
  3. Extract PyInstaller, enter the extracted directory, and then modify how it figures out the right temp path to account for Termux's crazy environment: sed -i'' -e 's#"/usr/tmp"#"/data/data/com.termux/files/usr/tmp"#g' bootloader/src/pyi_utils.c
  4. Finish installing PyInstaller: CFLAGS="-I/data/data/com.termux/files/usr/include/libandroid-support" LDFLAGS="-landroid-support" pip2 install --user .
  5. Make sure that ~/.local/bin is in your $PATH (alternately, you could just not use the --user flag for pip).
  6. Download the latest release of GAM, extract it, and then enter the extracted directory.
  7. Tweak the build file to work in Termux: sed -i'' -e 's#(arch)#(uname -m)#g;s#LD_LIBRARY_PATH=/usr/local/lib#LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib#g' linux-build.sh
  8. Build and enjoy: ./linux-build.sh
DISCLAIMER: I haven't tested it yet beyond just setting up the project and proper authorizations.

Seems a little slow as well (I haven't tested out Jay's work in GNURoot Debian, however, so I can't really compare speeds), but so far no obvious problems...

- Nathan

+KimNilsson

unread,
Mar 24, 2017, 7:07:41 AM3/24/17
to GAM for G Suite
I've started using Google Cloud Shell on console.cloud.google.com in my browser.
Using Chrome on iOS and forcing Desktop version makes it possible to access the GCS and run commands there.
It's of course easier on a computer, but it runs on mobile/iPad too.
Reply all
Reply to author
Forward
0 new messages