Commit Graph

6 Commits

Author SHA1 Message Date
Thierry Strudel
05b4cbe47c init-common: map sys.retaildemo.enabled to persist.vendor.charge.*
Bug: 73647497
Change-Id: Id317f390da648b935819e25342725a4663ee5841
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-03-26 17:27:35 -07:00
yihsiang_peng
b6789eb647 Restricting battery charging in retail demo mode
Writing an upper threshold value of 35% for the battery level when
the device goes into retail demo mode.

Bug: 38105321
Change-Id: I21fd84cdd367914387749c4faa403cdeb50edd13
Signed-off-by: yihsiang_peng <yihsiang_peng@htc.com>
Signed-off-by: Yueyao Zhu <yueyao@google.com>
2017-06-21 18:26:31 -07:00
Yueyao Zhu
a95f3d727c Ensure usb related .rc is parsed in a defined order
Loading process (e.g. walleye):
- rootdir/init.rc
    |- /vendor/etc/init/hw/init.walleye.rc
        |- /vendor/etc/init/hw/init.walleye.usb.rc
	    |- /vendor/etc/init/hw/init.wahoo.usb.rc

This CL moves the init.walleye.usb.rc to /vendor/etc/init/hw, and
imports init.wahoo.usb.rc from init.walleye.usb.rc.

Test: Build with related CLs and USB File Transfer works on muskie
Bug: 38301110
Change-Id: Iaae98854f70256e17460ee1caae0d43ea585588c
Signed-off-by: Yueyao Zhu <yueyao@google.com>
2017-05-18 17:38:30 -07:00
Isaac Chen
8d434ca2a7 Move configuration files to vendor for build split
The following configuration files need to reside in vendor
partition to work with generic AOSP system image.

Move uevent.*.rc to /vendor
Move fstab.* to /vendor/etc
Move init.*.rc and init.wahoo.usb.rc to /vendor/etc/init.

Also the following two make file variables need to be set:
  - BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
  - PRODUCT_ENFORCE_RRO_TARGETS := framework-res

Comment out "import init.wahoo.usb.sh" in init.common.usb.rc
since /init will load all rc files under /vendor/etc/init.

Bug: 37927875
Test: These files are under /vendor instead of / or /system,
path in init.common.usb.rc is changed to vendor accordingly,
and the resulted system/vendor images work on the device.

Change-Id: I63e18860eed9330e0d7b53b3df09483f2bfce5ea
2017-05-12 11:13:19 +08:00
Badhri Jagan Sridharan
bddf8f3163 Reset gadget stack before configuring
Gadget stack would be configured based on persist.sys.usb.config.
Reset the usb stack before configuring.

Test: Manually verify modem overlay functions for usbradio bootmode
Bug: 31947358
Change-Id: I9bf5c1ad1626bba90689d7abfeaa8c27e82a7ecb
2017-03-29 11:35:07 -07:00
Badhri Jagan Sridharan
ce7bf846be usb.rc: create common scripts for mukie/walleye
Creating a common script for M/W which would copied into target's
root as init.muskie.usb.rc or init.walleye.usb.rc. We can extend
this another level deeper if required.

Bug: 31947358
Change-Id: Ie10248ac4ba0f97c32de8758c89bd9b893615cda
2017-03-24 21:58:47 +00:00