Reset target sdk version of ParseTypeImpl
In device booting, PackageParser2 uses a thread local ParseTypeImpl obj as shared result and reset it before parsing everty time. But it doesn't reset the target sdk version, which could make deferError returned unexpected error, cause apk scaned failed and deleted by the system. Test: atest com.android.server.pm.parsing Change-Id: Ie6fbc4b79e94943c9282206b1ef6d20b4129fa0b Signed-off-by: liulvping <liulvping@xiaomi.com>
This commit is contained in:
@@ -119,6 +119,7 @@ public class ParseTypeImpl implements ParseInput, ParseResult<Object> {
|
||||
// how many APKs they're going through.
|
||||
mDeferredErrors.erase();
|
||||
}
|
||||
mTargetSdkVersion = null;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user