Only way is to get the laws to change by electing other officials or civil disobedience.
I do not know all International laws. Nor do I respect countries and politicians that force such restrictive laws that prevent reuse of good devices that are now unsupported by the original manufacture.
Secondly if that law was enacted in the US ... I would buy a product that has a known bug to allow for loading a custom OS. In court I would push for jury-nullification too.
Authoritative governments suck at all fronts ... not just phone restrictions.
Would you mind pointing me to the ANATEL certification process? I am wondering if the voice of the law is worded to prevent competition ... sounds like something Google would of helped push through.
Are you allowed old school non-smart phones? That is how I would do it. Laptop and dumb phone.