jpush / jpush/jpush-react-native
解决在应用启动时,弹框获取所有已安装应用的权限的问题
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch jpush-react-native@2.9.0 for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/jpush-react-native/android/src/main/AndroidManifest.xml b/node_modules/jpush-react-native/android/src/main/AndroidManifest.xml
index f0cda9a..2055eff 100644
--- a/node_modules/jpush-react-native/android/src/main/AndroidManifest.xml
+++ b/node_modules/jpush-react-native/android/src/main/AndroidManifest.xml
@@ -26,7 +26,6 @@
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.VIBRATE" />
- <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
<application>
<activity
This issue body was partially generated by patch-package.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with android/src/main/AndroidManifest.xml and inspect the QUERY_ALL_PACKAGES permission entry. Verify the manifest no longer requests access to all installed applications and confirm the Android app starts without the unwanted permission prompt.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100