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

Android O : CLI does not detect android O device's model & shows "android device" when "appc ti info" is run


    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0, Release 6.2.0
    • Fix Version/s: Release 7.0.0
    • Component/s: Android, CLI
    • Labels:
    • Environment:
    • Sprint:
      2017 Sprint 17 Tooling


      This was found when checking the fix for : https://jira.appcelerator.org/browse/TIMOB-24900. The PR for TIMOB-24900 was already merged in to master while writing this ticket, we will have a backport for it, so this ticket is for both master & 6.2.0.

      So probably the cause for this issue is in our "node-titanium-sdk/lib/adb.js" "parseDevices" function. Here we do a "adb shell cat /system/build.prop" to get the device property list & then grab the model, manufacturer etc from it.
      But from some reason, on Android O device this "cat" command returns "/system/build.prop: Permission denied" which is then the "data" callback & thus does not have any device properties returned.

      Steps to reproduce:

      1. Connect device with Android O preview.
      2. Make sure adb debugging is enabled on device.
      3. Run appc ti info -t android

      Actual Results:

      1. The Connected Device shows the device as Android device & not the model.
      2. This makes the studio show the device as Android device.

      Expected Results:

      1. The device's model name should show up.




            • Assignee:
              cbarber Chris Barber
              lchoudhary Lokesh Choudhary
              Eric Merriman
            • Watchers:
              2 Start watching this issue


              • Created:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  Sync status:
                  Last received:
                  Last sent:

                  Git Integration