Commit Graph

589 Commits

Author SHA1 Message Date
Wei Wang
2b9bd3ff9a muskie/walleye: boot time optimization
Bug: 36780513
Test: walleye boots and touch screen works
Change-Id: Ib3ff955886109a000ab43dc6013540bb03a31b78
2017-04-04 09:48:28 -07:00
Vineeta Srivastava
6580d7e510 Split fstab from wahoo
Change-Id: I5dc5defc969b6d380a47feab957680d9d7f4270f
2017-04-04 04:04:24 +00:00
Thierry Strudel
84047e1fa7 power_profile: set battery.capacity
Change-Id: Icaf487dd10d757146dca7e58b635e8e0fbb958c9
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-31 14:33:20 -07:00
Thierry Strudel
1efebe3568 Merge changes from topic 'oemOverRide'
* changes:
  Reset gadget stack before configuring
  selinux policy for letting the system server set radio config
  Overlay for modem functions
2017-03-30 05:13:04 +00:00
Jibu Joseph
22070471c1 Merge "Use wahoo dumpstate" 2017-03-30 04:48:26 +00:00
vincent_tew
6ff73a38b9 muskie: audio: Update audio table
1. [Mixer path]
 i. Recording Dec gain adjustment
 ii. Camera record change to one channel only
 iii. Add TTY path
 iv. Add ull bt-sco path
2. [Audio_platform_info]
 i. Add TTYpath

Change-Id: Iee8626170fbe8d337633494039cf108bb6d7b771
Signed-off-by: vincent_tew <vincent_tew@htc.com>
2017-03-29 18:22:15 -07:00
TreeHugger Robot
21a21cd74e Merge "audio: specify the correct afe-proxy device id" 2017-03-29 22:49:54 +00:00
David Lin
3b1ab4a966 audio: specify the correct afe-proxy device id
Change-Id: Ie61dd370a0cd08674b0e9a8be89a42061cd6c684
Signed-off-by: David Lin <dtwlin@google.com>
2017-03-29 20:56:18 +00: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
e97ce188fb selinux policy for letting the system server set radio config
Test: Manually verify modem overlay functions for usbradio bootmode
Bug: 31947358
Change-Id: If598b5c464ebf1c24043df331e670f4d7c1af0a9
2017-03-29 11:28:36 -07:00
Badhri Jagan Sridharan
cdf1da74a5 Overlay for modem functions
Test: Manually verify modem overlay functions for usbradio bootmode
Bug: 31947358
Change-Id: I9e7449aab3f4b1d7fd9926338245cc5a5bdc191e
2017-03-29 11:12:07 -07:00
Jie Song
7fdb93de6d Use wahoo dumpstate
Bug: 33820081

Test: Verify dumpstate service running
Change-Id: I9276a1b7a9b50473b12298315fba75dca38404b0
2017-03-29 09:14:10 -07:00
Sunny Goyal
9a58efb844 Including WallpaperPicker in aosp build am: ab68ae6c42
am: dc4f4c2c50

Change-Id: Ie8cfb47524e062de43ef756bdd3c84eadeac22d9
2017-03-29 06:54:43 +00:00
Sunny Goyal
dc4f4c2c50 Including WallpaperPicker in aosp build
am: ab68ae6c42

