Modified adbd from rumirand