copied in original androidLock scripts
renamed and start of refactor
adding test file