All Projects β†’ IntergalacticPenguin β†’ Mobile Toolkit

IntergalacticPenguin / Mobile Toolkit

Licence: mit
πŸ“± Shell scripts for Android and iOS device management

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Mobile Toolkit

Fastlane
πŸš€ The easiest way to automate building and releasing your iOS and Android apps
Stars: ✭ 33,382 (+20634.16%)
Mutual labels:  hacktoberfest, screenshots, mobile
Flutter Mvvm Provider Demo
Stars: ✭ 89 (-44.72%)
Mutual labels:  hacktoberfest, mobile-development, mobile
Libmtev
Mount Everest Application Framework
Stars: ✭ 104 (-35.4%)
Mutual labels:  hacktoberfest, toolkit
Corona
Solar2D Game Engine main repository (ex Corona SDK)
Stars: ✭ 1,679 (+942.86%)
Mutual labels:  hacktoberfest, mobile
Model2app
Turn your Swift data model into a working CRUD app.
Stars: ✭ 118 (-26.71%)
Mutual labels:  mobile-development, mobile
Monday
⚑️ A dev tool for microservice developers to run local applications and/or forward others from/to Kubernetes SSH or TCP
Stars: ✭ 1,246 (+673.91%)
Mutual labels:  hacktoberfest, development
Generator Ngx Rocket
πŸš€ Extensible Angular 11+ enterprise-grade project generator
Stars: ✭ 1,329 (+725.47%)
Mutual labels:  hacktoberfest, mobile
Xterm.js
A terminal for the web
Stars: ✭ 12,019 (+7365.22%)
Mutual labels:  terminal, development
The forge
Our groundbreaking, lightning fast PWA CLI tool
Stars: ✭ 70 (-56.52%)
Mutual labels:  mobile-development, mobile
Screenshoteer
Make website screenshots and mobile emulations from the command line.
Stars: ✭ 1,650 (+924.84%)
Mutual labels:  screenshots, mobile
Progressbar
A really basic thread-safe progress bar for Golang applications
Stars: ✭ 2,212 (+1273.91%)
Mutual labels:  terminal, hacktoberfest
Terminalizer
πŸ¦„ Record your terminal and generate animated gif images or share a web player
Stars: ✭ 12,165 (+7455.9%)
Mutual labels:  terminal, record
Drawer Menu Swift
Drawer menu implementation in Swift 4
Stars: ✭ 74 (-54.04%)
Mutual labels:  mobile-development, mobile
Boden
Purely native C++ cross-platform GUI framework for Android and iOS development. https://www.boden.io
Stars: ✭ 1,394 (+765.84%)
Mutual labels:  mobile-development, mobile
Navi
An interactive cheatsheet tool for the command-line
Stars: ✭ 10,055 (+6145.34%)
Mutual labels:  terminal, hacktoberfest
Presently
Android app for recording gratitude journal entries
Stars: ✭ 109 (-32.3%)
Mutual labels:  hacktoberfest, mobile
Nitro
Speedy local dev environment for @craftcms
Stars: ✭ 156 (-3.11%)
Mutual labels:  hacktoberfest, development
Dev Practice
Practice your skills with these ideas.
Stars: ✭ 1,127 (+600%)
Mutual labels:  hacktoberfest, development
Vue Storefront
The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Ne…
Stars: ✭ 9,111 (+5559.01%)
Mutual labels:  hacktoberfest, mobile
Okteto
Develop your applications directly in your Kubernetes Cluster
Stars: ✭ 1,937 (+1103.11%)
Mutual labels:  hacktoberfest, development

Header

What is this?

πŸ›  Capture screen, manage apps, simulate input, print system log and more using simple commands!

⚑️ Boost your effectivity while developing and/or testing mobile applications, discover new tools!

All features

πŸ“² Control Android and iOS devices or Emulators/Simulators using terminal commands

πŸ›  Take screeshots, change device settings, gather app & device information

βš™οΈ Manage mobile applications - install, restart, wipe data and much more

πŸ“‹ Handle multiple devices effortlessly - select from list or target all connected devices

⏳ Save your precious time - stop doing repetitive tasks manually

πŸ”„ Automatic update - get new features and fixes ASAP

Feedback & contribution

⁉️ Submit issue to report bugs, bring inspiration or simply ask questions

🀝 Pull request contribution is highly appreciated, see Collossal Challenges

⭐️ Love Mobile Toolkit? -> Hit the star button and bring me joy!

πŸ”— Connect with me on LinkedIn if you want :)

πŸ’» Installation

Click to reveal step by step guide

