Objectbox-java: After integrating the ObjectBox, the APK cannot be installed after using 360 hardening or Tencent legu hardening.

Created on 8 Jan 2019  路  7Comments  路  Source: objectbox/objectbox-java

Issue Basics

  • ObjectBox version (are using the latest version?):2.3.0
  • Reproducibility: always

Reproducing the bug

Description

After integrating the ObjectBox, the APK cannot be installed after using 360 hardening or Tencent legu hardening.

log: Failure [INSTALL_FAILED_INVALID_APK: Failed to extrace natice libraries, res=2 ]
[picture](https://github.com/renjunjia3/HiddenGraph/blob/master/%E4%B9%90%E5%9B%BA%E5%8A%A0%E5%9B%BA%E5%AE%89%E8%A3%85.png?raw=true)

more info required

Most helpful comment

Since 2.3.0 ObjectBox adds extractNativeLibs=false to the manifest to prevent native library extraction. Maybe you need to override this and set it to the old behavior?

In your AndroidManifest.xml try:

<application
  android:extractNativeLibs="true"
  tools:replace="android:extractNativeLibs"

All 7 comments

Please raise the issue with those tools. It seems that "hardening" breaks it.

ObjectBox version :2.3.1

Install to the simulator

Failure [INSTALL_FAILED_INVALID_APK]

ObjectBox version :2.2.0

No problem installing to the simulator and It鈥檚 okay to use 360 hardening.

@imliujun Did you contact the producer of "360 hardening" with this issue?

Since 2.3.0 ObjectBox adds extractNativeLibs=false to the manifest to prevent native library extraction. Maybe you need to override this and set it to the old behavior?

In your AndroidManifest.xml try:

<application
  android:extractNativeLibs="true"
  tools:replace="android:extractNativeLibs"

Since 2.3.0 ObjectBox adds extractNativeLibs=false to the manifest to prevent native library extraction. Maybe you need to override this and set it to the old behavior?

In your AndroidManifest.xml try:

<application
  android:extractNativeLibs="true"
  tools:replace="android:extractNativeLibs"

Is this reason

Closing. Please re-open if your question was not answered.

Was this page helpful?
0 / 5 - 0 ratings