Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,781 Members 48,667 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][XPOSED] Downloads2SD

Tip us?
 
egingell
Old
(Last edited by egingell; 19th June 2014 at 02:56 AM.)
#1  
egingell's Avatar
Senior Member - OP
Thanks Meter 1,398
Posts: 3,521
Join Date: Apr 2012

 
DONATE TO ME
Default [MOD][XPOSED] Downloads2SD

Click image for larger version

Name:	ic_launcher-web.png
Views:	1790
Size:	31.9 KB
ID:	2591830

Redirect several internal SD card locations to the external SD card.

This *only* works if the app uses Environment.getExternalStoragePublicDirectory(Stri ng), directly or indirectly, to get the location for the download. At present, it won't redirect app data (stuff in /data/data or /sdcard/Android), I may look into that later.

Apps this works with so far:
* /sdcard/Downloads - Chrome, Firefox (@an0n981, @zouhaier1).
* /sdcard/DCIM - Stock JB 4.2 Camera app.
* /sdcard/Pictures - Screenshot (@JamMasterClay).

Requirements
* [FRAMEWORK ONLY!] Xposed - ROM modding without modifying APKs

Screenshots
Click image for larger version

Name:	Screenshot_2014-02-21-00-34-59.jpg
Views:	4897
Size:	168.2 KB
ID:	2591828Click image for larger version

Name:	Screenshot_2014-02-21-00-46-28.jpg
Views:	3880
Size:	164.9 KB
ID:	2591829

Caveats
* Due to weird security measures that make no sense, this won't always work on KitKat.

Downloads
* Source: https://github.com/egingell/Downloads2SD

Version name: 1.0.8
Download: com.egingell.downloads2sd_v9_acf08f.apk (267.61 KB)
MD5 checksum: acf08f0476e9d1df8997feee1cd12c32
Changes: Using logcat instead of Xposed to log info (logcat | grep "Downloads2SD").

 

Version name: 1.0.7
Download: com.egingell.downloads2sd_v8_dcd0c1.apk (267.42 KB)
MD5 checksum: dcd0c152bc1fbf66e14bf3c2422d101e
Changes: Per @rovo89 and @GermainZ in the Xposed Framework thread, I have switched my hook up slightly. It is unlikely that you, the user, will notice a difference.

Version name: 1.0.2
Download: com.egingell.downloads2sd_v3_77e3e4.apk (264.94 KB)
MD5 checksum: 77e3e49aa80c9ffe968b18141fb19b61
Changes: Added a check to ensure the new destination is viable (e.g. not an unmounted/removed SD card).

Version name: 1.0.1
Download: com.egingell.downloads2sd_v2_63f388.apk (264.71 KB)
MD5 checksum: 63f3887beb333dd2ea6dff4a4577dd87
Changes: Graphical bug. Reboots may or may not be required for changes, but it never hurts to just reboot anyway.

Version name: 1.0
Download: com.egingell.downloads2sd_v1_803aac.apk (264.74 KB)
MD5 checksum: 803aac515c56cecc9fc6a39177f1e167
Changes: Initial commit.
* Phones: Samsung SGSII Epic 4G Touch; SGSIV
* ROM: Rooted Stock JB 4.1.2; Rooted Stock JB 4.2.2
* Kernel: Stock JB 4.1.2; Stock JB 4.2.2
* Enabled non-stock features: init.d, boot animations, boot splash; init.d, boot animations
* DPI: 200; 400



* UnToaster - Block Toasts by regular expressions.
* Downloads2SD - Redirect downloads.
* [TIPS][SCRIPTS][ROOT]egingell's scripts.
* My Droid Blog
* DropBox (2-18GB free).
The Following 19 Users Say Thank You to egingell For This Useful Post: [ Click to Expand ]
 
an0n981
Old
#2  
an0n981's Avatar
Senior Member
Thanks Meter 688
Posts: 990
Join Date: Jul 2013
Confirmed working with Firefox on Omni 4.4.2
The Following 2 Users Say Thank You to an0n981 For This Useful Post: [ Click to Expand ]
 
egingell
Old
#3  
egingell's Avatar
Senior Member - OP
Thanks Meter 1,398
Posts: 3,521
Join Date: Apr 2012

 
DONATE TO ME
Oy. Seems there's a weird bug on my GS4. Works flawlessly on my GS2.

The bug: Repeated listings on the app UI which are confusing to the mod making it not redirect as it should.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
* Phones: Samsung SGSII Epic 4G Touch; SGSIV
* ROM: Rooted Stock JB 4.1.2; Rooted Stock JB 4.2.2
* Kernel: Stock JB 4.1.2; Stock JB 4.2.2
* Enabled non-stock features: init.d, boot animations, boot splash; init.d, boot animations
* DPI: 200; 400



* UnToaster - Block Toasts by regular expressions.
* Downloads2SD - Redirect downloads.
* [TIPS][SCRIPTS][ROOT]egingell's scripts.
* My Droid Blog
* DropBox (2-18GB free).
 
