You're always in legal I-485 AOS when other non immigrant status expires, regardless AP/EAD.
http://blog.wenxuecity.com/blogview.php?date=200710&postID=4451
http://blog.wenxuecity.com/blogview.php?date=200710&postID=4451