revert allow apps to sd
removed unused flags
removed old RIL reference
cleanup