zouhaier1
Old
#4  
zouhaier1's Avatar
Senior Member
Thanks Meter 293
Posts: 291
Join Date: Jun 2010
Location: sousse
Confirmed working with firefox on SM N9005 running x-note 10.0 leonardo edition. Thnx

sent from my rooted SM-N9005 running x-note 10.0 Leonardo Edition
The Following User Says Thank You to zouhaier1 For This Useful Post: [ Click to Expand ]
 
claytonjn
Old
#5  
claytonjn's Avatar
Senior Member
Thanks Meter 670
Posts: 1,353
Join Date: Nov 2011

 
DONATE TO ME
Just want to report that everything seems to be work here on 4.4.2. So far I tested taking a picture with stock camera and taking a screenshot with the native Android function.

Thanks!
Don't like this floating cascade icon that appears in some of your MultiWindow apps on your Galaxy Note 10.1?

Click here to change it!
The Following User Says Thank You to claytonjn For This Useful Post: [ Click to Expand ]
 
claytonjn
Old
#6  
claytonjn's Avatar
Senior Member
Thanks Meter 670
Posts: 1,353
Join Date: Nov 2011

 
DONATE TO ME
It does not work with downloading a picture in an MMS in Verizon Messages. No surprise there...I absolutely despise that app. Unfortunately since KitKat there's no way to have my messages sync between devices and use a different SMS client. Using the Verizon sync service works better than any 3rd party solution because messages go to Verizon before coming to the phone anyways so often times I'll get a message on my tablet before my phone. 3rd party solutions have to read the SMS database, monitor it for changes, and then forward messages to a separate server. Luckily I hardly ever text people anymore anyways, but I digress.

/rant
Don't like this floating cascade icon that appears in some of your MultiWindow apps on your Galaxy Note 10.1?

Click here to change it!
 
egingell
Old
#7  
egingell's Avatar
Senior Member - OP
Thanks Meter 1,398
Posts: 3,521
Join Date: Apr 2012

 
DONATE TO ME
Quote:
Originally Posted by JamMasterClay View Post
It does not work with downloading a picture in an MMS in Verizon Messages. No surprise there...I absolutely despise that app. Unfortunately since KitKat there's no way to have my messages sync between devices and use a different SMS client. Using the Verizon sync service works better than any 3rd party solution because messages go to Verizon before coming to the phone anyways so often times I'll get a message on my tablet before my phone. 3rd party solutions have to read the SMS database, monitor it for changes, and then forward messages to a separate server. Luckily I hardly ever text people anymore anyways, but I digress.

/rant
Does the Xposed log show "DOWNLOADS_PICTURES [OLD] => [NEW]", "DOWNLOADS_PICTURES [OLD] => null", or nothing?


Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
* Phones: Samsung SGSII Epic 4G Touch; SGSIV
* ROM: Rooted Stock JB 4.1.2; Rooted Stock JB 4.2.2
* Kernel: Stock JB 4.1.2; Stock JB 4.2.2
* Enabled non-stock features: init.d, boot animations, boot splash; init.d, boot animations
* DPI: 200; 400



* UnToaster - Block Toasts by regular expressions.
* Downloads2SD - Redirect downloads.
* [TIPS][SCRIPTS][ROOT]egingell's scripts.
* My Droid Blog
* DropBox (2-18GB free).
 
claytonjn
Old
#8  
claytonjn's Avatar
Senior Member
Thanks Meter 670
Posts: 1,353
Join Date: Nov 2011

 
DONATE TO ME
Quote:
Originally Posted by egingell View Post
Does the Xposed log show "DOWNLOADS_PICTURES [OLD] => [NEW]", "DOWNLOADS_PICTURES [OLD] => null", or nothing?


Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
Not a thing, sir.
Don't like this floating cascade icon that appears in some of your MultiWindow apps on your Galaxy Note 10.1?

Click here to change it!
 
egingell
Old
#9  
egingell's Avatar
Senior Member - OP
Thanks Meter 1,398
Posts: 3,521
Join Date: Apr 2012

 
DONATE TO ME
Bummer.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
* Phones: Samsung SGSII Epic 4G Touch; SGSIV
* ROM: Rooted Stock JB 4.1.2; Rooted Stock JB 4.2.2
* Kernel: Stock JB 4.1.2; Stock JB 4.2.2
* Enabled non-stock features: init.d, boot animations, boot splash; init.d, boot animations
* DPI: 200; 400



* UnToaster - Block Toasts by regular expressions.
* Downloads2SD - Redirect downloads.
* [TIPS][SCRIPTS][ROOT]egingell's scripts.
* My Droid Blog
* DropBox (2-18GB free).
 
JazzBlueWong
Old
#10  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Feb 2014
Location: HeShan
I hope that can be connected to a Bluetooth folder on the external SD card on the next update.

Tags
downloads, sdcard, xposed
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes