Why do you want to write the CID?
normally the CID is used for identification & protection of apps on SDcard IIRC?