Modified /frameworks/base/policy part