As per my lawyer, USCIS generally do not revoke the EAD when they deny I-485. But, you will not be able to renew it. However, your status will be "unlawfull" from the day 485 is denied. You have to leave before 180 days on this status. I don't know about AP though. Also, if your 485 case is re-opened by USCIS, you will be able to renew you EAD.