Change-Id: Id5cae458b28d108ad82731f7753585f6d956869f
2017-03-29 06:50:02 +00:00
Thierry Strudel
836db75274 muskie & walleye BoardConfig: set system partition size to 2.56 GiB
Change-Id: Icd29df64b062fc56fa123d615b23524a94d9b619
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-29 03:14:52 +00:00
Ruchi Kandoi
b88ac44c4f Merge "Add libnfc-nxp.conf for muskie" 2017-03-29 01:21:32 +00:00
Sunny Goyal
ab68ae6c42 Including WallpaperPicker in aosp build
Bug: 35724630
Test: None
Change-Id: Id619e51a3d1ae0c10a01a9a42b9d35c8c499a909
2017-03-28 16:59:12 +00:00
Ruchi Kandoi
7fb8d28212 Add libnfc-nxp.conf for muskie
Test: NFC powers up
Bug: 36163226
Change-Id: I5142c606ffa928fd1566cca508a12a3a993633be
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2017-03-28 09:55:01 -07:00
Badhri Jagan Sridharan
da1bdf28b0 Copy init.common.usb.rc to root
Bug: 36659044
Change-Id: I04034e629435ab03ba48ea87bb64502d51a206d0
2017-03-28 00:16:39 +00:00
Thierry Strudel
1db28dc80b init-common.rc: add muskie/walleye specific rc file
Change-Id: I4ef62518124a8c78dbb940e8f533704f9ee8fcb8
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-27 20:47:11 +00:00
Shawn Yang
974850dca4 Change init.logging.rc sequence and modify SMLoging location
-Load blank init.logging.rc for user build
-Start SMLoging after PerMgr service running
-Change SMLoging location to /vendor/bin

Test: Verified in device by manually trigger SMLog

Change-Id: I622106e7a8023770bbe5ea4224ce2905c2647768
2017-03-24 17:54:28 -07:00
Badhri Jagan Sridharan
59414164c9 Merge "usb.rc: create common scripts for mukie/walleye" 2017-03-24 23:03:59 +00: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
Alex Klyubin
36d2527720 Switch to split SELinux policy
This switches this device from monolithic to split sepolicy.

Test: Device boots, dmesg says "SELinux: Loaded policy from
      /vendor/etc/selinux/precompiled_sepolicy" which means split
      SELinux policy is being used.
Bug: 35809750

Change-Id: I3bac7306313a0688eb80ee858a051282657919cd
2017-03-24 15:41:05 +00:00
vivek mehta
682e730dde audio: add usb tty support
- add usb tty mixer path to enable usb tty feature

Change-Id: Iff1da90e73491e3e40561125a1f54e290c80b71f
2017-03-23 10:55:57 -07:00
Sandeep Patil
5c713cd830 dumpstate: dump /proc/interrupts
default bugreport stops dumping /proc/interrupts but
devices still probably care about it.

Bug: 36486169

Change-Id: Ia498aa0925d7c5f892ee6a0de9a2a3479de945a4
Signed-off-by: Sandeep Patil <sspatil@google.com>
2017-03-22 13:23:26 -07:00
Shawn Yang
c9bb616ea9 Merge "Setup SMloging masks for Muskie/Walleye" 2017-03-20 16:28:55 +00:00
Thierry Strudel
68eed12f64 Don't enforce RESTRICT_VENDOR_FILES := all
To work around b/36413696 allow vendor files to be installed in system.

Change-Id: I4bd01c67f296fa11bbb5a8187fdd03d3480ac009
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-19 20:47:48 -07:00
TreeHugger Robot
53578417e1 Merge "muskie: muskie/walleye overlay changes for auto-brightness" 2017-03-18 00:52:20 +00:00
Steve Pfetsch
27a52f0b0e muskie: muskie/walleye overlay changes for auto-brightness
Enabled the muskie/walleye-specific overlay directories and added
auto-brightness values for muskie and walleye in their respective
config.xml overlays.

Bug: 35415845
Test: Manually verified adaptive brightness works.
Change-Id: Iaa0eac94ef275817ae85e2ed809a2ba036dd84a8
2017-03-17 23:34:41 +00:00
Shawn Yang
48db8269b2 Setup SMloging masks for Muskie/Walleye
Bug: 35647551

Test: Make build for Muskie/Walleye verify logging.rc file loaded
correctly.

Change-Id: I9dad9d8bb530949731c087f98af9d917a433ee85
2017-03-17 16:09:27 -07:00
TreeHugger Robot
a2ed37d437 Merge "device-common: moving to wahoo kernel prebuilt" 2017-03-15 23:08:09 +00:00
Shawn Yang
4373bc2bfb Merge changes from topic 'smlog_htc'
* changes:
  dump state for Muskie/Walleye
  ril: Enable the feature of modem runtime QXDM log by default
