googleplay

package module
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2021 License: OSL-3.0 Imports: 18 Imported by: 2

README

googleplay

Fear plays an interesting role in our lives. How dare we let it motivate us? How dare we let it into our decision-making, into our livelihoods, into our relationships?

It's funny, isn't it, we take a day a year to dress up in costume and celebrate fear?

Spooked (The Office) (2011)

Download APK from Google Play or send API requests

Tool examples

Create a file containing Token (aas_et) for future requests:

googleplay -e EMAIL -p PASSWORD

Create a file containing Android_ID (GSF ID) for future requests:

googleplay -d

Get app details:

googleplay -a com.google.android.youtube

Purchase app. Only needs to be done once per Google account:

googleplay -a com.google.android.youtube -purchase

Download APK. If APK is split, all pieces will be downloaded:

googleplay -a com.google.android.youtube -v 1524221376

Module

https://godocs.io/github.com/89z/googleplay

Documentation

Index

Constants

View Source
const (
	Sleep = 16 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDeliveryData added in v1.3.8

type AppDeliveryData struct {
	protobuf.Message
}

func (AppDeliveryData) DownloadURL added in v1.3.8

func (a AppDeliveryData) DownloadURL() string

func (AppDeliveryData) SplitDeliveryData added in v1.3.8

func (a AppDeliveryData) SplitDeliveryData() []SplitDeliveryData

type AppDetails added in v1.1.4

type AppDetails struct {
	protobuf.Message
}

func (AppDetails) VersionCode added in v1.1.4

func (a AppDetails) VersionCode() uint64

type Auth added in v1.0.4

type Auth struct {
	url.Values
}

func (Auth) DeliveryResponse added in v1.3.8

func (a Auth) DeliveryResponse(dev *Device, app string, ver int) (*DeliveryResponse, error)

func (Auth) DetailsResponse added in v1.3.8

func (a Auth) DetailsResponse(dev *Device, app string) (*DetailsResponse, error)

func (Auth) Purchase added in v1.1.8

func (a Auth) Purchase(dev *Device, app string) error

Purchase app. Only needs to be done once per Google account.

func (Auth) Upload added in v1.1.3

func (a Auth) Upload(dev *Device, con Config) error

This seems to return `StatusOK`, even with invalid requests, and the response body only contains a token, that doesnt seem to indicate success or failure. Only way I know to check, it to try the `deviceID` with a `details` request or similar. Also, after the POST, you need to wait at least 16 seconds before the `deviceID` can be used.

type Config added in v1.2.1

type Config struct {
	protobuf.Message
}

func NewConfig added in v1.3.8

func NewConfig() Config

func (Config) SetDeviceConfiguration added in v1.3.8

func (c Config) SetDeviceConfiguration(v DeviceConfiguration) bool

type DeliveryResponse added in v1.3.8

type DeliveryResponse struct {
	protobuf.Message
}

func (DeliveryResponse) AppDeliveryData added in v1.3.8

func (d DeliveryResponse) AppDeliveryData() AppDeliveryData

func (DeliveryResponse) Status added in v1.3.8

func (d DeliveryResponse) Status() uint64

type Details added in v1.0.1

type Details struct {
	protobuf.Message
}

func (Details) AppDetails added in v1.3.8

func (d Details) AppDetails() AppDetails

type DetailsResponse added in v1.3.8

type DetailsResponse struct {
	protobuf.Message
}

func (DetailsResponse) DocV2 added in v1.3.8

func (d DetailsResponse) DocV2() DocV2

type Device added in v1.0.6

type Device struct {
	Android_ID int64
}

func NewDevice added in v1.0.6

func NewDevice() (*Device, error)

func (*Device) Decode added in v1.2.1

func (d *Device) Decode(r io.Reader) error

Read Device from file.

func (Device) Encode added in v1.2.1

func (d Device) Encode(w io.Writer) error

Write Device to file.

func (Device) String added in v1.2.1

func (d Device) String() string

type DeviceConfiguration added in v1.2.1

type DeviceConfiguration struct {
	protobuf.Message
}

func NewDeviceConfiguration added in v1.3.8

func NewDeviceConfiguration() DeviceConfiguration

func (DeviceConfiguration) SetGLESversion added in v1.3.8

func (d DeviceConfiguration) SetGLESversion(v int) bool

func (DeviceConfiguration) SetGLextension added in v1.3.8

func (d DeviceConfiguration) SetGLextension(v []string) bool

func (DeviceConfiguration) SetHasFiveWayNavigation added in v1.3.8

func (d DeviceConfiguration) SetHasFiveWayNavigation(v bool) bool

func (DeviceConfiguration) SetHasHardKeyboard added in v1.3.8

func (d DeviceConfiguration) SetHasHardKeyboard(v bool) bool

func (DeviceConfiguration) SetKeyboard added in v1.3.8

func (d DeviceConfiguration) SetKeyboard(v int) bool

func (DeviceConfiguration) SetNativePlatform added in v1.3.8

func (d DeviceConfiguration) SetNativePlatform(v []string) bool

func (DeviceConfiguration) SetNavigation added in v1.3.8

func (d DeviceConfiguration) SetNavigation(v int) bool

func (DeviceConfiguration) SetScreenDensity added in v1.3.8

func (d DeviceConfiguration) SetScreenDensity(v int) bool

func (DeviceConfiguration) SetScreenLayout added in v1.3.8

func (d DeviceConfiguration) SetScreenLayout(v int) bool

func (DeviceConfiguration) SetSystemAvailableFeature added in v1.3.8

func (d DeviceConfiguration) SetSystemAvailableFeature(v []string) bool

func (DeviceConfiguration) SetTouchScreen added in v1.3.8

func (d DeviceConfiguration) SetTouchScreen(v int) bool

type DocV2 added in v1.3.8

type DocV2 struct {
	protobuf.Message
}

func (DocV2) Details added in v1.3.8

func (d DocV2) Details() Details

type SplitDeliveryData added in v1.3.0

type SplitDeliveryData struct {
	protobuf.Message
}

func (SplitDeliveryData) DownloadURL added in v1.3.0

func (s SplitDeliveryData) DownloadURL() string

func (SplitDeliveryData) ID added in v1.3.8

func (s SplitDeliveryData) ID() string

type Token added in v1.0.1

type Token struct {
	url.Values
}

func NewToken added in v1.0.4

func NewToken(email, password string) (*Token, error)

Request refresh token.

func (Token) Auth added in v1.0.4

func (t Token) Auth() (*Auth, error)

Exchange refresh token for access token.

func (*Token) Decode added in v1.1.0

func (t *Token) Decode(r io.Reader) error

Read Token from file.

func (Token) Encode added in v1.1.0

func (t Token) Encode(w io.Writer) error

Write Token to file.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL