[Android Apps and Games] wkwkwk:
Hi,

Although I applied the Quickfix (unpacked the two files plus the change) I'm getting some NullPointerExceptions:

$ grep PRIVACY ~/android/system/frameworks/base/core/java/android/app/ContextImpl.java
//BEGIN PRIVACY ADDED
//END PRIVACY ADDED
if(intent != null && intent.getAction() != null && intent.getAction().equals(PrivacySettingsManager.ACTION_PRIVACY_NOTIFICATION))
$

I tested Llama and got an initial cell id but immediately after got an error (-1 cell id).

The logcat shows:

I/KebabCommon( 2534): Apply true

D/PrivacySettingsManager( 2534): PrivacySettingsManager initializing. - from package: com.kebab.Llama | PDroid2.0_debug

I/LlamaDroid( 2534): InitCellListener

D/PrivacySettingsManager( 2534): PrivacySettingsManager initializing. - from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacyTelephonyManager( 2534): listen - package:com.kebab.Llama uid:10046 events: 16 - called from package: com.kebab.Llama | PDroid2.0_debug

I/PrivacyTelephonyManager( 2534): initiate listening. Context: available listener: available - called from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacyTelephonyManager( 2534): listen for cell location or call state - com.kebab.Llama (10046) output: custom listener - called from package: com.kebab.Llama | PDroid2.0_debug

I/LlamaDroid( 2534): requesting update

D/PrivacySettingsManager( 2534): PrivacySettingsManager initializing. - from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacySettingsManager( 2534): getSettings() - getting settings for package: com.kebab.Llama - called from package: com.android.keychain | PDroid2.0_debug

D/PhoneStateListener( 2534): onCellLocationChanged - com.kebab.Llama (1000) output: [0,0,0] - called from package: com.android.keychain | PDroid2.0_debug

D/PrivacySettingsManager( 2534): PrivacySettingsManager initializing. - from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacySettingsManager( 2400): getSettings() - getting settings for package: com.kebab.Llama - called from package: com.android.privacy.pdroid20 | PDroid2.0_debug

D/PrivacySettingsManager( 2534): PrivacySettingsManager initializing. - from package: com.kebab.Llama | PDroid2.0_debug

I/PrivacyConnectivityManager( 2534): now in constructor for package: com.kebab.Llama - called from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacySettingsManager( 2534): getSettings() - getting settings for package: com.kebab.Llama - called from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.kebab.Llama | PDroid2.0_debug

I/PrivacyPhoneProxy( 682): package: com.android.phone ALLOWED for getCellLocation(). Default deny: unknown - called from package: com.kebab.Llama | PDroid2.0_debug

I/PrivacyGSMPhone( 682): Package: com.android.phone asked for getCellLocation() - called from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacySettingsManager( 2400): getSettings() - getting settings for package: com.android.phone - called from package: com.android.privacy.pdroid20 | PDroid2.0_debug

W/System.err( 2400): java.lang.NullPointerException

W/System.err( 2400):	at com.android.privacy.pdroid.extension.cn.a(SourceFile:379)

W/System.err( 2400):	at com.android.privacy.pdroid.extension.PrivacyReceiver.onReceive(SourceFile:88)

W/System.err( 2400):	at android.app.ActivityThread.handleReceiver(ActivityThread.java:2503)

W/System.err( 2400):	at android.app.ActivityThread.access$1500(ActivityThread.java:153)

D/PrivacyTelephonyManager( 2534): getCellLocation - com.kebab.Llama (10046) output: [11000,751469,-1] - called from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacySettingsManager( 2534): getSettings() - getting settings for package: com.kebab.Llama - called from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacySettingsManager( 2534): PrivacySettingsManager initializing. - called from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacySettingsManager( 2534): getSettings() - getting settings for package: com.kebab.Llama - called from package: com.kebab.Llama | PDroid2.0_debug

W/SystemProperties( 2534): checkIfPackagesAllowed - allowing package: com.kebab.Llama accessing network info - called from package: com.kebab.Llama | PDroid2.0_debug

D/PrivacyTelephonyManager( 2534): getNetworkOperator - com.kebab.Llama (10046) output: 53005 - called from package: com.kebab.Llama | PDroid2.0_debug

I/LlamaDroid( 2534): got operator 53005

W/System.err( 2400):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)

W/System.err( 2400):	at android.os.Handler.dispatchMessage(Handler.java:99)

W/System.err( 2400):	at android.os.Looper.loop(Looper.java:137)

W/System.err( 2400):	at android.app.ActivityThread.main(ActivityThread.java:5226)

W/System.err( 2400):	at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err( 2400):	at java.lang.reflect.Method.invoke(Method.java:511)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)

W/System.err( 2400):	at dalvik.system.NativeStart.main(Native Method)

