Philips Signage Solutions 42BDL5057P User Manual page 57

Table of Contents

Advertisement

1. If you develop an apk which can download any android app, then
your apk can issue a customized intent.
2. Giving the apk name and the path it was stored. The system will
help you to install by program.
Description Intent
Parameters
filePath
Keep
php.intent.
packageName
Sw Update
action.
UPDATE_APK
activityName
For example,
Intent intent = new Intent();
intent.setAction("php.intent.action.UPDATE_APK");
intent.putExtra("filePath", "/sdcard/Download/apk_name.apk");
intent.putExtra("keep", true);
intent.putExtra("packageName", "com.example.apk_name");
intent.putExtra("activityName", "com.example.apk_name.MainActivity");
sendBroadcast(intent);
5.16.4. How to connect with platform Web API?
PD has a local web server to provide Web API for customer getting PD
information in JSON format.
1. APIs specifications
- Protocol: HTTP
- Method: GET
- Domain: localhost
- Port: 9988
- URI: /platform/getinfo
2. API Request URL
- http://localhost:9988/platform/getinfo
3. API Response
- Status
Status
Code
Success
0
Error
1
- Result in JSON format
• interfaces: list all of network interface's MAC address
• family: the address-family within an IPv4 or IPv6
• mac: network interface's MAC address
• ip: network interface's IP address
• currentip: current IP address of device
• sn: serial number of device
The absolute file path
including the file name.
Indicate that you want
to keep the file or not
after updating. The default
value is false.
The target package
you want to launch
automatically after
updating.
The target activity
you want to launch
automatically after
updating. But if current
top activity is not
activityName, nothing
happened.
Description
Request success
Request failure
• model: model name of device
• version: version of Web API
- JSON sample
{
status: "success",
code: 0,
decsription: "success",
result:
{
"version": "1.0",
"currentip": "172.17.3.4",
"sn": "123456",
"model": "PDModelName",
"interfaces": [
{
"family": "IPv6",
"ip": "fe80::84ea:d74b:1167:aa69",
"mac": "a4:4e:31:9c:79:e0"
},
{
"family": "IPv4",
"ip": "172.17.3.4",
"mac": "a4:4e:31:9c:79:e0"
}
]
}
}
43
42BDL5057P

Advertisement

Table of Contents
loading

Table of Contents