[Android Software/Hacking General [Developers Only]] NuttyBunny:
I've seen countless threads on these 2 errors, but I just found something intriguing on my android device.

This one is a Measy U1A android stick (the ones that you connect to your TV via HDMI). A truly nice piece of hardware, but it seems to have some issues.

Since day 1 I can't install apps most of the time. Yes, *most* of the time. 80% I get the "Invalid Package file" error, another 10% of the time I get a "Package was not signed correctly", but curiously enough, a 10% of the time the packages go through and install correctly.

Of course, this gets on my nerves.

Now, I'd really want to know what's going on and I'd love some help from the true Android experts.

This is what I've already done:

Got a Log Viewer to see what was going on.

At first it said that was an error downloading (more on this later)

Then other times it said that there was no signature for X or Y file INSIDE the apk file (I remember some libraries, I was trying to install netflix on my tests)

So, I tried to tackle the download error by checking the space (df), I found that /data had few space remaining, so I cleared stuff from it. Now I have 308Mb free, more than enough to download Netflix (14Mb download). I'm talking about /data since I found out that the downloadfile-x.apk files get downloaded to /data/data/com.android.providers/downloads/cache

Tried again, nothing. Ok, so I thought that maybe there was some weird error in the /data partition. I created a directory on the sdcard portion of the stick and linked it (ln -s). Same issues. I created a directory on my external sd card and liked to it, and the same.

Now, for the weird part, and this is where I'd love some insight:

Out of 5 downloads, ES File Explorer got installed correctly, and I got a bunch of EQUALLY SIZED downloadfile-x.apk files on that directory, but NONE OF THEM HAS THE SAME MD5 SUM. Weird? Yep, but that could only mean 3 things: Either there's a problem with my wifi/network stack, or the /data, /sdcard, /mnt/extsd partitions ALL have errors in them. The 3rd option is that Perhaps Google signs every download with a different salt and that's the reason they are all different. But I DON'T THINK THE 3rd OPTION IS LOGICAL OR PRACTICAL.

Now, I don't have access to recovery here... well, I haven't tried but there's no obvious option, perhaps CWM but I don't want to risk it too much since it ran Ubuntu for a while and now that won't boot (that's another topic, unable to debug it since I can't see anything on the screen until it boots).

I've already tried:

1. Deleting Play Cache and Data, rebooting

2. Deleting Play and installing it again (it took several tries because of the same issue)

3. Factory Default and logging to my google account again

4. FIRMWARE UPGRADE (yes, I found a new firmware, it seems faster and more stable, but I still have that issue).

Now, I haven't found a memory checker or a "nand" (as you call it) checker on the app market, do these apps exist? I'd love to rule this out.

Thanks if anyone has another option, as I said, I'm out of them. The funny thing is that once the apps are installed THEY WORK FINE!!!!

Please help, I just can't spend 15 minutes to install each app that I want :laugh:

I know my way around Linux, so don't be afraid to suggest crazy things :fingers-crossed:

*The only thing I still want to do is to be able to boot Linux again and perform some tests from there*