[Android Apps and Games] greglord:
I did it, I finally did it! So, let me tell you again on what happened:

The problem:

Unable to install Viber or Foursquare from Google Play, direct APK or over web from play.google.com. Error I'm getting is: "This app is incompatible with your Samsung GT-I9100".

What I have tried:

1. Reset factory defaults.

2. Format SD card.

3. Replacing kernel.

4. Updating gapps.

5. Updating cyanogen (actually tried to install above apps every time I've updated to new nightly).

6. Also installed http://d-h.st/9PU - Multi DPI Play Store for JB.zip

So I just formated and reset to defaults and still, the same problem.

The funny thing is, I went installing siyah and dorimanx kernels, installing 2nd rom (dual boot)- MIUI as 2nd rom, where, look at the suprise, I could easily install apps mentioned above. Also, a friend of mine runs the same CM, has tried the same kernels, got all apps even the ones I couldnt install. God why oh why??? Viber and 4SQ still nag about my phone not being incompatible o_O. DPI in build.prop was NEVER changed and is set to 240.

What did the log say:

Since alogcat is always showing blank screen, no matter the kernel, I opened Terminal Emulator, sudoed and ran the command "logcat", then opened file browser and ran Viber.apk. What did logcat say then?

10718K/15943K, paused 3ms+5ms, total 70ms

D/dalvikvm( 4016): WAIT_FOR_CONCURRENT_GC blocked 58ms

E/PackageManager( 4016): Package com.viber.voip requires unavailable shared library com.google.android.maps; failing!

W/PackageManager( 4016): Package couldn't be installed in /data/app/com.viber.voip-1.apk

D/dalvikvm( 4016): GC_EXPLICIT freed 735K, 34% free 10627K/15943K, paused 3ms+16ms, total 77ms

D/InstallAppProgress(14198): Installation error code: -9

I/InstallAppProgress(14198): Finished installing com.viber.voip

V/PhoneStatusBar( 7422): setLightsOn(true)

I/InputAttributes( 7906): InputType.TYPE_NULL is specified

D/PhoneStatusBar( 7422): addNotification score=0

D/SizeAdaptiveLayout( 7422): com.android.internal.widget.SizeAdaptiveLayout@416c4380child view android.widget.FrameLayout@41525460 measured out of bounds at 95px clamped to 96px

Wait what?

E/PackageManager( 4016): Package com.viber.voip requires unavailable shared library com.google.android.maps; failing!

* Went on Market and installed Google Maps (:eek:). That didn't do the trick.

* Googled for the problem and see the two files that usually dont have correct permissions or are just not there: \system\etc\permissions\com.google.android.maps.xml which actually has entry for /system/framework/com.google.android.maps.jar.

* Both files were there, both correct permissions (rw- --- --- aka 600, tried also chmoding to 644). Same thing.

* I asked a friend with the same CM Nightly Rom to check and send me both files.

Solution:

My /system/framework/com.google.android.maps.jar was approx 5KB smaller than his. I created backup of my file, copied his, chmoded, without reboot went to Play Store aaaaaaaannnnnnd.... .... *drumroll* successfully installed both, Viber and Foursquare.

After two months I finally found the root of this evil. Still can't believe I had corrupted Jar file.

The point of this story: Never give up searching for what is causing you diarrhea.

Regards,

Gregor :)