XenonHD Unofficial AOSP-based ROM for Find 7a

XDA Recognized Contributor uppon2 & Team Horizon are bringing the Oppo … more

Sunshine Compatible with HTC One M9

Two Senior Recognized Developers jcase and beaups officially released a new version of Sunshine. … more

CyanogenMod 12.1 for YU Yureka

YU Yureka recently received an official Cyanogen OS 12S update. If you prefer to use a newer revision of … more

Open War for Open Android: Antitrust for Cyanogen?

Android and openness is something we talk about all the time, but the recent … more
Post Reply Subscribe to Thread Email Thread

[MOD][XPOSED] Downloads2SD

21st February 2014, 07:53 AM |#1  
egingell's Avatar
OP Senior Member
Thanks Meter: 1,663
 
3,956 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Click image for larger version

Name:	ic_launcher-web.png
Views:	6024
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:	9902
Size:	168.2 KB
ID:	2591828Click image for larger version

Name:	Screenshot_2014-02-21-00-46-28.jpg
Views:	8643
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.
Last edited by egingell; 19th June 2014 at 02:56 AM.
The Following 23 Users Say Thank You to egingell For This Useful Post: [ View ]
 
 
21st February 2014, 08:50 AM |#2  
an0n981's Avatar
Senior Member
Thanks Meter: 765
 
1,083 posts
Join Date:Joined: Jul 2013
More
Confirmed working with Firefox on Omni 4.4.2
The Following 2 Users Say Thank You to an0n981 For This Useful Post: [ View ]
21st February 2014, 09:32 AM |#3  
egingell's Avatar
OP Senior Member
Thanks Meter: 1,663
 
3,956 posts
Join Date:Joined: Apr 2012
Donate to Me
More
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
21st February 2014, 10:24 AM |#4  
zouhaier1's Avatar
Senior Member
Flag sousse
Thanks Meter: 518
 
438 posts
Join Date:Joined: Jun 2010
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: [ View ]
21st February 2014, 04:16 PM |#5  
claytonjn's Avatar
Senior Member
Thanks Meter: 799
 
1,493 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Thumbs up
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!
The Following User Says Thank You to claytonjn For This Useful Post: [ View ]
21st February 2014, 06:46 PM |#6  
claytonjn's Avatar
Senior Member
Thanks Meter: 799
 
1,493 posts
Join Date:Joined: Nov 2011
Donate to Me
More
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
21st February 2014, 09:20 PM |#7  
egingell's Avatar
OP Senior Member
Thanks Meter: 1,663
 
3,956 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Quote:
Originally Posted by JamMasterClay

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
21st February 2014, 11:11 PM |#8  
claytonjn's Avatar
Senior Member
Thanks Meter: 799
 
1,493 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Quote:
Originally Posted by egingell

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.
21st February 2014, 11:17 PM |#9  
egingell's Avatar
OP Senior Member
Thanks Meter: 1,663
 
3,956 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Bummer.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
23rd February 2014, 08:08 AM |#10  
Junior Member
Flag HeShan
Thanks Meter: 0
 
1 posts
Join Date:Joined: Feb 2014
More
I hope that can be connected to a Bluetooth folder on the external SD card on the next update.
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes