I have a XiaoMi 6 running Chinese MIUI9 (developer ROM) but installed with Google frame with the backup/restore method described on the Internet. Everything was fine except a few months ago, the Google Voice Assistant (GVA) stop working. I could use the Chinese Voice Assistant (it is quite good) but most of my contacts were written in English which cannot be recognized by the Chinese Voice Assistant.
Every time when MIUI has a new update, I tried to reinstall the GVA just to see whether the bug was fixed or not, and every time, I got the same error message.
java.lang.RuntimeException: Unable to create service com.google.android.apps.gsa.search.core.service.SearchService: java.lang.SecurityException: Failed to find provider com.google.android.partnersetup.rlzappprovider for user 0; expected to find a valid ContentProvider for this authority
I think the main problem may be caused by some missing “partner” app. Today, I finally find the way to fix it. I installed an app named com.google.android.partnersetup_6.0.1-23_minAPI11(nodpi).apk and slove the program.