[G1 Android Development] itp:
google partner setup force close on boot

Looking at the force close issue with google partner setup that some people are reporting.

I'm getting it, and I noticed a couple things that stand out in a lolcat:

W/PackageManager( 133): Not granting permission com.google.android.providers.se
ttings.permission.WRITE_GSETTINGS to package com.google.android.partnersetup (pr
otectionLevel=2 flags=0x7e45)
W/PackageManager( 133): Not granting permission com.google.android.providers.se
ttings.permission.READ_GSETTINGS to package com.google.android.partnersetup (pro
tectionLevel=2 flags=0x7e45)

Later on in the log, I see the actual crash:

D/GooglePartnerSetup( 325): GooglePartnerSetup.onReceive
E/DatabaseUtils( 214): Writing exception to parcel
E/DatabaseUtils( 214): java.lang.SecurityException: Permission Denial: writing
com.google.android.providers.settings.GoogleSettingsProvider uri content://com.g
oogle.settings/partner from pid=325, uid=10024 requires com.google.android.provi
ders.settings.permission.WRITE_GSETTINGS
E/DatabaseUtils( 214): at android.content.ContentProvider$Transport.enf
orceWritePermission(ContentProvider.java:276)
E/DatabaseUtils( 214): at android.content.ContentProvider$Transport.ins
ert(ContentProvider.java:139)
E/DatabaseUtils( 214): at android.content.ContentProviderNative.onTrans
act(ContentProviderNative.java:125)
E/DatabaseUtils( 214): at android.os.Binder.execTransact(Binder.java:28
7)
E/DatabaseUtils( 214): at dalvik.system.NativeStart.run(Native Method)
D/AndroidRuntime( 325): Shutting down VM
W/dalvikvm( 325): threadid=3: thread exiting with uncaught exception (group=0x4
001e210)
E/AndroidRuntime( 325): Uncaught handler: thread main exiting due to uncaught e
xception
E/AndroidRuntime( 325): java.lang.RuntimeException: Unable to start receiver co
m.google.android.partnersetup.GooglePartnerSetup: java.lang.SecurityException: P
ermission Denial: writing com.google.android.providers.settings.GoogleSettingsPr
ovider uri content://com.google.settings/partner from pid=325, uid=10024 require
s com.google.android.providers.settings.permission.WRITE_GSETTINGS
E/AndroidRuntime( 325): at android.app.ActivityThread.handleReceiver(Act
ivityThread.java:2550)
E/AndroidRuntime( 325): at android.app.ActivityThread.access$3000(Activi
tyThread.java:116)
E/AndroidRuntime( 325): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1843)
E/AndroidRuntime( 325): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 325): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 325): at android.app.ActivityThread.main(ActivityThrea
d.java:4203)
E/AndroidRuntime( 325): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 325): at java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime( 325): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 325): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:549)
E/AndroidRuntime( 325): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 325): Caused by: java.lang.SecurityException: Permission Deni
al: writing com.google.android.providers.settings.GoogleSettingsProvider uri con
tent://com.google.settings/partner from pid=325, uid=10024 requires com.google.a
ndroid.providers.settings.permission.WRITE_GSETTINGS
E/AndroidRuntime( 325): at android.os.Parcel.readException(Parcel.java:1
218)
E/AndroidRuntime( 325): at android.database.DatabaseUtils.readExceptionF
romParcel(DatabaseUtils.java:145)
E/AndroidRuntime( 325): at android.database.DatabaseUtils.readExceptionF
romParcel(DatabaseUtils.java:111)
E/AndroidRuntime( 325): at android.content.ContentProviderProxy.insert(C
ontentProviderNative.java:340)
E/AndroidRuntime( 325): at android.content.ContentResolver.insert(Conten
tResolver.java:479)
E/AndroidRuntime( 325): at com.google.android.providers.GoogleSettings$N
ameValueTable.putString(GoogleSettings.java:75)
E/AndroidRuntime( 325): at com.google.android.providers.GoogleSettings$P
artner.putString(GoogleSettings.java:189)
E/AndroidRuntime( 325): at com.google.android.partnersetup.GooglePartner
Setup.setClientId(GooglePartnerSetup.java:109)
E/AndroidRuntime( 325): at com.google.android.partnersetup.GooglePartner
Setup.onReceive(GooglePartnerSetup.java:72)
E/AndroidRuntime( 325): at android.app.ActivityThread.handleReceiver(Act
ivityThread.java:2541)
E/AndroidRuntime( 325): ... 10 more

I've heard it asserted that people who wiped before the upgrade aren't seeing this, so I'm not sure what's different. I took a quick look in /data/system/packages.xml and nothing jumped out at me.