Use awk to re-sign the android apk in linux and install a one-stop operation to create an apksign file. sh. /apksign xx.apk. The signature is automatically completed, and the tool in linux is installed by adb. the longer the time used, the more accumulated the data. In Windows, you need to learn new things for each upgrade, and the old knowledge is obsolete. There are often some things out of the box.
Valid only for one version. There is no delay. The content is as follows :#! /Bin/shecho $ @ | awk '{# printf ("\ n" $1 "\ n"); if (4> length ($1) {printf (". /apksign. sh xx.apk \ n "); exit (0); www.2cto.com} len = length ($1); suffix = substr ($1, length ($1)-3, 4 ); if (suffix! = ". Apk ") {system (" echo. /apksign. sh xx.apk \ n "); exit (0);} filename = substr ($1, 1, length ($1)-4); newfile = filename"-mysign "suffix; printf ("signapk... \ n "); system (" java-jar signapk. jar mykey. x509.pem mykey. pk8 "$1" "newfile" \ n "); printf (" install... \ n "); system (" adb install-r "newfile" \ n ");} 'by Han Gong