[Nexus 4 Android Development] bitstra:
For NFC crash I've found that in Logcat:

I/am_proc_start( 921): [0,6593,1027,com.android.nfc,restart,com.android.nfc]
I/ActivityManager( 921): Start proc com.android.nfc for restart com.android.nfc: pid=6593 uid=1027 gids={41027, 3002, 3001, 1028, 1015}
I/dvm_lock_sample( 6593): [com.android.nfc,0,FinalizerDaemon,357961,Object.java,-2,ReferenceQueue.java,135,100]
I/am_proc_bound( 921): [0,6593,com.android.nfc]
W/ActivityManager( 921): Permission Denial: getCurrentUser() from pid=6593, uid=1027 requires android.permission.INTERACT_ACROSS_USERS
D/AndroidRuntime( 6593): Shutting down VM
E/AndroidRuntime( 6593): FATAL EXCEPTION: main
E/AndroidRuntime( 6593): Process: com.android.nfc, PID: 6593
E/AndroidRuntime( 6593): java.lang.RuntimeException: Unable to create application com.android.nfc.NfcApplication: [COLOR="Red"]java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=6593, uid=1027 requires android.permission.INTERACT_ACROSS_USERS[/COLOR]
E/AndroidRuntime( 6593):	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4400)
E/AndroidRuntime( 6593):	at android.app.ActivityThread.access$1500(ActivityThread.java:143)
E/AndroidRuntime( 6593):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
E/AndroidRuntime( 6593):	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 6593):	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 6593):	at android.app.ActivityThread.main(ActivityThread.java:5070)
E/AndroidRuntime( 6593):	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 6593):	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 6593):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)
E/AndroidRuntime( 6593):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)
[COLOR="red"]E/AndroidRuntime( 6593): Caused by: java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=6593, uid=1027 requires android.permission.INTERACT_ACROSS_USERS[/COLOR]
E/AndroidRuntime( 6593):	at android.os.Parcel.readException(Parcel.java:1489)
E/AndroidRuntime( 6593):	at android.os.Parcel.readException(Parcel.java:1442)
E/AndroidRuntime( 6593):	at android.app.ActivityManagerProxy.getCurrentUser(ActivityManagerNative.java:4468)
E/AndroidRuntime( 6593):	at android.app.ActivityManager.getCurrentUser(ActivityManager.java:2310)
E/AndroidRuntime( 6593):	at com.android.nfc.NfcService.<init>(NfcService.java:427)
E/AndroidRuntime( 6593):	at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:59)
E/AndroidRuntime( 6593):	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1008)
E/AndroidRuntime( 6593):	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4397)
E/AndroidRuntime( 6593):	... 9 more
[COLOR="red"]I/am_crash( 921): [6593,0,com.android.nfc,9027149,java.lang.SecurityException,Permission Denial: getCurrentUser() from pid=6593, uid=1027 requires android.permission.INTERACT_ACROSS_USERS,Parcel.java,1489]
W/ActivityManager( 921): Process com.android.nfc has crashed too many times: killing![/COLOR]
I/am_process_crashed_too_much( 921): [0,com.android.nfc,1027]

Edit:

and in init.mako.rc I came across these lines:

# NFC: create data/nfc for nv storage
mkdir /data/nfc 770 nfc nfc
mkdir /data/nfc/param 770 770 nfc nfc

all other mkdir statements in this file looks like : mkdir /dirnames 0770 servname servname

can the leading 0 be left out?