If masking is also defined as illegal, I would then drop this new project I was thinking of ;-)
Otherwise please note that IMEI masking hardware is being exported via ebay, alibaba, aliexpress etc. (will not give details of what hardware) which must also be illegal.
I guess. So it should be...