How to make own OTA app in AOSP - fslota?

前端 未结 1 658
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 15:18

we have build Android from sources and it looks good on our device. Currently we need to make own OTA process, but we dont know how.

We try to implement FSLOTa (https://

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 16:12

    I dont know about FSLOTa nor do I know about the device you are working on. But If you want to implement your own OTA process you could try the following (Just a short draft since your question is very broad):

    1. Create a system app that checks from time to time your server for new packages.
    2. if it detects a new package it downloads it to your device.
    3. it copies the downloaded update.zip to /cache/
    4. Then the app creates the following file /cache/recovery/command and writes --update_package=path_to_your_file in it. (For more commands see /bootable/recovery.cpp)
    5. Then it forces a reboot into recovery
    6. recovery installs your ota package.

    Update: I quickly checked the app you linked. I would check these things:

    1. Do you get till the point where RecoverySystem.installPackage() is called ? (https://github.com/embest-tech/android_packages_apps_fsl_imx_demo/blob/master/FSLOta/src/com/fsl/android/ota/OTAServerManager.java#L282)
    2. Do you see a message in logcat from the RecoverySystem that it is going to reboot? (maybe you have a permission problem and your app is not allowed to force "reboot recovery")
    3. Is the path to your update.zip correct? (it should be in /cache/)

    0 讨论(0)
提交回复
热议问题