8000 adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap -P x@x/0 /system/bin/sh: /data/local/tmp/minicap-devel/minicap: can't execute: Permission denied · Issue #37 · openstf/minicap · GitHub
[go: up one dir, main page]

Skip to content

adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap -P x@x/0 /system/bin/sh: /data/local/tmp/minicap-devel/minicap: can't execute: Permission denied #37

Closed

Description

@prithiviraj

cant access permission denied

Activity

  1. sorccu commented on Oct 21, 2016

    @sorccu
    Member

    You have to mention which device you're using or it's impossible to say anything.

  2. prithiviraj commented on Oct 21, 2016

    @prithiviraj
    Author

    nexus 5

  3. sorccu commented on Oct 21, 2016

    @sorccu
    Member

    And which version of Android? Please don't make me ask every single detail, that's just wasting my time.

  4. prithiviraj commented on Oct 21, 2016

    @prithiviraj
    Author

    i have tried in nexus5 version 6.0.1 and Samsung Galaxy Young Duos S6312, android version 4.1.2 same problem, cant access permission denied

  5. sorccu commented on Oct 21, 2016

    @sorccu
    Member

    Nexus 5 on 6.0.1 works fine. I think the issue is something else. Did you use the ./run.sh script?

  6. prithiviraj commented on Oct 21, 2016

    @prithiviraj
    Author

    yes starting the minicap im using this command ./run.sh autosize

  7. sorccu commented on Oct 21, 2016

    @sorccu
    Member

    Which OS do you use? And which version?

  8. prithiviraj commented on Oct 21, 2016

    @prithiviraj
    Author

    windows 10 pro version 1511 and im trying using Cygwin64 Terminal

  9. sorccu commented on Oct 22, 2016

    @sorccu
    Member

    I never develop on Windows and will therefore not be able to check the issue. I would recommend creating a Linux VM and building from there. If you manage to figure out what's wrong, a PR is welcome. Sounds like the executable flags are not getting set correctly but who knows.

  10. serezhka commented on Oct 25, 2016

    @serezhka

    @prithiviraj , try to add
    " adb shell chmod 0755 $dir/$bin " after " adb push .. " in run.sh script

  11. prithiviraj commented on Oct 25, 2016

    @prithiviraj
    Author

    @serezhka, i tried same problem permission denied

  12. thulasipavankumar commented on Jul 4, 2017

    @thulasipavankumar

    @prithiviraj
    I too faced the same issue follow the below mentioned steps to overcome the issue
    Execute the following commands in command prompt
    -> adb -s "deviceid" shell ( this will enter to the device adb shell)
    -> cd /data/local/tmp/ ( assuming you pushed minicap to /data/local/tmp/ )
    -> chmod 777 minicap

  13. sorccu commented on Jul 4, 2017

    @sorccu
    Member

    Perhaps openstf/stf#436 is of interest to you. Current STF installs to /data/data/com.android.shell if /data/local/tmp doesn't work.

  14. tsreenivash-pk commented on Oct 16, 2017

    @tsreenivash-pk

    Minicap Working in windows
    Manually execute the following command in command line
    -- adb shell "mkdir /data/local/tmp/minicap-devel 2>/dev/null || true" .
    -- adb push libs/<your_device_acrhitecture>/minicap /data/local/tmp/minicap-devel.
    -- adb push jni/minicap-shared/aosp/libs/android-<Android_OS_API_verion>/<your_device_acrhitecture>/minicap.so /data/local/tmp/minicap-devel.
    -- adb shell chmod 777 /data/local/tmp/minicap-devel/minicap -> execute this command in CYGWIN.
    -- adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap run.sh -P _<Deivce_Resolution>@<Projection_Resoultion>/ _

  15. Restry commented on Aug 19, 2018

    @Restry

    fix it

    adb shell chmod 777 /data/local/tmp/minicap-devel/minicap

  16. oujibahei commented on Jan 14, 2019

    @oujibahei

    Even after execute adb shell chmod 777 /data/local/tmp/minicap-devel/minicap still gets the 'permission denied' notice on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0