add Xperia P support and fix common.py error (Xmx4096m to Xmx1024m)