AndroidDeployer Scol plugin
Macros | Functions | Variables
androidDeployer.cpp File Reference
#include <stdlib.h>
#include <vector>
#include <map>
#include <zip.h>
#include "androidDeployer.h"

Go to the source code of this file.

Macros

#define EXECBUFSIZE   4096
 

Functions

PROCESS_INFORMATION CreateExecChildProcess (std::string, BOOL &)
 
void ReadExecFromPipe (PROCESS_INFORMATION, std::string &, std::string &)
 
bool execProcess (std::string cmd, std::string &output)
 
void addDirToArchive (zip_t *archive, const boost::filesystem::path &srcdir, const boost::filesystem::path &inputdir)
 
int _MAKEandroidUnsignedAppBundle (mmachine m)
 _MAKEandroidUnsignedAppBundle : This function creates an unsigned App Bundle from files contained in the same folder as an AndroidManifest.xml
 
int _MAKEandroidUnsignedAPK (mmachine m)
 _MAKEandroidUnsignedAPK : This function creates an unsigned apk from files contained in the same folder as an AndroidManifest.xml
 
int _ENCRYPTandroidSigningKey (mmachine m)
 _ENCRYPTandroidSigningKey : This function encrypts a signing key (.keystore) so it can be sent to the Play Store
 
int _MAKEandroidSigningKey (mmachine m)
 _MAKEandroidSigningKey : This function creates a signing key (.keystore) used to sign Android APKs
 
int _SIGNandroidAppBundle (mmachine m)
 _SIGNandroidAppBundle : This function signs and zips align an app bundle file
 
int _SIGNandroidAPK (mmachine m)
 _SIGNandroidAPK : This function signs and zips align an APK file
 
int _INSTALLandroidAPK (mmachine m)
 _INSTALLandroidAPK : This function signs and
 
int _CHECKandroidTools (mmachine m)
 _CHECKandroidTools : This function test if the android tools are available
 
int LoadAndroidDeployer (mmachine m)
 Load the packages in Scol virtual machine.
 

Variables

HANDLE g_hChildStd_OUT_Rd = NULL
 
HANDLE g_hChildStd_OUT_Wr = NULL
 
HANDLE g_hChildStd_ERR_Rd = NULL
 
HANDLE g_hChildStd_ERR_Wr = NULL
 
NativeDefinition base_android_deployer []
 

Macro Definition Documentation

◆ EXECBUFSIZE

#define EXECBUFSIZE   4096

Definition at line 68 of file androidDeployer.cpp.

Function Documentation

◆ addDirToArchive()

void addDirToArchive ( zip_t *  archive,
const boost::filesystem::path &  srcdir,
const boost::filesystem::path &  inputdir 
)

Definition at line 192 of file androidDeployer.cpp.

◆ CreateExecChildProcess()

PROCESS_INFORMATION CreateExecChildProcess ( std::string  cmd,
BOOL &  bSuccess 
)

Definition at line 129 of file androidDeployer.cpp.

◆ execProcess()

bool execProcess ( std::string  cmd,
std::string &  output 
)

Definition at line 73 of file androidDeployer.cpp.

◆ LoadAndroidDeployer()

int LoadAndroidDeployer ( mmachine  m)

Load the packages in Scol virtual machine.

Parameters
mmachine: the scol machine

Definition at line 1148 of file androidDeployer.cpp.

◆ ReadExecFromPipe()

void ReadExecFromPipe ( PROCESS_INFORMATION  piProcInfo,
std::string &  output,
std::string &  err 
)

Definition at line 165 of file androidDeployer.cpp.

Variable Documentation

◆ base_android_deployer

NativeDefinition base_android_deployer[]
Initial value:
=
{
{ "_MAKEandroidUnsignedAppBundle", 2, "fun [S P] [P S]", _MAKEandroidUnsignedAppBundle },
{ "_MAKEandroidUnsignedAPK", 2, "fun [S P] [P S]", _MAKEandroidUnsignedAPK },
{ "_ENCRYPTandroidSigningKey", 4, "fun [P S S P] [P S]", _ENCRYPTandroidSigningKey },
{ "_MAKEandroidSigningKey", 4, "fun [W S S [[S S] r1]] [P S]", _MAKEandroidSigningKey },
{ "_SIGNandroidAppBundle", 4, "fun [P P S S] [P S]", _SIGNandroidAppBundle },
{ "_SIGNandroidAPK", 4, "fun [P P S S] [P S]", _SIGNandroidAPK },
{ "_INSTALLandroidAPK", 1, "fun [P] I", _INSTALLandroidAPK },
{ "_CHECKandroidTools", 0, "fun [] I", _CHECKandroidTools }
}
int _CHECKandroidTools(mmachine m)
_CHECKandroidTools : This function test if the android tools are available
int _INSTALLandroidAPK(mmachine m)
_INSTALLandroidAPK : This function signs and
int _ENCRYPTandroidSigningKey(mmachine m)
_ENCRYPTandroidSigningKey : This function encrypts a signing key (.keystore) so it can be sent to the...
int _SIGNandroidAPK(mmachine m)
_SIGNandroidAPK : This function signs and zips align an APK file
int _MAKEandroidUnsignedAppBundle(mmachine m)
_MAKEandroidUnsignedAppBundle : This function creates an unsigned App Bundle from files contained in ...
int _MAKEandroidSigningKey(mmachine m)
_MAKEandroidSigningKey : This function creates a signing key (.keystore) used to sign Android APKs
int _MAKEandroidUnsignedAPK(mmachine m)
_MAKEandroidUnsignedAPK : This function creates an unsigned apk from files contained in the same fold...
int _SIGNandroidAppBundle(mmachine m)
_SIGNandroidAppBundle : This function signs and zips align an app bundle file

Definition at line 1132 of file androidDeployer.cpp.

◆ g_hChildStd_ERR_Rd

HANDLE g_hChildStd_ERR_Rd = NULL

Definition at line 65 of file androidDeployer.cpp.

◆ g_hChildStd_ERR_Wr

HANDLE g_hChildStd_ERR_Wr = NULL

Definition at line 66 of file androidDeployer.cpp.

◆ g_hChildStd_OUT_Rd

HANDLE g_hChildStd_OUT_Rd = NULL

Definition at line 63 of file androidDeployer.cpp.

◆ g_hChildStd_OUT_Wr

HANDLE g_hChildStd_OUT_Wr = NULL

Definition at line 64 of file androidDeployer.cpp.