{"id":4422,"date":"2019-03-28T18:22:51","date_gmt":"2019-03-28T10:22:51","guid":{"rendered":"https:\/\/www.alfredivy.per.sg\/blogger\/?p=4422"},"modified":"2019-04-26T13:17:23","modified_gmt":"2019-04-26T05:17:23","slug":"google-pay-on-mi-mix-2s","status":"publish","type":"post","link":"https:\/\/www.alfredivy.sg\/blogger\/2019\/03\/google-pay-on-mi-mix-2s\/","title":{"rendered":"Google Pay on Mi MIX 2S"},"content":{"rendered":"\n<p>I wrote about getting the Mi Mix2S as a replacement for my trusty Redmi 1.   After some investigation, the phone was sold with a MIUI 10 Global Beta loaded on a Chinese model.<\/p>\n\n\n\n<p>This is suppose to be a bad combination.<\/p>\n\n\n\n<p>I was trying to configure Google Pay when it complained that the phone is modified or rooted.  Duh!  The bootloader was unlocked to first install MIUI 10.  <\/p>\n\n\n\n<p>TWRP turned out to be really difficult to install.  On reboot, it kept being overwritten by the stock recovery!  I got nowhere, I thought the bootloader may be locked or the <g class=\"gr_ gr_962 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace\" id=\"962\" data-gr-id=\"962\">anti rollback<\/g> is in effect, it wasn&#8217;t.  After a few weekends, I decided to put everything on the backburner.   A few days ago, the XiaoMiTool V2 was released.  So thought I try my luck again. This time TWRP was flashed successfully and I quickly put in Magisk.  <a href=\"https:\/\/www.xiaomitool.com\/V2\/latest\">link<\/a><\/p>\n\n\n\n<p>The phone was stuck in a recovery boot loop.  I fixed this by flashing the stock version of MIUI 10 Global beta from MIUI forums.  In another words back to square 1.<\/p>\n\n\n\n<p>After browsing some XDA forums, turns out I need to flash Magisk to prevent TWRP from being overwritten.  <\/p>\n\n\n\n<p>To get out of the boot loop, I need to change the name in build.prop.  The phone booted successfully. <a href=\"https:\/\/forum.xda-developers.com\/showpost.php?p=79059659&amp;postcount=546\">link<\/a><\/p>\n\n\n\n<p>The root method works, I can download Ad Blocker and access system folders. Safetynet cannot pass, due to Profile problems.  <br><\/p>\n\n\n\n<p>Further research shows that I have to change the signature and hide Google Play store, <del>Framework<\/del> <del>and Backup<\/del>. Finally, Google Pay accepts my credit card. <a href=\"https:\/\/forum.xda-developers.com\/apps\/magisk\/module-magiskhide-props-config-t3789228\">link <\/a><a href=\"https:\/\/forum.xda-developers.com\/showpost.php?p=79213665&amp;postcount=641\">link<\/a><\/p>\n\n\n\n<p>Unfortunately now Pokemon Go does not work. &lt;facepalm&gt;.  I fixed this by unhiding Google Services Framework.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Updates:<\/h4>\n\n\n\n<p>28 Mar 19 &#8211; Shortly after I posted, I cleared the Google Pay config to register my credit cards in reverse order. Now Pay broke again.  Back to square one.<\/p>\n\n\n\n<p>29 Mar 19 &#8211; It was not just me but a global thing. Google Pay broke for everyone. Update to beta Magisk 19 and all is fine. Unhide others, except for Google Play Services (GMS). Hide this via a terminal app, &#8220;<g class=\"gr_ gr_8 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace\" id=\"8\" data-gr-id=\"8\">su<\/g> <g class=\"gr_ gr_9 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling\" id=\"9\" data-gr-id=\"9\">magiskhide<\/g> &#8211; &#8211; add com.google.android.gms&#8221;. Clear it by renaming this folder \/data\/data\/com.google.android.gms<\/p>\n\n\n\n<p>15 Apr 19 &#8211; Whenever I flash an update to MIUI, everything gets returned to stock.  I have to :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Flash TWRP<\/li><li>Flash Magisk 19<\/li><li>Still in recovery, mount system partition<\/li><li>Edit the product name &#8220;polaris&#8221; in build.prop<\/li><li>Uninstall Google Pay<\/li><li>After booting, rename com.google.android.gms <\/li><li>Restart<\/li><li>Install Google Pay<\/li><li>Register my cards.<\/li><\/ul>\n\n\n\n<p>I am going to try skip renaming Google Play Services and instead, go with clearing all data.  It should be the same.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wrote about getting the Mi Mix2S as a replacement for my trusty Redmi 1. After some investigation, the phone was sold with a MIUI 10 Global Beta loaded on a Chinese model. This is suppose to be a bad&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[222],"tags":[241,491,492],"class_list":["post-4422","post","type-post","status-publish","format-standard","hentry","category-smartphones","tag-android","tag-google-pay","tag-safetynet"],"_links":{"self":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts\/4422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/comments?post=4422"}],"version-history":[{"count":9,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts\/4422\/revisions"}],"predecessor-version":[{"id":4443,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts\/4422\/revisions\/4443"}],"wp:attachment":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/media?parent=4422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/categories?post=4422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/tags?post=4422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}