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

Android上架传感器自启动问题不给通过 #305

Open
Yi-debug opened this issue Oct 21, 2024 · 3 comments
Open

Android上架传感器自启动问题不给通过 #305

Yi-debug opened this issue Oct 21, 2024 · 3 comments

Comments

@Yi-debug
Copy link

"react-native-orientation-locker": "^1.7.0"

在Android上架的时候给驳回了,下面是驳回的问题代码
堆栈:at android.hardware.SensorManager.getSensorList()
at android.hardware.SensorManager.getDefaultSensor(SensorManager.java:488)
at android.view.OrientationEventListener.(OrientationEventListener.java:71)
at org.wonday.orientation.OrientationModule$1.(OrientationModule.java:55)
at org.wonday.orientation.OrientationModule.(OrientationModule.java:55)
at org.wonday.orientation.OrientationPackage.createNativeModules(OrientationPackage.java:28)
at com.facebook.react.ReactPackageHelper.getNativeModuleIterator(ReactPackageHelper.java:43)
at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:42)
at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1458)
at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1429)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1331)
at com.facebook.react.ReactInstanceManager.lambda$runCreateReactContextOnNewThread$2(ReactInstanceManager.java:1101)
at com.facebook.react.ReactInstanceManager.$r8$lambda$AwGS8CysOZmWJw3kRVARHQvw9Ew(Unknown Source:0)
at com.facebook.react.ReactInstanceManager$$ExternalSyntheticLambda5.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:764)

行为主体:FaceBookReact

检测项: 违规收集个人信息

风险信息:APP向用户明示SDK的收集使用规则,未经用户同意,SDK存在收集((SDK: FaceBookReact) 读取特定类型传感器列表)的行为。

这个一启动后就会自动触发传感器,能不能解决下传感器的问题

我就yarn add react-native-orientation-locker 审核就不给通过,问题就是DK存在收集((SDK: FaceBookReact) 读取特定类型传感器列表)的行为。关键是我都没有引入react-native-orientation-locker他就给我驳回了

yarn remove react-native-orientation-locker审核就可以通过

@arafat813
Copy link

有找到解决方法么

@Yi-debug
Copy link
Author

Yi-debug commented Oct 23, 2024

有找到解决方法么
解决了,看他的commits里面的,把你的node_modules里面的代码改成他这里的,然后你在打个补丁就行了

这个链接

@arafat813
Copy link

好的 感谢 我试一下

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

2 participants