Comparing changes
Open a pull request
base repository: NixOS/mobile-nixos
base: 9fbcf888a76e
head repository: NixOS/mobile-nixos
compare: 9cc2b0ac5f61
- 15 commits
- 13 files changed
- 1 contributor
Commits on Jan 28, 2021
-
- It was running too late. - Wasn't actually using `shellOnFail` config
-
-
modules/adb: Decouple implementation details
The service and mount points are more of an implementation detail of the GadgetFS handling library and not an implementation detail of the init library. In turn, this means that we are decoupling this from the init, follow-up on the next commit...
-
modules/adb: ADB works just fine on any usb gadget
(Though it may require fiddling with udev perms)
-
boot/init: Add support for FunctionFS on GadgetFS
FunctionFS on GadgetFS requires this to happen in order: - (1) preparing the gadget - (2) preparing the function - (3) mounting the functionfs - (4) starting the daemon - (5) enabling the device Doing any of these steps in the wrong order *will* fail. You cannot mount functionfs if the function name hasn't been allocated yet. You cannot start the daemon without functionfs being mounted. You cannot enable the device without the daemon running on the USB endpoints. This is why the GadgetFS stuff here *has* to know about mounting the filesystem and starting the daemon. In fact, the generic library to be written to handle USB gadget mode **will** have to have that knowledge! The added TODOs are to be done when extracting as a standalone library.
-
examples/hello: Try to enable ADB
Also warn if it could not be enabled.
-
examples/target-disk-mode: Try to enable ADB
Also warn if it could not be enabled.
-
-
-
-
-
-
-
Commits on Jan 31, 2021
-
Merge pull request #290 from samueldr-wip/feature/gadgetfs-adb
Enable ADB with GadgetFS devices
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 9fbcf888a76e...9cc2b0ac5f61