-
"Package File Is Invalid" - Neverending nightmare
It has come to my attention that Google put out a fix for this horrible error, and my best attempts to fix it have failed miserably.
Unfortunately, this time I did it to myself, since I uninstalled the Google Play Services to free up space, and... Google Play isn't updating now. Welp. My error.
I am trying to follow this solution, since it's a very similar situation, even down to the available space:
http://forums.androidcentral.com/vir...e-invalid.html
I just don't have a jerryscript, to my knowledge. I am running Mirage build GWK74 on a CyanogenMod 7.2; kernel version 2.6.32.9 on a V5 baseband. It's rooted, obviously, and I want it to stay that way. But with this problem, I don't know what to do - it's not letting me install anything that's over 1MB in size. I've managed to get several tiny apps, but the rest of them...
So that's the problem. I have the "Package File Is Invalid" error even for a 4.3.11 Google Play APK OR the Google Play Services APK - because Total Commander as well as another APK Installer both won't let me install the application. I have tried everything I could think of or find - wiping the dalvik cache in Recovery, trying to move it with the Cache Fixer app, attempting via 3G, trying to force an install via ADB... and nothing is working or even coming close to it.
I don't have Link2SD because of this very error and am trying to get it to fix it. I have Titanium Backup installed, but Root Uninstaller keeps getting the damn error.
From what I gather, there are only a few options left:
1) Put up with this until I can buy a new phone
2) Move as much data as possible to Titanium or the SD card and attempt a factory reset
3) ??????
Yeah... I'm hoping that "??????" works out for me. If you have any ideas, I would really appreciate them. Thank you in advance!
-
Re: "Package File Is Invalid" - Neverending nightmare
Have you tried going into your recovery and wiping the cache partition and the dalvik cache?
You might also need to wipe your thumbnail and tombstone cache.
Doing a factory reset by using the "wipe data/factory reset" option in the recovery would not be such a bad idea, but it will wipe all user data (The ROM will look just like it did when you first flashed it with nothing installed by you and no contacts).
First things first though. Do you have the phone in USB Debuging mode? Do you have the Java JDK and the Android SDK on your computer, with the path to the Android SDK's adb.exe in your computers environmental variables?
The reason I ask is the above will allow you to install apps using the adb.exe.
Simply plug in the phone to your computer (you have to have the LG USB drivers for the V installed first). Put the .apk into the platform-tools folder. Open up a terminal in that folder and type in:
Code:
adb install <full name of apk>
If you need a few .apk's I might have what you need already in my Root Uninstaller folder on my sd card. Could upload to my Box account for you to download.
Link2SD and more, including Root Uninstaller and AppTyrant- same Dev, but AppTyrant was developed for non-rooted phones (works well on rooted phones)
Let me know what you need.
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
AndyOpie150 Doing a factory reset by using the "wipe data/factory reset" option in the recovery would be a good idea.
First things first though. Do you have the phone in USB Debuging mode? Do you have the Java JDK and the Android SDK on your computer, with the path to the Android SDK's adb.exe in your computers environmental variables?
The reason I ask is the above will allow you to install apps using the adb.exe.
Simply plug in the phone to your computer (you have to have the LG USB drivers for the V installed first). Put the .apk into the platform-tools folder. Open up a terminal in that folder and type in:
Code:
adb install <full name of apk>
If you need a few .apk's I might have what you need already in my Root Uninstaller folder on my sd card. Could upload to my Box account for you to download.
Link2SD and more, including Root Uninstaller and AppTyrant- same Dev, but AppTyrant was developed for non-rooted phones (works well on rooted phones)
Let me know what you need.
USB Debug always.
I know I have the drivers, and I think I have the Java JDK installed from when I had my last issue. I know I have the SDK and have used ADB. There might be an issue with the way I was trying to force it? Hmm, the platform-tools folder... that might be what I was missing.
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Development\adt-bundle-windows-x86_64-20130522\sdk\platfo
rm-tools>adb install gp_services_3.2.25.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
1554 KB/s (7649893 bytes in 4.807s)
pkg: /data/local/tmp/gp_services_3.2.25.apk
Failure [INSTALL_FAILED_DEXOPT]
Code:
C:\Program Files (x86)\Development\adt-bundle-windows-x86_64-20130522\sdk\platfo
rm-tools>adb install -r google-play4_3_11.apk
1485 KB/s (6038575 bytes in 3.970s)
pkg: /data/local/tmp/google-play4_3_11.apk
Failure [INSTALL_FAILED_DEXOPT]
...that did not work. Is... something wrong with my phone? Was I not supposed to do the -r to overwrite Google Play itself? Should I put a list of the apps I have on it and whatnot or something so we can get to the bottom of this? Should I maybe try to uninstall the Google Play updates to make it vanilla Android Market? I'm running out of ideas that would avoid a factory reset. I don't wanna lose all the hard work I put in to rooting and hacking this - trust me, that was... quite the adventure.
And thanks, I appreciate your help - I might need some of those APKs later, provided I can find a way to install 'em. If forcing an install via ADB isn't going to work... what will?
(FYI: I gotta go for a few hours, but I will be back)
-
Re: "Package File Is Invalid" - Neverending nightmare
The exact full name of the Google Play services apk I have is:
com.google.android.gms_3.2.25(761454-12).apk
I'm not sure where you got your .apk from, but in order for you to install it from your computer you will need the one that's spelled out exactly like the one I have. This is the .apk you need to install from the computer. Anything else will not install from the computer using adb.
This is why I have Root Uninstaller. It's not the best uninstaller (Link2SD is the best), but it saves all downloaded .apks to a folder on the sd card. These are the .apks you can use with adb.
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
AndyOpie150 The exact full name of the Google Play services apk I have is:
com.google.android.gms_3.2.25(761454-12).apk
I'm not sure where you got your .apk from, but in order for you to install it from your computer you will need the one that's spelled out exactly like the one I have. This is the .apk you need to install from the computer. Anything else will not install from the computer using adb.
This is why I have Root Uninstaller. It's not the best uninstaller (Link2SD is the best), but it saves all downloaded .apks to a folder on the sd card. These are the .apks you can use with adb.
I believe this is the one I downloaded. I renamed the file due to not having any success - I thought that renaming could be a solution (it has been for other things in my experience). However, I didn't have a legit attempt with ADB - only one where I didn't know what I was doing - so no matter what, it's worth a try. I found one (it has a "3225112" in the middle, but otherwise is a match), so let's see...
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Development\adt-bundle-windows-x86_64-20130522\sdk\platfo
rm-tools>adb install com.google.android.gms-3225112-v3.2.25(761454-12).apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
757 KB/s (7439775 bytes in 9.586s)
pkg: /data/local/tmp/com.google.android.gms-3225112-v3.2.25(761454-12).a
pk
Failure [INSTALL_FAILED_DEXOPT]
.....................................................................................................................
This is so annoying. Am I doing something wrong here? Was that not the right APK? I'm so confused.
Based on your FAQ, I need Root Uninstaller to set up the partitions for Link2SD. I already have Link2SD installed, but it's not set up because it won't let me install Root Uninstaller.
As much as I want to avoid it, I am starting to think factory reset... unfortunately. But will that even help? Is there no other option? I had issues with my last Optimus V that I exchanged for this one... and this is getting old. :/
I appreciate all of your help regardless!
-
Re: "Package File Is Invalid" - Neverending nightmare
I know the version I have works on the LG Optimus V.
Let me upload to my box account so you can try it. If that one doesn't install, then you will need to do a factory reset (wipe data/factory reset) from the recovery, or just re-flash the ROM and Gapps.
EDIT. OK! Go here: https://app.box.com/s/0wmoymj4q10lgzqcvqce
md5 sum is in comment. Once you download check the md5 sum. If good unzip. The apk will be in the folder.
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
AndyOpie150 I know the version I have works on the LG Optimus V.
Let me upload to my box account so you can try it. If that one doesn't install, then you will need to do a factory reset (wipe data/factory reset) from the recovery, or just re-flash the ROM and Gapps.
EDIT. OK! Go here:
https://app.box.com/s/0wmoymj4q10lgzqcvqce
md5 sum is in comment. Once you download check the md5 sum. If good unzip. The apk will be in the folder.
Okay, here we go...
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Development\adt-bundle-windows-x86_64-20130522\sdk\platfo
rm-tools>adb install com.google.android.gms_3.2.25(761454-12).apk
868 KB/s (7439775 bytes in 8.365s)
pkg: /data/local/tmp/com.google.android.gms_3.2.25(761454-12).apk
Failure [INSTALL_FAILED_DEXOPT]
Ugh, this again. I'm getting sick of this.
So, I want to avoid a factory reset and losing all my data AGAIN after I've tried to get it back since my last phone incident (when I bought MyBackup because the SD card reader was broken and Titanium wouldn't work). Would reflashing the ROM and Gapps (perhaps a different Gapps than the 20110828 I have?) solve the problem and keep my data? Is there a way to flash the updated Google Play the way I'd flash Gapps? What about reflashing just Gapps?
I am hoping we can resolve this - thank you again for everything :)
-
Re: "Package File Is Invalid" - Neverending nightmare
Are you sure you have your adb set up properly?
When you open up a command prompt (don't open it in the platform-tools folder) and type in:
Do you get a serial number listed or a " command adb not found" or "device not listed"
There is now way to flash the Gapps without first wiping the ROM. If you just wipe the cache partition and dalvik cache (this is how you upgrade without loosing data) then install the Gapps, it won't be pretty. You will slowly start to have glitches and then fc's because you are installing a system app on top of an existing system app.
Do you have the Java 6 or the 7? You need the last version of the Java JDK ( jdk1.6.0_45) installed. Then you need to put the path to the java.exe into the environmental variables, but you need to put it into the "class path". Should be at the top of the list of choices in the environmental variables little scroll box.
Delete the old class path first. Then put in the new path.
Example:
"C:/Program Files/Java/jdk1.6.0_45/bin"
Make sure you put the " before and after.
You can find the jdk1.6.0_45 in Oracles Archives section. Just look for the one with the 45 on the end (it's not spelled quite the same on their site. Make sure you get the one for your computer. Mine is a 32 bit so I got the x86. If you have a 64 bit, then get the 64
EDIT: You could try and go to menu/settings/applications/all. pick the PlayStore app. Delete cache and data. This will take you back to the original app that you saw when you first flashed the ROM. What happens when you open up the YouTube App? Does it ask you to install Google Play Services?
In case you have a hard time tracking the JDK down: Java Archive Downloads - Java SE 6
You will need the Java SE Development Kit 6u45.
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
AndyOpie150 Are you sure you have your adb set up properly?
When you open up a command prompt (don't open it in the platform-tools folder) and type in:
Do you get a serial number listed or a " command adb not found" or "device not listed"
There is now way to flash the Gapps without first wiping the ROM. If you just wipe the cache partition and dalvik cache (this is how you upgrade without loosing data) then install the Gapps, it won't be pretty. You will slowly start to have glitches and then fc's because you are installing a system app on top of an existing system app.
Do you have the Java 6 or the 7? You need the last version of the Java JDK ( jdk1.6.0_45) installed. Then you need to put the path to the java.exe into the environmental variables, but you need to put it into the "class path". Should be at the top of the list of choices in the environmental variables little scroll box.
Delete the old class path first. Then put in the new path.
Example:
"C:/Program Files/Java/jdk1.6.0_45/bin"
Make sure you put the " before and after.
You can find the jdk1.6.0_45 in Oracles Archives section. Just look for the one with the 45 on the end (it's not spelled quite the same on their site. Make sure you get the one for your computer. Mine is a 32 bit so I got the x86. If you have a 64 bit, then get the 64
EDIT: You could try and go to menu/settings/applications/all. pick the PlayStore app. Delete cache and data. This will take you back to the original app that you saw when you first flashed the ROM. What happens when you open up the YouTube App? Does it ask you to install Google Play Services?
In case you have a hard time tracking the JDK down:
Java Archive Downloads - Java SE 6
You will need the Java SE Development Kit 6u45.
This is the one I installed - I'm running Windows 7 64-bit.:
Java SE Downloads
And this is where it seems to be and look like:
http://i.imgur.com/3L3EaEy.png
What's odd is that the exact same filepath exists in the Program Files (x86) directory... is that potentially an issue? Maybe I downloaded them both because one didn't work. I don't remember that detail.
It looks different than the one you linked me to, so I'll give that a whirl. Thank you!
As for the environment variables... I am confused. I don't see a "class path" in the scroll box - "ComSpec" is the top one. I do see a "PATH" that is set to this... confusing state of affairs:
Code:
C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\
Not changing that, doesn't seem right to. I found this:
PATH and CLASSPATH (The Java™ Tutorials > Essential Classes > The Platform Environment)
And it says Setting the CLASSPATH can be tricky and should be performed with care. This is concerning.
I executed the commands and got:
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\>echo %CLASSPATH%
%CLASSPATH%
C:\>
Which is an error by what's on the Oracle sheet.
With what I am gathering, I should create a new field called "CLASSPATH" and set it to the JDK 6. Because this should be handled with care, I need to make certain: Is this correct? I don't want to mess up my computer and go through further headaches.
I have deleted the cache and data of the Play Store multiple times. I don't have the YouTube app installed. It must not have come with the Gapps I had. Gmail, however, works perfectly fine with absolutely no issues, if that means anything. Should I try uninstalling the Google Play updates to take it back to Android Market? Or is that unnecessary?
Again, thank you for all your help - I appreciate it :)
-
Re: "Package File Is Invalid" - Neverending nightmare
I didn't see the path to the adb.exe in the "path"?
ADB wont work until this is set.
PS: I wouldn't have you do anything I haven't already done. I have an old Windows XP, I like it's simplicity and will not change, besides I usually do everything in my Xubuntu OS but most LG utilities wont run in a Linux OS, so I have to have a Windows OS (only 28GB partition). If it wasn't for that I wouldn't even have a Windows OS on the computer.
-
Re: "Package File Is Invalid" - Neverending nightmare
Wait. I am confused... aren't "CROSSPATH" and "PATH" different things? So... should I add the ADB path to the "PATH" stuff or create a new "CROSSPATH" one?
I don't really know Linux - this Android stuff is my first endeavor into that kind of thing, so I'm kind of a newbie at it. I appreciate all the help :)
-
Re: "Package File Is Invalid" - Neverending nightmare
You need to put it in the "path" to the adb.exe. Make sure you put a ; first. Then put in the path to the adb.exe.
Make sure you have USB Debugging turned on in your phones settings (menu/applications/development- check the box).
-
Re: "Package File Is Invalid" - Neverending nightmare
Okay, so I have this for Java:
C:\Program Files\Java\jdk1.6.0_45\bin
And this for ADB:
C:\Program Files (x86)\Development\adt-bundle-windows-x86_64-20130522\sdk\platform-tools
I am confusing myself, most likely, but which do I put where? Sorry, been a rough weekend.
-
Re: "Package File Is Invalid" - Neverending nightmare
You path to the adb.exe should look like this:
C:/SDK/platform-tools.
In other words, the SDK folder should be on the root of the C: drive.
If not, it needs to be put there.
If you want, delete every instance of that one and try this one: https://app.box.com/s/stqwz15yr4qgmcrj257h
I've added a readme text to help with the install and setting the path.
Try the EnvSET first. This is designed to set the path for you.
Doesn't work all the time, if not you will then need to input the path manually.
-
Re: "Package File Is Invalid" - Neverending nightmare
Okay, many apologies for the delay. I've had to deal with an ear infection and some malware on my computer. Life sure doesn't like me right now...
I moved the SDK folder and set the path to that manually (the C:\SDK\platform-tools\ in the environmental variables, I mean). I tried downloading your SDK, but got one of these:
http://www.biztechday.com/wp-content...-Bandwidth.PNG
Which means that's a dead option for now :/
I tried to fire up ADB:
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\sdk\platform-tools>adb
Android Debug Bridge version 1.0.31
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <specific device> - directs command to the device or emulator with
the given
serial number or qualifier. Overrides ANDROID_S
ERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices [-l] - list all connected devices
('-l' will also list device qualifiers)
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number
is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number
is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devic
es.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --
iv <hex-encoded iv>] <file>
- push this package file to the device and instal
l it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
('-s' means install on SD card instead of inter
nal storage)
('--algo', '--key', and '--iv' mean the file is
encrypted already)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosy
stem] [<packages...>]
- write an archive of the device's data to <file>
.
If no -f option is supplied then the data is wr
itten
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks
themselves
in the archive; the default is noapk.)
(-shared|-noshared enable/disable backup of the
device's
shared storage / SD card contents; the defau
lt is noshared.)
(-all means to back up all installed applicatio
ns)
(-system|-nosystem toggles whether -all automat
ically includes
system applications; the default is to inclu
de system apps)
(<packages...> is the list of applications to b
e backed up. If
the -all or -shared flags are passed, then t
he package
list is optional. Applications explicitly g
iven on the
command line will be included even if -nosys
tem would
ordinarily cause them to be omitted.)
adb restore <file> - restore device contents from the <file> backup
archive
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be u
pdated.
- If it is "system" or "data", only the corresponding partition
is updated.
environmental variables:
ADB_TRACE - Print debug information. A comma separated list
of the following values
1 or all, adb, sockets, packets, rwx, usb, sync
, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes prior
ity over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these de
bug tags are printed.
If anything looks out of place there, let me know.
When trying to install the Google Play...
Code:
C:\sdk\platform-tools>adb install google-play4_3_11.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: device not found
- waiting for device -
Obviously, that didn't go well.
I moved the "eclipse" file and the "SDK Manager" and it didn't even start the daemon... same goes for when I remove the path.
What the hell just happened? I am even MORE lost right now... :(
-
Re: "Package File Is Invalid" - Neverending nightmare
You are overthinking everthing.
Plug in phone to computer. Open a terminal and type in:
If it spits out a serial number for your phone its all good. If it's all good:
Open a terminal in the platform-tools folder and type in the install code.
Google how to open a terminal in a folder for your specific OS. It varies depending on your Windows version. It has to be done right to work. My XP requires I right click the actual folder. When I had Vista I had to right click in the folder.
If it's not all good, let me know.
Make sure you have USB debugging checked and Unknown sources checked on the phone. These are very important as well.
I'll check to see why I'm out of bandwidth. Might need another file hosting site.
Edit: Just downloaded the SDK with no problems. I'll see if another member can download.
EDIT to Edit: They got the same message as you.
Will have to move everything over to MediaFire in the next couple of days.
Sent from my LG-VM670 using AC Forums mobile app
-
Re: "Package File Is Invalid" - Neverending nightmare
I guess overthinking is just my forte... xD
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
c:\sdk\platform-tools>adb devices
List of devices attached
c:\sdk\platform-tools>
Yuck. Same thing comes up if I run as an administrator. I'm using the Command Prompt that came with Windows 7. I tried Windows PowerShell but it didn't work with ADB.
...I am lost once again. Not all seems to be good :/
-
Re: "Package File Is Invalid" - Neverending nightmare
Quit overthinking. Lol.
Just open a command prompt anywhere and type in Tell me if you get a serial number or not.
Then we'll work on the next thing.
Without the proper info It makes it hard for me to help.
Sent from my LG-VM670 using AC Forums mobile app
-
Re: "Package File Is Invalid" - Neverending nightmare
It didn't spit out a serial number. That's what the code box was above - it spit out NOTHING. Sorry if that wasn't clear.
Maybe I should try my other cable...
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
c:\sdk\platform-tools>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
c:\sdk\platform-tools>
No serial number there, either. :/
I am also getting this error now when I update apps instead of "Package File is Invalid," if that means anything:
http://i.imgur.com/eJirHNB.png
-
Re: "Package File Is Invalid" - Neverending nightmare
If it didn't spit out a serial number, then your Android SDK is not set up properly. That's why you can't install an app from the platform-tools folder using the Android Debug Bridge.
I sure wish you would answer just the questions asked. It would save us a lot of time.
Let me see about getting you the SDK I have which already has all the right stuff (just extract to C:/), plus a readme.txt to help you get the path set properly.
Next Questions: Do you have the ADB Debugging box checked on the phone? Do you have Unknown Sources checked as well (depending on the ROM it could be in the application or security section)?
-
Re: "Package File Is Invalid" - Neverending nightmare
Understood, I'll try to be more detailed.
I have USB Debugging on - the "Allow Android debugging" option is checked. I presume that's the same as "USB Debugging." And Unknown Sources is checked.
"ADB over network" is NOT checked. "Debugging notify" is. "Allow mock locations" is checked too. I think everything is in order, unless I'm missing something... which I very well might be.
-
Re: "Package File Is Invalid" - Neverending nightmare
You need to see if you have a root option in the developer section that gives you options as to what you allow root access to. If you do have it, make sure you check the "apps and adb" option.
I'm trying to get a total TouchWhiz 5.0 look to a couple of ROMs (ICS and Jellybean). I'm an over thinker as well, so I spend a lot of time running around in circles until I finally get tired, then I start to really get things done. I'll try to remember to get the SDK folder I have uploaded to Medifire today. I haven't forgotten.
-
Re: "Package File Is Invalid" - Neverending nightmare
I found the "Apps and ADB" thing in my Superuser app. It was set to that already. That's the only place I know of where I can set root access.
As for my "Developer" screen:
http://i.imgur.com/bsmzi6S.png
Only thing not showing on that screenshot is the device hostname.
And take your time! My phone still functions - I just want some new apps, but it's not like life or death for those.
-
Re: "Package File Is Invalid" - Neverending nightmare
OK. Working on getting a new file hosting site to allow for the TouchWhiz Modded ROM (I ended up using the SlimRom as the host) and all the other stuff I have posted.
-
Re: "Package File Is Invalid" - Neverending nightmare
Okie Dokie. Here you go: SDK
MD5 sum: 18db64cc4d1145288296f025900154ee
-
Re: "Package File Is Invalid" - Neverending nightmare
Okay, that is definitely not the same one I had on here. I don't think my other one even had an ENVset. I deleted that one and installed the one above. Thanks :)
I ran ENVset and it seemed to work right (it had a long list of the environmental variables in a command prompt), then rebooted the computer. Here's what adb devices spit out:
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
c:\SDK\platform-tools>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
c:\SDK\platform-tools>
Once again, no serial number. I tried in two different USB ports I checked the Environmental variables, and C:\SDK\platform-tools\ is at the end of it.
I'm still completely lost as to what's going on here. Is my phone possibly bugged? I still appreciate all the help you're giving me regardless - thanks much! Hoping I can find out what's wrong here... else I'll have to do a factory reset :/
-
Re: "Package File Is Invalid" - Neverending nightmare
Try deleting the LG USB drivers and re-installing, Make sure the phone is not plugged in. Reboot right after install, then plug in phone after it fully reboots to complete install.
After the drivers complete install try and open a command prompt (Do not cd to the platform-tools folder, or anywhere elese) and type in:
Don't show serial number in post, just let me know if it listed it.
Sent from my LG-VM670 using AC Forums mobile app
-
Re: "Package File Is Invalid" - Neverending nightmare
Woah. I got a number! HEY! :D
It matches my MEID, too! Finally some progress!
So... what next? I want precise instructions instead of messing it up on my own. Like... where do I install things from? Is that even the next step? I appreciate all your help :)
-
Re: "Package File Is Invalid" - Neverending nightmare
Alllriight!
Plug phone into computer (Make sure USB debugging is checked).
Open a command prompt in the platform-tools folder. Do not cd to it, it needs to be opened in the folder (Right click the folder to see if option is there, if not open folder and right click empty spot).
Then type in:
Code:
adb install (exact and full name of apk)
Sent from my LG-VM670 using AC Forums mobile app
-
Re: "Package File Is Invalid" - Neverending nightmare
It's shift+right click to get the command window open, so it at least works. I tried the Google Play Services first (which I had to rename because if the filename has a space, it doesn't work) and:
Code:
C:\SDK\platform-tools>adb install com.google.android.gms_3.2.25-(761454-12).apk
887 KB/s (7439775 bytes in 8.183s)
pkg: /data/local/tmp/com.google.android.gms_3.2.25-(761454-12).apk
Failure [INSTALL_FAILED_DEXOPT]
C:\SDK\platform-tools>
The Google Play APK:
Code:
C:\SDK\platform-tools>adb install com.android.vending-4.3.11.apk
2559 KB/s (6038575 bytes in 2.304s)
pkg: /data/local/tmp/com.android.vending-4.3.11.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
C:\SDK\platform-tools>
Neither worked for different reasons. I haven't changed my settings at all, so USB debugging was enabled. And the phone was plugged in before the Command Prompt was opened. I don't know what "Dexopt" means at all and apparently I can't update Google Play to a more recent version... should I uninstall updates and try again, or is that potentially disastrous?
I'm kind of at a loss of what to do at this point :/
-
Re: "Package File Is Invalid" - Neverending nightmare
Try installing something you don't have on your phone. Let me see what I got handy. How about bz.ktk.clipbot_1.2.apk, do you have that are not?
We need to see if it will install an apk, then go from there.
-
Re: "Package File Is Invalid" - Neverending nightmare
I don't think I have a Clipbot program... I don't have Google Play Services, either, though, but some data from its initial install may still be there.
I can try to find an APK or two as well and try it. The more I try, the better. Might want to try some of different sizes, too.
EDIT: I tried a Root Uninstaller apk via opening a command prompt right from the window, and... well:
Code:
C:\SDK\platform-tools>adb install Root-Uninstaller-Pro-v3.3.apk
714 KB/s (1532351 bytes in 2.093s)
pkg: /data/local/tmp/Root-Uninstaller-Pro-v3.3.apk
Failure [INSTALL_FAILED_DEXOPT]
C:\SDK\platform-tools>
It also occurred to me to check adb devices in that window, and it worked. I'm not sure what the issue is, then...
-
Re: "Package File Is Invalid" - Neverending nightmare
Where did you get the apk's from?
Do you want me to send you clipbot?
Sent from my VM670 using Android Central Forums
-
Re: "Package File Is Invalid" - Neverending nightmare
Hmm. This frequently happened to me on the backside-iho rom but when I upgraded to mirage due to a comment by AndyOpie it never happened again.
Now my phone works better than ever before.
---------
This is my signature. Without me, my signature is nothing. Without my signature, I am nothing.
-
Re: "Package File Is Invalid" - Neverending nightmare
After Nandroid backup, and SD backup to computer (right after nan) I flashed 4 things in ZenGarden Touch Recovery -
Kernel that came from the MiRaGe post, then MiRaGe cm7.2, then gapps for 2.3.5/2.3.7 from the link in the MiRaGe post, then lastly the entropy tool that AndyOpie150 suggested.
I've yet to find a single problem and I'm pretty thorough about these things. Then again I read your baseband is ZV5? Mine is ZV4. I rely on wifi only though and have no clue if it'll make a difference.
I can surely go step by step with you if you want to try my exact results...
---------
This is my signature. Without me, my signature is nothing. Without my signature, I am nothing.
-
Re: "Package File Is Invalid" - Neverending nightmare
And this is how I'm doing so far @ 95 apps.

