Code Monkey home page Code Monkey logo

apkdownloader's Introduction

ApkDownloader

Gem Version Simply and easily download an APK file from the Google Play store.

Installation

Add this line to your application's Gemfile:

gem 'apk_downloader'

And then execute:

$ bundle

Or install it yourself as:

$ gem install apk_downloader

Usage

You first must configure the gem:

ApkDownloader.configure do |config|
  config.email = '[email protected]'
  config.password = 'password'
  config.android_id = 'abc123'
end

An android_id can be gotten from any Android device by dailing *#*#8255#*#*. This will bring up the "GTalk Service Monitor", and you can find the ID as a hex string after aid:.

The email and password provided must be valid Google Account credentials, and they must have been added to the device you got the ID from.

Then simply call ApkDownloader.download! '<package name>', '<destiation file>'.

Notes and Warnings

This gem works by way of spoofing a series of requests to the private Google Play API (normally only available to the Play store app) by pretending to be an Android device running that app. This is – as far as the API is concerned – a real app purchase request from the configured device/account, which means that in addition to downloading locally to the file you specify in the download! call it will also automatically download on that device.

I've only ever tried this for free apps. I have no idea what will happen if you attempt to download a non-free app with this gem.

Note also that doing this sort of API request spoofing is explicitly against the Terms of Service for the Play store. You use this gem at your own risk! Neither I, my employer, nor any contributers to this code will be held responsible for any repercussions taken against your accounts or devices from using this gem.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

apkdownloader's People

Contributors

jlindsey avatar sh0oki avatar gowthamgts avatar

Watchers

James Cloos avatar Charles avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.