Merge "Moving alarm manager native code to apex"