Note: This repository is mainly focused on macOS compatibility, but majority of interactions should work on any Unix system.

  1. Open terminal
  2. Clone this repository git clone https://github.com/IntergalacticPenguin/mobile-toolkit.git
  3. Setup Android tools
    • Download and install Android Studio or Android command line tools
    • Edit .bash_profile (or .zshrc if you have zsh shell) open -e ~/.bash_profile or open -e ~/.zshrc
      • Add this line the end PATH=$PATH:/Users/dummyuser/Library/Android/sdk/platform-tools export PATH
      • Don't forget to replace "dummyuser" with your account username
      • Use full path to the "platform-tools" directory
    • Allow USB debugging on your device, connect it and authorize your computer (click OK on the device screen)
  4. Setup iOS tools
    • Install latest Xcode and iOS command line tools using App Store
    • Install Homebrew package manager
    • Install usbmuxd, libimobiledevice and ideviceinstaller brew install --HEAD usbmuxd && brew install --HEAD libimobiledevice && brew install --HEAD ideviceinstaller
    • Run Xcode, connect iOS device to USB and authorize your computer (click "Trust" on the device screen)
  5. (Optional) Use Mobile Toolkit in any directory in terminal
    • Edit .bash_profile (or .zshrc if you have zsh shell) open -e ~/.bash_profile or open -e ~/.zshrc
      • Insert these lines at the end
        PATH=$PATH:/Users/dummyuser/mobile-toolkit/android
        PATH=$PATH:/Users/dummyuser/mobile-toolkit/ios
      • Don't forget to replace "dummyuser" with your account username
      • Use full path to the "mobile-toolkit" directory (where you cloned this repository)
      • Move export PATH to the end of the file

πŸ€– Android commands

Capture screen

πŸ“Έ ascreenshot

  • ascreenshot Save screenshot to ~/Desktop
  • ascreenshot -a Take screenshot on all connected devices

πŸŽ₯ arecord

  1. arecord Record screen
  2. End recording using ctrl + c
  3. Save screen video footage to ~/Desktop
  • arecord <custom-name> Specify your own filename by passing it as argument

Control device

✏️ apaste

apaste "[email protected]" password1 "5005 1002 3332 1112" "2/19" 5004

  • apaste <text> Insert text into currently focused field
  • apaste "[email protected]" password1 Every additional argument will be inserted into subsequent field
  • apaste "This is sample multi-word text." use "" to insert multi-word text into one field
  • apaste -l Insert "Lorem Ipsum paragraph"
  • apaste -a <input-text> Insert any text input (options displayed above) on all connected devices
  • apaste -a -l Insert "Lorem Ipsum paragraph" on all connected devices

🌐 aurl

  • aurl "google.com" Open link in web browser or corresponding application

πŸ“ abounds

  • abounds Display or hide layout bounds
  • App restart may be necessary on lower APIs

πŸš— aanimationspeed

  • aanimationspeed set slower animation speed or restore default
  • aanimationspeed <speed> set animation speed multiplier

πŸ”  afontscale

  • afontscale set large font scale (1.3x bigger than default) or restore default
  • afontscale <scale> set font scale multiplier

🎹 acontrol

  • acontrol start scrcpy session
  • Provides realtime device screen mirroring and keyboard+mouse control

πŸ“· acamera

  • Start the default camera application

⚑️ awireless

  • Enable or disable wireless ADB connection
  • Use ADB and toolkit without having USB cable attached

Manage packages

πŸš€ alaunch

  • alaunch List third-party apps and choose one to run it
  • alaunch -s List all available apps (including os pre-installed) and choose one to run it
  • alaunch com.dummy.package.name.app Run app by package name

πŸ•΅οΈ aappinfo

  • aappinfo List foreground app information
    • Package name
    • Version
    • Last update
    • minSdk and targetSdk
    • Permissions
  • (Optional) Open application settings
  • aappinfo com.dummy.package.name.app Target specific app by passing package name as argument

πŸ”ͺ akill

  • akill Restart the foreground app
  • akill com.dummy.package.name.app Target specific app by passing package name as argument

🧽 aerase

  • aerase Delete all local data of the foreground app and restart it
  • aerase com.dummy.package.name.app Target specific app by passing package name as argument

🚚 ainstall

  • ainstall some-app-file.apk Install and run .apk
  • ainstall -a some-app-file.apk Install and run .apk on all connected devices

πŸ—‘ auninstall

  • auninstall Uninstall third-party app, choose from the list
  • auninstall com.dummy.package.name.app pass package name as argument
  • auninstall -w Uninstall all-third party packages
    • Skips some essential apps, edit IGNORED_PACKAGES in this script to customize the list to your needs

πŸ”₯ awipe

  • Wipe internal storage and delete all third-party apps

🐁 apermissionreset

  • Revoke ALL GRANTED runtime permissions for ALL apps
    • You'll have to handle permission requests upon opening almost any app

πŸ› agoogleplay

  • agoogleplay "Dummy App" Search for "Dummy App" on Google Play
  • agoogleplay Search for currently foreground app on Google Play

