Skip to main content
8 events
when toggle format what by license comment
Mar 21, 2021 at 10:55 comment added Monu Use single quote inside double quote, otherwise $1 will be interpreted as literal $1 instead of parameter value echo "echo 'mkdir /sdcard/data; cp -r $1 /sdcard/data; exit' | su; exit" | adb shell
Feb 18, 2020 at 16:38 comment added h0r53 @Emen $1 would be the first argument provided to the script, in this case it would be referring to a directory. So if that script was in a file called extractdir.sh you could call it with ./extractdir.sh /path/to/target/dir.
Feb 8, 2020 at 21:03 comment added Monu Use -r for copy Recursive subdirectories and files "cp -r /data/data /sdcard/data"
Oct 7, 2016 at 9:37 comment added emen May I ask what $1/* refers to? Is it the /data/data directory?
Nov 6, 2015 at 3:21 history edited Andrew T. CC BY-SA 3.0
formatting
Nov 5, 2015 at 18:54 review Late answers
Nov 5, 2015 at 19:15
Nov 5, 2015 at 18:44 review First posts
Nov 11, 2015 at 12:41
Nov 5, 2015 at 18:35 history answered Juan CC BY-SA 3.0