Get Your XDA 2015 Custom Avatar and Signature Images Here

As stated in our motto, XDA Developer is for developers, by developers. The … more

Pin Your Photos on Android Lollipop with Photo Pinner

In the last few weeks,we have been talking quite a bit about Android 5.0 Lollipop. This … more

Samsung Galaxy Note Edge Hands On – XDA TV

Perhaps one of the more peculiar announcements this year was the curved edge-screened … more

Nova Launcher Update Brings Lollipop Functionality and Feel

One of the most popular third party launcher on Android, Nova Launcher, has just … more
View Poll Results: Did it worked?
Yes 3 60.00%
No 2 40.00%
Voters: 5. You may not vote on this poll

Post Reply

How to fix the "invalid download uri" problem

OP ntn_labs

10th February 2014, 12:44 PM   |  #1  
ntn_labs's Avatar
OP Senior Member
Flag Orava
Thanks Meter: 165
 
408 posts
Join Date:Joined: May 2010
More
Hi

"Invalid download uri" is a bad ass error that is the biggest flaw (IMHO) You can encounter. Solutions are (as far as I can tell):
- cache clear
- factory reset

But for those, who did this and still have the same problem (or don't wanna try the factory reset) there might be some hope. (I was searching for solutions and found none like this, so I hope I don't duplicate someone's ideas)

I was fighting with this for a longer time and I guess I finally managed to fix it. I tried to clear cache, Google Store and Services, I even removed and reinstalled Google Play. But as logcat said, there was still problem with access to the file that was downloaded (something about JaveException:FileAccessInvalid - or something similar).

So, to make the long story short:
- connect phone
- adb shell
- cd /data/data/com.android.providers.downloads
- ls -al

There should be 4 directories:
- one of them (install) is a link (not visible in CM File Manager, but visible in shell)
- app_sslcache, cache, databases

Those three should have similar attributes (drwxrwx--x), in my case, cache had ony drwx--x--x.

So an easy fix: chmod 771 cache (You should be root) and voila, everything works (You don't need reboot or to stop google play or anything) and no more "invalid download uri".

Please, if You have this problem try this fix and if it works for You, let others know (maybe even in the comment section below)...

PS: It's not dangerous, but anyway... You do this at Your own risk.
Last edited by ntn_labs; 10th February 2014 at 12:47 PM.
The Following 4 Users Say Thank You to ntn_labs For This Useful Post: [ View ]
11th March 2014, 04:20 PM   |  #2  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jul 2013
It WORKED!
What a life saver, I was able to change the permissions through FX Root Explorer.

Thank YOU.
5th May 2014, 12:48 PM   |  #3  
Junior Member
Flag Atlanta
Thanks Meter: 0
 
1 posts
Join Date:Joined: Nov 2010
More
Thanks!!!
Old thread but throwing a thank you out there. Was having this issue after rooting my VZW M8 and this solved the problem. Thanks! I also shared this link over on AndroidForums.com as I found a similar thread with no solution while googling this issue.

So thanks!
14th May 2014, 08:20 PM   |  #4  
GeobMcFly's Avatar
Senior Member
Flag Paris
Thanks Meter: 21
 
316 posts
Join Date:Joined: Nov 2010
More
Thank you, for the inspiration, by looking at the logs, it was some permission pbl in com.android.vending and after some try, it was com.android.vending itself that was with bad permission.

771 on com.android.vending fix it for me!
3rd August 2014, 05:59 PM   |  #5  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Feb 2008
Hi, was reading your suggestion how to fix problem"invalid dowload url' problem, followed your guide but no luck.

You wrote:

There should be 4 directories:
- one of them (install) is a link (not visible in CM File Manager, but visible in shell)
- app_sslcache, cache, databases

I have galaxy S5, rooted, using root explorer(everything visible) and within data/data/androidproviders.downloads I have only 3 files.

cache,databeses and lib.

but in another directory data/data/com.android.vending I do have files you mentioned and some more.

All of my files as well directories have same set of permissions, which is

rwxrwx-x

I know you mentioned we should have drwxrwx--x and I don't know how to change it(if my permissions are wrong).


IF you can help pls I would appreciate.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-08-03-12-52-56 (Copy).png
Views:	175
Size:	99.6 KB
ID:	2882208   Click image for larger version

Name:	Screenshot_2014-08-03-12-53-19 (Copy).png
Views:	124
Size:	102.5 KB
ID:	2882210  
4th August 2014, 06:12 PM   |  #6  
ntn_labs's Avatar
OP Senior Member
Flag Orava
Thanks Meter: 165
 
408 posts
Join Date:Joined: May 2010
More
Quote:
Originally Posted by sweetmango

Hi, was reading your suggestion how to fix problem"invalid dowload url' problem, followed your guide but no luck.

You wrote:

There should be 4 directories:
- one of them (install) is a link (not visible in CM File Manager, but visible in shell)
- app_sslcache, cache, databases

I have galaxy S5, rooted, using root explorer(everything visible) and within data/data/androidproviders.downloads I have only 3 files.

cache,databeses and lib.

but in another directory data/data/com.android.vending I do have files you mentioned and some more.

All of my files as well directories have same set of permissions, which is

rwxrwx-x

I know you mentioned we should have drwxrwx--x and I don't know how to change it(if my permissions are wrong).


IF you can help pls I would appreciate.

Must be the "new" Android version... I don't have enough info to help You. the pesmissions are correct. That "d" in the beginning says it's a directory. After that there are rwx (means: Read, Write, eXecute) three times. These permissions are for Owner, Group and Others. That means the owner (the app that created this directory/file) should have full rights:rwx. He can read, write and execute the file/directory. Group is just a group of owners that can share some data. Like, You can put pictures into a directory and have all apps in group "viewers" access them. And then Others. Others are all other apps that are there. So basically drwxrwxrwx means anyone can do anything with that file/directory. drwx------ means only the owner has full access, all others cannot do anything. That's the permission system in linux/android in a really really fast lesson.

Now what You need to do is to find where S5 puts the things it downloads from App Store. Maybe You are missing that folder I have found. Dunno. Try to google it out and maybe someone can help You better. Or try to find it Yourself.

What I would do is to connect S5 with a cable to a PC, run adb shell logcat and then I would try to install something from the App Store. You will see all that crap that's going on and if there will be an error, You can see it, read it, think about it and solve it

Ot put it here and I will think for You
5th August 2014, 12:05 AM   |  #7  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Feb 2008
Smile "invalid dowload url' problem
Thank you very much for super fast response. BTW, besides this post about 'invalid dowload url' problem there is nothing on the net, not one single word. I resolved my issue with reseting my phone and everything is fine now(it was easy since I have back up of everything). Will re search more and let you know if find any answers. Anyway, was looking at permissions in same folder after reseting my phone and everything is same as before but works. Thank you again, for your effort.




Quote:
Originally Posted by ntn_labs

Must be the "new" Android version... I don't have enough info to help You. the pesmissions are correct. That "d" in the beginning says it's a directory. After that there are rwx (means: Read, Write, eXecute) three times. These permissions are for Owner, Group and Others. That means the owner (the app that created this directory/file) should have full rights:rwx. He can read, write and execute the file/directory. Group is just a group of owners that can share some data. Like, You can put pictures into a directory and have all apps in group "viewers" access them. And then Others. Others are all other apps that are there. So basically drwxrwxrwx means anyone can do anything with that file/directory. drwx------ means only the owner has full access, all others cannot do anything. That's the permission system in linux/android in a really really fast lesson.

Now what You need to do is to find where S5 puts the things it downloads from App Store. Maybe You are missing that folder I have found. Dunno. Try to google it out and maybe someone can help You better. Or try to find it Yourself.

What I would do is to connect S5 with a cable to a PC, run adb shell logcat and then I would try to install something from the App Store. You will see all that crap that's going on and if there will be an error, You can see it, read it, think about it and solve it

Ot put it here and I will think for You

Last edited by sweetmango; 5th August 2014 at 12:16 AM. Reason: Wrong post.
15th August 2014, 11:58 PM   |  #8  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Aug 2014
Try without an SD card in your device.
20th August 2014, 05:36 PM   |  #9  
dibblebill's Avatar
Senior Member
Flag Raleigh, NC
Thanks Meter: 656
 
1,328 posts
Join Date:Joined: Jun 2012
More
I don't have install in either place (com.android.provides.downloads or com.android.vending) on my PadFone X and keep running into this issue

EDIT: In my case it won't download the whole app.

EDIT: Downgrading Play Store fixed it!
Last edited by dibblebill; 20th August 2014 at 05:50 PM.
14th September 2014, 11:45 AM   |  #10  
s!13ntk!113r's Avatar
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Aug 2014
Thanks, it worked
I didn't try changing permissions but just cleared the Download Manager data and it did work

Post Reply Subscribe to Thread

Tags
google play invalid download uri
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank