The face algorithm can be used permanently after being activated once (except for the test code), and the algorithm can be reactivated by restoring the factory settings and updating the firmware without crossing the Android version.
Or you can back up the activation file in advance, update the firmware and then push the activation file to the corresponding device