title: How to copy /data/data files to /sdcard?
body: <p>My APP need root privileges to do some analysis , so I write in my code as</p>
  
  <p>" <code>Runtime.getRuntime().exec("su");</code> " ,then write linux command or shell script into it.</p>
  
  <p>I tried to copy /data/data/packagename/databases/webview.db files to /sdcard/test (<strong>the source database files is all the app data files exists in my cellphone , though java code I can only get the file of my app itself</strong> ), </p>
  
  <p>and then do some analysis.But the trouble is ,the source files name are the same, if I use </p>
  
  <p>“<code>cp -r /data/data/*/webview.db  /sdcard/test</code>" </p>
  
  <p>there is always only one file in the target directory,I was not so good at linux shell </p>
  
  <p>command, so I want to know how to copy to the target directory and change the filename or just</p>
  
  <p>keep the source directory structure like /sdcard/test/package/webview.db . I'm Chinese and my</p>
  
  <p>English is not so well, hope you can understand it ,Thank you !</p>