"Package File Is Invalid" - Neverending nightmare

Google Play Services are not included in the Gapps. You will only be able to download them once you are signed into your Google account and it is synced with your phone. Then they still won't be downloaded until needed (like trying to use YouTube app).
You still have not determined if you can actually install an apk thru ADB or not.
I'm going to install an apk to my phone using ADB. Then I will send you that in a zip with an MD5 sum generated so you can make sure it didn't become corrupted on downloading.
If it installs then we know everything is working properly and we can go from there.

EDIT: Here you go: http://www.mediafire.com/download/3qw1pja54ofvn25/apk's.zip
I added more info in a readme.txt
MD5sum: 90e96e85bf36cf4160ce41b01c7cd118

PS: If for some reason you already have the apk on your phone, delete from phone then try to install using ADB.
Also make double sure you completly deleted the Google Play Services from your phone.
One other thing: Have you tried going into the menu/settings/applications/all, then going to the PlayStore app and deleting all data (this will return you to a PlayStore app that has not been updated)?If you are then able to get into the PlayStore, move the dalvik cache to the sd card and reboot the phone. Then delete and re-install the YouTube app. Open up the YouTube app. It should then ask you to download the Goggle Play Services.

Sent from my LG-VM670 using AC Forums mobile app
 
Last edited:
Re: "Package File Is Invalid" - Neverending nightmare

I'm not blaming the ROM! It was one error, geez, don't make me feel any dumber than I already do!

I do have backups, they just don't seem to include the Google Play Services. The MyBackup doesn't have it listed, and the recovery backup files just have this:
http://i.imgur.com/uXK9RRl.png

There's one from July... do you think that one could come in handy somehow? I highly doubt it (it never occurred to me that this could be related) but it's worth a try.

If this doesn't do anything, I'm gonna reflash it and hope it works.

Here's a stress reliever - if all else fails - even IF you get any things-of-death, you can always start fresh from scratch.

I recommend the fresh start. It feels nice to have something fresh and clean. Again I can give you a guided walk-through - treat it as if it were my phone. I'm very thorough and careful.

---------
This is my signature. Without me, my signature is nothing. Without my signature, I am nothing.
 
Re: "Package File Is Invalid" - Neverending nightmare

Code:
C:\SDK\platform-tools>adb install com.antutu.ABenchMark_2.9.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
436 KB/s (2738693 bytes in 6.127s)
        pkg: /data/local/tmp/com.antutu.ABenchMark_2.9.apk
Success

C:\SDK\platform-tools>

:D it worked!

Google Play Services #1 FAILED - DEXOPT.
Google Play Services #2 FAILED - DEXOPT.
Google Play Services #3 FAILED - DEXOPT.

Is this possibly related to my need to rename the files because it displays a message saying "Can't find (845709-16).apk to install." In other words, it ignores the first half of the filename, so I have to change it so it recognizes the entire file.

I don't think I've wiped ALL my data for Google Play. I have clicked "Clear Data" but not "Uninstall Updates." Should I try the latter?

I also don't believe I have a YouTube app here... surprisingly, it didn't come with Gapps. Trying to install it from Google Play failed, of course.

Gonna try an APK from here:
com.google.android.youtube-5.0.21.apk | by Android Police for Generic Device

Code:
C:\SDK\platform-tools>adb install com.google.android.youtube-5.0.21.apk
422 KB/s (6887779 bytes in 15.924s)
        pkg: /data/local/tmp/com.google.android.youtube-5.0.21.apk
Failure [INSTALL_FAILED_DEXOPT]

C:\SDK\platform-tools>

It failed, of course. This file was not renamed, so I would THINK that the renaming of the earlier files had nothing to do with it.

Questions this time:
Should I try to Uninstall Updates from Google Play, effectively retconning it to Android Market?
Was the APK I downloaded (I got the link via Android Police) a good one?


This clearing of the updates may be my last-ditch effort here before reflashing, which MIGHT be a good idea considering my latest problem with the lock screen refusing to display after an app pops up over it once (Handcent SMS, my alarm clock, etc.). I know full well now not to make any stupid decisions xD

Thank you both for all your help - I think this is finally almost over.
 
Regarding SDK, I am of no possible help lol hope the nightmare ends today for ya =)

---------
This is my signature. Without me, my signature is nothing. Without my signature, I am nothing.
 
I just installed the 3.2.66.apk through ADB by doing this:
Right click the apk and choose to rename it. Only delete everything in the () and the ().
Open a terminal in the platform-tools folder where the apk is (don't cd into). Type in this:
Code:
mv[COLOR="#FF0000"][B]_[/B][/COLOR] (the full name of the .apk)[COLOR="#FF0000"][B][B]_[/B][/B][/COLOR]google_play_services.apk

Now type in that same terminal:
Code:
adb install google_play_services.apk
Took a little longer to install than most apk's but it did install it.

Don't type in the red _'s there just there to indicate where the spaces should be.
(the full name of the .apk) is the full name of the .apk after you renamed it with the right click option.
 
Last edited:
Code:
C:\SDK\platform-tools>mv com.google.android.gms_3.2.66.apk google_play_services.apk
'mv' is not recognized as an internal or external command,
operable program or batch file.

C:\SDK\platform-tools>adb install google_play_services.apk
can't find 'google_play_services.apk' to install

C:\SDK\platform-tools>

What the heck is this message? Why am I getting it? Did I make an error somewhere? I keep getting this message though... odd. Any insight would be appreciated! :)
 