D/PrivacySettingsManager( 2400): getSettings() - getting settings for package: com.kebab.Llama - called from package: com.android.privacy.pdroid20 | PDroid2.0_debug

I/ActivityManager( 419): Displayed com.kebab.Llama/.LlamaUi: +700ms

W/InputMethodManagerService( 419): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@419d3398 attribute=null, token = android.os.BinderProxy@415b20b0

D/LightsService( 419): Excessive delay setting light: 67ms

D/LightsService( 419): Excessive delay setting light: 67ms

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.phone | PDroid2.0_debug

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.phone | PDroid2.0_debug

D/dalvikvm( 419): GC_CONCURRENT freed 1997K, 32% free 9969K/14496K, paused 4ms+8ms, total 66ms

D/dalvikvm( 419): WAIT_FOR_CONCURRENT_GC blocked 54ms

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.phone | PDroid2.0_debug

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.phone | PDroid2.0_debug

D/PrivacySettingsManager( 571): getSettings() - getting settings for package: com.android.systemui - called from package: com.android.systemui | PDroid2.0_debug

D/dalvikvm( 571): GC_CONCURRENT freed 1932K, 36% free 7128K/11112K, paused 2ms+4ms, total 29ms

D/dalvikvm( 571): WAIT_FOR_CONCURRENT_GC blocked 26ms

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.systemui | PDroid2.0_debug

D/PrivacySettingsManager( 2400): getSettings() - getting settings for package: com.android.systemui - called from package: com.android.privacy.pdroid20 | PDroid2.0_debug

W/System.err( 2400): java.lang.NullPointerException

I/PrivacyPhoneProxy( 682): package: com.android.phone ALLOWED for getServiceState() - called from package: com.android.systemui | PDroid2.0_debug

I/PrivacyGSMPhone( 682): Package: com.android.phone asked for getServiceState() - called from package: com.android.systemui | PDroid2.0_debug

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.systemui | PDroid2.0_debug

W/System.err( 2400):	at com.android.privacy.pdroid.extension.cn.a(SourceFile:379)

W/System.err( 2400):	at com.android.privacy.pdroid.extension.PrivacyReceiver.onReceive(SourceFile:88)

W/System.err( 2400):	at android.app.ActivityThread.handleReceiver(ActivityThread.java:2503)

W/System.err( 2400):	at android.app.ActivityThread.access$1500(ActivityThread.java:153)

W/System.err( 2400):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)

W/System.err( 2400):	at android.os.Handler.dispatchMessage(Handler.java:99)

W/System.err( 2400):	at android.os.Looper.loop(Looper.java:137)

W/System.err( 2400):	at android.app.ActivityThread.main(ActivityThread.java:5226)

W/System.err( 2400):	at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err( 2400):	at java.lang.reflect.Method.invoke(Method.java:511)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)

W/System.err( 2400):	at dalvik.system.NativeStart.main(Native Method)

D/dalvikvm( 419): GC_CONCURRENT freed 2103K, 32% free 9914K/14496K, paused 3ms+3ms, total 59ms

D/dalvikvm( 419): WAIT_FOR_CONCURRENT_GC blocked 30ms

D/dalvikvm( 419): WAIT_FOR_CONCURRENT_GC blocked 38ms

D/PrivacySettingsManager( 2400): getSettings() - getting settings for package: com.android.phone - called from package: com.android.privacy.pdroid20 | PDroid2.0_debug

W/System.err( 2400): java.lang.NullPointerException

W/System.err( 2400):	at com.android.privacy.pdroid.extension.cn.a(SourceFile:379)

W/System.err( 2400):	at com.android.privacy.pdroid.extension.PrivacyReceiver.onReceive(SourceFile:88)

W/System.err( 2400):	at android.app.ActivityThread.handleReceiver(ActivityThread.java:2503)

W/System.err( 2400):	at android.app.ActivityThread.access$1500(ActivityThread.java:153)

W/System.err( 2400):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)

W/System.err( 2400):	at android.os.Handler.dispatchMessage(Handler.java:99)

W/System.err( 2400):	at android.os.Looper.loop(Looper.java:137)

W/System.err( 2400):	at android.app.ActivityThread.main(ActivityThread.java:5226)

W/System.err( 2400):	at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err( 2400):	at java.lang.reflect.Method.invoke(Method.java:511)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)

W/System.err( 2400):	at dalvik.system.NativeStart.main(Native Method)

D/PrivacySettingsManager( 571): getSettings() - getting settings for package: com.android.systemui - called from package: com.android.systemui | PDroid2.0_debug

D/PrivacySettingsManager( 2400): getSettings() - getting settings for package: com.android.phone - called from package: com.android.privacy.pdroid20 | PDroid2.0_debug

W/System.err( 2400): java.lang.NullPointerException

W/System.err( 2400):	at com.android.privacy.pdroid.extension.cn.a(SourceFile:379)

