08.Dfu - htangsmart/FitCloudPro-SDK-Android GitHub Wiki
Firmware/UI Upgrade
sample project: Refer to
HardwareUpgradeFragment.kt
Sport Push
sample project: Refer to
SportPushFragment.kt
If FcDeviceInfo.Feature.SPORT_PUSH is supported, you can use FcDfuManager to push the FcDfuManager.DfuType.SPORT bin file to the device to change the Sport Type on the device.
Game Push
sample project: Refer to
GamePushFragment.kt
If FcDeviceInfo.Feature.GAME_PUSH is supported, you can use FcDfuManager to push the FcDfuManager.DfuType.GAME bin file to the device to change the Game skin on the device.
Dial Push
Logo Push
Current in beta version
EPO Push
- Set a provider when init FcSDK
FcSDK.Builder()
.setBuiltInFeatures(
FcBuiltInFeatures(
gpsHotStartProvider = object : FcGpsHotStartProvider {
override val logEnabled: Boolean = true
override val fileDir: File? = null
override fun requestGpsLocationInfo(): Single<Optional<FcGpsLocationInfo>> {
return Injector.getGpsHotStartRepository().requestGpsLocationInfo()
}
override fun requestGpsEpoInfo(): Single<Optional<FcGpsEpoInfo>> {
return Injector.getGpsHotStartRepository().requestGpsEpoInfo()
}
},
)
)
.build()
- Upgrade
Use `FcDeviceInfo.isSupportFeature(FcDeviceInfo.Feature.GPS_HOT_START)` determine whether the EPO function is supported.
Use `FcSettingsFeature.updateGpsHotStart()` start epo uograde.
Use `FcSettingsFeature.observerGpsHotStartUpdateState()` observe epo progress.
The more info please refer the sample:
FitCloudSDKInit.kt:Init gpsHotStartProvider
GpsHotStartWorker:Worker for update epo
GpsHotStartUpdateDialogFragment:Progress dialog for epo execute