2017-03-15 21:46:18 +00:00
Thierry Strudel
553765edce device-common: moving to wahoo kernel prebuilt
Change-Id: I37c24be9a6461417f0a2aa07f03d9404d9d30561
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-15 14:20:07 -07:00
Shawn Yang
949c0f9b5c dump state for Muskie/Walleye
Change-Id: Ifcb7134a745475dd03ddd1bee71509a62a2a981
2017-03-14 16:57:33 -07:00
terry.cr_huang
e14f52d62a ril: Enable the feature of modem runtime QXDM log by default
Set the property persist.radio.smlog_switch to 1 to enable smlog by default

Bug: 35647551
Change-Id: I598cbab0abc2d7c78b4946d2f87b7af476a296cb
2017-03-14 16:55:32 -07:00
TreeHugger Robot
f886cc9976 Merge "audio: copy device specific audio xmls" 2017-03-14 22:54:42 +00:00
David Lin
1529a759a0 audio: copy device specific audio xmls
This fixes issue that Muskie/Walleye is not using their device specific
configs for audio.

Change-Id: I9175a2c6092e27d4b8640b242d68551280860180
Signed-off-by: David Lin <dtwlin@google.com>
2017-03-14 11:42:19 -07:00
Chris Fries
86d221b812 CleanSpec: Blow away system/ vendor/ for recent treble file moves
Stale libraries in system/ will eclipse new ones in vendor/ which
can cause things (HWComposer) to fail to start.  Let's big-bang
the initial cleanspec to deal with this.

Change-Id: Ie80d4dec404f95cc37a89bf00918331c01cb57fb
2017-03-13 13:12:46 -05:00
vincent_tew
f962a79d64 muskie: audio: Update audio table
1.Add usb routing in mixer_paths/audio_platform_info/ ACDB
 -Adding USB headset and USB headphones scenario
 -Correct voicecall headphone TX routing path to slimbus
2.Add TAS2557 EC ref routing in mixer_paths

Change-Id: I055571cf4502b68bf7938a099a724a746a0e955c
Signed-off-by: vincent_tew <vincent_tew@htc.com>
2017-03-10 19:34:50 -08:00
Thierry Strudel
00fbe98de7 aosp_muskie/asop_walleye: add Dialer app
Bug: 34738705
Change-Id: Ifb5705b50bf96858a4a56abc06b96fcd6c544d1b
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-10 15:07:44 -08:00
Thierry Strudel
708ae13e39 define DEVICE_PACKAGE_OVERLAYS for muskie and walleye
Change-Id: I94385ece2d52083a2e014ea99fbd719db57a003a
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-10 11:59:03 -08:00
Thierry Strudel
d635fccde2 Move common inherit-product to wahoo
Change-Id: Ia0c692b6dda860d2663af96a2fed82806381e604
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-10 11:59:03 -08:00
Shawn Yang
b763f5e99c Merge "carrier related device overlay" 2017-03-09 18:56:53 +00:00
jasmine cha
ab5322f6ad audio: Update audio tables and set fluence config
[mixer_paths]
1.modify camcorder for WNR function

[audio_platform_info]
1.modify device name ID for used scenario

Change-Id: I0415196d420962c8f509f6216126665aa12ad992
Signed-off-by: jasmine cha <jasmine_cha@htc.com>
2017-03-07 16:25:23 -08:00
Thierry Strudel
6bcc7cb7a9 add back device-common.mk for muskie/walleye to share things
Change-Id: Ie754ffa678e8f604973125ed7a3c472d01586f95
2017-03-07 16:24:54 -08:00
Nick Desaulniers
3d04197d02 muskie: fbe: share fstab with wahoo
Bug: 34250938
Change-Id: I23c74d0e14b93ebb345b145a882ae129bc1a5540
2017-03-06 14:07:01 -08:00
Thierry Strudel
14876b88f0 Migrate common files to device/google/wahoo
Test: boot, basic functionality
Change-Id: I9edff53d7be158a60914335e755ded652d247db8
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-05 13:18:44 -08:00
TreeHugger Robot
d949806cd4 Merge "Adding allow rules and file contexts to handle denials." 2017-03-04 23:37:53 +00:00
Max Bires
07eb4303e8 Adding allow rules and file contexts to handle denials.
Added lines address following denials:
denied { search } for pid=1184 comm="thermal-engine" name="uio"
dev="sysfs" ino=38350 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs_uio:s0 tclass=dir

