[ActivityManager] Prevent provider creating twice.
Root Cause: If a process which contains provider is starting by not from accessing provider, e.g. service/activity/receiver, its providers' will be created during handleBindApplication. And before the process complete publish provider to ActivityManagerService, if there is an access to its provider, these providers will be created again (there will have 2nd onCreate). Solution: Check if provider record is existed, do not schedule install provider, becuase it is already creating and will be published later. Change-Id: Ic200ceae042c014c86e7edee0acd013b513af334
Loading
Please register or sign in to comment