---------
This is my signature. Without me, my signature is nothing. Without my signature, I am nothing.
-
Re: "Package File Is Invalid" - Neverending nightmare
Hmm, thanks for the tips here, first of all :)
Yes, I have a ZV5 baseband. Not sure if that makes a difference for this or not. It could for all I know.
I am pretty sure that the Gapps I installed was the one from the Mirage post. I could be wrong, but the ZIP I have is the 20110828 one. I have the most recent Mirage build and kernel as well, so I don't think that's the problem. The problem could be in my baseband... is there any way to change that to a ZV4?
And I'm not sure which entropy tool you're talking about... my head is going in circles with this that it's all becoming a blur to me.
AndyOpie, if you could send me that APK, I'd appreciate it. It's worth a try :)
Thanks to both of you! Sorry to keep you waiting again...
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
SomeoneVeryConfused I'm not sure which entropy tool you're talking about... my head is going in circles with this that it's all becoming a blur to me.
It was mentioned by AndyOpie150. He can tell you the name... I had to Google it. The gapps you have is correct by the way. The only difference I see is the baseband...
If you figure it all out I can teach you loads about Link2SD it's a godsend! Hope things work out.
---------
This is my signature. Without me, my signature is nothing. Without my signature, I am nothing.
-
Re: "Package File Is Invalid" - Neverending nightmare
I also have a tutorial on how to properly set up the SD partition and Link2SD.
"The entropy_n_rngd-tool"
For MiRaGe ROM use the entropy.zip which is in the first post of the thread with the same name as above.
Makes the ROM smoother and faster feeling.
No, you can't change your baseband from ZV5 to ZV4.
The ZV4 phones use the Novatek screen and drivers.
The ZV5 phones use the Hitachi screen and drivers (with the exception of the first few ZV5 phones which still used the Novatek screen and drivers).
This means if you try to downgrade you will get the "Blackscreen of Death"
All your problems where caused by you, not the ROM.
I'm not quite sure everything you have done or not done (from the ROM pre-installation wipe and format up to when you deleted Google play services), but rest assured, it is not the baseband or the ROM.
Personally: Just go to recovery and wipe and format everything but the SD card. Then re-flash the ROM and the 20110828 Gapps.
This time, once you have everything setup just how you like it, with all your apps just where you want them, make a backup before deleting anything.
Sent from my LG-VM670 using AC Forums mobile app
-
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:

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.
-
Re: "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/3q.../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
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
SomeoneVeryConfused 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.
-
Re: "Package File Is Invalid" - Neverending nightmare
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.
-
Re: "Package File Is Invalid" - Neverending nightmare
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_ (the full name of the .apk)_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.
-
Re: "Package File Is Invalid" - Neverending nightmare
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! :)
-
Re: "Package File Is Invalid" - Neverending nightmare
Sorry. mv is a linux command (Silly rabbit, Trix are for kids).
Replace mv with rename.
-
Re: "Package File Is Invalid" - Neverending nightmare
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!
-
Re: "Package File Is Invalid" - Neverending nightmare
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).
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
AndyOpie150 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.
-
1 Attachment(s)
Re: "Package File Is Invalid" - Neverending nightmare
What is gms by the way?
Attachment 86053
---------
This is my signature. Without me, my signature is nothing. Without my signature, I am nothing.
-
Re: "Package File Is Invalid" - Neverending nightmare
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?
-
Re: "Package File Is Invalid" - Neverending nightmare
The gms is Google Play Services. Try deleting that one. Then try installing again thru ADB.
-
Re: "Package File Is Invalid" - Neverending nightmare
We have another problem:

