1 Reply Latest reply on Jan 18, 2016 7:27 AM by Pietro Francesco Maggi

    After upgrading TC70 to build 15-04 I get permission denied while running adb shell

    Erik Fortin

      On older build (G1) I could browse /data/tmp, not I receive permission denied. Any ideas?

        • Re: After upgrading TC70 to build 15-04 I get permission denied while running adb shell
          Pietro Francesco Maggi

          Hi Erik,

          the update TC70 BSP introduce few changes in the filesystem permission to comply with Google's Android Compatibility Definition Document for Android KitKat that was necessary to comply with Google requirements to be able to release devices with Google Mobile Services.

          One of these changes is that Non-system applications cannot use /data/tmp for storage. Your best option would be to switch to use the "ExternalStorageDirectory" (in TC70 case it's the internal 1GByte partition available)

           

          Instead of saving under /data/tmp/, use Environment.getExternalStorageDirectory(). You need a read/write permission to do that. You have to add these two lines into the Manifest of the application ! (I tried to add those lines into the /androidTest/Manifest.xml file, but it has no effects).

           

           

          <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

          <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

          While it solves the problem of finding a common directory to save/read temporary data.

           

          ~Pietro

          2 of 2 people found this helpful