Merge "Move startAdvertising() logic into native code (1/3)"