Charge can neither be created nor be destroyed .The net charge of an isolated system remains constant. The only way to change the net charge of a system is to bring in charge from elsewhere, or remove charge from the system.
Does the charging by friction violates law of conservation of charge?