[Nook HD, HD+ Android Development] Zippy Dufus:
RESOLVED! Android framework issues

I finally figured out all my problems!

NEVER

USE ANY TWRP RELEASE EXCEPT THOSE PROVIDED IN THE OP !!!

My bad! I had upgraded to the latest "official" version. The issue became clear when I couldn't do a backup and an immediate restore! :o

amaces' twrp-3.0.1-0-ovation worked like a charm

My NookHD is running as smooth as butter again!

I applied the 3 of the 4 patches (I had already figured out the libc.arm.map patch* but would have never guessed the others, thanks!) and got a bootable build with a 7.2 linaro toolchain.

However, this build and my last two unadulterated builds (i.e. using default toolchains) share the same problem:

Upon first boot it takes a really long time to "finishing the android" update. So I let it take about 15 minutes to do so.

When this is done, I get the repeating "Google Frameworks Services keeps stopping"

I reflash without Gapps and still get the same problem.

Below is a repeating logcat error message that keeps repeating. It was captured during the Updating finishing android update stage.

Any ideas?

* amaces, I resolved the libc.arm.map long ago when I was first attempting to build the 4.7 or 4.8 toolchain by spotting a post of yours with a response requesting help with this. :)

== EDIT ==

If I do a clean install (complete wipe), I get stuck at the setup wizard crashing.

Question, has selinux been set to enforcing?

12-15 07:00:16.284 476 502 I

...

ActivityManager: Start proc 1630:com.google.process.gapps/u0a8 for restart com.google.process.gapps

12-15 07:00:16.286 476 505 W ActivityManager: Ignoring remove of inactive process: ProcessRecord{f07e5a1 0:com.google.process.gapps/u0a8}

12-15 07:00:16.001 1599 1599 W e.process.gapps: type=1400 audit(0.0:24768): avc: denied { search } for name="GoogleServicesFramework" dev="mmcblk0p8" ino=1667 scontext=u: r: priv_app:s0:c512,c768 tcontext=u: object_r:unlabeled:s0 tclass=dir permissive=0

12-15 07:00:16.001 1599 1599 W e.process.gapps: type=1400 audit(0.0:24769): avc: denied { search } for name="GoogleServicesFramework" dev="mmcblk0p8" ino=1667 scontext=u: r: priv_app:s0:c512,c768 tcontext=u: object_r:unlabeled:s0 tclass=dir permissive=0

12-15 07:00:16.171 1615 1615 W e.process.gapps: type=1400 audit(0.0:24770): avc: denied { search } for name="GoogleServicesFramework" dev="mmcblk0p8" ino=1667 scontext=u: r: priv_app:s0:c512,c768 tcontext=u: object_r:unlabeled:s0 tclass=dir permissive=0

12-15 07:00:16.171 1615 1615 W e.process.gapps: type=1400 audit(0.0:24771): avc: denied { search } for name="GoogleServicesFramework" dev="mmcblk0p8" ino=1667 scontext=u: r: priv_app:s0:c512,c768 tcontext=u: object_r:unlabeled:s0 tclass=dir permissive=0

12-15 07:00:16.376 1630 1630 W System : ClassLoader referenced unknown path: /system/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk

12-15 07:00:16.376 1630 1630 W System : ClassLoader referenced unknown path: /system/priv-app/GoogleServicesFramework/lib/arm

12-15 07:00:16.171 1615 1615 W e.process.gapps: type=1400 audit(0.0:24772): avc: denied { search } for name="GoogleServicesFramework" dev="mmcblk0p8" ino=1667 scontext=u: r: priv_app:s0:c512,c768 tcontext=u: object_r:unlabeled:s0 tclass=dir permissive=0

12-15 07:00:16.406 1630 1630 W linker : Warning: unable to resolve "/system/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk": Permission denied

12-15 07:00:16.407 1630 1630 W linker : Warning: unable to resolve "/system/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk": Permission denied

12-15 07:00:16.409 1630 1630 W asset : Asset path /system/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk is neither a directory nor file (type=0).

12-15 07:00:16.409 1630 1630 E ResourcesManager: failed to add asset path /system/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk

12-15 07:00:16.410 1630 1630 D AndroidRuntime: Shutting down VM

12-15 07:00:16.411 1630 1630 E AndroidRuntime: FATAL EXCEPTION: main

12-15 07:00:16.411 1630 1630 E AndroidRuntime: Process: com.google.process.gapps, PID: 1630

12-15 07:00:16.411 1630 1630 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.content.res.Resources.getConfiguration()' on a null object reference

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at android.app.ActivityThread.updateLocaleListFromAppContext(ActivityThread.java:5115)

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5340)

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at android.app.ActivityThread.-wrap2(ActivityThread.java)

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1564)

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:102)

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6186)

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)

12-15 07:00:16.411 1630 1630 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

12-15 07:00:16.432 476 982 W ActivityManager: Process com.google.process.gapps has crashed too many times: killing!

12-15 07:00:16.432 476 982 I ActivityManager: Killing 1630:com.google.process.gapps/u0a8 (adj 0): crash

12-15 07:00:16.433 476 982 D ActivityManager: cleanUpApplicationRecord -- 1630

12-15 07:00:16.440 476 799 W ActivityManager: Unable to launch app com.google.android.gsf/10008 for provider com.google.android.gsf.gservices: launching app became null

12-15 07:00:16.171 1615 1615 W e.process.gapps: type=1400 audit(0.0:24773): avc: denied { search } for name="GoogleServicesFramework" dev="mmcblk0p8" ino=1667 scontext=u: r: priv_app:s0:c512,c768 tcontext=u: object_r:unlabeled:s0 tclass=dir permissive=0

12-15 07:00:16.441 1035 1035 E ActivityThread: Failed to find provider info for com.google.android.gsf.gservices

...

​