forked from 2dust/v2rayNG
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MainAcitivity Crash 7.0.0.dev2 #135
Comments
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One is that For apps targeting Android 13 or higher, in each broadcast receiver of the app, explicitly indicate whether other apps can send broadcasts to it,as shown in the following code snippet
In MainActivity on 85 line, u need change:
activity?.registerReceiver(receiver, IntentFilter(AppConfig.BROADCAST_ACTION_UPDATE_UI))//hiddify
to:
activity?.registerReceiver(receiver, IntentFilter(AppConfig.BROADCAST_ACTION_UPDATE_UI), RECEIVER_EXPORTED)//hiddify
and add: @RequiresApi(Build.VERSION_CODES.O)
The text was updated successfully, but these errors were encountered: