actually I tried both methods last night, so when I tried to add it to ROM and flashed it, the ROM worked well but airplan mod is still bugy so I tried to include the telephony framework from Adam's OmniROM and flashed the ROM but phone process kept crashing !! don't know what to say! in Adam's ROM airplane mod was just perfect so was connection.
unfortunately, i don't know the solution
perhaps @Adam77Root can help us with this?