Android app that modifies the Class of Service

We need to write an Android app that modifies the Class of Service (CoS) bits. Does anyone have experience modifying the network bits on the
Android OS, or suggestions as to how we should approach this requirement or is it even possible?