<div dir="ltr"><div>I am using CRIU on android and android. For a simple shell script/c program CRIU works fine but for application developed using android sdk/ndk (e.g. in application in APK format). CRIU fails and the failure seems to be due to ashmem because when I print the proc/pid/maps the entries belonging to ashmem) shows as deleted entries . and when CRIU iterate over those entries and try to fetch those vmas it stuck to the Bogus Mapping. Now this is code is the reason for going into this scenario in the proc_parse.c file:</div><div><br></div><div>if (is_anon_shmem_map(st_buf-&gt;st_dev)) {<br></div><div><div><span class="" style="white-space:pre">                        </span>if (!(vma_area-&gt;e-&gt;flags &amp; MAP_SHARED))</div></div><div><br></div><div>Now I want someone to guide what should I do to checkpoint the APK application.</div><div><br></div><div><br></div><div><br></div><div><br></div><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font size="2">Best Regard -- <font color="#0b5394">ALLAH Hafiz</font>, <font color="#0b5394">May</font><font color="#0b5394"> Almighty ALLAH bless you</font></font></div>        <p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px">
      
    </p>
    <table border="0" cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;font-family:proxima-nova-1,proxima-nova-2,Tahoma,Helvetica,Verdana,sans-serif;vertical-align:baseline;border-spacing:0px;color:rgb(51,51,51);line-height:18.2px"><tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:auto;height:30px"> </td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;width:auto"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;line-height:0"><a href="https://about.me/yousafzaiabdullah?promo=email_sig" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;color:rgb(43,130,173);text-decoration:none;display:inline-block" target="_blank"><table border="0" cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;border-spacing:0px"><tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td align="left" valign="top" style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:top;width:48px;line-height:1"><img alt="--" width="0" height="0" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; display: block; width: 0px; min-height: 0px; overflow: hidden;"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><img src="https://s.gravatar.com/avatar/fed5b9284cee3e24148b0240c5def1e1?s=80" alt="" width="48" height="48" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; display: block;"></div></td><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:8px"> </td><td align="left" valign="middle" style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:middle;width:auto;height:48px;line-height:1"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-size:18px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline;color:rgb(51,51,51)">Abdullah Yousafzai</div><div style="margin:2px 0px 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-size:12px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline"><img alt="https://" width="0" height="0" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; display: block; width: 0px; min-height: 0px; overflow: hidden;">about.me/yousafzaiabdullah</div></td></tr></tbody></table></a>                                 </div></td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:auto;height:20px"><img src="https://about.me/t/sig?u=yousafzaiabdullah" width="1" height="1" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; overflow: hidden;"></td></tr></tbody></table>
     <p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px">
      </p>

    <p style="font-family:Helvetica,Arial,sans-serif;font-size:9px;line-height:12px"></p></div></div></div></div></div></div></div></div>
</div>