How can I change the SHA256 to SHA1 of apk signer
<p>I have apk file signed by SHA256.</p>

<p>Step1) I deleted the sign, </p>

<pre><code>zip -d ./myapp.apk 'META-INF/*'
</code></pre>

<p>step2) Check sign was correctly deleted </p>

<pre><code>keytool -list -printcert -jarfile ./myapp.apk
</code></pre>

<p>Step3) I re-signed my application with SHA1</p>

<pre><code>jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore android.keystore ./my.apk mykey
</code></pre>

<p>Step4) Check</p>

<pre><code>keytool -list -printcert -jarfile ./takiyamaAR.apk
</code></pre>

<p>However it shows </p>

<pre><code> MD5:  19:3F:E4:D8:BB:BB:0A:85:85:CB:99:F2:37:54:24:EB
 SHA1: AD:1D:26:E9:A5:74:14:76:F4:EA:36:D2:7F:F6:9E:E9:92:CB:B2:74
 SHA256: A6:07:46:9C:3A:FD:38:A0:7D:9C:35:91:AD:E7:83:3F:AD:C4:84:C1:AE:36:C5:BD:A0:AE:F3:62:D9:8C:57:FF
  Signature algorithm name: SHA256withRSA
 version: 3
</code></pre>

<p>It looks like still SHA256.
I surely signed with SHA1 on Step3.</p>

<p>How can I use SHA1 instead of SHA256?</p>