D
D
Denis Kotlyarov2015-08-01 16:04:25
linux
Denis Kotlyarov, 2015-08-01 16:04:25

Linux, Bash, How to pass commands to another console and then close it?

How to pass commands to another console and then close it?
Here is an example:
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
chmod 644 "/system/app/Superuser.apk"
chmod 777 "/system/bin/su"
chmod 777 "/system/ xbin/su"
exit
exit
I write everything in bash
but for some reason I don't understand what commands are executed in the current bash but not in the adb shell console how can I fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vaut, 2015-08-01
@denisandroid

adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system;
adb shell chmod 644 "/system/app/Superuser.apk";
adb shell chmod 777 "/system/bin/su";
adb shell chmod 777 "/system/xbin/su";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question