I guess losing the warranty is part of almost any modification like this and even if you do not want to run yet very unstable custom ROMs like the lineageos from here, you can still use a modified stock rom or simply just root to improve for example battery life and performance. Also you can...