🏭 abuildproject

  • abuildproject Build, install and run Android project located in current directory
  • abuildproject <relative-path> Build, install and run Android project located in <relative-path>

Manage device

βš™οΈ aoptions

  • aoptions Open system settings on a specific activity
  • You can choose from quick presets
    • Developer settings
    • Locale settings
    • Date & time
    • Wifi settings
    • Storage management
    • Power usage
    • Root settings activity
  • aoptions A Choose from exhaustive list of all available options
  • aoptions 1,2,3... | dev | locale | date | wifi | storage | power Use a preset, choose one

πŸ“œ alog

  • alog Print system log output
  • alog -f <package-name> Filter log by package name

πŸ“‹ acheckdevice

  • Print genereal device information
  • Perform basic safety-checks and toggle "testing firendly" settings
    • 10 minutes screen timeout
    • Highest brightness
    • Automatic date
    • Disabled notification sounds
    • Internet connectivity and WIFI name
    • Font scale
    • enUS locale
  • (Optional) Search for the device on GSMArena

😎 aservices

  • Print running background services
  • Search for more information via Google

β™» areboot

  • Reboot the device

πŸ“± aemulator

Required: Make terminal use Android Studio Java

  • Edit .bash_profile (or .zshrc if you have zsh shell) open -e ~/.bash_profile or open -e ~/.zshrc

  • Add the following line at the end of the file export JAVA_HOME='/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home'

  • Android emulator supports all listed scripts by default + extra actions listed below

  • aeimulator <option> Handle various Android emulator activites

    • start - choose and launch installed emulator
    • gprs | edge | 3g - simulate network latency, choose one
    • call <number> - receive fake call
    • sms <number> <text> - receive fake sms
    • gps <lat> <long> - set manual GPS location
    • battery <0-100> - set battery level
    • telnet <command> - call command via telnet

🍎 iOS commands

Capture screen

πŸ“Έ iscreenshot

  • iscreenshot Save screenshot to ~/Desktop
  • iscreenshot -a Take screenshot on all connected devices

πŸŽ₯ irecord

Required: Install videosnap -> download and run videosnap-0.0.6.pkg

  1. irecord Record screen
  2. End recording using ctrl + c
  3. Save screen video footage to ~/Desktop

πŸ–Ό igif

Required: Install ffmpeg brew install ffmpeg

  1. Record screen (take as many screenshots per second as possible) to ~/Desktop
  2. End recording using ctrl + c
  3. Compose .mp4 from screenshots and save it to ~/Desktop
  4. (Optional) Delete screenshots
  • Specify your own filename by passing it as argument

Manage applications

🚚 iinstall

  • iinstall some-app-file.ipa Install .ipa (make sure to use properly signed build)
  • iinstall -a some-app-file.ipa Install .ipa to all connected devices

πŸ—‘ iuninstall

  • iuninstall Uninstall third-party app, choose from the list
  • iuninstall com.dummy.package.name.app pass bundle name as argument
  • iuninstall -w Uninstall all third-party packages
    • Skips some essential apps, edit IGNORED_PACKAGES in this script to customize the list to your needs

Manage device

πŸ“œ ilog

  • ilog Open console log output
  • Examine macOS or iOS system logs

πŸ’₯ icrashlogs

  • icrashlogs Import crash logs to ~/Desktop, choose whether to keep them in device storage
  • icrashlogs -k Import crash logs, keep them in device storage
  • icrashlogs -r Import crash logs, delete them from device storage
  • You can import these logs to Xcode to make them more readable via symbolication
    • Open relevant project in Xcode
    • Click on Window > Devices and Simulators > View Device Logs
    • Drag the .crash file onto the log list
    • Readable crash log should appear in the list

πŸ“‹ icheckdevice

  • Print device information
  • (Optional) Search for the device on GSMArena

β™» ireboot

  • Reboot the device

πŸ“± isimulator

  • Simulator has limited functionality (no camera, biometrics, Appstore...), but offers some extra options, unavailable on physical iOS devices
  • isimulator <option> Handle various simulator related activites
    • start - choose and launch installed simulator
    • screenshot - save screenshot to ~/Desktop
    • record - save screen recording to ~/Desktop (full resolution and frame rate, without QuickTime hassle)
    • paste <text> - insert text into pasteboard
    • import <file> - import image or video to simulator gallery app
    • log - print simulator log
    • url <url> - open link in web browser or corresponding application
    • wipe - wipe all simulator data
    • battery <0-100> - set battery level displayed in status bar (no functional impact)
    • time <hh:mm> - set time displayed in status bar (no functional impact)

πŸ’­ About

You can read about my motivation in this blog post, if you made it this far in readme and you like my work, please be so kind and star this repository or leave some claps on Medium. Every appreciation empowers my motivation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].