Revert "ActivityManagerService: stay away from zombie content providers"

This reverts commit 620020d7c821f5e24d8fd80a60bd5d1fd1a08d5d.
Revert "frameworks/base: Watchdog to generate trace of Monkey"

This reverts commit 435c4f19968a843bafea42714d9c375036a8d0c0.
 Revert "frameworks/base: creating sperate files for ANRs traces"
This reverts commit 725727f305f67e2428ba1d2c52975a311982d7f3.
Revert "ContentProviderRecord: Remove external process reference when finalized"

This reverts commit 8e9e6d8575dc165f2ec4abf44c382b1afadeed6d.
Revert "To fix fatal exception in system process due to NullPointerException."

This reverts commit 1c98a02314a32ac13a9ddf2b6335f100ab9b55bb.
Frameworks: privacy guard fix UI freeze

randomly sometimes the complete UI freezes when toggle
privacy guard. Move out the forcekill from syncronized to
fix it so that it kills the app when all threads are open
and they can react to the forcekill which cannot result then in unknown states

cheers

Change-Id: I81514dc5ca9149477ee747a7d90720b83f741baa
Allow multiple emulated storages at the same time.

Only do multiuser mapping for primary emulated storage as per google docs.
Allow all non-primary emulated storage to have id other than 0 so that
it could be distinguished from the primary volume.

Change-Id: I7b70b9067fd6211055fb9074710f48107d7b0e8e