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

Change-Id: I7d6a49cce8e1ae4eba6a5cd167edfbbe89256b03