If you want to do it on the phone you'll need superuser permissions first (assuming you know your way around terminal / have developer mode on). Best to do it via vi