Skip to content

Auto-start adb with trusted keys #174

Open
@Atemu

Description

@Atemu

So this is a fairly specific problem I'm having but might have general usefulness.

I've got a friend's cheeseburger where the screen is almost entirely broken. Glass shattered, no image and only a portion of the screen registers touch.

Bootloader is unlocked though and I can control the device via adb, fastboot and/or twrp.

I plan to use this device as a guinea pig to test without risking breaking my daily driver.

However, I cannot trivially control android itself. I need adb to be enabled in order to use use scrcpy to do anything, including enabling adb.
This can be solved by enabling adb from the recovery: https://gist.github.com/niikoo/3f6bd13a69f2d68f3dd51cc667e79bdc (property step is unnecessary)

You basically need to set some system build.props and push your public key; akin to enabling ssh and pushing a trusted key.

Is it possible to bake these into the system image for simplicity?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions