Fixed obsolete warnings in 4.x. PackageManager now generates itself if it is missing.