app: modify daemon implementation

Change-Id: I61e3ca8515fc14fbe2ef7dd60f2d8176cca33a53
Merge "app: modify daemon implementation" into 1.0.x