Skip to content
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

Open
Byeter228 opened this issue Feb 1, 2024 · 0 comments
Open

MainAcitivity Crash 7.0.0.dev2 #135

Byeter228 opened this issue Feb 1, 2024 · 0 comments

Comments

@Byeter228
Copy link

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)

@Byeter228 Byeter228 changed the title MainAcitivity 7.0.0.dev2 MainAcitivity Crash 7.0.0.dev2 Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant