Resolved V7.5.6.0_v7-6.0 - Xiaomisuggestionprovider Throws Java.lang.securityexception


ark0n3

Members
Jul 9, 2016
15
15
Hi everyone
I'm an (extremely) happy user if Xiami.EU ROMs.

First of all, I want to thank everyone working on it, it's such a high-quality app, imho even better than Xiaomi's official ones!

I installed the latest stable release for my Xiaomi MI5 (xiaomi.eu_multi_MI5_V7.5.6.0.MAACNDE_v7-6.0.zip). It works flawlessly, only bug I found is when using Search app, the one you get pulling down the notification drawer. Even opening the app itself leads to the same exception. It seems something related to missing Android permissions.

Code:
java.lang.RuntimeException: Unable to get provider com.android.quicksearchbox.xiaomi.XiaomiSuggestionProvider: java.lang.SecurityException: getDeviceId: Neither user 10075 nor current process has android.permission.READ_PHONE_STATE.
at android.app.ActivityThread.installProvider(ActivityThread.java)
at android.app.ActivityThread.installContentProviders(ActivityThread.java)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
at android.app.ActivityThread.access$1600(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
Caused by: java.lang.SecurityException: getDeviceId: Neither user 10075 nor current process has android.permission.READ_PHONE_STATE.
at android.os.Parcel.readException(Parcel.java)
at android.os.Parcel.readException(Parcel.java)
at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java)
at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java)
at com.android.quicksearchbox.xiaomi.XiaomiSource.<init>(XiaomiSource.java)
at com.android.quicksearchbox.QsbApplication.getXiaomiSource(QsbApplication.java)
at com.android.quicksearchbox.xiaomi.XiaomiSuggestionProvider.onCreate(XiaomiSuggestionProvider.java)
at android.content.ContentProvider.attachInfo(ContentProvider.java)
at android.content.ContentProvider.attachInfo(ContentProvider.java)
... 11 more
 
Last edited by a moderator:
Thanks a lot @ingbrzy !

ps xiami newbie's questione: I can download and flash with TWRP without loosing my data, is that right? I know that nobody can be 100% sure but just to know that's the standard way to perform ROM updates/similar to OTA updates.