denied { open } for pid=1184 comm="thermal-engine" path="/sys/class/uio"
dev="sysfs" ino=38350 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs_uio:s0 tclass=dir

denied { read } for pid=1184 comm="thermal-engine" name="uio"
dev="sysfs" ino=38350 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs_uio:s0 tclass=dir

denied { write } for pid=977 comm="netmgrd" scontext=u:r:netmgrd:s0
tcontext=u:r:netmgrd:s0 tclass=netlink_generic_socket

denied { ioctl } for pid=778 comm="port-bridge" path="/dev/at_mdm0"
dev="tmpfs" ino=22203 ioctlcmd=c300 scontext=u:r:port-bridge:s0
tcontext=u:object_r:at_device:s0 tclass=chr_file

denied { open } for pid=689 comm="Binder:669_1"
path="/firmware/image/modem.b13" dev="sda7" ino=51
scontext=u:r:per_mgr:s0 tcontext=u:object_r:firmware_file:s0 tclass=file

denied { read } for pid=689 comm="Binder:669_1" name="modem.b13"
dev="sda7" ino=51 scontext=u:r:per_mgr:s0
tcontext=u:object_r:firmware_file:s0 tclass=file

denied { read } for pid=670 comm="sensors.qcom" name="subsys0"
dev="sysfs" ino=33249 scontext=u:r:sensors:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=lnk_file

denied { open } for pid=670 comm="sensors.qcom"
path="/sys/bus/msm_subsys/devices" dev="sysfs" ino=16197
scontext=u:r:sensors:s0 tcontext=u:object_r:sysfs_msm_subsys:s0
tclass=dir

denied { read } for pid=670 comm="sensors.qcom" name="devices"
dev="sysfs" ino=16197 scontext=u:r:sensors:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir

denied { search } for pid=670 comm="sensors.qcom" name="msm_subsys"
dev="sysfs" ino=16195 scontext=u:r:sensors:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir

denied { setpcap } for pid=673 comm="tftp_server" capability=8
scontext=u:r:rfs_access:s0 tcontext=u:r:rfs_access:s0 tclass=capability

denied { read } for pid=669 comm="pm-service" name="subsys0" dev="sysfs"
ino=33249 scontext=u:r:per_mgr:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=lnk_file

denied { open } for pid=669 comm="pm-service"
path="/sys/bus/msm_subsys/devices" dev="sysfs" ino=16197
scontext=u:r:per_mgr:s0 tcontext=u:object_r:sysfs_msm_subsys:s0
tclass=dir

denied { read } for pid=669 comm="pm-service" name="devices" dev="sysfs"
ino=16197 scontext=u:r:per_mgr:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir

denied { search } for pid=669 comm="pm-service" name="msm_subsys"
dev="sysfs" ino=16195 scontext=u:r:per_mgr:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir

denied { net_bind_service } for pid=688 comm="pm-service" capability=10
scontext=u:r:per_mgr:s0 tcontext=u:r:per_mgr:s0 tclass=capability

denied { search } for pid=918 comm="loc_launcher" name="mq" dev="sda43"
ino=622663 scontext=u:r:location:s0
tcontext=u:object_r:location_data_file:s0 tclass=dir

denied { write } for pid=918 comm="loc_launcher" name="mq" dev="sda43"
ino=622663 scontext=u:r:location:s0
tcontext=u:object_r:location_data_file:s0 tclass=dir

denied { add_name } for pid=918 comm="loc_launcher" name="location-mq-s"
scontext=u:r:location:s0 tcontext=u:object_r:location_data_file:s0
tclass=dir