Code:
C:\SDK\platform-tools>rename com.google.android.gms_3.2.66.apk google_play_servi
ces.apk

C:\SDK\platform-tools>adb install google_play_services.apk
1618 KB/s (8200316 bytes in 4.947s)
        pkg: /data/local/tmp/google_play_services.apk
Failure [INSTALL_FAILED_DEXOPT]

C:\SDK\platform-tools>adb install google_play_services.apk
1933 KB/s (8200316 bytes in 4.142s)
        pkg: /data/local/tmp/google_play_services.apk
Failure [INSTALL_FAILED_DEXOPT]

C:\SDK\platform-tools>

Didn't work. I note how the rates were different in each of my two attempts... and the /data/local/tmp/ thing kind of concerns me. Is this perhaps the issue? It renamed the file without a problem, but when extracting... it doesn't exactly work.

Anything to make of this would be appreciated!
 
Go to your recovery and wipe cache partition and dalvik cache.
Check in /data/app and make sure there is no google play services.
Check in /data/dalvik-cache
Check in /data/data
Check in /data/local/download and in /temp
Check in /data/user/0

Then try again.

Note: You never mentioned weather or not the terminal command worked to rename the apk.

Let me try to rename apk and install apk in Windows instead of Linux (Linux is so much better than Windows + no need for all that antivirus and malware junk).
 
Go to your recovery and wipe cache partition and dalvik cache.
Check in /data/app and make sure there is no google play services.
Check in /data/dalvik-cache
Check in /data/data
Check in /data/local/download and in /temp
Check in /data/user/0

Then try again.

Note: You never mentioned weather or not the terminal command worked to rename the apk.

Let me try to rename apk and install apk in Windows instead of Linux (Linux is so much better than Windows + no need for all that antivirus and malware junk).

If checking, aside from checking /data he could also check /system

---------
This is my signature. Without me, my signature is nothing. Without my signature, I am nothing.
 
What is gms by the way?
uploadfromtaptalk1381550578587.jpg
---------
This is my signature. Without me, my signature is nothing. Without my signature, I am nothing.
 
I'm pretty sure I said this:
"It renamed the file without a problem."

Sorry if that wasn't clear.

Anyway, I wiped the caches and...

No Google Play Services in /data/app.
In data/davlik-cache, I found a "com.google.android.gm-1.apk@classes.dex" is this it?
In data/data, there's a "com.google.android.gm" and a com.google.android.gms" - the former seems to be active, but the latter is empty.
In data/local, there is absolutely nothing.
In /system, I don't see anything...

And I think GMS is Google Play Services... and I have files of that sort still.

Thoughts on this development?
 
We have another problem:

rhHzT8q.png


Great. I make ONE mistake and my phone never stops giving me hell for it... Mr. Phone, could you forgive me? Please?
 
You need to change the /data/data folder from R/O to R/W (read only to read and write). Then you will be able to delete the file. When done change back to R/O.
If your file manager is a decent root file manager it will have the option somwhere in the settings.

PS: I deleted Google Play Services, then I ADB installed it in my Windows XP with no problem.
 
This is all confusing me. Here are some images of what I'm seeing:

UqVBJQE.png
ezeHO47.png


In the one on the left, I'm trying to change the properties for the /data/data path; I am confused by the options. The "UID" is changing a user ID to codes I don't understand. The "rwx" causes Total Commander to crash. The rest I get there.

The one on the right... Remount as Read Only? Does that mean it isn't? Or what? It may crash my phone too, for all I know - I got it by selecting the folder and ticking the far right box and the "RW" I think...

Any instructions here would help, because I am still Someone Very Confused! xD
 
Download "Root Browser" from the PlayStore. It is a whole lot easier to do everything with it. Give it a try. It will do the job.
When you first open it up say yes to downloading Busybox and etc. (even though you already have Busybox the app needs its own personal Busybox).
 
Could you try figuring out Total Commander instead? Because, well, I've run into a bit of a problem, you see...
gdDU7RO.png


No offense. I totally would try this one out, but it's not gonna install for me. I gotta figure this out with what I have, and all of the terminology is in binary to me. Any advice would be appreciated :)
 
Do you have any problems installing apps that are downloaded outside of Google Play? For example, googling the app name and version number and finding some blogspot that has a zippyshare link?

---------------------
Aspiring Android developer
 

Trending Posts

Forum statistics

Threads
957,010
Messages
6,971,026
Members
3,163,682
Latest member
bumded