update_device.py: use the appid from request. am: 144f9f8a49 am: fbe7ff52b8
am: f94f924d3c

Change-Id: Ifeafe0dfbf8165625d36b750073a251b03667f60