Commit Graph

6 Commits

Author SHA1 Message Date
bengris32
c1369dcf85 rosemary: Move gadget handling out of init and remove unneeded functions
Change-Id: Icd390609918f767962df47dfe839a75082796ee7
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:10:43 +00:00
Matsvei Niaverau
843dbbd7e0 rosemary: rootdir: Update from V13.0.6.0
Change-Id: Id244a2ae3e7f1cad4ac668af6590959035f16426
2024-02-19 11:39:42 +01:00
Ash Blake
ecfab0dcb6 rosemary: usb: implement gadget
Implement a USB gadget HAL based on the default implementation from
AOSP and move key features from init.mt6768.usb.rc to it. Also remove
triggers for some proprietary USB features that aren't too useful on
custom ROMs and seem to exist mostly for engineering purposes.

Change-Id: Ie920fea8b3834d3bada2609df66ca68ddbb980b1
2022-11-12 10:48:38 +03:00
bengris32
cc10db6dbd rosemary: Ensure nonblocking ffs is disabled everywhere
* Move the persist.adb.nonblocking_ffs property into
  PRODUCT_DEFAULT_PROPERTY_OVERRIDES to ensure its set
  everywhere.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I543194ffd3a87dc4ff3093cb6919c194e501ffa2
2022-11-12 10:44:26 +03:00
John Stultz
8fef010592 rosemary: Disable nonblocking_ffs to avoid recent crashes with
adbd

Recent changes to adbd have enabled nonblocking_ffs by default.

These have seeminly uncovered some bad memory corruption in the
kernel ffs gadget driver on every kernel I've tried so far.

Unfortunately I've not been able to diagnose what is going wrong,
so for now, lets disable the nonblocking_ffs.

We still need to root cause the issue as it's a problem even with
the mainline kernel on HiKey, so its likely a generic kernel issue.

Disable nonblocking_ffs in recovery, too.

Change-Id: I7a0797cc9e8e5f263e533beea23642f768c0f017
Signed-off-by: John Stultz <john.stultz@linaro.org>
2022-11-12 10:44:26 +03:00
bengris32
16cda86839 rosemary: Initial minimised rootdir
* All AEE, Meta mode, Factory mode related scripts
  have been removed.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I20ab2c44768ca3f83f8515c2c4455924aaa394d9
2022-11-07 10:30:32 +03:00