Android Download Manager save to /system
<p>I'm just playing around with Android Studio and I'm trying to figure out how to Download a file into /system.</p>

<p>I understand I need root for this and I already got that part working, the only trouble I'm having is with </p>

<p><code>request.setDestinationInExternalPublicDir("/system/", "test.jpg");</code></p>

<p>The goal is to download a file and save it to /system with the file name being test.jpg.</p>

<p>So the end is the file is located at /system/test.jpg.</p>

<p>The issue with this is that DownloadManager is saving it to internal storage and is creating a new folder named 'system'.</p>

<p>I can tell it has something to do with <code>setDestinationInExternalPublicDir</code> but I'm just not sure what to change it to.</p>

<p>Thanks again</p>