Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-924

appc-security-jailbreak-detect does not prevent application launch on rooted Android device

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: Verification
    • Labels:
      None
    • Environment:

      Rooted Nexus 5
      appc -v 5.1.0
      appc ti sdk 5.1.2
      Android

    • Severity:
      Blocker
    • Customer Priority:
      Immediate
    • Customer Labels:
    • Story Points:
      5
    • Sprint:
      2015 Sprint 20 Tooling, 2016 Sprint 21 Tooling

      Description

      Documentation specifically says android rooted devices.

      The special property appc-security-jailbreak-detect can be used to increase the security of your application by preventing the mobile app from running on a Jailbroken (iOS) or rooted (Android) device.

      In my testing this does not work.

      Steps to reproduce

      Create app

      appc new 
      ... choose mobile
      ... chose android
      ... ID is com.seth.jailbreak
      cd jailbreak
      

      Add properties just to be extra sure that the properties in enabled

      // note I test with no properties too

      <?xml version="1.0" encoding="UTF-8"?>
      <ti:app xmlns:ti="http://ti.appcelerator.org">
              <id>com.seth.jailbreak</id>
              <name>JailbreakApp</name>
              <version>1.0</version>
              <publisher>not specified</publisher>
              <url></url>
              <description></description>
              <copyright>not specified</copyright>
              <icon>appicon.png</icon>
              <fullscreen>false</fullscreen>
              <navbar-hidden>false</navbar-hidden>
              <analytics>true</analytics>
              <guid>d57bfc79-1587-443f-8244-359bc960bafa</guid>
              <property name="ti.ui.defaultunit" type="string">dp</property>
              <property name="appc-security-debugger-detect">true</property>
              <property name="appc-security-jailbreak-detect">true</property>
              <property name="appc-sourcecode-encryption-policy" type="string">remote</property>
              <ios>...
      

      Build the app

      appc run -p android -T device
      // builds
      

      Launch

      Open the app on the device

      Expected vs Actual

      Expected
      App closes right away or doesn't open
      Actual
      App opens and works like a normal app

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                stoda Seth Toda
                Reviewer:
                Jared De La Cruz
              • Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code