WebMonitor For Android - Documentation
WebMonitor For Android - Documentation
All packets sent from RevCode Android Client are mainly formatted using
JSON.
Handshake:
Client will attempt a handshake by posting the following variables without
any encryption or compression:
key={CONFIG_KEY}
uid={SYS_UID)
mode=”keyauth”
data={BASE64(PUBLIC_KEY|UID|dP|dG|dPub)}
Important: Should the client ever receive “-1” during runtime, then
a new authentication (handshake) and connection should be
performed.
Encryption information:
Encryption algorithm used is AES-CBC without any IV.
Key size is 128 bits, as well as 128 bits block size.
Compression information:
Compression algorithm used is GZIP/Deflate.
Connection:
Client will proceed to establish a connection instantly upon a successful
handshake by posting the following variables:
key={CONFIG_KEY}
uid={SYS_UID}
enc={1 or 0, depending on client settings}
cmp={1 or 0, depending on client settings}
mode=”connect”
v0=LOCAL IP
v1=PHONE MODEL
v2=CONNECTION TYPE
v3=RADIO TYPE
v4=BATTERY LEVEL
v5=ANDROID VERSION
v6=NETWORK OPERATOR NAME
v7=IS ROOT/ADMIN
v8=IDLE TIME
The interval for which the client will continuously query tasks
is based on the response of the POST above. A numeric value,
seconds, is expected.
Performing tasks:
3