Hello,
If you don't want the boring details of how I discovered the problem feel free to skip the next couple of paragraphs and go straight to the technical details.
I got my first Android phone (Motorola Defy) a couple of weeks ago and at first I was only using it with wifi because my data plan wasn't activated yet. While playing with it a little I realised that I saw a lot less ads than my boyfriend on his 6 month old Defy. I thougt it was weird but, well, seeing less ads is not a big problem.
Then when I got my data plan I saw that when I wasn't home I saw a lot more ads, so I began to suspect it had to do with how my phone was connected to the internet : wifi or 3G.
Next I wanted to try out Astrid and when I tried to log in using my Google account it failed repeatedly. Until I disabled wifi and it logged in fine using 3G.
Then I installed RTÉ DocOnOne to listen to documentaries while falling asleep. When wifi is enabled, it cannot start up because it can't connect (network timeout). Over 3G, no problem.
At first I thought it was my router blocking ports or something but it happens with different wifi APs and more importantly my boyfriend's phone, connected to the same access point, loads everything without a problem.
Let's sum up:
Some apps can't access the network using wifi but work fine when using 3G.
It happens regardless of the wifi AP (tried 4 different ones with different routers) and another phone using the same app connected to the same wifi AP can access the network just fine.
If I initiate the connection using 3G then switch to wifi (typically I launch the app with 3G, switch wifi on without closing the app), it still works after that (RTE DocOnOne has no pb streaming the documentaries once it has launched)
My phone is a Motorola Defy, French retail ROM, not rooted, no motoblur account (skipped the configuration), Froyo 2.2.2 (already on the phone when I got it), system version (if that means anything to you) Version.34.164.3.MB525.Retail.en.FR, kernel 2.6.32.9-g050ccf2, build 3.4.2-164
I can't give as much details about my boyfriend's phone (that doesn't have the problem) because he's not here right now but I can tell you that it is a Motorola Defy too, French retail (I think) ROM, Froyo updated from preinstalled Eclair (using the official Motorola update), not rooted, with a motoblur account
I have no idea if that's relevant or not, but my phone has the "google maps 5.7.0 crashes on Defy" issue (18446 in the android issue tracker) and my boyfriend's phone hasn't.
Has anyone encountered this issue before ? I couldn't find anything on this forum or with a google search.
Is there any tool I can use to try and find the cause of the problem ?
Thank you for reading all this, sorry if my message was long but I wanted to give as much detail as possible to help the nice people who may find what is wrong with my phone
I didn't read all..
but if your phone don't have problems then check this:
1. go to settings
2. Select "Location & security settings"
3. enable this "Use wireless networks" Location determined by WiFi and/or mobile networks
4. test does it work...
Hello manumanfred,
I did what you suggested (actually it was already checked) and the problem is still there (tried unchecking it too).
I am not sure why you suggested it, was that related to some phones having wifi problems in some countries ? I read a thread about that when I was researching my problem but it is different. In my case, wifi works most of the time, but some requests always time out.
Thanks for trying
Anyone else has an idea of something I could try ?
Anne-Laure said:
Hello manumanfred,
I did what you suggested (actually it was already checked) and the problem is still there (tried unchecking it too).
I am not sure why you suggested it, was that related to some phones having wifi problems in some countries ? I read a thread about that when I was researching my problem but it is different. In my case, wifi works most of the time, but some requests always time out.
Thanks for trying
Anyone else has an idea of something I could try ?
Click to expand...
Click to collapse
Hello, did you solve the issue?
I got my Nexus 4 today, and I've been pretty excited since.. So far, it's worked flawlessly everywhere except for when I need to download something from the play store.
Almost every download results in "Package File is Invalid"
I googled for hours, literally. I wiped data/cache of Google Play Store, Services Framework, wiped Cache from the stock recovery, and even factory resetted the phone to no avail.
I'm guessing it's a problem with my home's router setting. Everything works fine on my nexus except for the play store. Haven't gotten a chance to mess with other wifis yet, but can anyone tell me a way of fixing it?
If it doesn't work by tomorrow, I might run a custom ROM and try, though I really wanna stick with stock till 4.3/5.0 comes out :\
Any help?
Login to the Playstore from a PC and make sure your N4 is listed on your account. Also, try and install an app on your phone from there.
What happens if you try to install an app with Wi-Fi off (Mobile Data)? This could rule out an issue with your router or ISP.
SpookyTunes said:
What happens if you try to install an app with Wi-Fi off (Mobile Data)? This could rule out an issue with your router or ISP.
Click to expand...
Click to collapse
It works fine on 3G for me. It's not a ROM issue since I tried it on stock, PA, and now CM10.1.
However, very small apps download without issues. I think the cap is around 5 mb above which the error shows up.
I'm 100% sure it's my router's settings that seem to be working against the nexus. Any idea what I could do?
I absolutely LOVE the fluidity of this phone (coming from a single core phone running a buggy JB rom) but this is killing me!!
The worst thing is, all the workarounds that I've read about since yesterday work for few, but not all people. And there are lots of workarounds. I've tried all that I've read but nothing's working :\
fernandezhjr said:
Login to the Playstore from a PC and make sure your N4 is listed on your account. Also, try and install an app on your phone from there.
Click to expand...
Click to collapse
It is, just checked again, it's listed just fine.. I tried installing whatsapp through the play store on my pc but after it downloads the 10mb file on the phone, it gives this error again.
sixaxis94 said:
It works fine on 3G for me. It's not a ROM issue since I tried it on stock, PA, and now CM10.1.
However, very small apps download without issues. I think the cap is around 5 mb above which the error shows up.
I'm 100% sure it's my router's settings that seem to be working against the nexus. Any idea what I could do?
Click to expand...
Click to collapse
What router (Make / Model) is it?
Check for a router firmware update. If there are no updates or support, check if it is supported by DD-WRT.
Try doing a factory reset on the router, then set the security settings to (WPA2 only / AES only) and use the Android app WiFi Analyzer to find the best channel.
sixaxis94 said:
I got my Nexus 4 today, and I've been pretty excited since.. So far, it's worked flawlessly everywhere except for when I need to download something from the play store.
Almost every download results in "Package File is Invalid"
I googled for hours, literally. I wiped data/cache of Google Play Store, Services Framework, wiped Cache from the stock recovery, and even factory resetted the phone to no avail.
I'm guessing it's a problem with my home's router setting. Everything works fine on my nexus except for the play store. Haven't gotten a chance to mess with other wifis yet, but can anyone tell me a way of fixing it?
If it doesn't work by tomorrow, I might run a custom ROM and try, though I really wanna stick with stock till 4.3/5.0 comes out :\
Any help?
Click to expand...
Click to collapse
This is also whats happening to my phone..i have no problem downloading apps that are below 5mb but anything more is invalid..i think its the wifi here but i cant check through 3g cause there's no signal
Sent from my Nexus 4 using xda app-developers app
SpookyTunes said:
What router (Make / Model) is it?
Check for a router firmware update. If there are no updates or support, check if it is supported by DD-WRT.
Try doing a factory reset on the router, then set the security settings to (WPA2 only / AES only) and use the Android app WiFi Analyzer to find the best channel.
Click to expand...
Click to collapse
It's a DLink router.. No updates available
I reset it yesterday and put WPA2 but it hasn't solved the problem still :\
Wifi analyzer told me channel 6 onwards were good, so I tried 6 and 7 but didn't help either
I've had to download apk's for all the free apps to make it work as of now
I'll check with my mom and dad's phone to see if this problem exists for them too, but they're running gingerbread so idk if it'll mean much even if it works
sixaxis94 said:
It's a DLink router.. No updates available
I reset it yesterday and put WPA2 but it hasn't solved the problem still :\
Wifi analyzer told me channel 6 onwards were good, so I tried 6 and 7 but didn't help either
I've had to download apk's for all the free apps to make it work as of now
I'll check with my mom and dad's phone to see if this problem exists for them too, but they're running gingerbread so idk if it'll mean much even if it works
Click to expand...
Click to collapse
First I would return to stock ROM. A custom ROM could have it's own WiFi issues.
As for the router, the only other suggestions I can make are;
test it in unsecured mode (open Wi-Fi access)
force 802.11G (disable B and N access)
lower the MTU from 1500 to 1480
disable uPnP
disable (or enable) WMM support.
disable any content filtering (like blocking java, proxies, etc).
Changing these options one at a time and see if any one fixes your issue.
Use VPN
Has been occurring a lot lately. Well, not a fancy fix but a simple one ..... use hotspot shield to connect and then all files install normally over wifi. Don't know why it does, but it works!
I have had "package file is invalid" issues with my Nexus 4 and my home WiFi connection from day 1 of owning a Nexus 4. I have tested it on 4 different WiFi Routers with different firmwares including stock and DD-WRT.
- Linksys WRT320N Dual Band (With Stock and DD-WRT Firmware).
- Linksys WRT160N V3. (Stock and DD-WRT)
- Tenda N60. (Stock "2012-12-12 V1.0.0.16_EN" and newer variants).
- ASUS RT-N66U "Dark Knight".
Tested 2.4ghz and 5ghz, varrious combinations of WEP,WPA-PSK, WPA2-PSK, WPA2-AES. It makes no difference the ONLY router from the above 4 that works correctly when downloading over WiFi from the Play Store is the Tenda N60 using the early release stock firmware "2012-12-12 V1.0.0.16_EN" that the router is shipped with. Even with the Tenda N60 if yuo upgrade the firmware to newer releases of stock firmware it will cause the issue to return.
Now this is an issue specific to the Nexus 4, I also have a Nexus 7, Samsung Galaxy S3, HTC Desire, Huawei Ascend G300. None of these devices have this issue using any of the router or firmware revisions. i.e: I can download from Google Play over the same WiFi connection with no problems.
I have had my Nexus 4 swapped for a replacment and the issue remains. So I've come to the conclusion that it's defintiely device specific the Nexus 4 has something inherently wrong with it..whether it's WiFi Drivers, Android Kernel, WiFi Chipset I dont know.
It doesnt affect all WiFi conenctions I can use my WiFi connectiona t work and the issue doesnt occur. It's strange that the cheapest router of the 4 I ahve tested i.e: The Tenda N60 is the only one that works consitently, I have never seen the "package file is invalid" issue using this router and Tenda firmware "2012-12-12 V1.0.0.16_EN".
This basically rules out any ISP, or WiFi security settingas as I used the same SSID, Security types and Network Key on the Tenda as the other 3 routers..
Poor show by Google, they obviously dont care about fixing this issue.
So your router having an issue is a Google problem? Well done coming to that conclusion...
For what it's worth, I have no such issues with my home router (Thomson) or my work WiFi network (no idea what router we have here but it's probably a Linksys/Cisco jobby)
EddyOS said:
So your router having an issue is a Google problem? Well done coming to that conclusion...
For what it's worth, I have no such issues with my home router (Thomson) or my work WiFi network (no idea what router we have here but it's probably a Linksys/Cisco jobby)
Click to expand...
Click to collapse
Ermm...you might want to read that last post again, 4 different routers from different manufactuirers with different WiFi Chipsets (Linksys x 2, Tenda, ASUS) tested with stock and 3rd party firmwares all exhibit the same issue with the Nexus 4. Where as NO other android device or any other WiFi device on my network including a Nexus 7 with the same version android version as my Nexus 4 (4.2.2 ), connected via the same routers have any issues, even side by side downloading the same app from the Play store at the same time the others will suceed the Nexus 4 will fail the download "package file is invlalid" which sounds like a data corrption issue.
Co-incdecne thats it's only the Nexus 4 that has these issues ? I highly doubt 4 different routers are all faulty...especially since it's only the Nexus 4 that has this issue.
If you check the google code pages you'll find several other people complaining of the same issue.
gsmtechuk said:
Ermm...you might want to read that last post again, 4 different routers from different manufactuirers with different WiFi Chipsets (Linksys x 2, Tenda, ASUS) tested with stock and 3rd party firmwares all exhibit the same issue with the Nexus 4. Where as NO other android device or any other WiFi device on my network including a Nexus 7 with the same version android version as my Nexus 4 (4.2.2 ), connected via the same routers have any issues, even side by side downloading the same app from the Play store at the same time the others will suceed the Nexus 4 will fail the download "package file is invlalid" which sounds like a data corrption issue.
Co-incdecne thats it's only the Nexus 4 that has these issues ? I highly doubt 4 different routers are all faulty...especially since it's only the Nexus 4 that has this issue.
If you check the google code pages you'll find several other people complaining of the same issue.
Click to expand...
Click to collapse
All I'm saying is the 2 routers I use most have no issues and neither does the one my parents, my local pub or any of my friends. Might be a UK thing, I don't know, but I've never had a problem on WiFi at all...
EddyOS said:
All I'm saying is the 2 routers I use most have no issues and neither does the one my parents, my local pub or any of my friends. Might be a UK thing, I don't know, but I've never had a problem on WiFi at all...
Click to expand...
Click to collapse
I agree with that, maybe it's even a particular hardware batch of N4's, not sure. I can use my N4 fine on my work WiFi and other locations. Like I said it does work on my home WiFi if I use The Tenda N60 router with it's early release stock firmware, any firmware upgrades cause the problem to return though. But it cant be right that you should have to use a specific router and specific firmware which you cant upgrade without breaking the N4.
I've got another support case open with Google Play which they've apparently passed to their techs, lets see what they come back with... I have heard of someone with this issue using a custom ROM with a different Kernel to the Google stock build which includes newer Qualcomm Prima WiFi drivers (Paranoid Android) , they claim this fixes the issue for them.
Im relectant to flash a custom ROM and void warranty though for a basic feature that should work out of the box though.
I tried a lot of different things but nothing seems to have worked sadly.. I'm gonna update my ROM tomorrow to CM10RC4 and see if that helps, though I doubt it's the ROM's fault. Btw, I had the same issue with the stock ROM too
I've been having this problem whenever my portable wifi device connects to a slow mobile network. All my friends connect to my hotspot, but only my Nexus 4 gets the "Package file is invalid." error. For months, I've had to contend with switching to mobile data just to finish my downloads.
My only conclusion is that the Nexus 4 has a problem with slow connections over wifi by corrupting the data transmitted. It's fine when using mobile data.
Check this out:
http://forum.xda-developers.com/showthread.php?t=2300873
It requires the phone to be rooted. I'm already testing it out now.
I cant verify 100% yet but my Nexus 4 took the Android 4.3 OTA update yesterday. I have since tried several WiFi downloads over WiFI from the Google Play store and not a single one has failed !
So my intitial thoughts are that the Android 4.3 update has recolved this issue..and it was indeed a bug/fault in the previous versions maybe it's the new kernel, Qualcomm Prima WiFi drivers, New Google Play app... But whatever it is. It seems to have fixed the issue. Well done Google about time too !
The only down point is the denial of any issue their end from Google Play staff and blatant lies they tell customers about not knowing about such bugs.
gsmtechuk said:
I cant verify 100% yet but my Nexus 4 took the Android 4.3 OTA update yesterday. I have since tried several WiFi downloads over WiFI from the Google Play store and not a single one has failed !
So my intitial thoughts are that the Android 4.3 update has recolved this issue..and it was indeed a bug/fault in the previous versions maybe it's the new kernel, Qualcomm Prima WiFi drivers, New Google Play app... But whatever it is. It seems to have fixed the issue. Well done Google about time too !
The only down point is the denial of any issue their end from Google Play staff and blatant lies they tell customers about not knowing about such bugs.
Click to expand...
Click to collapse
Ironically, the 4.3 update on my Nexus 4 yesterday actually seemed to trigger the Package File is Invalid error, as it wasn't a problem before. MX Player and Jetpack Joyride are triggering this for me atm. Anyone else still have this on Android 4.3?
Several devices.....
Lutrinae said:
Ironically, the 4.3 update on my Nexus 4 yesterday actually seemed to trigger the Package File is Invalid error, as it wasn't a problem before. MX Player and Jetpack Joyride are triggering this for me atm. Anyone else still have this on Android 4.3?
Click to expand...
Click to collapse
Having the same issues on all of my devices, but only while trying to download on my home wi-fi. Like the OP said, anything over 5mb won't download. Droid Razr M, Droid Razr HD, Note 10.1, Tab 2 10.1, and Nexus 7 (running 4.3), I cannot figure out what changed on my Belkin router (AC900) to cause this to happen suddenly. It was just noticed last night, and I have spent hours today trying to find a fix, and creating more problems to fix. If anyone has any step by step instructions of how to fix this, please explain to me like you would a 6 year old. BTW, rooting is not an option of all of these devices, so please make it a root free option. And I have cleared all caches/datas and done all the force stops recommended, as well as removed the google accounts and readded them.