Aosp 4.4

together with XDA user hawkerpaul we fixed the ad_update script that was reported not to be working by various users and confirmed by me.