Great. I make ONE mistake and my phone never stops giving me hell for it... Mr. Phone, could you forgive me? Please?
-
Re: "Package File Is Invalid" - Neverending nightmare
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.
-
Re: "Package File Is Invalid" - Neverending nightmare
This is all confusing me. Here are some images of what I'm seeing:

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
-
Re: "Package File Is Invalid" - Neverending nightmare
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).
-
Re: "Package File Is Invalid" - Neverending nightmare
Could you try figuring out Total Commander instead? Because, well, I've run into a bit of a problem, you see...

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 :)
-
Re: "Package File Is Invalid" - Neverending nightmare
I'm pretty sure you can find the root browser apk on Google
Sent from my LG-VM670 using Tapatalk now Free
-
Re: "Package File Is Invalid" - Neverending nightmare
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
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
SomeoneVeryConfused
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 :)
Doh! Sorry about that. Wasn't thinking.
Let me upload the Root Browser.apk to my Mediafire account so you can install with ADB.
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
_alexkta I'm pretty sure you can find the root browser apk on Google
Originally Posted by
damiandownfall 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?
Believe me, I've tried. It doesn't work. I've tried to access APKs on my SD card via Total Commander (a root file explorer) and it won't let me install them. It just won't - it says "Application not installed" after. I don't know what the issue is. At all. I've tried via play.google.com as well as the app, and nothing's worked except ADB.
Originally Posted by
AndyOpie150 Doh! Sorry about that. Wasn't thinking.
Let me upload the Root Browser.apk to my Mediafire account so you can install with ADB.
Don't worry about it! It happens to me too xD
And thank you :)
-
Re: "Package File Is Invalid" - Neverending nightmare
-
Re: "Package File Is Invalid" - Neverending nightmare
I bet you'll be very excited and relieved when this nightmare ends. In fact, keep in touch with me and I'll teach you all about Link2SD and it's excellent bliss it bestows upon the OV and all the apps you'll be able to get.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Code:
C:\SDK\platform-tools>adb install com.jrummy.root.browserfree_2.2.3.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
355 KB/s (2540690 bytes in 6.973s)
pkg: /data/local/tmp/com.jrummy.root.browserfree_2.2.3.apk
Failure [INSTALL_FAILED_DEXOPT]
C:\SDK\platform-tools>
It didn't work. I restarted my computer and everything, and it still didn't work. Was the Antutu thing a fluke? Weird... why would that work but this wouldn't? It's absolutely baffling... I wanna know if I'm doing something wrong, too... urgh.
-
Re: "Package File Is Invalid" - Neverending nightmare
Google "dexopt failed".
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Do you have Superuser? Are you granting your current file browser superuser permission? Have you tried the "fix permissions" option in your custom recovery?
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
damiandownfall Google "dexopt failed".
I get a bunch of technical mumbo-jumbo that I barely even comprehend. Which... really doesn't help, unfortunately :/
Originally Posted by
damiandownfall Do you have Superuser? Are you granting your current file browser superuser permission? Have you tried the "fix permissions" option in your custom recovery?
Yes, yes, and, uh, no.
Trying that now. Took a bit to find it, but I did.
My recovery is Cannibal Open Touch 2.1, just so you know.
...this is taking forever. Oh, good, it's done. Let's see...
Well my phone is definitely acting weird after that. Might be completely borked. I can't open apps, my settings are reset, I am getting random "application has closed unexpectedly" popups. and nothing's even trying to update anymore, making my phone completely impossible to use.
Looks like I'm going to have to buy a new phone or reflash now. Thanks.
-
Re: "Package File Is Invalid" - Neverending nightmare
Also I'm an ***** and forgot to backup before that, so I am resetting everything I've done to the backup from a month ago... ugh. Go me </wrists>
-
Re: "Package File Is Invalid" - Neverending nightmare
The "fix permissions" option in the recovery will bork a phone every time.
The only way to safely fix permissions is to open up a terminal and type in:
Well...
If you still have the MiRaGe ROM and the 20110828 Gapps on the SD card flash em. If not put them there and flash em.
Start from scratch.
Make sure you do not (I repeat) restore system data or apps that are already included in the system.
You should only be restoring apps that are not already included and app data.
When you sign into your Google account (I usually just wait and open up the PlayStore, which allows you to sign in from there), it will restore your contacts.
PS: Check out this thread: http://forums.androidcentral.com/lg-...ml#post3098301
-
Re: "Package File Is Invalid" - Neverending nightmare
How do I avoid backing up the apps already in the system? Titanium?
I will tend to the reflash tomorrow. I just don't want to mess it up. I'll look into that thread when I'm not tired xD
I appreciate all your help - I will keep you posted on developments :)
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
SomeoneVeryConfused How do I avoid backing up the apps already in the system? Titanium?
I will tend to the reflash tomorrow. I just don't want to mess it up. I'll look into that thread when I'm not tired xD
If you want a fresh clean sparkly start, I will guide you through every step. I have 4 files for you to flash, and I will make sure your SD card is backed up on the computer.
The trick is to backup your SD card *after* making a nandroid backup.
Trust me, you'll be fine starting over. I used to do it all the time - now the process is second nature to me.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
I'm ready.
I want to save my app data, like my save files on the games I waste time with and some settings and whatnot. Should my first step be a Nandroid backup?
I'd also like to keep the files I have - particularly the Mirage ROM and the Cannibal OT recovery. I can try a new Gapps file though!
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
SomeoneVeryConfused I'm ready.
I want to save my app data, like my save files on the games I waste time with and some settings and whatnot. Should my first step be a Nandroid backup?
I'd also like to keep the files I have - particularly the Mirage ROM and the Cannibal OT recovery. I can try a new Gapps file though!
Okay - first things first - you're going to backup your phone via making a nandroid backup.
Then - you're going to copy and paste ALL of your SD card onto your computer (by then this will include your nandroid because it's stored on the SD card)
Oh and I had COT too but to start fresh onto MiRaGe, AndyOpie150 recommended ZenGarden to make sure you have ext4 as your SD card partition.
---------------------
Android enthusiast
-
1 Attachment(s)
Re: "Package File Is Invalid" - Neverending nightmare
*edited* see my next post.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
SomeoneVeryConfused How do I avoid backing up the apps already in the system? Titanium?
Backing up all apps and data (weather user or system) and system data is a very good idea (You never know when you might accidently delete something vital). This is done with Titanium Backup.
The thing you have to remember is system data or apps for one ROM might?will be different for another. If system data or apps from another ROM are restored it will corrupt the new ROM.
When you restore from Titanium Backup you only want to restore your missing apps and your missing apps data.
You can do this two ways. The best way is to go to the Backup/Restore tab. Select the "click to edit filters" option. Go to "filter by type".
You have "All", "User", "System" and "Uninst." Uncheck the "System" box (the "All" circle will go blank). Now Go up to the top of the screen. Right hand side. Next to "CLEAR" is a check mark. Select the checkmark. Back out to the Backup/Restore menu.
Now restore your apps and only the app data for apps you really need the data for (example: app and data for my password app, app and data for Note Everything, just app for Android System Info. just app for Barcode Scanner).
The other way is if you have the Pro key. Hit the Menu key. Go to the "Batch Actions". Scroll down till you see the "Restore" options. Go to "restore all missing apps and data". When you select it you have to uncheck everything you don't want to restore, then select the check mark in the upper right hand corner. This will restore all apps and app data though, which is why I don't use it. It will cause a low space warning to come up in the task bar which you will now have to deal with.
I have an old computer that doesn't have an SD card slot, so I went to WalMart and bought a Card Reader.
I always keep a backup of the contents of the sd card on the computer or another USB flash drive or SD card.
You can either unmount the card in the phones storage setting, then pull and insert into computer or go to the pull down on the phone and select to transfer data from there. When it shows up on the computer highlight everything and then just drag and drop into a folder on the computer.
If it doesn't give you a popup window in a minute or so go to: Start/Computer. Click on the drive letter of the sd card (or the SD card Icon if displayed).
-
Re: "Package File Is Invalid" - Neverending nightmare
Read above AndyOpie150's post to see step 1 of my fresh clean MiRaGe flash.
Trust me I'm gonna have you setup perfectly =) I've learned just how to make the absolute most out of our phone. In a nutshell you're gonna be (AFTER my step 1 above) emptying out your phone, flashing ZenGarden, the MiRaGe kernel, MiRaGe, gapps and the entropy tool, then we'll be sifting through your settings for optimal performance and to better suit Link2SD. The reason you're flashing ZenGarden is to redo your SD card partition to make sure it's ext4.
*at the store, I'll be right back here later on just have patience*
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Okay I'm back, tell me when you're done.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
To fix the invalid package issue for good install CacheDownload2SD https://forums.androidcentral.com/e?...token=bFINQB8Y
It does require a rooted device.
Since I installed it I have not had anymore issues with invalid packages.
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
SomeoneVeryConfused I'm ready.
I want to save my app data, like my save files on the games I waste time with and some settings and whatnot. Should my first step be a Nandroid backup?
I'd also like to keep the files I have - particularly the Mirage ROM and the Cannibal OT recovery. I can try a new Gapps file though!
Step 1: Make sure you have a nandroid backup (first) and have moved everything from the SD card to the computer (after nandroid).
Step 2: Since you have the SD card backed up on your computer, you can now safely remove everything from it, leaving the SD card blank.
Step 3: Download this zip folder and extract it to your blank SD card. (it should be a folder with 5 zip folders in it, marked 0 through 4 - https://db.tt/b8MfKLNu
Step 4: While in Cannibal Open Touch Recovery, flash the 0 zip. This is ZenGarden Touch Recovery. After successfully flashing 0, reboot into recovery again. Now you should be using ZenGarden.
Step 5: While in ZenGarden, wipe everything out of your phone (except your SD card of course) including cache and dalvik.
Step 6: Flash the 1, 2, 3 and 4 zips in order. 2 should take the longest.
Step 7: After successfully flashing all 4, find the option to create a new SD card partition. Make the partition size at LEAST a gig and a half. I chose 3 gigs. Make swap = 0. Next choose "ext4" as type (important).
Step 8: After successfully partitioned, reboot your phone and wait for the phone to completely boot and start up.
------------
Welcome to MiRaGe. Deal with all your settings however you like, however, this is an important setting -
Make sure that the default install location of apps is selected "internal".
Go download Link2SD asap! Choose "ext4" then reboot your phone. Then go to Link2SD's settings. Make sure auto-link is checked, and re-link at boot is checked.
Enjoy! Download "Theme Chooser Themes" from Google Play, and play with some themes. My favorite is the most popular Jelly Bean theme for MDPI, CM7. Note that the ICS theme makes checkboxes in browsers invisible (it's really really annoying) so go for Jelly Bean then reboot your phone to let it take full effect. Remember that your phone is MDPI - CM7.
MiRaGe comes with Holo Launcher and it will accompany your Jelly Bean Theme for a pretty identical JB look.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
To damiandownfall:
Step 7: After successfully flashing all 4, find the option to create a new SD card partition. Make the partition size at LEAST a gig and a half. I chose 3 gigs.
First let me go on record as saying that making a 3GB partition is A. Hard on the phone, and B. really hard on the SD card and will lead to failure of the SD card way before it's time.
Although you may think this is working great right now, it is very bad in the long run for both the phone and the SD card.
The rule of thumb is never use more than 20% of the actual space available on the SD card for the partition. You need at least a 1GB partition in order for Link2SD to work properly.
The smaller the partition the better it is for the phone. If you have less than a hundred apps linked with Link2SD then a 1GB partition is great. Anything over 100 apps linked and you will need to consider making a 1.5GB partition.
To damiandownfall:
Go download Link2SD asap! Choose "ext4" then reboot your phone. Then go to Link2SD's settings. Make sure auto-link is checked, and re-link at boot is checked.
If SomeoneVeryConfused has any widget apps or apps that need to access the system functions like volumes and such, then they need to go on the internal storage. If linked with Link2SD they will not function properly or fail. Only choose the Auto Link function in Link2SD settings after those have been installed.
To SomeoneVeryConfused:
Step 5 can be accomplished by going to the wipe option in ZenGarden and selecting each option once.
In the BobZohme modified ClockworkMod VM670NH_recovery.img or the CWMT Recovery_5.0.2.7-th7_thunderc.img or the Xionia recovery
Wipe:
wipe data/factory reset
cache partition
dalvik cache (found in the advanced section)
Format:
(in the mounts and storage section)
format boot
format cache
format data
format system
format sd ext (if you have a partition on the sd card)
The ZenGarden recovery is great for making the SD card partition and converting the partition from ext.3 to ext.4. It does have a problem flashing things like the entropy.zip and might not even flash the kernel. Also: You can not use it to flash the ZV9 update or it will cause a bricked phone.
It would be best to use the ZenGarden recovery to make the partition and change it to ext.4, then flash the BobZohme VM670NH_recovery img which is the best at doing everything including flashing the ZV9 update without bricking the phone, flashing the entropy.zip, and the MiRaGe kernel.
It can be found here: VM670NH_recovery
You can also use the CWMT Recovery 5.0.2.7-th7 which has the touch screen controls, but you can't use it to flash the ZV9 update. It can be found here: http://forums.androidcentral.com/opt...ml#post1634762
Use the second link.
I usually use the CWMT and keep the Xionia recovery in it's zipped form in case I need to get out of a recovery loop (I have a ZV4 V). The Xionia recovery is also safe to use when flashing the ZV9 update. Xionia can be found here: http://forums.androidcentral.com/opt...ml#post1200365
Look at the bottom of the first post. You will see an attachment, that's the one.
If you have a ZV5 V then the zipped version of the COT would be the best bet for getting out of a recovery loop. I can't find a download link anywhere. I think damiandownfall will need to help with that one.
To damiandownfall:
The rest of your advice is really good including the use of the MiRaGe build that is in you zip. It is the best MiRaGe mrg666 has developed.
To SomeoneVeryConfused:
Note: For the best battery off charge times and the best overall performance, use the Interactive governor and set the CPU speed at min 480MHz-max 768MHz.
-
Re: "Package File Is Invalid" - Neverending nightmare
Widgets never fail on me. And I know that 3 gigs was kinda unnecessary but now I have it...
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
True though, widgets usually failed when I had the backside-iho rom.
And I've never been past 769mb on my partition so yeah 1 to 1.5gb should do quite nicely.
But now I have 3gb of partition and I don't know if I wanna go through the trouble of re-partitioning it and moving apps around thus possibly screwing something up.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Do you have a Linux OS or just a Windows OS.
I have both. In my Linux OS I can see all the contents of my ext.4 partition. This also means I can copy paste the contents to a folder on the computer. See where I'm going with this?
You should even be able to set up a Linux virtual machine on the Windows OS and accomplish the same thing.
Once you are done re-partitioning the SD card and formatting to the ext.4 format, you should be able to copy/paste everything back into new partition.
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
AndyOpie150 Do you have a Linux OS or just a Windows OS.
I have both. In my Linux OS I can see all the contents of my ext.4 partition. This also means I can copy paste the contents to a folder on the computer. See where I'm going with this?
You should even be able to set up a Linux virtual machine on the Windows OS and accomplish the same thing.
Once you are done re-partitioning the SD card and formatting to the ext.4 format, you should be able to copy/paste everything back into new partition.
Uh. I can see everything and I have Windows just using a simple folder view.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Sorry for the delay. I went out with my family today and was unable to do much.
I have some catching up to do, it seems. That, and a headache... still :/
Originally Posted by
FLDataTeK Didn't work. I was hoping this would work and I wouldn't have anything to worry about after I finished reflashing. I'm gonna do that no matter what.
I tried multiple combinations of checkboxes and hoped those would work. It has root access but it's not doing anything...
Anyway...
Everything is all backed up. Titanium and Nandroid anyway. I'll transfer things to my PC tomorrow and go from there.
Anyway, I have a ZV5 baseband and Windows 7. No Linux. Too complex for me.
So... what's my best option for a recovery? I can't make heads or tails of this entire discussion... it's confusing me in my rather congested, dizzy-from-seeing-Gravity state... :/
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
SomeoneVeryConfused Sorry for the delay. I went out with my family today and was unable to do much.
I have some catching up to do, it seems. That, and a headache... still :/
Didn't work. I was hoping this would work and I wouldn't have anything to worry about after I finished reflashing. I'm gonna do that no matter what.
I tried multiple combinations of checkboxes and hoped those would work. It has root access but it's not doing anything...
Anyway...
Everything is all backed up. Titanium and Nandroid anyway. I'll transfer things to my PC tomorrow and go from there.
Anyway, I have a ZV5 baseband and Windows 7. No Linux. Too complex for me.
So... what's my best option for a recovery? I can't make heads or tails of this entire discussion... it's confusing me in my rather congested, dizzy-from-seeing-Gravity state... :/
Go to my post that has multiple steps. Except when I say "at least a gig and a half" change that to "either a gig or 1.5 gigs".
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Read through my post several times where I discuss the Recovery.
The ZenGarden will help you make the partition and then convert that ext.3 partition to the much needed ext.4. I have found that is is not very good at flashing patches and sometimes even kernels, so look at the other options I mentioned once you have your partition made and reformatted to ext.4 with the ZenGarden.
-
Re: "Package File Is Invalid" - Neverending nightmare
After yet another misfortune, this time with my mouse... I'm here.
Titanium has been run.
Re-nandroiding...
Backing up to computer...
Downloading Damian's ZIP...
Putting Damian's ZIP on my wiped 2GB SD card (why erase my good 8GB one if I don't have to?)...
Flashing 0 ZIP...
Reboot recovery...
I am in ZenGarden. It's giving me a message here...
"No app2sd partition found. Skipping format of /sd-ext."
I presume this is okay for now, because I will be partitioning later. So here I go to flashing! 1 was fast, 2 didn't take as long as I thought, 3 was incredibly quick, 4 was just as fast.
The Partition Manager in ZenGarden here has a "More than a Gig and a Half" option. Okay, I need to remount the SD card I'm using... welp, I guess this was my mistake. God, I'm an ***** sometimes... *fingers crossed*
Creating 1638M ext4 partition on the 8GB SD I swapped out and rebooted into... welp.
Okay, that seems to have worked. I hope I didn't blow it again by not thinking this one through all the way with the whole SD card swappage thing... I hate myself sometimes.
Boot screens look the same as before.
Okay this is definitely a clean install.
And it seems like the partition thing screwed me over because I didn't back up enough to my computer in my hastiness to get this over with. BOO.
Oh wells, it's not a big deal. I've been in this situation before, and I can live through it again. Titanium can at least help. Link2SD first... after the "Internal" thing, which is done.
I'll be back once I get apps and whatnot back in place... and my battery charged. Hoping for the best after all this drama!
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
SomeoneVeryConfused After yet another misfortune, this time with my mouse... I'm here.
Titanium has been run.
Re-nandroiding...
Backing up to computer...
Downloading Damian's ZIP...
Putting Damian's ZIP on my wiped 2GB SD card (why erase my good 8GB one if I don't have to?)...
Flashing 0 ZIP...
Reboot recovery...
I am in ZenGarden. It's giving me a message here...
"No app2sd partition found. Skipping format of /sd-ext."
I presume this is okay for now, because I will be partitioning later. So here I go to flashing! 1 was fast, 2 didn't take as long as I thought, 3 was incredibly quick, 4 was just as fast.
The Partition Manager in ZenGarden here has a "More than a Gig and a Half" option. Okay, I need to remount the SD card I'm using... welp, I guess this was my mistake. God, I'm an ***** sometimes... *fingers crossed*
Creating 1638M ext4 partition on the 8GB SD I swapped out and rebooted into... welp.
Okay, that seems to have worked. I hope I didn't blow it again by not thinking this one through all the way with the whole SD card swappage thing... I hate myself sometimes.
Boot screens look the same as before.
Okay this is definitely a clean install.
And it seems like the partition thing screwed me over because I didn't back up enough to my computer in my hastiness to get this over with. BOO.
Oh wells, it's not a big deal. I've been in this situation before, and I can live through it again. Titanium can at least help. Link2SD first... after the "Internal" thing, which is done.
I'll be back once I get apps and whatnot back in place... and my battery charged. Hoping for the best after all this drama!
Sounds great so far. Once Link2SD starts auto linking and you get the settings you want on the phone, everything will be a breeze.
There's a great tutorial on how to get the most out of Link2SD right on the developer's website... Lemme grab that link here...
Here it is. http://www.link2sd.info/faq
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Please read this Guide over several times and pay attention to all the details. Link2SD A Tutorial-New and Updated
This will explain that you need at least an 8GB SD card and why.
-
Re: "Package File Is Invalid" - Neverending nightmare
Oh and don't forget to check out my official website for future updates. I'll be covering everything Android that I can including tips and tricks, photography, hacks, reviews and etc.
www.damiandownfall.com
You can add me on the social networks page.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
damiandownfall Oh and don't forget to check out my official website for future updates. I'll be covering everything Android that I can including tips and tricks, photography, hacks, reviews and etc.
Damian Downfall
You can add me on the social networks page.
---------------------
Android enthusiast
Question: Do you have/or ever had, an LG Optimus V?
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
AndyOpie150 Question: Do you have/or ever had, an LG Optimus V?
Yes? That's why I am pretty much only seen in this part of AC. Also I said I was running MiRaGe on it. Trying to win an LG G2 then I probably won't be in this part again but that's beside the point.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
I must have missed that. Brain dead (Actually brain to old). Sorry about that.
You link lead to a LG G2 discussion site you created. Nothing about the V. My brain jumped to conclusions.
Sorry. I'm a little on the defensive since your bad advice about the fix permissions thru the recovery ruined all my patient hard work to resolve the OPs problem, without having to flash a new ROM. I'm kinda expecting for you to post more bad info which might do more harm than good.
Please don't take offense, I've been helping people fix their V's for over two years because I genuinely care. I've seen a lot of well meaning, but way bad advice posted that usually does more harm than good, solely due to inexperience on the part of the poster. Kinda of figured you for the later, so I've been on high alert.
Posted via Android Central App
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
AndyOpie150 I must have missed that. Brain dead (Actually brain to old). Sorry about that.
You link lead to a LG G2 discussion site you created. Nothing about the V. My brain jumped to conclusions.
Sorry. I'm a little on the defensive since your bad advice about the fix permissions thru the recovery ruined all my patient hard work to resolve the OPs problem, without having to flash a new ROM. I'm kinda expecting for you to post more bad info which might do more harm than good.
Please don't take offense, I've been helping people fix their V's for over two years because I genuinely care. I've seen a lot of well meaning, but way bad advice posted that usually does more harm than good, solely due to inexperience on the part of the poster. Kinda of figured you for the later, so I've been on high alert.
Posted via Android Central App
you should see on xda, because the powers that be put the optimus one and v together in discussion forum, people are always suggesting solutions that'll work on the o1 but brick the v with it's incompatible chipset.
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
AndyOpie150 I must have missed that. Brain dead (Actually brain to old). Sorry about that.
You link lead to a LG G2 discussion site you created. Nothing about the V. My brain jumped to conclusions.
Sorry. I'm a little on the defensive since your bad advice about the fix permissions thru the recovery ruined all my patient hard work to resolve the OPs problem, without having to flash a new ROM. I'm kinda expecting for you to post more bad info which might do more harm than good.
Please don't take offense, I've been helping people fix their V's for over two years because I genuinely care. I've seen a lot of well meaning, but way bad advice posted that usually does more harm than good, solely due to inexperience on the part of the poster. Kinda of figured you for the later, so I've been on high alert.
Posted via Android Central App
Well I've had the OV for 2 years and have learned a lot from it.
About the fix permissions thing - I've never had to use it, so that explains the lack of knowledge on that part but I'm really intelligent so yes I've noticed your little act on trying to grab the attention of the OP more than I have.
I gave advice that came originally from you by the way in another post in another thread. So your story there only applies to one single suggestion that the OP didn’t even perform.
It's not an LG G2 discussion site, it's a site that has just been started. Just so happens that I entered the LG G2 contest at the same time. Also, the site doesn't revolve around our one phone it will be meant for the entire Android community and so will my Android service that I plan to unveil in a month or so.
You had no way of knowing this so it's not your fault. Would've appreciated a private message first though before deciding to call me out in public based solely on my one to one person advice here.
But yeah my advice originally came from you.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
My site will make a lot more sense AFTER I release my service.
Like the blog of the creator of Minecraft, I shall have a blog for myself that will be the "creator's blog" for my service.
High alert. Lol that's actually really really funny. I'm usually the person everyone goes to just not on here. Guess this is competition. Haven't had any competition in a while.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
All in all, guards being up was expected, I was hoping to start my "helping others with the ov" here on AC.
Oh and my site is also in the middle of a revision stage. I'm fixing to speed up the loading time for PC and give the site a different look for both PC and mobile versions.
---------------------
Android enthusiast
-
Re: "Package File Is Invalid" - Neverending nightmare
Originally Posted by
bigsupersquid you should see on xda, because the powers that be put the optimus one and v together in discussion forum, people are always suggesting solutions that'll work on the o1 but brick the v with it's incompatible chipset.
I know, that was a very big fiasco indeed!