com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Building the Android Sense Agent
You will want to make changes to the Android Application Package (APK) of the Android Sense, to suite your business or organization requirements. For example, white labelling the WSO2 IoTS Android Sense agent, debugging the agent or building the agent manually. In such situations you need to make the required changes and create a new APK file.
Prerequisites
Download, and install Android Studio.
For more information, see installing Android Studio.
- WSO2 IoTS supports API levels 16 to 22. Therefore, install the Android API levels 16 to 22 on Android Studio.
- Open Android Studio.
- Click SDK Manager.
- Click the SDK Platform tab, and select the 16 and 22 API levels.
- Click Apply.
Creating a new APK
Clone the
carbon-device-mg-plugins
GIT repository.git clone https://github.com/wso2/carbon-device-mgt-plugins.git
- Open the
org.wso2.carbon.device.mgt.iot.androidsense.agent
folder that is in the<CARBON-DEVICE-MGT-PLUGIN>/components/iots-plugin
directory via Android Studio, and do the necessary changes you wish to make. Build the project to create a new APK file that has all the changes you made.
- Rename the created
.apk
file toandroidsense.apk
. - Copy the renamed file, and replace it instead of the existing
android-agent.apk
file that is in the<CARBON-DEVICE-MGT-PLUGIN>/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.ui/src/main/resources/jaggeryapps/devicemgt
directory
/app/units/cdmf.unit.device.type.android_sense.type-view/public/asset
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.