denied { create } for pid=918 comm="loc_launcher" name="location-mq-s"
scontext=u:r:location:s0 tcontext=u:object_r:location_data_file:s0
tclass=sock_file

denied { setattr } for pid=918 comm="loc_launcher" name="location-mq-s"
dev="sda43" ino=622681 scontext=u:r:location:s0
tcontext=u:object_r:location_data_file:s0 tclass=sock_file

denied { read } for pid=680 comm="android.hardwar" name="u:obj
ect_r:keymaster_prop:s0" dev="tmpfs" ino=22587
scontext=u:r:hal_gatekeeper_default:s0 tcontext=u:object_r:keymaster_
prop:s0 tclass=file

denied { read } for pid=654 comm="sensors.qcom" name="name" dev="sysfs"
ino=33243 scontext=u:r:sensors:s0 tcontext=u:object_r:sysfs:s0
tclass=file

denied { open } for pid=654 comm="sensors.qcom"
path="/sys/devices/soc/soc:qcom,ipa_fws@1e08000/subsys0/name"
dev="sysfs" ino=33243 scontext=u:r:sensors:s0 tcontext=u:object_r:sys
fs:s0 tclass=file

denied  { mounton } for  pid=560 comm="init" path="/firmware"
dev="sda21" ino=25 scontext=u:r:init:s0
tcontext=u:object_r:firmware_file:s0 tclass=dir

denied { read } for pid=766 comm="gatekeeperd"
name="u:object_r:keymaster_prop:s0" dev="tmpfs" ino=22203
scontext=u:r:gatekeeperd:s0 tcontext=u:object_r:keymaster_prop:s0
tclass=file

denied { search } for pid=1156 comm="rild" name="netmgr" dev="tmpfs"
ino=22676 scontext=u:r:rild:s0 tcontext=u:object_r:netmgrd_socket:s0
tclass=dir

denied { search } for pid=1156 comm="rild" name="netmgr" dev="tmpfs"
ino=22704 scontext=u:r:rild:s0 tcontext=u:object_r:netmgrd_socket:s0
tclass=dir

denied { open } for pid=795 comm="gatekeeperd"
path="/dev/__properties__/u:object_r:keymaster_prop:s0" dev="tmpfs"
ino=18420 scontext=u:r:gatekeeperd:s0
tcontext=u:object_r:keymaster_prop:s0 tclass=file

denied  { write } for  pid=549 comm="ueventd" name="uevent" dev="sysfs"
ino=17842 scontext=u:r:ueventd:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file

denied { open } for pid=661 comm="sensors.qcom"
path="/sys/devices/soc/soc:qcom,ipa_fws@1e08000/subsys0/name"
dev="sysfs" ino=33243 scontext=u:r:sensors:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file

denied { read } for pid=661 comm="sensors.qcom" name="name" dev="sysfs"
ino=33243 scontext=u:r:sensors:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file

denied { read } for pid=732 comm="netmgrd" name="name" dev="sysfs"
ino=33243 scontext=u:r:netmgrd:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file

denied { open } for pid=732 comm="netmgrd"
path="/sys/devices/soc/soc:qcom,ipa_fws@1e08000/subsys0/name"
dev="sysfs" ino=33243 scontext=u:r:netmgrd:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file

denied { open } for pid=732 comm="netmgrd"
path="/sys/devices/soc/cce0000.qcom,venus/subsys1/name" dev="sysfs"
ino=33290 scontext=u:r:netmgrd:s0 tcontext=u:object_r:sysfs:s0
tclass=file

denied { create } for pid=732 comm="netmgrd" scontext=u:r:netmgrd:s0
tcontext=u:r:netmgrd:s0 tclass=netlink_generic_socket

denied { bind } for pid=732 comm="netmgrd" scontext=u:r:netmgrd:s0
tcontext=u:r:netmgrd:s0 tclass=netlink_generic_socket

Bug: 34784662
Test: The above denials are no longer present during boot
Change-Id: I6bccebf51e4b9e6cefda6bbe2331d7216632d1e3
2017-03-04 14:29:29 -08:00