Generally hardware warranty will remain if it's purely a hardware issue - you can always flash back anyway.
Android is free software in the sense that you can make and distribute modified versions. If app vendors choose to discriminate against those versions that doesn't make it unfree any more than software supporting windows and not Linux makes Linux unfree