How to enable adb shell resolution without shortening devices

I run the following commands from the command line at startup, showing that rejection is allowed, can someone explain how to grant permission, thanks u inadvance

C:\android\tools>adb push asl-native /data/local/asl-native
failed to copy 'asl-native' to '/data/local/asl-native': Permission denied
+5
source share
3 answers

You are not allowed to write data / data unless your phone is rooted and cannot start the adb shell as root.

Looking at the asl run script, you can change it to set it to a storm. I have not tested it, but it would look something like this:

# Install service
echo "Installing native service..."
$adb push ./asl-native /sdcard/asl-native
$adb shell /system/bin/chmod 0777 /sdcard/asl-native

# Start the service
echo "Starting service..."
$adb shell "/sdcard/asl-native /sdcard/asl-native.log" &
echo "Service started successfully."

Although I do not know if you are allowed to run chmod and make something executable. First you can try running chmod 0777 on your local machine.

+1
source

, ( shell) noexec .

0

Follow the comment [ankita] ( https://code.google.com/p/android-screenshot-library/wiki/UserGuide ): "It can work for a non-root device. Just change the whole path / data / local to / data / local / tmp in the run.bat file, then save and run it. " I tried and the problem was resolved.

0
source

All Articles