W/System.err( 2400):	at com.android.privacy.pdroid.extension.PrivacyReceiver.onReceive(SourceFile:88)

W/System.err( 2400):	at android.app.ActivityThread.handleReceiver(ActivityThread.java:2503)

W/System.err( 2400):	at android.app.ActivityThread.access$1500(ActivityThread.java:153)

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.systemui | PDroid2.0_debug

W/System.err( 2400):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)

W/System.err( 2400):	at android.os.Handler.dispatchMessage(Handler.java:99)

W/System.err( 2400):	at android.os.Looper.loop(Looper.java:137)

W/System.err( 2400):	at android.app.ActivityThread.main(ActivityThread.java:5226)

W/System.err( 2400):	at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err( 2400):	at java.lang.reflect.Method.invoke(Method.java:511)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)

W/System.err( 2400):	at dalvik.system.NativeStart.main(Native Method)

I/PrivacyPhoneProxy( 682): package: com.android.phone ALLOWED for getServiceState() - called from package: com.android.systemui | PDroid2.0_debug

I/PrivacyGSMPhone( 682): Package: com.android.phone asked for getServiceState() - called from package: com.android.systemui | PDroid2.0_debug

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.systemui | PDroid2.0_debug

D/PrivacySettingsManager( 2400): getSettings() - getting settings for package: com.android.phone - called from package: com.android.privacy.pdroid20 | PDroid2.0_debug

D/PrivacySettingsManager( 571): getSettings() - getting settings for package: com.android.systemui - called from package: com.android.systemui | PDroid2.0_debug

D/dalvikvm( 419): GC_CONCURRENT freed 2038K, 32% free 9924K/14496K, paused 2ms+4ms, total 48ms

D/dalvikvm( 419): WAIT_FOR_CONCURRENT_GC blocked 27ms

D/dalvikvm( 419): WAIT_FOR_CONCURRENT_GC blocked 35ms

D/dalvikvm( 419): WAIT_FOR_CONCURRENT_GC blocked 34ms

W/System.err( 2400): java.lang.NullPointerException

W/System.err( 2400):	at com.android.privacy.pdroid.extension.cn.a(SourceFile:379)

W/System.err( 2400):	at com.android.privacy.pdroid.extension.PrivacyReceiver.onReceive(SourceFile:88)

W/System.err( 2400):	at android.app.ActivityThread.handleReceiver(ActivityThread.java:2503)

W/System.err( 2400):	at android.app.ActivityThread.access$1500(ActivityThread.java:153)

W/System.err( 2400):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)

W/System.err( 2400):	at android.os.Handler.dispatchMessage(Handler.java:99)

W/System.err( 2400):	at android.os.Looper.loop(Looper.java:137)

W/System.err( 2400):	at android.app.ActivityThread.main(ActivityThread.java:5226)

W/System.err( 2400):	at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err( 2400):	at java.lang.reflect.Method.invoke(Method.java:511)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)

W/System.err( 2400):	at dalvik.system.NativeStart.main(Native Method)

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.systemui | PDroid2.0_debug

I/PrivacyPhoneProxy( 682): package: com.android.phone ALLOWED for getServiceState() - called from package: com.android.systemui | PDroid2.0_debug

I/PrivacyGSMPhone( 682): Package: com.android.phone asked for getServiceState() - called from package: com.android.systemui | PDroid2.0_debug

D/PrivacySettingsManager( 682): getSettings() - getting settings for package: com.android.phone - called from package: com.android.systemui | PDroid2.0_debug

D/PrivacySettingsManager( 2400): getSettings() - getting settings for package: com.android.phone - called from package: com.android.privacy.pdroid20 | PDroid2.0_debug

D/PrivacySettingsManager( 571): getSettings() - getting settings for package: com.android.systemui - called from package: com.android.systemui | PDroid2.0_debug

W/System.err( 2400): java.lang.NullPointerException

W/System.err( 2400):	at com.android.privacy.pdroid.extension.cn.a(SourceFile:379)

W/System.err( 2400):	at com.android.privacy.pdroid.extension.PrivacyReceiver.onReceive(SourceFile:88)

W/System.err( 2400):	at android.app.ActivityThread.handleReceiver(ActivityThread.java:2503)

W/System.err( 2400):	at android.app.ActivityThread.access$1500(ActivityThread.java:153)

W/System.err( 2400):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)

W/System.err( 2400):	at android.os.Handler.dispatchMessage(Handler.java:99)

W/System.err( 2400):	at android.os.Looper.loop(Looper.java:137)

W/System.err( 2400):	at android.app.ActivityThread.main(ActivityThread.java:5226)

W/System.err( 2400):	at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err( 2400):	at java.lang.reflect.Method.invoke(Method.java:511)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

W/System.err( 2400):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)

W/System.err( 2400):	at dalvik.system.NativeStart.main(Native Method)

Any thoughts?

Thanks.