spoofing installer id

Recently, my bank application logged me out and started insisting that I install their app from Google Play. I discovered what is the issue, and wrote a script that uses adb and pm to fix that: https://github.com/enedil/fix-ingmobile-on-huawei/blob/master/fix_ing.py

Basically, it seems that the bank checking what was the installer, ie. something that can be done manually via pm:

pm install -i com.android.vending my_banks_app.apk

It would be super nice if I didn't have to resort to such manual process, and instead be able to spoof installer straight from Aurora. Perhaps as some option, next to other installation methods.

Note that my device is a Huawei without root, so I'm looking for a solution that also doesn't require elevated privileges.

I am willing to work on that issue, but I need a little bit guidance.

  1. Do you think it's technically possible to spoof the installer id, without root?
  2. Do you think this is a good solution for the problem, and it's worth pursing?
  3. Do you think adding an option in the settings is a good UI choice?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information