2013-02-28

Android Package File is Invalid

How to: "Android Package File is Invalid" message when attempting to install or update an app on the play store.  These steps worked temporarily on my device, but only worked for one or two installations.  

Later, even with no other changes, applications began to install properly.  It may be the PlayStore was having problems during this time and perhaps the best action would have been to wait a day or two.  I am unclear on this. 

Temporary Steps:

These steps temporarily allowed me to install applications.

1.  In Settings, Apps, select tabbed-item "Downloaded (apps)"
     Scroll down and locate "Google Play Store"; click to open

2.  In the list, about half-way down, click "Clear Cache".
3.  Click "Force Stop"

4.  From a PC or other workstation (or from your phone's browser), open
     "https://play.google.com/store"

5.  Scroll to bottom of screen; click "My Orders and Settings"
     Click the Settings Tab
     Give each "My Device" a Nickname by clicking the Edit link.
     Confirm "Show in Menus" is checked.
     Click "Update"  for each line-item changed.
     (These are probably good things to do anyway, for other reasons)

6.  From the phone, re-launch the App Store and attempt your update.

This resolved the problem on my phone.  If this fails, consider the following, which has reportedly also worked:

A.  In Settings, Apps, Select tabbed-item "Downloaded (apps)"
B.  Uninstall Updates and Clear Data and Cache.
C.  Re-install PlayStore Updates and try again

I noted in my testing on my phone, a hard-reboot of the phone fixed the problem one-time, but it re-occurred.


Not Recommended:
The blogosphere also has these geeky comments, should the above steps also fail.  I have tried these, but failed to find the file /etc/inet.d.  And one of the steps, "rebooting into 'recovery' (implying Rooting the phone) is a scary.  In any case, this is of some interest and may aid in further research and with this said, I am not recommending these ideas. 

Using app-store app "es File Explorer File Manager"
If you have troubles installing due to "Package File Invalid", repeat the steps above and attempt the install again.  You should be able to install at least one app at a time.

Launch "es File Explorer"
Press and hold the task-switcher button; this brings up the menu
Click Settings
File Settings, "[x] Show Hidden Files

Open folder /etc/init.d
Locate and delete file  01dalvik
From the Settings menus, Manage applications,  Erase cache and data from the Google Play/Android Market App. 
Then reboot into recovery (unclear on what this step implies)
Wipe dalvik cache, then wipe cache.
It will take a while for the phone to boot.


2013-02-06

Boot from CD on Dell 15Z with UEFI

How to:  Boot a Dell Inspiron 15z with UEFI Secure Boot.  Booting from CD / DVD instead of the hard disk with American Megatrends BIOS, Aptio Setup Utility.


Symptom: 
Using a known, bootable CD / DVD, the machine will not boot from CD and only boots from the hard drive.  The CD is ignored during boot
In the BIOS, it appears you can change the boot order, but the order does not take effect.


Problem:

Newer machines have a new style of motherboard/disk interface called UEFI.   A Unified Extensible Firmware Interface allows the BIOS to interact with larger hard drives and adds security to the Master Boot Record via a signed Certificate.  This keeps RootKits from infecting the boot device.  This works hand-in-hand with Windows 8.  Other capabilities can be found in this Wikipedia article

With the new UEFI Secure Boot, you cannot boot with an un-signed CD.  Vendor bootable disks, such as Acronis's Recovery Disks must be signed (certificates) by the vendor before they can be used on a Windows 8 machine (see below).

You can boot from a legacy CD by making the following changes to BIOS.  These changes should be considered temporary and you should return the BIOS settings to their Secure Boot mode when done. 

Important notes:
With these BIOS changes, be aware you can boot from a legacy (unsigned) CD/DVD, but the C: drive will not be available.

If you need to boot from a CD/DVD *and* you need to access the C: drive, then you must get a signed, bootable CD.  If you have made your own PXE bootable disk, getting a signature from Microsoft is beyond the scope of this article.

Legacy Boot Solution:
Changing Boot Order

See important note, above.
These instructions were written using a DELL 15Z laptop with a secure-boot bios, American Megatrends BIOS version A00.

1.  Ensure a bootable CD/DVD is in the drive before starting these procedures.

2. Boot the computer.

At the Dell BIOS splash screen, insistently and repeatedly but not wildly, press F12 until the BIOS menu is displayed.  Be aware on newer (2013) Dells, there is no prompt on the BIOS splash indicating F12 is an option. 

3.  Choose "Change Boot Mode Setting"

4.  Change the Boot Mode to "Legacy Boot Mode, Secure Boot Off".  The computer will reboot once selected.

5.  Again at the BIOS splash screen, note the changed menu. 

Press F2 for Setup.
(or, if F12, choose "BIOS Options")

6.  On the top-menu, arrow horizontally to "Boot".  These are the old-style boot menus that many of us are familiar with.  Change the Boot Priority

Set #1 to be CD/DVD/CD-RW Drive.
Set #2 to the Hard Drive
No opinion on other settings

7.  Press F10 to save and allow the workstation to reboot.

8.  The CD/DVD should boot.

You may be presented with a sub-menu.  For example, Acronis Disk Image prompts to boot into Acronis or into Windows.


Returning

Once you are done with the bootable CD/DVD, return to the BIOS screens and return the Boot Mode Setting to "UEFI Boot Mode, Secure Boot On".  I do not recommend staying with the Legacy Boot Mode and nor did I test booting into Windows with that setting.


Acronis Notes:

With these changes, my Acronis True Image Backup CD (Version 2013) would boot into the application.  But the software could not see the newer UEFI Hard Disk.  The solution was to upgrade to Acronis 2014..

For older versions, Acronis had a hotfix http://forum.acronis.com/forum/39714 [but I found it did not work on version 2013; again, an upgrade to 2014 seems to be the only real solution].

Related Keyliner Articles:
Acronis 2010 / 2011 hangs in Windows 8
Acronis 2010 Step-by-Step
Acronis 2010 Recover a single File from backup

Acronis 2010 Not the last disk in backup

Disk Imaging Cleanup Steps - Faster backups
USB Backup Drive Slow