Implementation of dexguard

后端 未结 2 852
我寻月下人不归
我寻月下人不归 2021-01-24 02:38

i have put com.saikoa.dexguard.eclipse.adt_*.jar file in dropin folders of eclipse.And modified the Proguard-Project and Project-Properties Files in android Project.And i build

2条回答
  •  我在风中等你
    2021-01-24 03:28

    I experienced this same problem and found the solution in the docs.

    This means that your code must invoke the AsssetManager as follows: open("MyAssetFile").

    If you are not loading your asset in that manner then Dexguard does not encrypt the asset.

    For example, you must open your asset like this:

    InputStream stream = context.getAssets().open("myAssetFile.html");
    

    rather than

    mWebView.loadUrl("file:///android_asset/myAssetFile.html");
    

    You also need to ensure that you have set your dexguard config to encrypt your assets:

    -encryptassetfiles assets/myAssetFile.html,assets/myOtherAssetFile.txt
    

提交回复
热议问题