Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Force close with new market? Re-sign the apk!


  • Please log in to reply
10 replies to this topic

#1 c3k

c3k
  • Members
  • 26 posts
  • Device Model:
    n1
  • CM Version:
    6
  • Recovery Image:
    Amon_RA

Posted 04 February 2011 - 11:11 PM

finally I've found how to upgrade my market app (installed with 20101020 google apps).

here's how i've upgrade from 1.8.2 to 2.2.11 on cm 6.1.1 on n1:
- downloaded "zipsigner" (from market, of course)
- select the new market apk (the one that didn't install and fc if flashed througt zip file)
- select "platform" as key/mode
- sign the file

the result apk can be finally installed (no flash, just launch)

all the credits goes to phrozen87 and to kellinwood (zipsigner author)

I think lot of people are waiting for this

Edited by c3k, 04 February 2011 - 11:12 PM.


#2 easycheese

easycheese
  • Donators
  • 207 posts
  • Country:
    us - United States
  • Location:
    ???, Afghanistan
  • Device Model:
    Nexus One
  • CM Version:
    7RC4 (too lazy to get the final)
  • Recovery Image:
    ClockworkMod

Posted 05 February 2011 - 03:35 PM

 c3k, on 04 February 2011 - 11:11 PM, said:

finally I've found how to upgrade my market app (installed with 20101020 google apps).

here's how i've upgrade from 1.8.2 to 2.2.11 on cm 6.1.1 on n1:
- downloaded "zipsigner" (from market, of course)
- select the new market apk (the one that didn't install and fc if flashed througt zip file)
- select "platform" as key/mode
- sign the file

the result apk can be finally installed (no flash, just launch)

all the credits goes to phrozen87 and to kellinwood (zipsigner author)

I think lot of people are waiting for this

This did not work for me.  Still FC on every open, even tried fix permissions.

#3 c3k

c3k
  • Members
  • 26 posts
  • Device Model:
    n1
  • CM Version:
    6
  • Recovery Image:
    Amon_RA

Posted 05 February 2011 - 03:39 PM

 easycheese, on 05 February 2011 - 03:35 PM, said:

This did not work for me.  Still FC on every open, even tried fix permissions.
did you upgrade from a working old version or trying to fix a non-working installation?

post your fc logcat, is this your error:

E/DatabaseUtils(  333): java.lang.SecurityException: Permission Denial: writing com.google.android.gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=1202, uid=10044 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS

?

Edited by c3k, 05 February 2011 - 03:41 PM.


#4 easycheese

easycheese
  • Donators
  • 207 posts
  • Country:
    us - United States
  • Location:
    ???, Afghanistan
  • Device Model:
    Nexus One
  • CM Version:
    7RC4 (too lazy to get the final)
  • Recovery Image:
    ClockworkMod

Posted 05 February 2011 - 03:43 PM

 c3k, on 05 February 2011 - 03:39 PM, said:

did you upgrade from a working old version or trying to fix a non-working installation?

post your fc logcat, is this your error:

E/DatabaseUtils(  333): java.lang.SecurityException: Permission Denial: writing com.google.android.gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=1202, uid=10044 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS

?

I have an old version that works (somewhat) it fc everytime I install a new program.  Not sure how to post a fc logcat, let me know and I will.

#5 c3k

c3k
  • Members
  • 26 posts
  • Device Model:
    n1
  • CM Version:
    6
  • Recovery Image:
    Amon_RA

Posted 05 February 2011 - 03:53 PM

 easycheese, on 05 February 2011 - 03:43 PM, said:

I have an old version that works (somewhat) it fc everytime I install a new program.  Not sure how to post a fc logcat, let me know and I will.

if you have the sdk configured just type "adb logcat" on your command line, but if you don't have just search for "logcat" in the market, there are many application that allow you to send the entire logcat (you have to search the point where the market close...)

#6 easycheese

easycheese
  • Donators
  • 207 posts
  • Country:
    us - United States
  • Location:
    ???, Afghanistan
  • Device Model:
    Nexus One
  • CM Version:
    7RC4 (too lazy to get the final)
  • Recovery Image:
    ClockworkMod

Posted 05 February 2011 - 04:30 PM

 c3k, on 05 February 2011 - 03:53 PM, said:

if you have the sdk configured just type "adb logcat" on your command line, but if you don't have just search for "logcat" in the market, there are many application that allow you to send the entire logcat (you have to search the point where the market close...)

Here is the original error that I get when installing a new program and the market FC after install

E/DatabaseUtils(  432): java.lang.SecurityException: Permission Denial: writing com.google.android.gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=1419, uid=10135 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS

Then, using the resigned zip I try the new market and get

E/DatabaseUtils(  401): java.lang.SecurityException: Permission Denial: writing com.google.android.gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=1262, uid=10135 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS

#7 c3k

c3k
  • Members
  • 26 posts
  • Device Model:
    n1
  • CM Version:
    6
  • Recovery Image:
    Amon_RA

Posted 05 February 2011 - 04:43 PM

my old market never get a force close, seems that you to deal with that
I can only tell you to clean your data and your dalvik, if you haven't already done

#8 easycheese

easycheese
  • Donators
  • 207 posts
  • Country:
    us - United States
  • Location:
    ???, Afghanistan
  • Device Model:
    Nexus One
  • CM Version:
    7RC4 (too lazy to get the final)
  • Recovery Image:
    ClockworkMod

Posted 07 February 2011 - 06:08 AM

 c3k, on 05 February 2011 - 04:43 PM, said:

my old market never get a force close, seems that you to deal with that
I can only tell you to clean your data and your dalvik, if you haven't already done


None of that worked.   I ended up wiping everything to try and put CM7 on it and then went back to 6.1.1 and it ended up working fine...weird...

But if I try and install the new market I get the same problem.  If i downgrade to the old market, the problem follows me...oh well, I'll just wait for CM7 to get the new market.

#9 nuumuun

nuumuun
  • Members
  • 2 posts
  • Device Model:
    Nexus One
  • CM Version:
    CM 6.1.1
  • Recovery Image:
    Amon_RA

Posted 10 February 2011 - 03:53 PM

my market didn't force close before trying this. everything works fine now. i've been trying to get the new market running for a while ...

thanks for the solution c3k!! it's greatly appreciated  :D


edit: pushed the signed Vending.apk to /system/app/ (after uninstalling the update of course) ... still working like a charm  B)

Edited by nuumuun, 10 February 2011 - 04:01 PM.


#10 temasek

temasek
  • Donators
  • 3345 posts
  • Twitter:temasek71
  • Country:
    sg - Singapore
  • Device Model:
    Nexus One / O2X
  • CM Version:
    CM7.2.0 RC0 SelfKANG
  • Recovery Image:
    Amon_RA

Posted 11 February 2011 - 01:36 PM

This method seriously doesn't solve the issue for some users, sadly.

#11 Sarath Menon

Sarath Menon
  • Members
  • 4 posts
  • Device Model:
    Nexus One
  • CM Version:
    CM 6.0.0
  • Recovery Image:
    Amon_RA

Posted 20 February 2011 - 02:20 PM

Thank you! I can confirm that the new market works for me using this fix. alogcat showed the error I was running into to be:


E/DatabaseUtils(  333): java.lang.SecurityException: Permission Denial: writing com.google.android.gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=1495, uid=10032 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS

which is actually the same error as posted by others (with my pid and uid etc...). All I did was to sign using the platform key, navigate to the new apk using astro and install it. It did not require any reboot, and worked right off the bat.