Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27606

Android: Remote encryption policy broken in latest 8.3.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 8.3.0
    • Fix Version/s: Release 8.3.0
    • Component/s: Android
    • Environment:

      Description

      Steps to reproduce:

      1. Add the remote encryption policy to the tiapp.xml:

      <property name="appc-sourcecode-encryption-policy">remote</property>
      

      2. Build the app for android device/emlator.

      Actual results:

      1. The app errors with:

      [WARN] :   W/om.app.ztest12: resources.arsc in APK '/data/app/com.app.ztest123-9F2WuAtYx4qLJSwTB4tqTQ==/base.apk' is compressed.
      [ERROR] :  AssetCryptImpl: (main) [4,4] Security violation detected: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String org.appcelerator.titanium.ITiAppInfo.getId()' on a null object reference
      [ERROR] :  AssetCryptImpl: (main) [0,4] Security exception encountered. Waiting for root activity to show error.
      [DEBUG] :  APSAnalytics: Initialization started...
      [ERROR] :  TiAssetHelper: Error while reading asset "Resources/_app_props_.json":
      [ERROR] :  TiAssetHelper: java.io.FileNotFoundException: Resources/_app_props_.json
      [ERROR] :  TiAssetHelper:   at android.content.res.AssetManager.nativeOpenAsset(Native Method)
      [ERROR] :  TiAssetHelper:   at android.content.res.AssetManager.open(AssetManager.java:744)
      [ERROR] :  TiAssetHelper:   at android.content.res.AssetManager.open(AssetManager.java:721)
      [ERROR] :  TiAssetHelper:   at org.appcelerator.kroll.util.KrollAssetHelper.readAssetBytes(KrollAssetHelper.java:182)
      [ERROR] :  TiAssetHelper:   at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:192)
      [ERROR] :  TiAssetHelper:   at org.appcelerator.titanium.TiApplication.loadAppProperties(TiApplication.java:324)
      [ERROR] :  TiAssetHelper:   at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:95)
      [ERROR] :  TiAssetHelper:   at com.app.ztest123.Ztest123Application.onCreate(Ztest123Application.java:83)
      [ERROR] :  TiAssetHelper:   at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154)
      [ERROR] :  TiAssetHelper:   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5871)
      [ERROR] :  TiAssetHelper:   at android.app.ActivityThread.access$1100(ActivityThread.java:199)
      [ERROR] :  TiAssetHelper:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)
      [ERROR] :  TiAssetHelper:   at android.os.Handler.dispatchMessage(Handler.java:106)
      [ERROR] :  TiAssetHelper:   at android.os.Looper.loop(Looper.java:193)
      [ERROR] :  TiAssetHelper:   at android.app.ActivityThread.main(ActivityThread.java:6669)
      [ERROR] :  TiAssetHelper:   at java.lang.reflect.Method.invoke(Native Method)
      [ERROR] :  TiAssetHelper:   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
      [ERROR] :  TiAssetHelper:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
      [INFO] :   TiApplication: (main) [203,207] Titanium Javascript runtime: v8
      [INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
      [DEBUG] :  OpenGLRenderer: Skia GL Pipeline
      [ERROR] :  AssetCryptImpl: (main) [37,37] Security violation detected: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String org.appcelerator.titanium.ITiAppInfo.getId()' on a null object reference
      [ERROR] :  AssetCryptImpl: (main) [0,37] Security exception encountered. Waiting for root activity to show error.
      [INFO] :   APSAnalyticsStore: session.start
      

      Expected result:

      1. The app should not throw error & remote encryption should work as expected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                lchoudhary Lokesh Choudhary
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration