1. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Adb Push Permission Denied

Discussion in 'Android Hacks and Help' started by jiaoyang_28, Sep 27, 2011.

  1. jiaoyang_28
    Offline

    jiaoyang_28 New Member

    Joined:
    Sep 27, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I am trying to enable the SystemTap on Nexus S Samsung phone, however, no matter what I did, I just can not upload the files into the "/data" folder.

    The following are what I did:
    1. Root the phone by following video on link:
    How To: Root the Samsung Nexus S (Updated 01.20.11) | TheUnlockr
    2. Download the Nexus S kernel code by:
    git clone http://github.com/CyanogenMod/android_kernel_samsung_c1.git kernel
    3. Add debug flags and modify ptrace.h as mentioned in:
    Systemtap - OMAPpedia
    4. Reboot the phone with new kernel:
    fastboot flash zimage zImage

    The following are the problems I met:

    When I try to push any file, it either tells me the file does not exit, or permission denied. For example:
    sudo ./adb push /data/systemtap-1.5-macharm/ bin/staprun /data/staprun
    failed to copy '/data/systemtap-1.5-macharm/bin/staprun' to '/data/staprun': Permission denied
    or
    ./adb push /data/systemtap-1.5-macharm/ /data/systemtap-1.5-macharm/
    push: /data/systemtap-1.5-macharm/libexec/systemtap/stap-env -> /data/systemtap-1.5-macharm/libexec/systemtap/stap-env
    failed to copy '/data/systemtap-1.5-macharm/libexec/systemtap/stap-env' to '/data/systemtap-1.5-macharm/libexec/systemtap/stap-env': No such file or directory

    I first guess that is the problem of the "ro" of file systems, so I remount them to be:
    rootfs / rootfs rw,relatime 0 0
    tmpfs /dev tmpfs rw,relatime,mode=755 0 0
    devpts /dev/pts devpts rw,relatime,mode=600 0 0
    proc /proc proc rw,relatime 0 0
    sysfs /sys sysfs rw,relatime 0 0
    none /acct cgroup rw,relatime,cpuacct 0 0
    tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
    tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
    none /dev/cpuctl cgroup rw,relatime,cpu 0 0
    /dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
    /dev/block/mtdblock6 /efs yaffs2 rw,nosuid,nodev,relatime 0 0
    /dev/block/platform/s3c-sdhci.0/by-name/system /system ext4 rw,relatime,barrier=1,data=ordered 0 0
    /dev/block/platform/s3c-sdhci.0/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
    /sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
    /dev/block/vold/179:3 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount- ro 0 0
    /dev/block/vold/179:3 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount- ro 0 0
    tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

    However, the problem is still there.

    Is this the problem of my method of Root the phone? Why I just can not push the SystemTap tools into the "/data" folder?

    Any hint would be warmly welcomed.

    Yours
    Sincerely
Search tags for this page
adb failed to copy flashimage to '/sdcard//flashimage': perm
,
adb failed to copy permission denied
,
adb pull permission denied
,

adb push permission denied

,
adb to push a file permission deny
,
android push permission denied
,
cyanogenmod failed to copy permission denied
,
failed to copy debugfs permission denied
,
failed to copy gmail.apk permission denied
,
failed to copy permission denied adb push
,
fastboot flash permission denied
,
fastboot permission denied
,
jiayu adb push /cache
,
mount -o rw,remount -t yaffs2 /dev/block/ en galaxy s2
,
nexus 5 permission denied