land: Add initial product makefiles and dependencies
Change-Id: If94ab716eb95da7cf3c5f58b1265fcf630edc5e5
This commit is contained in:
parent
1bd1d78574
commit
4de3706b0f
53 changed files with 8574 additions and 0 deletions
63
audio/audio_platform_info.xml
Normal file
63
audio/audio_platform_info.xml
Normal file
|
@ -0,0 +1,63 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- Copyright (c) 2015 - 2016, The Linux Foundation. All rights reserved. -->
|
||||
<!-- -->
|
||||
<!-- Redistribution and use in source and binary forms, with or without -->
|
||||
<!-- modification, are permitted provided that the following conditions are -->
|
||||
<!-- met: -->
|
||||
<!-- * Redistributions of source code must retain the above copyright -->
|
||||
<!-- notice, this list of conditions and the following disclaimer. -->
|
||||
<!-- * Redistributions in binary form must reproduce the above -->
|
||||
<!-- copyright notice, this list of conditions and the following -->
|
||||
<!-- disclaimer in the documentation and/or other materials provided -->
|
||||
<!-- with the distribution. -->
|
||||
<!-- * Neither the name of The Linux Foundation nor the names of its -->
|
||||
<!-- contributors may be used to endorse or promote products derived -->
|
||||
<!-- from this software without specific prior written permission. -->
|
||||
<!-- -->
|
||||
<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
|
||||
<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
|
||||
<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
|
||||
<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
|
||||
<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
|
||||
<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
|
||||
<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
|
||||
<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
|
||||
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
<audio_platform_info>
|
||||
<bit_width_configs>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER" bit_width="24"/>
|
||||
</bit_width_configs>
|
||||
<interface_names>
|
||||
<device name="AUDIO_DEVICE_IN_BUILTIN_MIC" interface="SLIMBUS_0" codec_type="external"/>
|
||||
<device name="AUDIO_DEVICE_IN_BACK_MIC" interface="SLIMBUS_0" codec_type="external"/>
|
||||
<device name="AUDIO_DEVICE_IN_BUILTIN_MIC" interface="TERT_MI2S" codec_type="internal"/>
|
||||
<device name="AUDIO_DEVICE_IN_BACK_MIC" interface="TERT_MI2S" codec_type="internal"/>
|
||||
</interface_names>
|
||||
<pcm_ids>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD2" type="out" id="24"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD3" type="out" id="27"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD4" type="out" id="28"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD5" type="out" id="29"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD6" type="out" id="30"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD7" type="out" id="31"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD8" type="out" id="32"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD9" type="out" id="33"/>
|
||||
<usecase name="USECASE_VOICEMMODE1_CALL" type="in" id="34"/>
|
||||
<usecase name="USECASE_VOICEMMODE1_CALL" type="out" id="34"/>
|
||||
<usecase name="USECASE_VOICEMMODE2_CALL" type="in" id="35"/>
|
||||
<usecase name="USECASE_VOICEMMODE2_CALL" type="out" id="35"/>
|
||||
</pcm_ids>
|
||||
<config_params>
|
||||
<param key="spkr_1_tz_name" value="wsa881x.0f"/>
|
||||
<param key="spkr_2_tz_name" value=""/>
|
||||
</config_params>
|
||||
<acdb_ids>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" acdb_id="136"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED" acdb_id="136"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED_VBAT" acdb_id="136"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED_VBAT" acdb_id="136"/>
|
||||
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK" acdb_id="137"/>
|
||||
</acdb_ids>
|
||||
</audio_platform_info>
|
||||
|
173
audio/audio_policy.conf
Normal file
173
audio/audio_policy.conf
Normal file
|
@ -0,0 +1,173 @@
|
|||
# Global configuration section:
|
||||
# - lists input and output devices always present on the device
|
||||
# as well as the output device selected by default.
|
||||
# Devices are designated by a string that corresponds to the enum in audio.h
|
||||
# - defines whether the speaker output path uses DRC
|
||||
# "TRUE" means DRC is enabled, "FALSE" or omission means DRC isn't used.
|
||||
global_configuration {
|
||||
attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_TELEPHONY_TX
|
||||
default_output_device AUDIO_DEVICE_OUT_SPEAKER
|
||||
attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_FM_TUNER|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_TELEPHONY_RX
|
||||
|
||||
speaker_drc_enabled TRUE
|
||||
}
|
||||
|
||||
# audio hardware module section: contains descriptors for all audio hw modules present on the
|
||||
# device. Each hw module node is named after the corresponding hw module library base name.
|
||||
# For instance, "primary" corresponds to audio.primary.<device>.so.
|
||||
# The "primary" module is mandatory and must include at least one output with
|
||||
# AUDIO_OUTPUT_FLAG_PRIMARY flag.
|
||||
# Each module descriptor contains one or more output profile descriptors and zero or more
|
||||
# input profile descriptors. Each profile lists all the parameters supported by a given output
|
||||
# or input stream category.
|
||||
# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
|
||||
# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n".
|
||||
|
||||
audio_hw_modules {
|
||||
primary {
|
||||
outputs {
|
||||
primary {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY|AUDIO_DEVICE_OUT_FM
|
||||
flags AUDIO_OUTPUT_FLAG_PRIMARY|AUDIO_OUTPUT_FLAG_FAST
|
||||
}
|
||||
raw {
|
||||
sampling_rates 48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW
|
||||
}
|
||||
deep_buffer {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
|
||||
}
|
||||
multichannel {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks dynamic
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT
|
||||
}
|
||||
direct_pcm {
|
||||
sampling_rates 8000|11025|16000|22050|32000|44100|48000|64000|88200|96000|176400|192000
|
||||
channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO|AUDIO_CHANNEL_OUT_2POINT1|AUDIO_CHANNEL_OUT_QUAD|AUDIO_CHANNEL_OUT_PENTA|AUDIO_CHANNEL_OUT_5POINT1|AUDIO_CHANNEL_OUT_6POINT1|AUDIO_CHANNEL_OUT_7POINT1
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_PROXY|AUDIO_DEVICE_OUT_AUX_DIGITAL
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_DIRECT_PCM
|
||||
}
|
||||
compress_offload {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000|64000|88200|96000|176400|192000
|
||||
channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO|AUDIO_CHANNEL_OUT_2POINT1|AUDIO_CHANNEL_OUT_QUAD|AUDIO_CHANNEL_OUT_PENTA|AUDIO_CHANNEL_OUT_5POINT1|AUDIO_CHANNEL_OUT_6POINT1|AUDIO_CHANNEL_OUT_7POINT1
|
||||
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AC3|AUDIO_FORMAT_E_AC3|AUDIO_FORMAT_PCM_16_BIT_OFFLOAD|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
|
||||
}
|
||||
incall_music {
|
||||
sampling_rates 8000|16000|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_MONO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_INCALL_MUSIC
|
||||
}
|
||||
voice_tx {
|
||||
sampling_rates 8000|16000|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO|AUDIO_CHANNEL_OUT_MONO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_TELEPHONY_TX
|
||||
}
|
||||
voip_rx {
|
||||
sampling_rates 8000|16000
|
||||
channel_masks AUDIO_CHANNEL_OUT_MONO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
primary {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_FRONT_BACK
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_FM_TUNER|AUDIO_DEVICE_IN_VOICE_CALL
|
||||
}
|
||||
surround_sound {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_FRONT_BACK|AUDIO_CHANNEL_IN_5POINT1
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC
|
||||
}
|
||||
voice_rx {
|
||||
sampling_rates 8000|16000|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_MONO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_TELEPHONY_RX
|
||||
}
|
||||
}
|
||||
}
|
||||
a2dp {
|
||||
outputs {
|
||||
a2dp {
|
||||
sampling_rates 44100
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_ALL_A2DP
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
a2dp {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP
|
||||
}
|
||||
}
|
||||
}
|
||||
usb {
|
||||
outputs {
|
||||
usb_accessory {
|
||||
sampling_rates 44100
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_USB_ACCESSORY
|
||||
}
|
||||
usb_device {
|
||||
sampling_rates dynamic
|
||||
channel_masks dynamic
|
||||
formats dynamic
|
||||
devices AUDIO_DEVICE_OUT_USB_DEVICE
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
usb_device {
|
||||
sampling_rates dynamic
|
||||
channel_masks AUDIO_CHANNEL_IN_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_USB_DEVICE
|
||||
}
|
||||
}
|
||||
}
|
||||
r_submix {
|
||||
outputs {
|
||||
submix {
|
||||
sampling_rates 48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
submix {
|
||||
sampling_rates 48000
|
||||
channel_masks AUDIO_CHANNEL_IN_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1098
audio/mixer_paths.xml
Normal file
1098
audio/mixer_paths.xml
Normal file
File diff suppressed because it is too large
Load diff
244
configs/media_codecs.xml
Normal file
244
configs/media_codecs.xml
Normal file
|
@ -0,0 +1,244 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
Copyright (C) 2016 The Linux Foundation. All rights reserved.
|
||||
Not a contribution.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<!--
|
||||
<!DOCTYPE MediaCodecs [
|
||||
<!ELEMENT Include EMPTY>
|
||||
<!ATTLIST Include href CDATA #REQUIRED>
|
||||
<!ELEMENT MediaCodecs (Decoders|Encoders|Include)*>
|
||||
<!ELEMENT Decoders (MediaCodec|Include)*>
|
||||
<!ELEMENT Encoders (MediaCodec|Include)*>
|
||||
<!ELEMENT MediaCodec (Type|Quirk|Include)*>
|
||||
<!ATTLIST MediaCodec name CDATA #REQUIRED>
|
||||
<!ATTLIST MediaCodec type CDATA>
|
||||
<!ELEMENT Type EMPTY>
|
||||
<!ATTLIST Type name CDATA #REQUIRED>
|
||||
<!ELEMENT Quirk EMPTY>
|
||||
<!ATTLIST Quirk name CDATA #REQUIRED>
|
||||
]>
|
||||
|
||||
There's a simple and a complex syntax to declare the availability of a
|
||||
media codec:
|
||||
|
||||
A codec that properly follows the OpenMax spec and therefore doesn't have any
|
||||
quirks and that only supports a single content type can be declared like so:
|
||||
|
||||
<MediaCodec name="OMX.foo.bar" type="something/interesting" />
|
||||
|
||||
If a codec has quirks OR supports multiple content types, the following syntax
|
||||
can be used:
|
||||
|
||||
<MediaCodec name="OMX.foo.bar" >
|
||||
<Type name="something/interesting" />
|
||||
<Type name="something/else" />
|
||||
...
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Quirk name="output-buffers-are-unreadable" />
|
||||
</MediaCodec>
|
||||
|
||||
Only the three quirks included above are recognized at this point:
|
||||
|
||||
"requires-allocate-on-input-ports"
|
||||
must be advertised if the component does not properly support specification
|
||||
of input buffers using the OMX_UseBuffer(...) API but instead requires
|
||||
OMX_AllocateBuffer to be used.
|
||||
|
||||
"requires-allocate-on-output-ports"
|
||||
must be advertised if the component does not properly support specification
|
||||
of output buffers using the OMX_UseBuffer(...) API but instead requires
|
||||
OMX_AllocateBuffer to be used.
|
||||
|
||||
"output-buffers-are-unreadable"
|
||||
must be advertised if the emitted output buffers of a decoder component
|
||||
are not readable, i.e. use a custom format even though abusing one of
|
||||
the official OMX colorspace constants.
|
||||
Clients of such decoders will not be able to access the decoded data,
|
||||
naturally making the component much less useful. The only use for
|
||||
a component with this quirk is to render the output to the screen.
|
||||
Audio decoders MUST NOT advertise this quirk.
|
||||
Video decoders that advertise this quirk must be accompanied by a
|
||||
corresponding color space converter for thumbnail extraction,
|
||||
matching surfaceflinger support that can render the custom format to
|
||||
a texture and possibly other code, so just DON'T USE THIS QUIRK.
|
||||
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Decoder capabilities for thorium
|
||||
_________________________________________________________________________
|
||||
| Codec | W H fps Mbps MB/s | Encode Secure-dec |
|
||||
|__________|_________________________________________|___________________|
|
||||
| h264 | 1920 1088 30 20 244800 | Y N |
|
||||
| hevc | 1920 1088 30 20 244800 | N N |
|
||||
| mpeg4 | 1920 1088 30 6 244800 | Y N |
|
||||
| vp8 | 1920 1088 30 20 244800 | N N |
|
||||
| div4/5/6 | 1920 1088 30 6 244800 | N N |
|
||||
| h263 | 864 480 30 2 48600 | Y N |
|
||||
|__________|_________________________________________|___________________|
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Encoder capabilities for thorium
|
||||
____________________________________________________
|
||||
| Codec | W H fps Mbps MB/s |
|
||||
|__________|_________________________________________|
|
||||
| h264 | 1920 1088 30 20 244800 |
|
||||
| mpeg4 | 864 480 30 2 48600 |
|
||||
| h263 | 864 480 30 2 48600 |
|
||||
|____________________________________________________|
|
||||
-->
|
||||
|
||||
<MediaCodecs>
|
||||
<Include href="media_codecs_google_audio.xml" />
|
||||
<Include href="media_codecs_google_telephony.xml" />
|
||||
<Settings>
|
||||
<Setting name="max-video-encoder-input-buffers" value="9" />
|
||||
</Settings>
|
||||
<Encoders>
|
||||
<!-- Video Hardware -->
|
||||
<MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" >
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Quirk name="requires-loaded-to-idle-after-allocation" />
|
||||
<Limit name="size" min="96x64" max="1920x1088" />
|
||||
<Limit name="alignment" value="2x2" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="244800" />
|
||||
<Limit name="bitrate" range="1-20000000" />
|
||||
<Limit name="concurrent-instances" max="8" />
|
||||
</MediaCodec>
|
||||
<!-- Video Software -->
|
||||
<MediaCodec name="OMX.qcom.video.encoder.mpeg4sw" type="video/mp4v-es" >
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Quirk name="requires-loaded-to-idle-after-allocation" />
|
||||
<Limit name="size" min="32x32" max="864x480" />
|
||||
<Limit name="alignment" value="2x2" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="48600" />
|
||||
<Limit name="bitrate" range="1-2000000" />
|
||||
<Limit name="concurrent-instances" max="16" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qcom.video.encoder.h263sw" type="video/3gpp" >
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Quirk name="requires-loaded-to-idle-after-allocation" />
|
||||
<Limit name="size" min="32x32" max="864x480" />
|
||||
<Limit name="alignment" value="4x4" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="48600" />
|
||||
<Limit name="bitrate" range="1-2000000" />
|
||||
<Limit name="concurrent-instances" max="16" />
|
||||
</MediaCodec>
|
||||
</Encoders>
|
||||
<Decoders>
|
||||
<!-- Audio Software -->
|
||||
<MediaCodec name="OMX.qti.audio.decoder.flac" type="audio/flac" />
|
||||
<!-- Video Hardware -->
|
||||
<MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" >
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Quirk name="defers-output-buffer-allocation" />
|
||||
<Limit name="size" min="64x64" max="1920x1088" />
|
||||
<Limit name="alignment" value="2x2" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="244800" />
|
||||
<Limit name="bitrate" range="1-20000000" />
|
||||
<Feature name="adaptive-playback" />
|
||||
<Limit name="concurrent-instances" max="8" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" >
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Quirk name="defers-output-buffer-allocation" />
|
||||
<Limit name="size" min="64x64" max="1920x1088" />
|
||||
<Limit name="alignment" value="2x2" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="244800" />
|
||||
<Limit name="bitrate" range="1-20000000" />
|
||||
<Feature name="adaptive-playback" />
|
||||
<Limit name="concurrent-instances" max="8" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" >
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Quirk name="defers-output-buffer-allocation" />
|
||||
<Limit name="size" min="64x64" max="1920x1088" />
|
||||
<Limit name="alignment" value="2x2" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="244800" />
|
||||
<Limit name="bitrate" range="1-20000000" />
|
||||
<Feature name="adaptive-playback" />
|
||||
<Limit name="concurrent-instances" max="8" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qti.video.decoder.divxsw" type="video/divx" >
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Limit name="size" min="16x16" max="1920x1088" />
|
||||
<Limit name="alignment" value="2x2" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="244800" />
|
||||
<Limit name="bitrate" range="1-6000000" />
|
||||
<Limit name="concurrent-instances" max="16" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qti.video.decoder.divx4sw" type="video/divx4" >
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Limit name="size" min="16x16" max="1920x1088" />
|
||||
<Limit name="alignment" value="2x2" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="244800" />
|
||||
<Limit name="bitrate" range="1-6000000" />
|
||||
<Limit name="concurrent-instances" max="16" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qti.video.decoder.mpeg4sw">
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Type name="video/mp4v-es">
|
||||
<Limit name="size" min="16x16" max="1920x1088" />
|
||||
<Limit name="alignment" value="2x2" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="244800" />
|
||||
<Limit name="bitrate" range="1-6000000" />
|
||||
<Limit name="concurrent-instances" max="16" />
|
||||
</Type>
|
||||
<Type name="video/mp4v-esdp">
|
||||
<Limit name="size" min="16x16" max="1920x1088" />
|
||||
<Limit name="alignment" value="2x2" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="244800" />
|
||||
<Limit name="bitrate" range="1-6000000" />
|
||||
<Limit name="concurrent-instances" max="16" />
|
||||
</Type>
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qti.video.decoder.h263sw" type="video/3gpp" >
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Limit name="size" min="16x16" max="864x480" />
|
||||
<Limit name="alignment" value="4x4" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="blocks-per-second" min="1" max="48600" />
|
||||
<Limit name="bitrate" range="1-2000000" />
|
||||
<Limit name="concurrent-instances" max="16" />
|
||||
</MediaCodec>
|
||||
</Decoders>
|
||||
<Include href="media_codecs_google_video.xml" />
|
||||
</MediaCodecs>
|
115
configs/media_codecs_performance.xml
Normal file
115
configs/media_codecs_performance.xml
Normal file
|
@ -0,0 +1,115 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
||||
|
||||
Not a Contribution.
|
||||
|
||||
Copyright 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<MediaCodecs>
|
||||
<Encoders>
|
||||
<MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="377-377" />
|
||||
<Limit name="measured-frame-rate-720x480" range="113-113" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="76-76" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="44-44" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qcom.video.encoder.h263sw" type="video/3gpp" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="160-160" />
|
||||
<Limit name="measured-frame-rate-352x288" range="86-86" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qcom.video.encoder.mpeg4sw" type="video/mp4v-es" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="179-179" />
|
||||
<Limit name="measured-frame-rate-352x288" range="84-84" />
|
||||
<Limit name="measured-frame-rate-640x480" range="54-54" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="208-208" />
|
||||
<Limit name="measured-frame-rate-720x480" range="98-98" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="44-44" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="21-21" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="397-397" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="413-413" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
|
||||
<Limit name="measured-frame-rate-320x180" range="328-328" />
|
||||
<Limit name="measured-frame-rate-640x360" range="158-158" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="65-65" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="29-29" />
|
||||
</MediaCodec>
|
||||
</Encoders>
|
||||
<Decoders>
|
||||
<MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="570-570" />
|
||||
<Limit name="measured-frame-rate-720x480" range="280-280" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="155-155" />
|
||||
<Limit name="measured-frame-rate-1920x1088" range="57-57" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" update="true">
|
||||
<Limit name="measured-frame-rate-352x288" range="578-578" />
|
||||
<Limit name="measured-frame-rate-720x480" range="390-390" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="157-157" />
|
||||
<Limit name="measured-frame-rate-1920x1088" range="63-63" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qti.video.decoder.h263sw" type="video/3gpp" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="889-889" />
|
||||
<Limit name="measured-frame-rate-352x288" range="580-580" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qti.video.decoder.mpeg4sw" update="true">
|
||||
<Type name="video/mp4v-es">
|
||||
<Limit name="measured-frame-rate-480x360" range="519-519" />
|
||||
</Type>
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="659-659" />
|
||||
<Limit name="measured-frame-rate-640x360" range="509-509" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="162-162" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="87-87" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.google.h264.decoder" type="video/avc" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="586-586" />
|
||||
<Limit name="measured-frame-rate-720x480" range="287-287" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="186-186" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="80-80" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.google.hevc.decoder" type="video/hevc" update="true">
|
||||
<Limit name="measured-frame-rate-352x288" range="525-525" />
|
||||
<Limit name="measured-frame-rate-720x480" range="333-333" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="189-189" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="104-104" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="1292-1292" />
|
||||
<Limit name="measured-frame-rate-352x288" range="834-834" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="1330-1330" />
|
||||
<Limit name="measured-frame-rate-640x360" range="340-340" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="59-59" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="44-44" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="511-511" />
|
||||
<Limit name="measured-frame-rate-640x360" range="421-421" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="111-111" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="76-76" />
|
||||
</MediaCodec>
|
||||
</Decoders>
|
||||
</MediaCodecs>
|
||||
|
698
configs/media_profiles.xml
Normal file
698
configs/media_profiles.xml
Normal file
|
@ -0,0 +1,698 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
Copyright (C) 2015 The Linux Foundation. All rights reserved.
|
||||
Not a contribution.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<!DOCTYPE MediaSettings [
|
||||
<!ELEMENT MediaSettings (CamcorderProfiles,
|
||||
EncoderOutputFileFormat+,
|
||||
VideoEncoderCap+,
|
||||
AudioEncoderCap+,
|
||||
VideoDecoderCap,
|
||||
AudioDecoderCap)>
|
||||
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
|
||||
<!ELEMENT EncoderProfile (Video, Audio)>
|
||||
<!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
|
||||
<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
|
||||
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
|
||||
<!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED>
|
||||
<!ELEMENT Video EMPTY>
|
||||
<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
|
||||
<!ATTLIST Video bitRate CDATA #REQUIRED>
|
||||
<!ATTLIST Video width CDATA #REQUIRED>
|
||||
<!ATTLIST Video height CDATA #REQUIRED>
|
||||
<!ATTLIST Video frameRate CDATA #REQUIRED>
|
||||
<!ELEMENT Audio EMPTY>
|
||||
<!ATTLIST Audio codec (amrnb|amrwb|aac|lpcm) #REQUIRED>
|
||||
<!ATTLIST Audio bitRate CDATA #REQUIRED>
|
||||
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
|
||||
<!ATTLIST Audio channels (1|2|6) #REQUIRED>
|
||||
<!ELEMENT ImageEncoding EMPTY>
|
||||
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
|
||||
<!ELEMENT ImageDecoding EMPTY>
|
||||
<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
|
||||
<!ELEMENT Camera EMPTY>
|
||||
<!ELEMENT EncoderOutputFileFormat EMPTY>
|
||||
<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
|
||||
<!ELEMENT VideoEncoderCap EMPTY>
|
||||
<!ATTLIST VideoEncoderCap name (h264|h263|m4v) #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxHFRFrameWidth CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxHFRFrameHeight CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxHFRMode CDATA #REQUIRED>
|
||||
<!ELEMENT AudioEncoderCap EMPTY>
|
||||
<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma|lpcm) #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap minChannels (1|2|6) #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap maxChannels (1|2|6) #REQUIRED>
|
||||
<!ELEMENT VideoDecoderCap EMPTY>
|
||||
<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
|
||||
<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
|
||||
<!ELEMENT AudioDecoderCap EMPTY>
|
||||
<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
|
||||
<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
|
||||
<!ELEMENT VideoEditorCap EMPTY>
|
||||
<!ATTLIST VideoEditorCap maxInputFrameWidth CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEditorCap maxInputFrameHeight CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEditorCap maxOutputFrameWidth CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEditorCap maxOutputFrameHeight CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEditorCap maxPrefetchYUVFrames CDATA #REQUIRED>
|
||||
<!ELEMENT ExportVideoProfile EMPTY>
|
||||
<!ATTLIST ExportVideoProfile name (h264) #REQUIRED>
|
||||
<!ATTLIST ExportVideoProfile profile CDATA #REQUIRED>
|
||||
<!ATTLIST ExportVideoProfile level CDATA #REQUIRED>
|
||||
]>
|
||||
<!--
|
||||
This file is used to declare the multimedia profiles and capabilities
|
||||
on an android-powered device.
|
||||
-->
|
||||
<MediaSettings>
|
||||
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
|
||||
<!-- Back Camera -->
|
||||
<CamcorderProfiles cameraId="0" startOffsetMs="300">
|
||||
|
||||
<EncoderProfile quality="low" fileFormat="3gp" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="192000"
|
||||
width="176"
|
||||
height="144"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="high" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="20000000"
|
||||
width="1920"
|
||||
height="1080"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
|
||||
<Video codec="h264"
|
||||
bitRate="512000"
|
||||
width="320"
|
||||
height="240"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="cif" fileFormat="3gp" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="720000"
|
||||
width="352"
|
||||
height="288"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="480p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="2000000"
|
||||
width="720"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="14000000"
|
||||
width="1280"
|
||||
height="720"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="20000000"
|
||||
width="1920"
|
||||
height="1080"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="qcif" fileFormat="3gp" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="192000"
|
||||
width="176"
|
||||
height="144"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="vga" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="2000000"
|
||||
width="640"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="192000"
|
||||
width="176"
|
||||
height="144"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="20000000"
|
||||
width="1920"
|
||||
height="1080"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="192000"
|
||||
width="176"
|
||||
height="144"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="720000"
|
||||
width="352"
|
||||
height="288"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
|
||||
<EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="512000"
|
||||
width="320"
|
||||
height="240"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="2000000"
|
||||
width="640"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="2000000"
|
||||
width="640"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="14000000"
|
||||
width="1280"
|
||||
height="720"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="20000000"
|
||||
width="1920"
|
||||
height="1080"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<ImageEncoding quality="95" />
|
||||
<ImageEncoding quality="80" />
|
||||
<ImageEncoding quality="70" />
|
||||
<ImageDecoding memCap="20000000" />
|
||||
|
||||
</CamcorderProfiles>
|
||||
<!-- Front Camera -->
|
||||
<CamcorderProfiles cameraId="1" startOffsetMs="300">
|
||||
|
||||
<EncoderProfile quality="low" fileFormat="3gp" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="192000"
|
||||
width="176"
|
||||
height="144"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="high" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="20000000"
|
||||
width="1920"
|
||||
height="1080"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
|
||||
<Video codec="h264"
|
||||
bitRate="512000"
|
||||
width="320"
|
||||
height="240"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="cif" fileFormat="3gp" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="720000"
|
||||
width="352"
|
||||
height="288"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="480p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="2000000"
|
||||
width="720"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="14000000"
|
||||
width="1280"
|
||||
height="720"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="20000000"
|
||||
width="1920"
|
||||
height="1080"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="qcif" fileFormat="3gp" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="192000"
|
||||
width="176"
|
||||
height="144"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="vga" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="2000000"
|
||||
width="640"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="192000"
|
||||
width="176"
|
||||
height="144"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="20000000"
|
||||
width="1920"
|
||||
height="1080"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
<EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="192000"
|
||||
width="176"
|
||||
height="144"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="1200000"
|
||||
width="352"
|
||||
height="288"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="96000"
|
||||
sampleRate="48000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="512000"
|
||||
width="320"
|
||||
height="240"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="2000000"
|
||||
width="640"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="amrnb"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="5000000"
|
||||
width="720"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="96000"
|
||||
sampleRate="48000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="8000000"
|
||||
width="1280"
|
||||
height="720"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="96000"
|
||||
sampleRate="48000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="20000000"
|
||||
width="1920"
|
||||
height="1080"
|
||||
frameRate="30" />
|
||||
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="156000"
|
||||
sampleRate="48000"
|
||||
channels="2" />
|
||||
</EncoderProfile>
|
||||
|
||||
<ImageEncoding quality="95" />
|
||||
<ImageEncoding quality="80" />
|
||||
<ImageEncoding quality="70" />
|
||||
<ImageDecoding memCap="20000000" />
|
||||
|
||||
</CamcorderProfiles>
|
||||
|
||||
<EncoderOutputFileFormat name="3gp" />
|
||||
<EncoderOutputFileFormat name="mp4" />
|
||||
|
||||
<!--
|
||||
If a codec is not enabled, it is invisible to the applications
|
||||
In other words, the applications won't be able to use the codec
|
||||
or query the capabilities of the codec at all if it is disabled
|
||||
-->
|
||||
<VideoEncoderCap name="h264" enabled="true"
|
||||
minBitRate="64000" maxBitRate="20000000"
|
||||
minFrameWidth="176" maxFrameWidth="1920"
|
||||
minFrameHeight="144" maxFrameHeight="1080"
|
||||
minFrameRate="15" maxFrameRate="30"
|
||||
maxHFRFrameWidth="1280" maxHFRFrameHeight="720"
|
||||
maxHFRMode="60" />
|
||||
|
||||
<VideoEncoderCap name="h263" enabled="true"
|
||||
minBitRate="64000" maxBitRate="2000000"
|
||||
minFrameWidth="176" maxFrameWidth="864"
|
||||
minFrameHeight="144" maxFrameHeight="480"
|
||||
minFrameRate="15" maxFrameRate="30"
|
||||
maxHFRFrameWidth="0" maxHFRFrameHeight="0"
|
||||
maxHFRMode="0" />
|
||||
|
||||
<VideoEncoderCap name="m4v" enabled="true"
|
||||
minBitRate="64000" maxBitRate="2000000"
|
||||
minFrameWidth="176" maxFrameWidth="864"
|
||||
minFrameHeight="144" maxFrameHeight="480"
|
||||
minFrameRate="15" maxFrameRate="30"
|
||||
maxHFRFrameWidth="0" maxHFRFrameHeight="0"
|
||||
maxHFRMode="0" />
|
||||
|
||||
<AudioEncoderCap name="aac" enabled="true"
|
||||
minBitRate="8000" maxBitRate="96000"
|
||||
minSampleRate="8000" maxSampleRate="48000"
|
||||
minChannels="1" maxChannels="6" />
|
||||
|
||||
<AudioEncoderCap name="heaac" enabled="true"
|
||||
minBitRate="8000" maxBitRate="64000"
|
||||
minSampleRate="16000" maxSampleRate="48000"
|
||||
minChannels="1" maxChannels="1" />
|
||||
|
||||
<AudioEncoderCap name="aaceld" enabled="true"
|
||||
minBitRate="16000" maxBitRate="192000"
|
||||
minSampleRate="16000" maxSampleRate="48000"
|
||||
minChannels="1" maxChannels="1" />
|
||||
|
||||
<AudioEncoderCap name="amrwb" enabled="true"
|
||||
minBitRate="6600" maxBitRate="23850"
|
||||
minSampleRate="16000" maxSampleRate="16000"
|
||||
minChannels="1" maxChannels="1" />
|
||||
|
||||
<AudioEncoderCap name="amrnb" enabled="true"
|
||||
minBitRate="5525" maxBitRate="12200"
|
||||
minSampleRate="8000" maxSampleRate="8000"
|
||||
minChannels="1" maxChannels="1" />
|
||||
|
||||
<!-- <AudioEncoderCap name="lpcm" enabled="true"
|
||||
minBitRate="768000" maxBitRate="4608000"
|
||||
minSampleRate="48000" maxSampleRate="48000"
|
||||
minChannels="1" maxChannels="6" />-->
|
||||
|
||||
<!--
|
||||
FIXME:
|
||||
We do not check decoder capabilities at present
|
||||
At present, we only check whether windows media is visible
|
||||
for TEST applications. For other applications, we do
|
||||
not perform any checks at all.
|
||||
-->
|
||||
<VideoDecoderCap name="wmv" enabled="true"/>
|
||||
<AudioDecoderCap name="wma" enabled="true"/>
|
||||
|
||||
<!--
|
||||
The VideoEditor Capability configuration:
|
||||
- maxInputFrameWidth: maximum video width of imported video clip.
|
||||
- maxInputFrameHeight: maximum video height of imported video clip.
|
||||
- maxOutputFrameWidth: maximum video width of exported video clip.
|
||||
- maxOutputFrameHeight: maximum video height of exported video clip.
|
||||
- maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder,
|
||||
used to limit the amount of memory for prefetched YUV frames.
|
||||
For this platform, it allows maximum 30MB(3MB per 1080p frame x 10
|
||||
frames) memory.
|
||||
-->
|
||||
<VideoEditorCap maxInputFrameWidth="1920"
|
||||
maxInputFrameHeight="1080" maxOutputFrameWidth="1920"
|
||||
maxOutputFrameHeight="1080" maxPrefetchYUVFrames="10"/>
|
||||
<!--
|
||||
The VideoEditor Export codec profile and level values
|
||||
correspond to the values in OMX_Video.h.
|
||||
E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline
|
||||
and level 4096 means OMX_VIDEO_AVCLevel41.
|
||||
Please note that the values are in decimal.
|
||||
These values are for video encoder.
|
||||
-->
|
||||
<!--
|
||||
Codec = h.264, Baseline profile, level 4
|
||||
-->
|
||||
<ExportVideoProfile name="h264" profile= "1" level="2048"/>
|
||||
</MediaSettings>
|
2
configs/msm_irqbalance.conf
Normal file
2
configs/msm_irqbalance.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
PRIO=0,0,0,0,1,1,1,1
|
||||
IGNORED_IRQ=20,39
|
311
configs/sec_config
Normal file
311
configs/sec_config
Normal file
|
@ -0,0 +1,311 @@
|
|||
/* IPC Security Config */
|
||||
/* <GPS QMI Service ID - 16>:<GPS QMI Instance ID - all instances>:<Client Group ID> */
|
||||
16:4294967295:1000:3004
|
||||
/* <LOWI QMI Service ID - 38>:<LOWI QMI Instance ID - all instances>:<Client Group ID> */
|
||||
56:4294967295:1021:3004
|
||||
/* Allow SS CTL service to be used by system and net_raw processes */
|
||||
43:4294967295:1000:3004
|
||||
/* <UIMRMT QMI Service ID - 16>:<UIMRMT QMI Instance ID - all instances>:<Client Group ID> */
|
||||
50:4294967295:1001
|
||||
/* QMI-SLIM service permitted to gps and net_raw */
|
||||
55:4294967295:1021:3004
|
||||
/* Allow Sensor services to be used by sensor process */
|
||||
256:4294967295:3011
|
||||
257:4294967295:3011
|
||||
258:4294967295:3011
|
||||
259:4294967295:3011
|
||||
260:4294967295:3011
|
||||
261:4294967295:3011
|
||||
262:4294967295:3011
|
||||
263:4294967295:3011
|
||||
264:4294967295:3011
|
||||
265:4294967295:3011
|
||||
266:4294967295:3011
|
||||
267:4294967295:3011
|
||||
268:4294967295:3011
|
||||
269:4294967295:3011
|
||||
270:4294967295:3011
|
||||
271:4294967295:3011
|
||||
272:4294967295:3011
|
||||
273:4294967295:3011
|
||||
274:4294967295:3011
|
||||
275:4294967295:3011
|
||||
276:4294967295:3011
|
||||
277:4294967295:3011
|
||||
278:4294967295:3011
|
||||
279:4294967295:3011
|
||||
280:4294967295:3011
|
||||
281:4294967295:3011
|
||||
282:4294967295:3011
|
||||
283:4294967295:3011
|
||||
284:4294967295:3011
|
||||
285:4294967295:3011
|
||||
286:4294967295:3011
|
||||
287:4294967295:3011
|
||||
288:4294967295:3011
|
||||
289:4294967295:3011
|
||||
290:4294967295:3011
|
||||
291:4294967295:3011
|
||||
292:4294967295:3011
|
||||
293:4294967295:3011
|
||||
294:4294967295:3011
|
||||
295:4294967295:3011
|
||||
296:4294967295:3011
|
||||
297:4294967295:3011
|
||||
298:4294967295:3011
|
||||
299:4294967295:3011
|
||||
300:4294967295:3011
|
||||
301:4294967295:3011
|
||||
302:4294967295:3011
|
||||
303:4294967295:3011
|
||||
304:4294967295:3011
|
||||
305:4294967295:3011
|
||||
306:4294967295:3011
|
||||
307:4294967295:3011
|
||||
308:4294967295:3011
|
||||
309:4294967295:3011
|
||||
310:4294967295:3011
|
||||
311:4294967295:3011
|
||||
312:4294967295:3011
|
||||
313:4294967295:3011
|
||||
314:4294967295:3011
|
||||
315:4294967295:3011
|
||||
316:4294967295:3011
|
||||
317:4294967295:3011
|
||||
318:4294967295:3011
|
||||
319:4294967295:3011
|
||||
320:4294967295:3011
|
||||
321:4294967295:3011
|
||||
322:4294967295:3011
|
||||
323:4294967295:3011
|
||||
324:4294967295:3011
|
||||
325:4294967295:3011
|
||||
326:4294967295:3011
|
||||
327:4294967295:3011
|
||||
328:4294967295:3011
|
||||
329:4294967295:3011
|
||||
330:4294967295:3011
|
||||
331:4294967295:3011
|
||||
332:4294967295:3011
|
||||
333:4294967295:3011
|
||||
334:4294967295:3011
|
||||
335:4294967295:3011
|
||||
336:4294967295:3011
|
||||
337:4294967295:3011
|
||||
338:4294967295:3011
|
||||
339:4294967295:3011
|
||||
340:4294967295:3011
|
||||
341:4294967295:3011
|
||||
342:4294967295:3011
|
||||
343:4294967295:3011
|
||||
344:4294967295:3011
|
||||
345:4294967295:3011
|
||||
346:4294967295:3011
|
||||
347:4294967295:3011
|
||||
348:4294967295:3011
|
||||
349:4294967295:3011
|
||||
350:4294967295:3011
|
||||
351:4294967295:3011
|
||||
352:4294967295:3011
|
||||
353:4294967295:3011
|
||||
354:4294967295:3011
|
||||
355:4294967295:3011
|
||||
356:4294967295:3011
|
||||
357:4294967295:3011
|
||||
358:4294967295:3011
|
||||
359:4294967295:3011
|
||||
360:4294967295:3011
|
||||
361:4294967295:3011
|
||||
362:4294967295:3011
|
||||
363:4294967295:3011
|
||||
364:4294967295:3011
|
||||
365:4294967295:3011
|
||||
366:4294967295:3011
|
||||
367:4294967295:3011
|
||||
368:4294967295:3011
|
||||
369:4294967295:3011
|
||||
370:4294967295:3011
|
||||
371:4294967295:3011
|
||||
372:4294967295:3011
|
||||
373:4294967295:3011
|
||||
374:4294967295:3011
|
||||
375:4294967295:3011
|
||||
376:4294967295:3011
|
||||
377:4294967295:3011
|
||||
378:4294967295:3011
|
||||
379:4294967295:3011
|
||||
380:4294967295:3011
|
||||
381:4294967295:3011
|
||||
382:4294967295:3011
|
||||
383:4294967295:3011
|
||||
384:4294967295:3011
|
||||
385:4294967295:3011
|
||||
386:4294967295:3011
|
||||
387:4294967295:3011
|
||||
388:4294967295:3011
|
||||
389:4294967295:3011
|
||||
390:4294967295:3011
|
||||
391:4294967295:3011
|
||||
392:4294967295:3011
|
||||
393:4294967295:3011
|
||||
394:4294967295:3011
|
||||
395:4294967295:3011
|
||||
396:4294967295:3011
|
||||
397:4294967295:3011
|
||||
398:4294967295:3011
|
||||
399:4294967295:3011
|
||||
400:4294967295:3011
|
||||
401:4294967295:3011
|
||||
402:4294967295:3011
|
||||
403:4294967295:3011
|
||||
404:4294967295:3011
|
||||
405:4294967295:3011
|
||||
406:4294967295:3011
|
||||
407:4294967295:3011
|
||||
408:4294967295:3011
|
||||
409:4294967295:3011
|
||||
410:4294967295:3011
|
||||
411:4294967295:3011
|
||||
412:4294967295:3011
|
||||
413:4294967295:3011
|
||||
414:4294967295:3011
|
||||
415:4294967295:3011
|
||||
416:4294967295:3011
|
||||
417:4294967295:3011
|
||||
418:4294967295:3011
|
||||
419:4294967295:3011
|
||||
420:4294967295:3011
|
||||
421:4294967295:3011
|
||||
422:4294967295:3011
|
||||
423:4294967295:3011
|
||||
424:4294967295:3011
|
||||
425:4294967295:3011
|
||||
426:4294967295:3011
|
||||
427:4294967295:3011
|
||||
428:4294967295:3011
|
||||
429:4294967295:3011
|
||||
430:4294967295:3011
|
||||
431:4294967295:3011
|
||||
432:4294967295:3011
|
||||
433:4294967295:3011
|
||||
434:4294967295:3011
|
||||
435:4294967295:3011
|
||||
436:4294967295:3011
|
||||
437:4294967295:3011
|
||||
438:4294967295:3011
|
||||
439:4294967295:3011
|
||||
440:4294967295:3011
|
||||
441:4294967295:3011
|
||||
442:4294967295:3011
|
||||
443:4294967295:3011
|
||||
444:4294967295:3011
|
||||
445:4294967295:3011
|
||||
446:4294967295:3011
|
||||
447:4294967295:3011
|
||||
448:4294967295:3011
|
||||
449:4294967295:3011
|
||||
450:4294967295:3011
|
||||
451:4294967295:3011
|
||||
452:4294967295:3011
|
||||
453:4294967295:3011
|
||||
454:4294967295:3011
|
||||
455:4294967295:3011
|
||||
456:4294967295:3011
|
||||
457:4294967295:3011
|
||||
458:4294967295:3011
|
||||
459:4294967295:3011
|
||||
460:4294967295:3011
|
||||
461:4294967295:3011
|
||||
462:4294967295:3011
|
||||
463:4294967295:3011
|
||||
464:4294967295:3011
|
||||
465:4294967295:3011
|
||||
466:4294967295:3011
|
||||
467:4294967295:3011
|
||||
468:4294967295:3011
|
||||
469:4294967295:3011
|
||||
470:4294967295:3011
|
||||
471:4294967295:3011
|
||||
472:4294967295:3011
|
||||
473:4294967295:3011
|
||||
474:4294967295:3011
|
||||
475:4294967295:3011
|
||||
476:4294967295:3011
|
||||
477:4294967295:3011
|
||||
478:4294967295:3011
|
||||
479:4294967295:3011
|
||||
480:4294967295:3011
|
||||
481:4294967295:3011
|
||||
482:4294967295:3011
|
||||
483:4294967295:3011
|
||||
484:4294967295:3011
|
||||
485:4294967295:3011
|
||||
486:4294967295:3011
|
||||
487:4294967295:3011
|
||||
488:4294967295:3011
|
||||
489:4294967295:3011
|
||||
490:4294967295:3011
|
||||
491:4294967295:3011
|
||||
492:4294967295:3011
|
||||
493:4294967295:3011
|
||||
494:4294967295:3011
|
||||
495:4294967295:3011
|
||||
496:4294967295:3011
|
||||
497:4294967295:3011
|
||||
498:4294967295:3011
|
||||
499:4294967295:3011
|
||||
500:4294967295:3011
|
||||
501:4294967295:3011
|
||||
502:4294967295:3011
|
||||
503:4294967295:3011
|
||||
504:4294967295:3011
|
||||
505:4294967295:3011
|
||||
506:4294967295:3011
|
||||
507:4294967295:3011
|
||||
508:4294967295:3011
|
||||
509:4294967295:3011
|
||||
510:4294967295:3011
|
||||
511:4294967295:3011
|
||||
/* Allow RCS service to aquire net_raw permission */
|
||||
18:4294967295:1001:3004
|
||||
/* Allow QMID service to aquire net_raw permission */
|
||||
3:4294967295:1001:3004
|
||||
2:4294967295:1001:3004
|
||||
42:4294967295:1001:3004
|
||||
18:4294967295:1001:3004
|
||||
9:4294967295:1001:3004
|
||||
1:4294967295:1001:3004:1000
|
||||
4:4294967295:1001:3004
|
||||
7:4294967295:1001:3004
|
||||
8:4294967295:1001:3004:1000
|
||||
68:4294967295:1001:3004
|
||||
/* DPM */
|
||||
47:4294967295:1001:3004
|
||||
/* Allow communication to some QMI services with radio privilages */
|
||||
/* Format is <Service id>:<all instances>:<radio> */
|
||||
/* PBM */
|
||||
12:4294967295:1001
|
||||
/* WMS */
|
||||
5:4294967295:1001
|
||||
/* IMS VT */
|
||||
32:4294967295:1001
|
||||
/* IMSP */
|
||||
31:4294967295:1001
|
||||
/* PDC */
|
||||
36:4294967295:1001
|
||||
/* SAR */
|
||||
17:4294967295:1001
|
||||
/* RFRPE */
|
||||
41:4294967295:1001
|
||||
/*UIM*/
|
||||
11:4294967295:1001
|
||||
/*CAT*/
|
||||
10:4294967295:1001
|
||||
/*IMSA*/
|
||||
33:4294967295:1001
|
||||
/* CSVT */
|
||||
29:4294967295:1001
|
||||
/* Allow Data dpmd to access QMI DFS */
|
||||
48:4294967295:1000:3004
|
||||
/* DIAG */
|
||||
4097:4294967295:3009
|
41
device.mk
Normal file
41
device.mk
Normal file
|
@ -0,0 +1,41 @@
|
|||
#
|
||||
# Copyright (C) 2016 The CyanogenMod Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
CM_PATH := vendor/cm/device/product
|
||||
|
||||
# Overlay
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay
|
||||
|
||||
# Include common package config fragments
|
||||
include $(CM_PATH)/common/ant.mk
|
||||
include $(CM_PATH)/common/audio.mk
|
||||
include $(CM_PATH)/common/fingerprint.mk
|
||||
include $(CM_PATH)/common/gello.mk
|
||||
include $(CM_PATH)/common/lights.mk
|
||||
include $(CM_PATH)/common/media.mk
|
||||
include $(CM_PATH)/common/perf.mk
|
||||
include $(CM_PATH)/common/snap.mk
|
||||
|
||||
# Include QCOM package config fragments
|
||||
include $(CM_PATH)/qcom/fm.mk
|
||||
include $(CM_PATH)/qcom/media.mk
|
||||
|
||||
# Include device-specific package config fragments
|
||||
include $(LOCAL_PATH)/product/*.mk
|
||||
|
||||
# Inherit proprietary files
|
||||
$(call inherit-product-if-exists, vendor/xiaomi/land/land-vendor.mk)
|
60
gps/etc/flp.conf
Normal file
60
gps/etc/flp.conf
Normal file
|
@ -0,0 +1,60 @@
|
|||
###################################
|
||||
##### FLP settings #####
|
||||
###################################
|
||||
|
||||
###################################
|
||||
# FLP BATCHING SIZE
|
||||
###################################
|
||||
# The number of batched locations
|
||||
# requested to modem. The desired number
|
||||
# defined below may not be satisfied, as
|
||||
# the modem can only return the number
|
||||
# of batched locations that can be allocated,
|
||||
# which is limited by memory. The default
|
||||
# batch size defined as 20 as below.
|
||||
BATCH_SIZE=20
|
||||
|
||||
###################################
|
||||
# FLP BATCHING SESSION TIMEOUT
|
||||
###################################
|
||||
# Duration with which batch session timeout
|
||||
# happens in milliseconds. If not specified
|
||||
# or set to zero, batching session timeout
|
||||
# defaults to 20 seconds by the modem.
|
||||
# BATCH_SESSION_TIMEOUT=20000
|
||||
|
||||
###################################
|
||||
# FLP CAPABILITIES BIT MASK
|
||||
###################################
|
||||
# GEOFENCE = 0x01
|
||||
# BATCHING = 0x02
|
||||
# default = GEOFENCE | BATCHING
|
||||
CAPABILITIES=0x03
|
||||
|
||||
###################################
|
||||
# FLP BATCHING ACCURACY
|
||||
###################################
|
||||
# Set to one of the defined values below
|
||||
# to define the accuracy of batching.
|
||||
# If not specified, accuracy defaults
|
||||
# to LOW.
|
||||
# FLP BATCHING ACCURACY values:
|
||||
# Low accuracy = 0
|
||||
# Medium accuracy = 1
|
||||
# High accuracy = 2
|
||||
ACCURACY=0
|
||||
|
||||
###################################
|
||||
# FLP GEOFENCE RESPONSIVENESS
|
||||
###################################
|
||||
# If set to one of the defined values below,
|
||||
# it will override the responsiveness for
|
||||
# FLP geofence, which implements the fused
|
||||
# location API. If not set to a value defined
|
||||
# below, which is default, it will not
|
||||
# override the responsivness.
|
||||
# FLP_GEOFENCE_RESPONSIVENESS_OVERRIDE Values:
|
||||
# 1: LOW responsiveness
|
||||
# 2: MEDIUM responsiveness
|
||||
# 3: HIGH responsiveness
|
||||
FLP_GEOFENCE_RESPONSIVENESS_OVERRIDE = 0
|
118
gps/etc/gps.conf
Normal file
118
gps/etc/gps.conf
Normal file
|
@ -0,0 +1,118 @@
|
|||
#Uncommenting these urls would only enable
|
||||
#the power up auto injection and force injection(test case).
|
||||
#XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra2.bin
|
||||
#XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra2.bin
|
||||
#XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra2.bin
|
||||
|
||||
#Version check for XTRA
|
||||
#DISABLE = 0
|
||||
#AUTO = 1
|
||||
#XTRA2 = 2
|
||||
#XTRA3 = 3
|
||||
XTRA_VERSION_CHECK=0
|
||||
|
||||
# Error Estimate
|
||||
# _SET = 1
|
||||
# _CLEAR = 0
|
||||
ERR_ESTIMATE=0
|
||||
|
||||
#Test
|
||||
NTP_SERVER=time.gpsonextra.net
|
||||
#Asia
|
||||
# NTP_SERVER=asia.pool.ntp.org
|
||||
#Europe
|
||||
# NTP_SERVER=europe.pool.ntp.org
|
||||
#North America
|
||||
# NTP_SERVER=north-america.pool.ntp.org
|
||||
|
||||
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
|
||||
# 4 - Debug, 5 - Verbose
|
||||
# If DEBUG_LEVEL is commented, Android's logging levels will be used
|
||||
DEBUG_LEVEL = 3
|
||||
|
||||
# Intermediate position report, 1=enable, 0=disable
|
||||
INTERMEDIATE_POS=0
|
||||
|
||||
# Below bit mask configures how GPS functionalities
|
||||
# should be locked when user turns off GPS on Settings
|
||||
# Set bit 0x1 if MO GPS functionalities are to be locked
|
||||
# Set bit 0x2 if NI GPS functionalities are to be locked
|
||||
# default - non is locked for backward compatibility
|
||||
#GPS_LOCK = 0
|
||||
|
||||
# supl version 1.0
|
||||
SUPL_VER=0x20000
|
||||
|
||||
# Emergency SUPL, 1=enable, 0=disable
|
||||
SUPL_ES=0
|
||||
|
||||
#Choose PDN for Emergency SUPL
|
||||
#1 - Use emergency PDN
|
||||
#0 - Use regular SUPL PDN for Emergency SUPL
|
||||
USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=1
|
||||
|
||||
#SUPL_MODE is a bit mask set in config.xml per carrier by default.
|
||||
#If it is uncommented here, this value will overwrite the value from
|
||||
#config.xml.
|
||||
#MSA=0X2
|
||||
#MSB=0X1
|
||||
#SUPL_MODE=
|
||||
|
||||
# GPS Capabilities bit mask
|
||||
# SCHEDULING = 0x01
|
||||
# MSB = 0x02
|
||||
# MSA = 0x04
|
||||
# ON_DEMAND_TIME = 0x10
|
||||
# GEOFENCE = 0x20
|
||||
# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE
|
||||
CAPABILITIES=0x37
|
||||
|
||||
# Accuracy threshold for intermediate positions
|
||||
# less accurate positions are ignored, 0 for passing all positions
|
||||
# ACCURACY_THRES=5000
|
||||
|
||||
################################
|
||||
##### AGPS server settings #####
|
||||
################################
|
||||
|
||||
# FOR SUPL SUPPORT, set the following
|
||||
# SUPL_HOST=supl.host.com or IP
|
||||
# SUPL_PORT=1234
|
||||
|
||||
# FOR C2K PDE SUPPORT, set the following
|
||||
# C2K_HOST=c2k.pde.com or IP
|
||||
# C2K_PORT=1234
|
||||
SUPL_HOST=supl.google.com
|
||||
SUPL_PORT=7276
|
||||
# Bitmask of slots that are available
|
||||
# for write/install to, where 1s indicate writable,
|
||||
# and the default value is 0 where no slots
|
||||
# are writable. For example, AGPS_CERT_WRITABLE_MASK
|
||||
# of b1000001010 makes 3 slots available
|
||||
# and the remaining 7 slots unwritable.
|
||||
#AGPS_CERT_WRITABLE_MASK=0
|
||||
|
||||
####################################
|
||||
# LTE Positioning Profile Settings
|
||||
####################################
|
||||
# 0: Enable RRLP on LTE(Default)
|
||||
# 1: Enable LPP_User_Plane on LTE
|
||||
# 2: Enable LPP_Control_Plane
|
||||
# 3: Enable both LPP_User_Plane and LPP_Control_Plane
|
||||
LPP_PROFILE = 2
|
||||
|
||||
################################
|
||||
# EXTRA SETTINGS
|
||||
################################
|
||||
# NMEA provider (1=Modem Processor, 0=Application Processor)
|
||||
NMEA_PROVIDER=0
|
||||
# Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE)
|
||||
SGLTE_TARGET=0
|
||||
|
||||
##################################################
|
||||
# Select Positioning Protocol on A-GLONASS system
|
||||
##################################################
|
||||
# 0x1: RRC CPlane
|
||||
# 0x2: RRLP UPlane
|
||||
# 0x4: LLP Uplane
|
||||
A_GLONASS_POS_PROTOCOL_SELECT = 0
|
198
gps/etc/izat.conf
Normal file
198
gps/etc/izat.conf
Normal file
|
@ -0,0 +1,198 @@
|
|||
#########################################
|
||||
# Log verbosity control for izat modules
|
||||
#########################################
|
||||
# OFF = 0, ERROR = 1, WARNING = 2, INFO = 3, DEBUG = 4, VERBOSE = 5
|
||||
IZAT_DEBUG_LEVEL = 2
|
||||
|
||||
##################################################
|
||||
# Select WIFI Wait Timeout value in seconds for SUPL
|
||||
##################################################
|
||||
WIFI_WAIT_TIMEOUT_SELECT = 0
|
||||
|
||||
################################
|
||||
# NLP Settings
|
||||
################################
|
||||
# NLP_MODE 1: GNP Only, 2: QNP Only, 3: Combo
|
||||
# NLP_TOLERANCE_TIME_FIRST: Time in ms used in Combo mode
|
||||
# to determine how much Tolerance for first position
|
||||
# NLP_TOLERANCE_TIME_AFTER: Time in ms used in Combo mode
|
||||
# to determine how much Tolerance for positions after first
|
||||
# NLP_THRESHOLD: Sets how many failures needed before
|
||||
# switching preferred NLP in Combo mode
|
||||
# NLP_ACCURACY_MULTIPLE: Determines how far off the accuracy
|
||||
# must be, in multiples, between two NLP location reports to
|
||||
# be considered much worse accuracy. Used in switching logic
|
||||
# NLP COMBO MODE USES QNP WITH NO EULA CONSENT: Determines
|
||||
# whether or not to still send network location requests to
|
||||
# QNP when the EULA is not consented to by the user. QNP can
|
||||
# still return ZPP locations or injected locations even
|
||||
# without EULA consent, but the uncertainty can be high.
|
||||
NLP_MODE = 3
|
||||
NLP_TOLERANCE_TIME_FIRST = 5000
|
||||
NLP_TOLERANCE_TIME_AFTER = 20000
|
||||
NLP_THRESHOLD = 3
|
||||
NLP_ACCURACY_MULTIPLE = 2
|
||||
NLP_COMBO_MODE_USES_QNP_WITH_NO_EULA_CONSENT = 1
|
||||
|
||||
# Threshold period for ZPP triggers
|
||||
ZPP_TRIGGER_THRESHOLD=60000
|
||||
|
||||
###################################
|
||||
# GEOFENCE SERVICES
|
||||
###################################
|
||||
# If set to one of the defined values below, it will override
|
||||
# the responsiveness for geofence services, which implements
|
||||
# the Proximity Alert API. If not set to a value defined below,
|
||||
# which is default, it will not override the responsivness.
|
||||
# The geofence HAL API is unaffected by this value.
|
||||
# GEOFENCE_SERVICES_RESPONSIVENESS_OVERRIDE Values:
|
||||
# 1: LOW responsiveness
|
||||
# 2: MEDIUM responsiveness
|
||||
# 3: HIGH responsiveness
|
||||
GEOFENCE_SERVICES_RESPONSIVENESS_OVERRIDE = 0
|
||||
|
||||
#####################################
|
||||
# IZAT PREMIUM FEATURE SETTINGS
|
||||
#####################################
|
||||
#Possible states of a feature:
|
||||
#DISABLED
|
||||
#BASIC
|
||||
#PREMIUM
|
||||
|
||||
#GTP_CELL_PROC valid options:
|
||||
# AP
|
||||
# MODEM
|
||||
GTP_CELL_PROC=MODEM
|
||||
|
||||
#GTP_CELL valid modes:
|
||||
# DISABLED
|
||||
# BASIC
|
||||
GTP_CELL=BASIC
|
||||
|
||||
#GTP_WIFI valid modes:
|
||||
# DISABLED
|
||||
# BASIC
|
||||
GTP_WIFI=BASIC
|
||||
|
||||
#GTP_WAA valid modes:
|
||||
# DISABLED
|
||||
# BASIC
|
||||
GTP_WAA=DISABLED
|
||||
|
||||
#SAP valid modes:
|
||||
# DISABLED
|
||||
# BASIC
|
||||
# PREMIUM
|
||||
SAP=BASIC
|
||||
|
||||
#ODCPI valid modes:
|
||||
#DISABLED
|
||||
#BASIC
|
||||
ODCPI=BASIC
|
||||
|
||||
#FREE_WIFI_SCAN_INJECT valid modes:
|
||||
#DISABLED
|
||||
#BASIC
|
||||
FREE_WIFI_SCAN_INJECT=BASIC
|
||||
|
||||
#SUPL_WIFI valid modes:
|
||||
#DISABLED
|
||||
#BASIC
|
||||
SUPL_WIFI=BASIC
|
||||
|
||||
#WIFI_SUPPLICANT_INFO valid modes:
|
||||
#DISABLED
|
||||
#BASIC
|
||||
WIFI_SUPPLICANT_INFO=BASIC
|
||||
|
||||
#####################################
|
||||
# Location process launcher settings
|
||||
#####################################
|
||||
|
||||
#Values for PROCESS_STATE:
|
||||
# ENABLED
|
||||
# DISABLED
|
||||
|
||||
#FEATURE MASKS:
|
||||
# GTP-WIFI 0X03
|
||||
# GTP-AP-CELL 0X0c
|
||||
# GTP-MP-CELL 0xc00
|
||||
# GTP-WAA 0X300
|
||||
# SAP 0Xc0
|
||||
# ODCPI 0x1000
|
||||
# FREE_WIFI_SCAN_INJECT 0x2000
|
||||
# SUPL_WIFI 0x4000
|
||||
# WIFI_SUPPLICANT_INFO 0x8000
|
||||
|
||||
#Values for PLATFORMS can be:
|
||||
#1. Any valid values obtained from ro.board.platform separated by single space. For example: msm8960 msm8226
|
||||
#2. 'all' or 'all exclude' -> for All platforms
|
||||
#3. 'all exclude XXXX' -> All platforms exclude XXXX. For example: all exclude msm8937
|
||||
|
||||
#Values for BASEBAND can be:
|
||||
#1. Any valid values obtained from ro.baseband separated by single space. For example: sglte sglte2
|
||||
#2. 'all' or 'all exclude' -> for all basebands
|
||||
#3. 'all exclude XXXX' -> All basebands exclude XXXX. For example: all exclude sglte
|
||||
|
||||
#Valyes for LEAN_TARGETS can be:
|
||||
#ENABLED -> if this process is supposed to run on lean and mean targets
|
||||
#DISABLED -> if this process is to be disabled on lean and mean targets
|
||||
PROCESS_NAME=/system/bin/garden_app
|
||||
PROCESS_ARGUMENT=-u 0 -q 0 -j 0 -g 0 -l 0 -Z 0 -T 1
|
||||
PROCESS_STATE=ENABLED
|
||||
PROCESS_GROUPS=gps net_raw
|
||||
PREMIUM_FEATURE=0
|
||||
IZAT_FEATURE_MASK=0
|
||||
PLATFORMS=all
|
||||
BASEBAND=auto
|
||||
LEAN_TARGETS=DISABLED
|
||||
|
||||
PROCESS_NAME=/system/bin/gpsone_daemon
|
||||
PROCESS_ARGUMENT=
|
||||
PROCESS_STATE=ENABLED
|
||||
PROCESS_GROUPS=inet net_raw
|
||||
PREMIUM_FEATURE=0
|
||||
IZAT_FEATURE_MASK=0
|
||||
PLATFORMS=msm7630_fusion
|
||||
BASEBAND=svlte2a sglte sglte2
|
||||
LEAN_TARGETS=DISABLED
|
||||
|
||||
PROCESS_NAME=/system/bin/lowi-server
|
||||
PROCESS_ARGUMENT=
|
||||
PROCESS_STATE=ENABLED
|
||||
PROCESS_GROUPS=gps net_admin wifi inet qcom_diag net_raw
|
||||
PREMIUM_FEATURE=0
|
||||
IZAT_FEATURE_MASK=0xf303
|
||||
PLATFORMS=all
|
||||
BASEBAND=all
|
||||
LEAN_TARGETS=DISABLED
|
||||
|
||||
PROCESS_NAME=/system/bin/xtwifi-inet-agent
|
||||
PROCESS_ARGUMENT=
|
||||
PROCESS_STATE=ENABLED
|
||||
PROCESS_GROUPS=inet gps
|
||||
PREMIUM_FEATURE=1
|
||||
IZAT_FEATURE_MASK=0xc0f
|
||||
PLATFORMS=all
|
||||
BASEBAND=all
|
||||
LEAN_TARGETS=DISABLED
|
||||
|
||||
PROCESS_NAME=/system/bin/xtwifi-client
|
||||
PROCESS_ARGUMENT=
|
||||
PROCESS_STATE=ENABLED
|
||||
PROCESS_GROUPS=net_admin wifi inet gps net_raw rfs_shared system
|
||||
PREMIUM_FEATURE=1
|
||||
IZAT_FEATURE_MASK=0xf0f
|
||||
PLATFORMS=all
|
||||
BASEBAND=all
|
||||
LEAN_TARGETS=DISABLED
|
||||
|
||||
PROCESS_NAME=/system/vendor/bin/slim_daemon
|
||||
PROCESS_ARGUMENT=
|
||||
PROCESS_STATE=ENABLED
|
||||
PROCESS_GROUPS=gps net_raw qcom_diag
|
||||
PREMIUM_FEATURE=1
|
||||
IZAT_FEATURE_MASK=0xf0
|
||||
PLATFORMS=all
|
||||
BASEBAND=all
|
||||
LEAN_TARGETS=DISABLED
|
51
gps/etc/lowi.conf
Normal file
51
gps/etc/lowi.conf
Normal file
|
@ -0,0 +1,51 @@
|
|||
#*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
|
||||
#
|
||||
# LOWI Config file
|
||||
#
|
||||
# GENERAL DESCRIPTION
|
||||
# This file contains the config params for LOWI
|
||||
#
|
||||
# Copyright (c) 2012-2013 Qualcomm Atheros, Inc.
|
||||
# All Rights Reserved.
|
||||
# Qualcomm Atheros Confidential and Proprietary.
|
||||
#
|
||||
# Export of this technology or software is regulated by the U.S. Government.
|
||||
# Diversion contrary to U.S. law prohibited.
|
||||
#=============================================================================*/
|
||||
|
||||
# X86 ONLY - UBUNTU:
|
||||
# Copy this file in the same directory where the executable is
|
||||
|
||||
# The RSSI threshold used in the RTT outlier detection in half decibels. Default value recommended by the
|
||||
# system team currently is -140 (corresponding to -70 dB).
|
||||
LOWI_RSSI_THRESHOLD_FOR_RTT = -140
|
||||
|
||||
# Number of measurment per AP for RTS/CTS
|
||||
LOWI_RTS_CTS_NUM_MEAS = 5
|
||||
|
||||
# Maximum Number of Outstanding Requests supported
|
||||
LOWI_MAX_OUTSTANDING_REQUEST = 255
|
||||
|
||||
# Maximum number of records in Cache
|
||||
LOWI_MAX_NUM_CACHE_RECORDS = 200
|
||||
|
||||
# Default threshold before issuing another fresh scan (ms)
|
||||
LOWI_FRESH_SCAN_THRESHOLD = 500
|
||||
|
||||
# Timeout in case no result is reported by the driver (seconds)
|
||||
LOWI_NO_RESULT_WAIT_TOLERANCE = 10
|
||||
|
||||
# Use Fake Wifi driver. Only valid for engineering builds
|
||||
LOWI_USE_FAKE_WIFI_DRIVER = 0
|
||||
|
||||
# Use ROME Wifi driver. Only valid for engineering builds
|
||||
# Will be removed later only for development support
|
||||
LOWI_USE_ROME_WIFI_DRIVER = 0
|
||||
|
||||
# Use LOWI LP.
|
||||
# When enabled the Discovery Request will be routed to LOWI-LP
|
||||
LOWI_USE_LOWI_LP = 1
|
||||
|
||||
# Log level
|
||||
# EL_LOG_OFF = 0, EL_ERROR = 1, EL_WARNING = 2, EL_INFO = 3, EL_DEBUG = 4, EL_VERBOSE = 5, EL_LOG_ALL = 100
|
||||
LOWI_LOG_LEVEL = 2
|
53
gps/etc/sap.conf
Normal file
53
gps/etc/sap.conf
Normal file
|
@ -0,0 +1,53 @@
|
|||
################################
|
||||
# Sensor Settings
|
||||
################################
|
||||
#The following parameters are optional.
|
||||
#Internal defaults support MEMS sensors
|
||||
#native to most handset devices.
|
||||
#Device specific sensor characterization
|
||||
#for improved performance is possible as
|
||||
#described in SAP application notes.
|
||||
#GYRO_BIAS_RANDOM_WALK=
|
||||
#ACCEL_RANDOM_WALK_SPECTRAL_DENSITY=
|
||||
#ANGLE_RANDOM_WALK_SPECTRAL_DENSITY=
|
||||
#RATE_RANDOM_WALK_SPECTRAL_DENSITY=
|
||||
#VELOCITY_RANDOM_WALK_SPECTRAL_DENSITY=
|
||||
|
||||
# Sensor Sampling Rate Parameters for Low-Data Rate Filter (should be greater than 0)
|
||||
# used in loc_eng_reinit
|
||||
SENSOR_ACCEL_BATCHES_PER_SEC=2
|
||||
SENSOR_ACCEL_SAMPLES_PER_BATCH=5
|
||||
SENSOR_GYRO_BATCHES_PER_SEC=2
|
||||
SENSOR_GYRO_SAMPLES_PER_BATCH=5
|
||||
# Sensor Sampling Rate Parameters for High-Data Rate Filter (should be greater than 0)
|
||||
SENSOR_ACCEL_BATCHES_PER_SEC_HIGH=4
|
||||
SENSOR_ACCEL_SAMPLES_PER_BATCH_HIGH=25
|
||||
SENSOR_GYRO_BATCHES_PER_SEC_HIGH=4
|
||||
SENSOR_GYRO_SAMPLES_PER_BATCH_HIGH=25
|
||||
|
||||
# Sensor Control Mode (0=AUTO, 1=FORCE_ON)
|
||||
# used in loc_eng_reinit
|
||||
SENSOR_CONTROL_MODE=0
|
||||
|
||||
# Enable or Disable Sensors for GPS use (0=Enable, 1=Disable)
|
||||
# used in loc_eng_reinit
|
||||
SENSOR_USAGE=0
|
||||
|
||||
# Choose GSIFF sensor provider (1=Snapdragon Sensors Core, 2=Android NDK)
|
||||
SENSOR_PROVIDER=1
|
||||
|
||||
# Bit mask used to define which sensor algorithms are used.
|
||||
# Setting each bit has the following definition:
|
||||
# 0x1 - DISABLE_INS_POSITIONING_FILTER
|
||||
# 0x0 - ENABLE_INS_POSITIONING_FILTER
|
||||
SENSOR_ALGORITHM_CONFIG_MASK=0x1
|
||||
|
||||
# Time source used by Sensor HAL
|
||||
# Setting this value controls accuracy of location sensor services.
|
||||
# 0 - Unknown
|
||||
# 1 - CLOCK_BOOTTIME
|
||||
# 2 - CLOCK_MONOTONIC
|
||||
# 3 - CLOCK_REALTIME
|
||||
# 4 - CLOCK_BOOTTIME using Alarm timer interface
|
||||
NDK_PROVIDER_TIME_SOURCE=1
|
||||
|
82
gps/etc/xtwifi.conf
Normal file
82
gps/etc/xtwifi.conf
Normal file
|
@ -0,0 +1,82 @@
|
|||
#GTP AP Project client core config file
|
||||
#
|
||||
#GENERAL DESCRIPTION
|
||||
#This is used by client core
|
||||
#
|
||||
#Copyright (c) 2012-2014 Qualcomm Atheros, Inc.
|
||||
#All Rights Reserved.
|
||||
#Qualcomm Atheros Confidential and Proprietary.
|
||||
|
||||
# Log verbosity control for most of the GTP WiFi system, including native and
|
||||
# Java componenets
|
||||
# OFF = 0, ERROR = 1, WARNING = 2, INFO = 3, DEBUG = 4, VERBOSE = 5, ALL = 100
|
||||
DEBUG_GLOBAL_LOG_LEVEL = 2
|
||||
|
||||
# this is used at the server side to distinguish uploads from different maker/model
|
||||
# default "Qualcomm"
|
||||
OEM_ID_IN_REQUEST_TO_SERVER = "Qualcomm"
|
||||
|
||||
# this is used at the server side to distinguish uploads from different maker/model
|
||||
# default "UNKNOWN"
|
||||
MODEL_ID_IN_REQUEST_TO_SERVER = "UNKNOWN"
|
||||
|
||||
##############################################################################
|
||||
# GTP-WiFi positioning config #
|
||||
##############################################################################
|
||||
|
||||
# URL for the server position request
|
||||
XT_SERVER_ROOT_URL = https://gtpa1.izatcloud.net:443/uds/v2
|
||||
|
||||
# size, in bytes, of the cache on device
|
||||
SIZE_BYTE_TOTAL_CACHE = 5000000
|
||||
|
||||
# value 0: (default) use the async LOWI wifi scanner
|
||||
# value 10: FAKE AP wifi scanner
|
||||
WIFI_SCANNER_CHOICE = 0
|
||||
|
||||
##############################################################################
|
||||
# XT-WiFi crowd sourcing config #
|
||||
##############################################################################
|
||||
# Use server suggestion for crowd sourcing configuration
|
||||
ENABLE_SERVER_SUGGESTION_FOR_CROWD_SOURCING = 1
|
||||
|
||||
# Maximum number of APs to be collected for upload
|
||||
NUM_MAX_AP_PER_UPLOAD = 16383
|
||||
# Number of minutes between upload: 24 hours
|
||||
INTERVAL_MIN_UPLOAD = 1440
|
||||
# Number of minutes between forced upload: 5 days
|
||||
INTERVAL_MIN_FORCED_UPLOAD = 7200
|
||||
|
||||
# The minimum time between two collected AP data sets in seconds
|
||||
INTERVAL_SEC_AP_SETS_COLLECT = 10
|
||||
# Timeout for scan interval when phone is on: 600 seconds (10 minute)
|
||||
INTERVAL_SEC_SCAN = 600
|
||||
# Timeout for scan interval when phone has not continusouly on for INTERVAL_MIN_SCAN
|
||||
INTERVAL_MIN_FORCED_SCAN = 480
|
||||
|
||||
# Maximum number of Cell DB records for upload
|
||||
WWAN_MAX_CELLDB_RECORDS_PER_UPLOAD = 1000
|
||||
|
||||
##############################################################################
|
||||
# GTP AP cell config #
|
||||
##############################################################################
|
||||
# This item specifies the RIL server name.
|
||||
# This configure item can not be removed in Android target.
|
||||
XTRAT_WWAN_LITE_LOC_RIL_SERVER_NAME = "OS-Agent"
|
||||
|
||||
# Maximum total number of SNA records cached in mobile storage.
|
||||
# Max allowed value is 10000
|
||||
# Min value is 100
|
||||
XTRAT_WWAN_LITE_MAX_DL_SNA = 10000
|
||||
|
||||
# Maximum total number of BSA records cached in mobile storage.
|
||||
# Max allowed value is 65000
|
||||
# Min value is 100
|
||||
XTRAT_WWAN_LITE_MAX_DL_BSA = 65000
|
||||
|
||||
##############################################################################
|
||||
# Qualcomm Network Location Provider config #
|
||||
##############################################################################
|
||||
# Accuracy Threshold for NLP position. Position exceeds thsi threshold will be filtered out.
|
||||
# Default is 25000 meters.
|
||||
LARGE_ACCURACY_THRESHOLD_TO_FILTER_NLP_POSITION = 25000
|
31
keylayout/ft5x06_ts.kl
Normal file
31
keylayout/ft5x06_ts.kl
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
key 158 BACK
|
||||
key 139 APP_SWITCH
|
||||
key 172 HOME
|
||||
key 217 SEARCH
|
32
keylayout/gpio-keys.kl
Normal file
32
keylayout/gpio-keys.kl
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
key 115 VOLUME_UP
|
||||
key 114 VOLUME_DOWN
|
||||
key 102 HOME WAKE
|
||||
key 528 FOCUS
|
||||
key 766 CAMERA
|
31
keylayout/synaptics_dsx.kl
Normal file
31
keylayout/synaptics_dsx.kl
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
key 158 BACK
|
||||
key 139 APP_SWITCH
|
||||
key 172 HOME
|
||||
key 217 SEARCH
|
31
keylayout/synaptics_rmi4_i2c.kl
Normal file
31
keylayout/synaptics_rmi4_i2c.kl
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
key 158 BACK
|
||||
key 139 APP_SWITCH
|
||||
key 172 HOME
|
||||
key 217 SEARCH
|
3
product/android.mk
Normal file
3
product/android.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
# First api level device was commercially launched with
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.product.first_api_level=23
|
19
product/audio.mk
Normal file
19
product/audio.mk
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Audio configs
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml \
|
||||
$(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
|
||||
$(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml
|
||||
|
||||
# Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
af.fast_track_multiplier=2 \
|
||||
audio.deep_buffer.media=true \
|
||||
audio.offload.buffer.size.kb=64 \
|
||||
audio.offload.gapless.enabled=true \
|
||||
audio.offload.min.duration.secs=30 \
|
||||
audio.offload.pcm.16bit.enable=false \
|
||||
audio.offload.pcm.24bit.enable=true \
|
||||
audio.offload.track.enable=false \
|
||||
audio.offload.video=true \
|
||||
audio_hal.period_size=192 \
|
||||
use.voice.path.for.pcm.voip=true
|
6
product/camera.mk
Normal file
6
product/camera.mk
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
|
||||
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
|
||||
frameworks/native/data/etc/android.hardware.camera.full.xml:system/etc/permissions/android.hardware.camera.full.xml \
|
||||
frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.xml
|
40
product/display.mk
Normal file
40
product/display.mk
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Boot animation
|
||||
TARGET_SCREEN_HEIGHT := 1280
|
||||
TARGET_SCREEN_WIDTH := 720
|
||||
|
||||
# This device is xhdpi. However the platform doesn't
|
||||
# currently contain all of the bitmaps at xhdpi density so
|
||||
# we do this little trick to fall back to the hdpi version
|
||||
# if the xhdpi doesn't exist.
|
||||
PRODUCT_AAPT_CONFIG := normal
|
||||
PRODUCT_AAPT_PREF_CONFIG := xhdpi
|
||||
# A list of dpis to select prebuilt apk, in precedence order.
|
||||
PRODUCT_AAPT_PREBUILT_DPI := hdpi
|
||||
|
||||
# Dalvik
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
dalvik.vm.heapgrowthlimit=192m \
|
||||
dalvik.vm.heapmaxfree=8m \
|
||||
dalvik.vm.heapminfree=4m \
|
||||
dalvik.vm.heapsize=384m \
|
||||
dalvik.vm.heapstartsize=16m \
|
||||
dalvik.vm.heaptargetutilization=0.75
|
||||
|
||||
# HWUI
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.hwui.drop_shadow_cache_size=6 \
|
||||
ro.hwui.gradient_cache_size=1 \
|
||||
ro.hwui.layer_cache_size=48 \
|
||||
ro.hwui.path_cache_size=32 \
|
||||
ro.hwui.r_buffer_cache_size=8 \
|
||||
ro.hwui.text_large_cache_width=2048 \
|
||||
ro.hwui.text_large_cache_height=2048 \
|
||||
ro.hwui.text_small_cache_width=1024 \
|
||||
ro.hwui.text_small_cache_height=1024 \
|
||||
ro.hwui.texture_cache_flushrate=0.4 \
|
||||
ro.hwui.texture_cache_size=72
|
||||
|
||||
# Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.opengles.version=196609 \
|
||||
ro.sf.lcd_density=320
|
3
product/gps.mk
Normal file
3
product/gps.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml
|
4
product/init.mk
Normal file
4
product/init.mk
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Init scripts
|
||||
PRODUCT_PACKAGES += \
|
||||
init.qcom.rc \
|
||||
ueventd.qcom.rc
|
6
product/keylayouts.mk
Normal file
6
product/keylayouts.mk
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Keylayout
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
|
||||
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
||||
$(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
|
||||
$(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
|
5
product/media.mk
Normal file
5
product/media.mk
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Media
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \
|
||||
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
|
||||
$(LOCAL_PATH)/configs/media_codecs_performance.xml:system/etc/media_codecs_performance.xml
|
4
product/perf.mk
Normal file
4
product/perf.mk
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.sys.fw.dex2oat_thread_count=4 \
|
||||
ro.sys.fw.use_trim_settings=true
|
6
product/qcom-audio.mk
Normal file
6
product/qcom-audio.mk
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.qc.sdk.audio.fluencetype=fluence \
|
||||
persist.audio.fluence.voicecall=true \
|
||||
persist.audio.fluence.voicerec=false \
|
||||
persist.audio.fluence.speaker=false
|
8
product/qcom-bluetooth.mk
Normal file
8
product/qcom-bluetooth.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Init
|
||||
PRODUCT_PACKAGES += \
|
||||
init.qcom.bt.sh
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
|
||||
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
|
8
product/qcom-display.mk
Normal file
8
product/qcom-display.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
debug.enable.sglscale=1 \
|
||||
debug.mdpcomp.logs=0 \
|
||||
dev.pm.dyn_samplingrate=1 \
|
||||
persist.demo.hdmirotationlock=false \
|
||||
persist.hwc.enable_vds=1 \
|
||||
persist.hwc.mdpcomp.enable=true
|
14
product/qcom-gps.mk
Normal file
14
product/qcom-gps.mk
Normal file
|
@ -0,0 +1,14 @@
|
|||
# GPS
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/gps/etc/flp.conf:system/etc/flp.conf \
|
||||
$(LOCAL_PATH)/gps/etc/gps.conf:system/etc/gps.conf \
|
||||
$(LOCAL_PATH)/gps/etc/izat.conf:system/etc/izat.conf \
|
||||
$(LOCAL_PATH)/gps/etc/lowi.conf:system/etc/lowi.conf \
|
||||
$(LOCAL_PATH)/gps/etc/sap.conf:system/etc/sap.conf \
|
||||
$(LOCAL_PATH)/gps/etc/xtwifi.conf:system/etc/xtwifi.conf
|
||||
|
||||
# Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.gps.qc_nlp_in_use=1 \
|
||||
persist.loc.nlp_name=com.qualcomm.location \
|
||||
ro.gps.agps_provider=1
|
6
product/qcom-media.mk
Normal file
6
product/qcom-media.mk
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
mm.enable.smoothstreaming=true \
|
||||
media.aac_51_output_enabled=true \
|
||||
vidc.enc.narrow.searchrange=1 \
|
||||
drm.service.enabled=true
|
12
product/qcom-perf.mk
Normal file
12
product/qcom-perf.mk
Normal file
|
@ -0,0 +1,12 @@
|
|||
# IRQ balance
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
|
||||
|
||||
# Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.am.reschedule_service=true \
|
||||
ro.core_ctl_min_cpu=2 \
|
||||
ro.core_ctl_max_cpu=4 \
|
||||
ro.vendor.at_library=libqti-at.so \
|
||||
ro.vendor.extension_library=libqti-perfd-client.so \
|
||||
ro.vendor.gt_library=libqti-gt.so
|
27
product/qcom-radio.mk
Normal file
27
product/qcom-radio.mk
Normal file
|
@ -0,0 +1,27 @@
|
|||
# IRSC
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
|
||||
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
|
||||
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
|
||||
|
||||
# Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.data.mode=concurrent \
|
||||
persist.data.netmgrd.qos.enable=true \
|
||||
persist.radio.apm_sim_not_pwdn=1 \
|
||||
persist.radio.custom_ecc=1 \
|
||||
persist.radio.multisim.config=dsds \
|
||||
persist.radio.sib16_support=1 \
|
||||
rild.libpath=/vendor/lib64/libril-qc-qmi-1.so \
|
||||
ro.telephony.default_network=20 \
|
||||
ro.use_data_netmgrd=true
|
||||
|
||||
# RIL
|
||||
PRODUCT_PACKAGES += \
|
||||
libcnefeatureconfig \
|
||||
librmnetctl \
|
||||
libxml2
|
26
product/qcom-wifi.mk
Normal file
26
product/qcom-wifi.mk
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
|
||||
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml
|
||||
|
||||
# Wifi
|
||||
PRODUCT_PACKAGES += \
|
||||
libqsap_sdk \
|
||||
wcnss_service
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
hostapd \
|
||||
wpa_supplicant \
|
||||
wpa_supplicant.conf
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/hostapd.accept:system/etc/hostapd/hostapd.accept \
|
||||
$(LOCAL_PATH)/configs/hostapd_default.conf:system/etc/hostapd/hostapd_default.conf \
|
||||
$(LOCAL_PATH)/configs/hostapd.deny:system/etc/hostapd/hostapd.deny \
|
||||
$(LOCAL_PATH)/configs/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
|
||||
$(LOCAL_PATH)/configs/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
|
||||
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
|
||||
$(LOCAL_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
|
10
product/sensors.mk
Normal file
10
product/sensors.mk
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
|
||||
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
|
3
product/touchscreen.mk
Normal file
3
product/touchscreen.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
|
8
product/usb.mk
Normal file
8
product/usb.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Init scripts
|
||||
PRODUCT_PACKAGES += \
|
||||
init.qcom.usb.rc
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
|
||||
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml
|
2
proprietary-files.txt
Normal file
2
proprietary-files.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Perf
|
||||
vendor/etc/msm_irqbalance.conf
|
340
rootdir/etc/init.qcom.bt.sh
Normal file
340
rootdir/etc/init.qcom.bt.sh
Normal file
|
@ -0,0 +1,340 @@
|
|||
#!/system/bin/sh
|
||||
# Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor
|
||||
# the names of its contributors may be used to endorse or promote
|
||||
# products derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#Read the arguments passed to the script
|
||||
config="$1"
|
||||
|
||||
BLUETOOTH_SLEEP_PATH=/proc/bluetooth/sleep/proto
|
||||
LOG_TAG="qcom-bluetooth"
|
||||
LOG_NAME="${0}:"
|
||||
|
||||
hciattach_pid=""
|
||||
|
||||
loge ()
|
||||
{
|
||||
/system/bin/log -t $LOG_TAG -p e "$LOG_NAME $@"
|
||||
}
|
||||
|
||||
logi ()
|
||||
{
|
||||
/system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@"
|
||||
}
|
||||
|
||||
failed ()
|
||||
{
|
||||
loge "$1: exit code $2"
|
||||
exit $2
|
||||
}
|
||||
|
||||
program_bdaddr ()
|
||||
{
|
||||
/system/bin/btnvtool -O
|
||||
logi "Bluetooth Address programmed successfully"
|
||||
}
|
||||
|
||||
#
|
||||
# enable bluetooth profiles dynamically
|
||||
#
|
||||
config_bt ()
|
||||
{
|
||||
baseband=`getprop ro.baseband`
|
||||
target=`getprop ro.board.platform`
|
||||
if [ -f /sys/devices/soc0/soc_id ]; then
|
||||
soc_hwid=`cat /sys/devices/soc0/soc_id`
|
||||
else
|
||||
soc_hwid=`cat /sys/devices/system/soc/soc0/id`
|
||||
fi
|
||||
btsoc=`getprop qcom.bluetooth.soc`
|
||||
|
||||
case $baseband in
|
||||
"apq")
|
||||
setprop ro.qualcomm.bluetooth.opp true
|
||||
setprop ro.qualcomm.bluetooth.ftp true
|
||||
setprop ro.qualcomm.bluetooth.nap false
|
||||
setprop ro.bluetooth.sap false
|
||||
setprop ro.bluetooth.dun false
|
||||
# For MPQ as baseband is same for both
|
||||
case $soc_hwid in
|
||||
"130")
|
||||
setprop ro.qualcomm.bluetooth.hsp true
|
||||
setprop ro.qualcomm.bluetooth.hfp true
|
||||
setprop ro.qualcomm.bluetooth.pbap false
|
||||
setprop ro.qualcomm.bluetooth.map false
|
||||
;;
|
||||
*)
|
||||
setprop ro.qualcomm.bluetooth.hsp false
|
||||
setprop ro.qualcomm.bluetooth.hfp false
|
||||
setprop ro.qualcomm.bluetooth.pbap true
|
||||
setprop ro.qualcomm.bluetooth.map true
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"mdm" | "svlte2a" | "svlte1" | "csfb")
|
||||
setprop ro.qualcomm.bluetooth.opp true
|
||||
setprop ro.qualcomm.bluetooth.hfp true
|
||||
setprop ro.qualcomm.bluetooth.hsp true
|
||||
setprop ro.qualcomm.bluetooth.pbap true
|
||||
setprop ro.qualcomm.bluetooth.ftp true
|
||||
setprop ro.qualcomm.bluetooth.map true
|
||||
setprop ro.qualcomm.bluetooth.nap true
|
||||
setprop ro.bluetooth.sap true
|
||||
case $target in
|
||||
"apq8084")
|
||||
setprop ro.bluetooth.dun true
|
||||
logi "Enabling BT-DUN for APQ8084"
|
||||
;;
|
||||
*)
|
||||
setprop ro.bluetooth.dun false
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"msm")
|
||||
setprop ro.qualcomm.bluetooth.opp true
|
||||
setprop ro.qualcomm.bluetooth.hfp true
|
||||
setprop ro.qualcomm.bluetooth.hsp true
|
||||
setprop ro.qualcomm.bluetooth.pbap true
|
||||
setprop ro.qualcomm.bluetooth.ftp true
|
||||
setprop ro.qualcomm.bluetooth.nap true
|
||||
setprop ro.bluetooth.sap true
|
||||
setprop ro.bluetooth.dun true
|
||||
case $btsoc in
|
||||
"ath3k")
|
||||
setprop ro.qualcomm.bluetooth.map false
|
||||
;;
|
||||
*)
|
||||
setprop ro.qualcomm.bluetooth.map true
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
setprop ro.qualcomm.bluetooth.opp true
|
||||
setprop ro.qualcomm.bluetooth.hfp true
|
||||
setprop ro.qualcomm.bluetooth.hsp true
|
||||
setprop ro.qualcomm.bluetooth.pbap true
|
||||
setprop ro.qualcomm.bluetooth.ftp true
|
||||
setprop ro.qualcomm.bluetooth.map true
|
||||
setprop ro.qualcomm.bluetooth.nap true
|
||||
setprop ro.bluetooth.sap true
|
||||
setprop ro.bluetooth.dun true
|
||||
;;
|
||||
esac
|
||||
|
||||
#Enable Bluetooth Profiles specific to target Dynamically
|
||||
case $target in
|
||||
"msm8960")
|
||||
if [ "$btsoc" != "ath3k" ] && [ "$soc_hwid" != "130" ]
|
||||
then
|
||||
setprop ro.bluetooth.hfp.ver 1.6
|
||||
setprop ro.qualcomm.bt.hci_transport smd
|
||||
fi
|
||||
;;
|
||||
"msm8974" | "msm8226" | "msm8610" | "msm8916" | "msm8909" | "msm8952" | "msm8937" | "msm8953" )
|
||||
if [ "$btsoc" != "ath3k" ]
|
||||
then
|
||||
setprop ro.bluetooth.hfp.ver 1.7
|
||||
setprop ro.qualcomm.bt.hci_transport smd
|
||||
fi
|
||||
;;
|
||||
"apq8084" | "mpq8092" | "msm8994" | "msm8992" | "msm8996" )
|
||||
if [ "$btsoc" != "rome" ]
|
||||
then
|
||||
setprop ro.qualcomm.bt.hci_transport smd
|
||||
elif [ "$btsoc" = "rome" ]
|
||||
then
|
||||
setprop ro.bluetooth.hfp.ver 1.6
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /system/etc/bluetooth/stack.conf ]; then
|
||||
stack=`cat /system/etc/bluetooth/stack.conf`
|
||||
fi
|
||||
|
||||
case "$stack" in
|
||||
"bluez")
|
||||
logi "Bluetooth stack is $stack"
|
||||
setprop ro.qc.bluetooth.stack $stack
|
||||
reason=`getprop vold.decrypt`
|
||||
case "$reason" in
|
||||
"trigger_restart_framework")
|
||||
start dbus
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
logi "Bluetooth stack is Bluedroid"
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
start_hciattach ()
|
||||
{
|
||||
/system/bin/hciattach -n $BTS_DEVICE $BTS_TYPE $BTS_BAUD &
|
||||
hciattach_pid=$!
|
||||
logi "start_hciattach: pid = $hciattach_pid"
|
||||
echo 1 > $BLUETOOTH_SLEEP_PATH
|
||||
}
|
||||
|
||||
kill_hciattach ()
|
||||
{
|
||||
echo 0 > $BLUETOOTH_SLEEP_PATH
|
||||
logi "kill_hciattach: pid = $hciattach_pid"
|
||||
## careful not to kill zero or null!
|
||||
kill -TERM $hciattach_pid
|
||||
# this shell doesn't exit now -- wait returns for normal exit
|
||||
}
|
||||
|
||||
logi "init.qcom.bt.sh config = $config"
|
||||
case "$config" in
|
||||
"onboot")
|
||||
config_bt
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# mimic hciattach options parsing -- maybe a waste of effort
|
||||
USAGE="hciattach [-n] [-p] [-b] [-t timeout] [-s initial_speed] <tty> <type | id> [speed] [flow|noflow] [bdaddr]"
|
||||
|
||||
while getopts "blnpt:s:" f
|
||||
do
|
||||
case $f in
|
||||
b | l | n | p) opt_flags="$opt_flags -$f" ;;
|
||||
t) timeout=$OPTARG;;
|
||||
s) initial_speed=$OPTARG;;
|
||||
\?) echo $USAGE; exit 1;;
|
||||
esac
|
||||
done
|
||||
shift $(($OPTIND-1))
|
||||
|
||||
# Note that "hci_qcomm_init -e" prints expressions to set the shell variables
|
||||
# BTS_DEVICE, BTS_TYPE, BTS_BAUD, and BTS_ADDRESS.
|
||||
|
||||
#Selectively Disable sleep
|
||||
BOARD=`getprop ro.board.platform`
|
||||
STACK=`getprop ro.qc.bluetooth.stack`
|
||||
|
||||
# BR/EDR & LE power class configurations
|
||||
POWER_CLASS=`getprop qcom.bt.dev_power_class`
|
||||
LE_POWER_CLASS=`getprop qcom.bt.le_dev_pwr_class`
|
||||
|
||||
#find the transport type
|
||||
TRANSPORT=`getprop ro.qualcomm.bt.hci_transport`
|
||||
logi "Transport : $TRANSPORT"
|
||||
case $STACK in
|
||||
"bluez")
|
||||
logi "** Bluez stack **"
|
||||
;;
|
||||
*)
|
||||
logi "** Bluedroid stack **"
|
||||
setprop bluetooth.status off
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
case $POWER_CLASS in
|
||||
1) PWR_CLASS="-p 0" ;
|
||||
logi "Power Class: 1";;
|
||||
2) PWR_CLASS="-p 1" ;
|
||||
logi "Power Class: 2";;
|
||||
3) PWR_CLASS="-p 2" ;
|
||||
logi "Power Class: CUSTOM";;
|
||||
*) PWR_CLASS="";
|
||||
logi "Power Class: Ignored. Default(1) used (1-CLASS1/2-CLASS2/3-CUSTOM)";
|
||||
logi "Power Class: To override, Before turning BT ON; setprop qcom.bt.dev_power_class <1 or 2 or 3>";;
|
||||
esac
|
||||
|
||||
case $LE_POWER_CLASS in
|
||||
1) LE_PWR_CLASS="-P 0" ;
|
||||
logi "LE Power Class: 1";;
|
||||
2) LE_PWR_CLASS="-P 1" ;
|
||||
logi "LE Power Class: 2";;
|
||||
3) LE_PWR_CLASS="-P 2" ;
|
||||
logi "LE Power Class: CUSTOM";;
|
||||
*) LE_PWR_CLASS="-P 1";
|
||||
logi "LE Power Class: Ignored. Default(2) used (1-CLASS1/2-CLASS2/3-CUSTOM)";
|
||||
logi "LE Power Class: To override, Before turning BT ON; setprop qcom.bt.le_dev_pwr_class <1 or 2 or 3>";;
|
||||
esac
|
||||
|
||||
eval $(/system/bin/hci_qcomm_init -e $PWR_CLASS $LE_PWR_CLASS && echo "exit_code_hci_qcomm_init=0" || echo "exit_code_hci_qcomm_init=1")
|
||||
|
||||
case $exit_code_hci_qcomm_init in
|
||||
0) logi "Bluetooth QSoC firmware download succeeded, $BTS_DEVICE $BTS_TYPE $BTS_BAUD $BTS_ADDRESS";;
|
||||
*) failed "Bluetooth QSoC firmware download failed" $exit_code_hci_qcomm_init;
|
||||
case $STACK in
|
||||
"bluez")
|
||||
logi "** Bluez stack **"
|
||||
;;
|
||||
*)
|
||||
logi "** Bluedroid stack **"
|
||||
setprop bluetooth.status off
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $exit_code_hci_qcomm_init;;
|
||||
esac
|
||||
|
||||
# init does SIGTERM on ctl.stop for service
|
||||
trap "kill_hciattach" TERM INT
|
||||
|
||||
case $TRANSPORT in
|
||||
"smd")
|
||||
case $STACK in
|
||||
"bluez")
|
||||
logi "** Bluez stack **"
|
||||
echo 1 > /sys/module/hci_smd/parameters/hcismd_set
|
||||
;;
|
||||
*)
|
||||
logi "** Bluedroid stack **"
|
||||
setprop bluetooth.status on
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
logi "start hciattach"
|
||||
start_hciattach
|
||||
case $STACK in
|
||||
"bluez")
|
||||
logi "Bluetooth is turning On with Bluez stack "
|
||||
;;
|
||||
*)
|
||||
logi "** Bluedroid stack **"
|
||||
setprop bluetooth.status on
|
||||
;;
|
||||
esac
|
||||
|
||||
wait $hciattach_pid
|
||||
logi "Bluetooth stopped"
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
1133
rootdir/init.qcom.rc
Normal file
1133
rootdir/init.qcom.rc
Normal file
File diff suppressed because it is too large
Load diff
1404
rootdir/init.qcom.usb.rc
Normal file
1404
rootdir/init.qcom.usb.rc
Normal file
File diff suppressed because it is too large
Load diff
324
rootdir/init.target.rc
Normal file
324
rootdir/init.target.rc
Normal file
|
@ -0,0 +1,324 @@
|
|||
# Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
#
|
||||
|
||||
import init.carrier.rc
|
||||
|
||||
on early-init
|
||||
mkdir /firmware 0771 system system
|
||||
mkdir /system 0777 root root
|
||||
symlink /data/tombstones /tombstones
|
||||
mkdir /dsp 0771 media media
|
||||
|
||||
on init
|
||||
mkdir /cust 0771 system system
|
||||
|
||||
on post-fs
|
||||
export LD_PRELOAD libNimsWrap.so
|
||||
|
||||
on fs
|
||||
wait /dev/block/bootdevice
|
||||
|
||||
mount_all fstab.qcom
|
||||
|
||||
# Keeping following partitions outside fstab file. As user may not have
|
||||
# these partition flashed on the device. Failure to mount any partition in fstab file
|
||||
# results in failure to launch late-start class.
|
||||
|
||||
wait /dev/block/bootdevice/by-name/cache
|
||||
mount ext4 /dev/block/bootdevice/by-name/cache /cache nosuid nodev barrier=1
|
||||
|
||||
wait /dev/block/bootdevice/by-name/persist
|
||||
mount ext4 /dev/block/bootdevice/by-name/persist /persist nosuid nodev barrier=1
|
||||
mkdir /persist/data 0700 system system
|
||||
restorecon_recursive /persist
|
||||
|
||||
wait /dev/block/bootdevice/by-name/dsp
|
||||
mount ext4 /dev/block/bootdevice/by-name/dsp /dsp ro nosuid nodev barrier=1
|
||||
|
||||
wait /dev/block/bootdevice/by-name/modem
|
||||
mount vfat /dev/block/bootdevice/by-name/modem /firmware ro context=u:object_r:firmware_file:s0,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
|
||||
#write /sys/kernel/boot_adsp/boot 1
|
||||
|
||||
on post-fs
|
||||
# We chown/chmod /cust again so because mount is run as root + defaults
|
||||
chown system system /cust
|
||||
chmod 0771 /cust
|
||||
# We restorecon /cust in case the cust partition has been reset.
|
||||
restorecon_recursive /cust
|
||||
|
||||
# create the lost+found directories, so as to enforce our permissions
|
||||
mkdir /cust/lost+found 0770 root root
|
||||
wait /dev/block/bootdevice/by-name/oem
|
||||
mount ext4 /dev/block/bootdevice/by-name/oem /oem ro nosuid nodev barrier=1
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/tombstones 0771 system system
|
||||
mkdir /tombstones/modem 0771 system system
|
||||
mkdir /tombstones/lpass 0771 system system
|
||||
mkdir /tombstones/wcnss 0771 system system
|
||||
mkdir /tombstones/dsps 0771 system system
|
||||
mkdir /persist/data/sfs 0700 system system
|
||||
mkdir /persist/data/tz 0700 system system
|
||||
mkdir /data/misc/hbtp 0750 system system
|
||||
mkdir /data/misc/dts 0770 media audio
|
||||
|
||||
#start camera server as daemon
|
||||
service qcamerasvr /system/bin/mm-qcamera-daemon
|
||||
class late_start
|
||||
user camera
|
||||
group camera system inet input graphics
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
|
||||
on init
|
||||
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
|
||||
|
||||
#enable zram
|
||||
on property:ro.config.zram=true
|
||||
swapon_all fstab.qcom
|
||||
write /proc/sys/vm/swappiness 100
|
||||
|
||||
service qfp-daemon /system/bin/qfp-daemon
|
||||
class late_start
|
||||
user system
|
||||
group system drmrpc
|
||||
|
||||
# Allow usb charging to be disabled peristently
|
||||
on property:persist.usb.chgdisabled=1
|
||||
write /sys/class/power_supply/battery/charging_enabled 0
|
||||
|
||||
on property:persist.usb.chgdisabled=0
|
||||
write /sys/class/power_supply/battery/charging_enabled 1
|
||||
|
||||
service qrngd /system/bin/qrngd -f
|
||||
class main
|
||||
user root
|
||||
group root
|
||||
|
||||
service qrngp /system/bin/qrngp -f
|
||||
class main
|
||||
user root
|
||||
group root
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
start qrngp
|
||||
|
||||
service qseecomd /system/bin/qseecomd
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
|
||||
#service aostlmd /system/bin/aostlmd
|
||||
# class late_start
|
||||
# user system
|
||||
# group system net_raw
|
||||
|
||||
service perfd /system/vendor/bin/perfd
|
||||
class main
|
||||
user root
|
||||
disabled
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
|
||||
service thermal-engine /system/vendor/bin/thermal-engine
|
||||
class main
|
||||
user root
|
||||
socket thermal-send-client stream 0666 system system
|
||||
socket thermal-recv-client stream 0660 system system
|
||||
socket thermal-recv-passive-client stream 0666 system system
|
||||
group root
|
||||
|
||||
service time_daemon /system/bin/time_daemon
|
||||
class late_start
|
||||
user root
|
||||
group root
|
||||
|
||||
service audiod /system/bin/audiod
|
||||
class late_start
|
||||
user system
|
||||
group system
|
||||
|
||||
on boot
|
||||
restorecon /dev/block/mmcblk0p13
|
||||
restorecon /dev/block/mmcblk0p14
|
||||
restorecon /dev/block/mmcblk0p16
|
||||
restorecon /dev/block/mmcblk0p2
|
||||
restorecon /dev/block/mmcblk0p3
|
||||
restorecon /dev/block/mmcblk0p27
|
||||
restorecon /dev/block/mmcblk0p33
|
||||
restorecon /dev/block/mmcblk0p34
|
||||
start rmt_storage
|
||||
insmod /system/lib/modules/adsprpc.ko
|
||||
# access permission for secure touch
|
||||
chmod 0660 /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
|
||||
chmod 0440 /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
|
||||
chmod 0660 /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
|
||||
chmod 0440 /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
|
||||
chown system drmrpc /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
|
||||
chown system drmrpc /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
|
||||
chown system drmrpc /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
|
||||
chown system drmrpc /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
|
||||
|
||||
service wcnss-service /system/bin/wcnss_service
|
||||
class main
|
||||
user system
|
||||
group system wifi radio
|
||||
restart
|
||||
|
||||
service imsstarter /system/bin/sh /system/etc/init.qti.ims.sh
|
||||
class main
|
||||
oneshot
|
||||
|
||||
on property:vold.decrypt=trigger_restart_framework
|
||||
start imsstarter
|
||||
|
||||
service imsqmidaemon /system/bin/imsqmidaemon
|
||||
class main
|
||||
user system
|
||||
socket ims_qmid stream 0660 system radio
|
||||
group radio net_raw log diag
|
||||
disabled
|
||||
|
||||
on property:service.qti.ims.enabled=1
|
||||
start imsqmidaemon
|
||||
|
||||
service imsdatadaemon /system/bin/imsdatadaemon
|
||||
class main
|
||||
user system
|
||||
socket ims_datad stream 0660 system radio
|
||||
group system wifi radio inet net_raw log diag net_admin
|
||||
disabled
|
||||
|
||||
on property:sys.ims.QMI_DAEMON_STATUS=1
|
||||
start imsdatadaemon
|
||||
|
||||
service ims_rtp_daemon /system/bin/ims_rtp_daemon
|
||||
class main
|
||||
user system
|
||||
socket ims_rtpd stream 0660 system radio
|
||||
group radio net_raw diag diag inet log
|
||||
disabled
|
||||
|
||||
service imscmservice /system/bin/imscmservice
|
||||
class main
|
||||
user system
|
||||
group radio net_raw diag diag log
|
||||
disabled
|
||||
|
||||
on property:sys.ims.DATA_DAEMON_STATUS=1
|
||||
start ims_rtp_daemon
|
||||
start imscmservice
|
||||
|
||||
service ppd /system/vendor/bin/mm-pp-dpps
|
||||
class late_start
|
||||
disabled
|
||||
user system
|
||||
socket pps stream 0660 system system
|
||||
group system graphics
|
||||
|
||||
on property:init.svc.surfaceflinger=stopped
|
||||
stop ppd
|
||||
|
||||
on property:init.svc.surfaceflinger=running
|
||||
start ppd
|
||||
|
||||
on property:init.svc.surfaceflinger=restarting
|
||||
stop ppd
|
||||
|
||||
on property:init.svc.zygote=stopped
|
||||
stop ppd
|
||||
|
||||
on property:init.svc.zygote=running
|
||||
start ppd
|
||||
|
||||
on property:init.svc.zygote=restarting
|
||||
stop ppd
|
||||
|
||||
on charger
|
||||
wait /dev/block/bootdevice/by-name/system
|
||||
mount ext4 /dev/block/bootdevice/by-name/system /system ro barrier=1
|
||||
load_all_props
|
||||
setprop persist.sys.usb.config mass_storage
|
||||
start qcom-post-boot
|
||||
setprop persist.sys.usb.config mass_storage
|
||||
start hvdcp_opti
|
||||
|
||||
service hbtp /system/vendor/bin/hbtp_daemon
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
disabled
|
||||
|
||||
service dts_configurator /system/bin/dts_configurator
|
||||
class late_start
|
||||
user system
|
||||
group media audio
|
||||
oneshot
|
||||
|
||||
service dtseagleservice /system/bin/dts_eagle_service
|
||||
class late_start
|
||||
user system
|
||||
group audio media
|
||||
disabled
|
||||
|
||||
service adsprpcd /system/bin/adsprpcd
|
||||
class main
|
||||
user media
|
||||
group media
|
||||
|
||||
on property:init.svc.dts_configurator=stopped
|
||||
start dtseagleservice
|
||||
|
||||
service per_mgr /system/bin/pm-service
|
||||
class core
|
||||
user system
|
||||
group system net_raw
|
||||
|
||||
service hvdcp_opti /system/bin/hvdcp_opti
|
||||
class main
|
||||
user root
|
||||
group root
|
||||
|
||||
service mdtpd /system/vendor/bin/mdtpd
|
||||
class late_start
|
||||
user root
|
||||
group system radio drmrpc
|
||||
|
||||
on boot
|
||||
write /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/fw_name PR1702898-s3528t_00260005_00380008.img
|
||||
write /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/update_fw 1
|
||||
|
||||
# update foreground cpuset now that processors are up
|
||||
write /dev/cpuset/foreground/cpus 0-7
|
||||
write /dev/cpuset/foreground/boost/cpus 0-3
|
||||
write /dev/cpuset/background/cpus 4-5
|
||||
write /dev/cpuset/system-background/cpus 4-7
|
||||
|
||||
service mtservice /system/bin/mtd
|
||||
class late_start
|
256
rootdir/ueventd.qcom.rc
Normal file
256
rootdir/ueventd.qcom.rc
Normal file
|
@ -0,0 +1,256 @@
|
|||
# Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor
|
||||
# the names of its contributors may be used to endorse or promote
|
||||
# products derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
# the DIAG device node is not world writable/readable.
|
||||
/dev/diag 0660 system qcom_diag
|
||||
|
||||
/dev/genlock 0666 system system
|
||||
/dev/kgsl 0666 system system
|
||||
/dev/kgsl-3d0 0666 system system
|
||||
/dev/kgsl-2d0 0666 root root
|
||||
/dev/kgsl-2d1 0666 root root
|
||||
/dev/ion 0664 system system
|
||||
/dev/rtc0 0660 system system
|
||||
/dev/smd0 0660 system system
|
||||
/dev/smd4 0660 system system
|
||||
/dev/smd_cxm_qmi 0640 radio radio
|
||||
/dev/smd5 0660 system system
|
||||
/dev/smd6 0660 system system
|
||||
/dev/smd7 0660 bluetooth bluetooth
|
||||
/dev/ccid_bridge 0660 system system
|
||||
/dev/ipa 0660 system net_admin
|
||||
/dev/wwan_ioctl 0660 system net_admin
|
||||
/dev/ipaNatTable 0660 net_admin net_admin
|
||||
/dev/rmnet_ctrl 0660 usb usb
|
||||
/dev/dpl_ctrl 0660 usb usb
|
||||
|
||||
#permissions for CSVT
|
||||
/dev/smd11 0660 radio radio
|
||||
|
||||
/dev/radio0 0640 system system
|
||||
/dev/rfcomm0 0660 bluetooth bluetooth
|
||||
/dev/ttyUSB0 0660 bluetooth bluetooth
|
||||
/dev/smdcntl0 0640 radio radio
|
||||
/dev/smdcntl1 0640 radio radio
|
||||
/dev/smdcntl2 0640 radio radio
|
||||
/dev/smdcntl3 0640 radio radio
|
||||
/dev/smdcntl4 0640 radio radio
|
||||
/dev/smdcntl5 0640 radio radio
|
||||
/dev/smdcntl6 0640 radio radio
|
||||
/dev/smdcntl7 0640 radio radio
|
||||
/dev/smdcntl8 0640 radio radio
|
||||
/dev/smdcnt_rev0 0640 radio radio
|
||||
/dev/smdcnt_rev1 0640 radio radio
|
||||
/dev/smdcnt_rev2 0640 radio radio
|
||||
/dev/smdcnt_rev3 0640 radio radio
|
||||
/dev/smdcnt_rev4 0640 radio radio
|
||||
/dev/smdcnt_rev5 0640 radio radio
|
||||
/dev/smdcnt_rev6 0640 radio radio
|
||||
/dev/smdcnt_rev7 0640 radio radio
|
||||
/dev/smdcnt_rev8 0640 radio radio
|
||||
/dev/smuxctl32 0640 radio radio
|
||||
/dev/sdioctl0 0640 radio radio
|
||||
/dev/sdioctl1 0640 radio radio
|
||||
/dev/sdioctl2 0640 radio radio
|
||||
/dev/sdioctl3 0640 radio radio
|
||||
/dev/sdioctl4 0640 radio radio
|
||||
/dev/sdioctl5 0640 radio radio
|
||||
/dev/sdioctl6 0640 radio radio
|
||||
/dev/sdioctl7 0640 radio radio
|
||||
/dev/sdioctl8 0640 radio radio
|
||||
/dev/rmnet_mux_ctrl 0640 radio radio
|
||||
/dev/hsicctl0 0640 radio radio
|
||||
/dev/hsicctl1 0640 radio radio
|
||||
/dev/hsicctl2 0640 radio radio
|
||||
/dev/hsicctl3 0640 radio radio
|
||||
/dev/hsicctl4 0640 radio radio
|
||||
/dev/hsicctl5 0640 radio radio
|
||||
/dev/hsicctl6 0640 radio radio
|
||||
/dev/hsicctl7 0640 radio radio
|
||||
/dev/hsicctl8 0640 radio radio
|
||||
/dev/hsicctl9 0640 radio radio
|
||||
/dev/hsicctl10 0640 radio radio
|
||||
/dev/hsicctl11 0640 radio radio
|
||||
/dev/hsicctl12 0640 radio radio
|
||||
/dev/hsicctl13 0640 radio radio
|
||||
/dev/hsicctl14 0640 radio radio
|
||||
/dev/hsicctl15 0640 radio radio
|
||||
/dev/hsicctl16 0640 radio radio
|
||||
/dev/mhi_pipe_14 0640 radio radio
|
||||
/dev/mhi_pipe_16 0640 radio radio
|
||||
/dev/mhi_pipe_32 0640 radio radio
|
||||
/dev/video* 0660 system camera
|
||||
/dev/media* 0660 system camera
|
||||
/dev/v4l-subdev* 0660 system camera
|
||||
/dev/qseecom 0660 system drmrpc
|
||||
/dev/seemplog 0660 system system
|
||||
/dev/pft 0660 system drmrpc
|
||||
/dev/gemini0 0660 system camera
|
||||
/dev/jpeg0 0660 system camera
|
||||
/dev/jpeg1 0660 system camera
|
||||
/dev/jpeg2 0660 system camera
|
||||
/dev/jpeg3 0660 system camera
|
||||
/dev/adsprpc-smd 0664 system system
|
||||
/dev/system_health_monitor 0644 radio system
|
||||
/dev/mdss_rotator 0664 system system
|
||||
# wlan
|
||||
/dev/wcnss_wlan 0660 system system
|
||||
/dev/wcnss_ctrl 0660 system system
|
||||
/sys/devices/soc/a000000.qcom,wcnss-wlan/net/wlan0/queues/rx-* rps_cpus 0660 system system
|
||||
/sys/devices/soc/a000000.qcom,wcnss-wlan/net/p2p0/queues/rx-* rps_cpus 0660 system system
|
||||
/dev/msm_camera/* 0660 system camera
|
||||
/dev/gemini/ 0660 system camera
|
||||
/dev/mercury0 0660 system camera
|
||||
/dev/msm_vidc_reg 0660 system audio
|
||||
/dev/msm_vidc_dec 0660 system audio
|
||||
/dev/msm_vidc_dec_sec 0660 system audio
|
||||
/dev/msm_vidc_enc 0660 system audio
|
||||
/dev/msm_rotator 0660 system system
|
||||
/dev/hw_random 0600 root root
|
||||
/dev/adsprpc-smd 0664 system system
|
||||
|
||||
#permissions for audio
|
||||
/dev/audio_slimslave 0660 system audio
|
||||
/dev/msm_qcelp 0660 system audio
|
||||
/dev/msm_evrc 0660 system audio
|
||||
/dev/msm_wma 0660 system audio
|
||||
/dev/msm_wmapro 0660 system audio
|
||||
/dev/msm_alac 0660 system audio
|
||||
/dev/msm_ape 0660 system audio
|
||||
/dev/msm_amrnb 0660 system audio
|
||||
/dev/msm_amrwb 0660 system audio
|
||||
/dev/msm_amrwbplus 0660 system audio
|
||||
/dev/msm_aac 0660 system audio
|
||||
/dev/msm_multi_aac 0660 system audio
|
||||
/dev/msm_aac_in 0660 system audio
|
||||
/dev/msm_qcelp_in 0660 system audio
|
||||
/dev/msm_evrc_in 0660 system audio
|
||||
/dev/msm_amrnb_in 0640 system audio
|
||||
/dev/msm_a2dp_in 0660 system audio
|
||||
/dev/msm_ac3 0660 system audio
|
||||
/dev/msm_audio_cal 0660 system audio
|
||||
/dev/msm_hweffects 0660 system audio
|
||||
/dev/msm_cad 0660 system audio
|
||||
/dev/msm_fm 0660 system audio
|
||||
/dev/msm_mvs 0660 system audio
|
||||
/dev/msm_pcm_lp_dec 0660 system audio
|
||||
/dev/msm_preproc_ctl 0660 system audio
|
||||
/dev/msm_rtac 0660 system audio
|
||||
/dev/msm_voicememo 0660 system audio
|
||||
/dev/smd3 0660 bluetooth net_bt_stack
|
||||
/dev/smd2 0660 bluetooth net_bt_stack
|
||||
/dev/ttyHSL1 0660 system system
|
||||
/dev/ttyHS1 0660 system system
|
||||
/dev/mdm 0660 system radio
|
||||
/sys/devices/virtual/smdpkt/smdcntl* open_timeout 0664 radio radio
|
||||
/dev/sdio_tty_ciq_00 0660 system system
|
||||
/dev/tty_sdio_00 0660 system system
|
||||
/dev/ttyGS0 0660 system system
|
||||
/dev/i2c-5 0660 media media
|
||||
/dev/voice_svc 0660 system audio
|
||||
/dev/avtimer 0660 system audio
|
||||
|
||||
# DVB devices
|
||||
/dev/dvb/adapter0/demux* 0440 media media
|
||||
/dev/dvb/adapter0/dvr* 0660 media media
|
||||
/dev/dvb/adapter0/video* 0660 media media
|
||||
|
||||
# Broadcast devices
|
||||
/dev/tsc_mux0 0660 media media
|
||||
/dev/tsc_ci0 0660 media media
|
||||
|
||||
# sensors
|
||||
/sys/devices/i2c-12/12-* pollrate_ms 0664 system system
|
||||
/sys/devices/f9925000.i2c/i2c-0/0-* enable 0660 input system
|
||||
/sys/devices/f9925000.i2c/i2c-0/0-* poll_delay 0660 input system
|
||||
/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* enable 0660 input system
|
||||
/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* poll_delay 0660 input system
|
||||
/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* enable_wakeup 0660 input system
|
||||
/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* max_latency 0660 input system
|
||||
/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* flush 0660 input system
|
||||
/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* calibrate 0660 input system
|
||||
/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* enable 0660 input system
|
||||
/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* poll_delay 0660 input system
|
||||
/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* enable_wakeup 0660 input system
|
||||
/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* max_latency 0660 input system
|
||||
/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* flush 0660 input system
|
||||
/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* calibrate 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/proximity ps_adc 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/proximity ps_poll_delay 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/lightsensor ls_auto 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/lightsensor ls_poll_delay 0660 input system
|
||||
/sys/devices/virtual/input/input* poll 0660 input system
|
||||
/sys/devices/virtual/input/input* pollrate_ms 0660 input system
|
||||
/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch 0440 system drmrpc
|
||||
/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch_enable 0660 system drmrpc
|
||||
/sys/devices/soc/78b7000.i2c/i2c-3/3-0038/input/input* secure_touch 0440 system drmrpc
|
||||
/sys/devices/soc/78b7000.i2c/i2c-3/3-0038/input/input* secure_touch_enable 0660 system drmrpc
|
||||
|
||||
# vm_bms
|
||||
/dev/vm_bms 0660 system system
|
||||
/dev/battery_data 0660 system system
|
||||
|
||||
# wlan
|
||||
/dev/wcnss_wlan 0660 system system
|
||||
/dev/wcnss_ctrl 0660 system system
|
||||
/sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0/queues/rx-* rps_cpus 0660 system system
|
||||
/sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/p2p0/queues/rx-* rps_cpus 0660 system system
|
||||
|
||||
#nfc permissions
|
||||
/dev/nfc-nci 0660 nfc nfc
|
||||
/dev/nq-nci 0660 nfc nfc
|
||||
/dev/assd 0660 nfc nfc
|
||||
|
||||
# UIO devices
|
||||
/dev/uio0 0660 system system
|
||||
/dev/uio1 0660 system system
|
||||
/dev/uio2 0660 system system
|
||||
|
||||
# SSR devices
|
||||
/dev/subsys_* 0640 system system
|
||||
|
||||
# Ultrasound device
|
||||
/dev/usf1 0660 system system
|
||||
|
||||
# Ramdump devices
|
||||
/dev/ramdump* 0640 system system
|
||||
|
||||
# Fingerprint device
|
||||
/dev/qbt1000 0660 system system
|
||||
|
||||
#ImproveTouch device
|
||||
/dev/hbtp_input 0660 system system
|
||||
/dev/hbtp_vm 0660 system system
|
||||
|
||||
# Add device block for FRP
|
||||
/dev/block/platform/soc/7824900.sdhci/by-name/config 0600 system system
|
||||
|
||||
# fpc Fingerprint
|
||||
/sys/devices/soc/soc:fpc1020 hw_reset 0220 system system
|
||||
/sys/devices/soc/soc:fpc1020 irq 0660 system system
|
||||
/sys/devices/soc/soc:fpc1020 wakeup_enable 0220 system system
|
||||
/sys/devices/soc/soc:fpc1020 compatible_all 0220 system system
|
BIN
wifi/WCNSS_cfg.dat
Normal file
BIN
wifi/WCNSS_cfg.dat
Normal file
Binary file not shown.
413
wifi/WCNSS_qcom_cfg.ini
Normal file
413
wifi/WCNSS_qcom_cfg.ini
Normal file
|
@ -0,0 +1,413 @@
|
|||
# This file allows user to override the factory
|
||||
|
||||
# defaults for the WLAN Driver
|
||||
|
||||
|
||||
# Enable IMPS or not
|
||||
gEnableImps=1
|
||||
|
||||
# Enable/Disable Idle Scan
|
||||
|
||||
gEnableIdleScan=0
|
||||
|
||||
|
||||
# Increase sleep duration (seconds) during IMPS
|
||||
# 0 implies no periodic wake up from IMPS. Periodic wakeup is
|
||||
# unnecessary if Idle Scan is disabled.
|
||||
gImpsModSleepTime=0
|
||||
|
||||
|
||||
# Enable BMPS or not
|
||||
gEnableBmps=1
|
||||
|
||||
# Enable suspend or not
|
||||
|
||||
# 1: Enable standby, 2: Enable Deep sleep, 3: Enable Mcast/Bcast Filter
|
||||
|
||||
gEnableSuspend=3
|
||||
|
||||
|
||||
# Phy Mode (auto, b, g, n, etc)
|
||||
# Valid values are 0-9, with 0 = Auto, 4 = 11n, 9 = 11ac
|
||||
gDot11Mode=0
|
||||
|
||||
|
||||
# CSR Roaming Enable(1) Disable(0)
|
||||
|
||||
gRoamingTime=0
|
||||
|
||||
|
||||
# Assigned MAC Addresses - This will be used until NV items are in place
|
||||
|
||||
# Each byte of MAC address is represented in Hex format as XX
|
||||
|
||||
Intf0MacAddress=000AF58989FF
|
||||
Intf1MacAddress=000AF58989FE
|
||||
Intf2MacAddress=000AF58989FD
|
||||
|
||||
Intf3MacAddress=000AF58989FC
|
||||
|
||||
# Set/Clear UAPSD mask
|
||||
|
||||
UapsdMask=0
|
||||
|
||||
# UAPSD service interval for VO,VI, BE, BK traffic
|
||||
|
||||
InfraUapsdVoSrvIntv=20
|
||||
|
||||
InfraUapsdViSrvIntv=40
|
||||
|
||||
# Flag to allow STA send AddTspec even when ACM is Off
|
||||
gAddTSWhenACMIsOff=1
|
||||
|
||||
# Make 1x1 the default antenna configuration
|
||||
|
||||
gNumRxAnt=1
|
||||
|
||||
|
||||
# Beacon filtering frequency (unit in beacon intervals)
|
||||
|
||||
gNthBeaconFilter=50
|
||||
|
||||
|
||||
# Enable WAPI or not
|
||||
|
||||
# WAPIIsEnabled=0
|
||||
|
||||
|
||||
# Flags to filter Mcast abd Bcast RX packets.
|
||||
|
||||
# Value 0: No filtering, 1: Filter all Multicast.
|
||||
|
||||
# 2: Filter all Broadcast. 3: Filter all Mcast abd Bcast
|
||||
|
||||
McastBcastFilter=3
|
||||
|
||||
|
||||
#Flag to enable HostARPOffload feature or not
|
||||
|
||||
hostArpOffload=1
|
||||
|
||||
|
||||
#SoftAP Related Parameters
|
||||
|
||||
# AP MAc addr
|
||||
|
||||
gAPMacAddr=000AF589dcab
|
||||
|
||||
|
||||
# 802.11n Protection flag
|
||||
|
||||
gEnableApProt=1
|
||||
|
||||
|
||||
#Enable OBSS protection
|
||||
|
||||
gEnableApOBSSProt=1
|
||||
|
||||
|
||||
#Enable/Disable UAPSD for SoftAP
|
||||
|
||||
gEnableApUapsd=1
|
||||
|
||||
|
||||
# Fixed Rate
|
||||
|
||||
gFixedRate=0
|
||||
|
||||
|
||||
# Maximum Tx power
|
||||
|
||||
# gTxPowerCap=30
|
||||
|
||||
|
||||
# Fragmentation Threshold
|
||||
|
||||
# gFragmentationThreshold=2346
|
||||
|
||||
|
||||
# RTS threshold
|
||||
|
||||
RTSThreshold=2048
|
||||
|
||||
|
||||
# Intra-BSS forward
|
||||
|
||||
gDisableIntraBssFwd=0
|
||||
|
||||
|
||||
# WMM Enable/Disable
|
||||
|
||||
WmmIsEnabled=0
|
||||
|
||||
|
||||
# 802.11d support
|
||||
|
||||
g11dSupportEnabled=1
|
||||
|
||||
# CCX Support and fast transition
|
||||
EseEnabled=0
|
||||
FastTransitionEnabled=1
|
||||
ImplicitQosIsEnabled=0
|
||||
gNeighborScanTimerPeriod=200
|
||||
|
||||
# default value of this parameter is zero to enable dynamic threshold allocation
|
||||
# to set static roming threshold uncomment below parameter and set vaule
|
||||
#gNeighborLookupThreshold=78
|
||||
|
||||
gNeighborScanChannelMinTime=20
|
||||
gNeighborScanChannelMaxTime=30
|
||||
|
||||
# Legacy (non-CCX, non-802.11r) Fast Roaming Support
|
||||
# To enable, set FastRoamEnabled=1
|
||||
# To disable, set FastRoamEnabled=0
|
||||
FastRoamEnabled=1
|
||||
|
||||
#Check if the AP to which we are roaming is better than current AP in terms of RSSI.
|
||||
#Checking is disabled if set to Zero.Otherwise it will use this value as to how better
|
||||
#the RSSI of the new/roamable AP should be for roaming
|
||||
RoamRssiDiff=5
|
||||
|
||||
# SAP Country code
|
||||
|
||||
# Default Country Code is 2 bytes, 3rd byte is optional indoor or out door.
|
||||
|
||||
# Example
|
||||
|
||||
# US Indoor, USI
|
||||
|
||||
# Korea Outdoor, KRO
|
||||
|
||||
# Japan without optional byte, JP
|
||||
|
||||
# France without optional byte, FR
|
||||
|
||||
#gAPCntryCode=USI
|
||||
|
||||
|
||||
#Short Guard Interval Enable/disable
|
||||
|
||||
gShortGI20Mhz=1
|
||||
|
||||
gShortGI40Mhz=1
|
||||
|
||||
|
||||
#Auto Shutdown Value in seconds. A value of 0 means Auto shutoff is disabled
|
||||
|
||||
gAPAutoShutOff=0
|
||||
|
||||
|
||||
# SAP auto channel selection configuration
|
||||
|
||||
# 0 = disable auto channel selection
|
||||
|
||||
# 1 = enable auto channel selection, channel provided by supplicant will be ignored
|
||||
|
||||
gApAutoChannelSelection=0
|
||||
|
||||
|
||||
# Listen Energy Detect Mode Configuration
|
||||
|
||||
# Valid values 0-128
|
||||
|
||||
# 128 means disable Energy Detect feature
|
||||
|
||||
# 0-9 are threshold code and 7 is recommended value from system if feature is to be enabled.
|
||||
|
||||
# 10-128 are reserved.
|
||||
|
||||
# The EDET threshold mapping is as follows in 3dB step:
|
||||
|
||||
# 0 = -60 dBm
|
||||
|
||||
# 1 = -63 dBm
|
||||
|
||||
# 2 = -66 dBm
|
||||
|
||||
# ...
|
||||
|
||||
# 7 = -81 dBm
|
||||
|
||||
# 8 = -84 dBm
|
||||
|
||||
# 9 = -87 dBm
|
||||
|
||||
# Note: Any of these settings are valid. Setting 0 would yield the highest power saving (in a noisy environment) at the cost of more range. The range impact is approximately #calculated as:
|
||||
|
||||
#
|
||||
|
||||
# Range Loss (dB) = EDET threshold level (dBm) + 97 dBm.
|
||||
|
||||
#
|
||||
|
||||
gEnablePhyAgcListenMode=128
|
||||
|
||||
|
||||
#Preferred channel to start BT AMP AP mode (0 means, any channel)
|
||||
|
||||
BtAmpPreferredChannel=0
|
||||
|
||||
|
||||
#Preferred band (both or 2.4 only or 5 only)
|
||||
|
||||
BandCapability=0
|
||||
|
||||
|
||||
#Beacon Early Termination (1 = enable the BET feature, 0 = disable)
|
||||
|
||||
enableBeaconEarlyTermination=1
|
||||
|
||||
beaconEarlyTerminationWakeInterval=11
|
||||
|
||||
|
||||
#Bluetooth Alternate Mac Phy (1 = enable the BT AMP feature, 0 = disable)
|
||||
|
||||
gEnableBtAmp=0
|
||||
|
||||
|
||||
#SOFTAP Channel Range selection
|
||||
|
||||
gAPChannelSelectStartChannel=1
|
||||
|
||||
gAPChannelSelectEndChannel=11
|
||||
|
||||
|
||||
#SOFTAP Channel Range selection Operating band
|
||||
|
||||
# 0:2.4GHZ 1: LOW-5GHZ 2:MID-5GHZ 3:HIGH-5GHZ 4: 4.9HZ BAND
|
||||
|
||||
gAPChannelSelectOperatingBand=0
|
||||
|
||||
|
||||
#Channel Bonding
|
||||
gChannelBondingMode5GHz=1
|
||||
|
||||
gEnableModulatedDTIM = 3
|
||||
gMaxLIModulatedDTIM = 7
|
||||
gEnableDatainactivity = 200
|
||||
|
||||
#Enable Keep alive with non-zero period value
|
||||
|
||||
gStaKeepAlivePeriod=30
|
||||
|
||||
|
||||
#Say gGoKeepAlivePeriod(5 seconds) and gGoLinkMonitorPeriod(10 seconds).
|
||||
#For every 10 seconds DUT sends Qos Null frame(i.e., Keep Alive frame if link is idle for last 10 seconds.)
|
||||
#For both active and power save clients.
|
||||
|
||||
#Power save clients: DUT set TIM bit from 10th second onwards and till client honors TIM bit.
|
||||
#If doesn't honor for 5 seconds then Driver remove client.
|
||||
|
||||
#Active clients: DUT send Qos Null frame for 10th seconds onwards if it is not success still DUT try on
|
||||
#11th second if not tries on 12th and so on till 15th second. Hence before disconnection DUT will send 5 NULL frames.
|
||||
#Hence in any case DUT will detect client got removed in (10+5) seconds. i.e., (gGoKeepAlivePeriod +gGoLinkMonitorPeriod)..
|
||||
|
||||
#gGoLinkMonitorPeriod/ gApLinkMonitorPeriod is period where link is idle and it is period
|
||||
#where we send NULL frame.
|
||||
|
||||
#gApLinkMonitorPeriod = 10
|
||||
|
||||
#gGoLinkMonitorPeriod = 10
|
||||
|
||||
#gGoKeepAlivePeriod/gApKeepAlivePeriod is time to spend to check whether frame are succeed to send or not.
|
||||
#Hence total effective detection time is gGoLinkMonitorPeriod+ gGoKeepAlivePeriod/gApLinkMonitorPeriod+ gApKeepAlivePeriod.
|
||||
gGoKeepAlivePeriod = 10
|
||||
|
||||
gApKeepAlivePeriod = 30
|
||||
#If set will start with active scan after driver load, otherwise will start with
|
||||
|
||||
#passive scan to find out the domain
|
||||
|
||||
#gEnableBypass11d=1
|
||||
|
||||
|
||||
#If set to 0, will not scan DFS channels
|
||||
|
||||
gEnableDFSChnlScan=1
|
||||
|
||||
gEnableLogp=1
|
||||
|
||||
|
||||
# Enable Automatic Tx Power control
|
||||
|
||||
gEnableAutomaticTxPowerControl=1
|
||||
|
||||
# 0 for OLPC 1 for CLPC and SCPC
|
||||
gEnableCloseLoop=1
|
||||
|
||||
#Data Inactivity Timeout when in powersave (in ms)
|
||||
gDataInactivityTimeout=200
|
||||
|
||||
gEnableLpwrImgTransition=1
|
||||
|
||||
# Scan Timing Parameters
|
||||
# gPassiveMaxChannelTime=110
|
||||
# gPassiveMinChannelTime=60
|
||||
# Enable Tx LDPC
|
||||
#gTxLdpcEnable = 1 for HT mode, 2 for VHT mode,3 for both HT and VHT
|
||||
gTxLdpcEnable=3
|
||||
# gActiveMaxChannelTime=40
|
||||
# gActiveMinChannelTime=20
|
||||
|
||||
# Valid values are 2048,4096,8192 and so on
|
||||
# Please don't use values other than the ones mentioned above
|
||||
gMaxMediumTime=4096
|
||||
|
||||
# 802.11K support
|
||||
gRrmEnable=1
|
||||
gRrmOperChanMax=8
|
||||
gRrmNonOperChanMax=8
|
||||
gRrmRandIntvl=100
|
||||
|
||||
#Scan offload
|
||||
gEnableDirectedScanOffload=0
|
||||
|
||||
#FlexConnect Power Factor
|
||||
#Default is set to 0 (disable)
|
||||
gFlexConnectPowerFactor=0
|
||||
|
||||
gVhtChannelWidth=2
|
||||
|
||||
# VHT Tx/Rx MCS values
|
||||
# Valid values are 0,1,2. If commented out, the default value is 0.
|
||||
# 0=MCS0-7, 1=MCS0-8, 2=MCS0-9
|
||||
gVhtRxMCS=2
|
||||
gVhtTxMCS=2
|
||||
|
||||
# Enable Tx beamforming
|
||||
gTxBFEnable=1
|
||||
|
||||
#Enable/Disable TDLS Feature
|
||||
gEnableTDLSSupport=1
|
||||
|
||||
#Enable/Disable TDLS Implicit Trigger
|
||||
gEnableTDLSImplicitTrigger=0
|
||||
|
||||
#Enable/Disable TDLS WMM Mode
|
||||
gEnableTDLSWmmMode=1
|
||||
|
||||
#Enable/Disable TDLS Buffer Sta
|
||||
gEnableTDLSBufferSta=1
|
||||
|
||||
#Enable/Disable Mgmt Frame Logging
|
||||
gEnableMgmtLogging=1
|
||||
|
||||
#Enable/Disable MAc Spoofing
|
||||
gEnableMacAddrSpoof=1
|
||||
|
||||
#Set RPS CPU mask
|
||||
rps_mask=f0
|
||||
|
||||
#Enable EDCA parameter
|
||||
gEnableEdcaParams=1
|
||||
|
||||
gEdcaBeCwmin=2
|
||||
|
||||
gEdcaBeCwmax=3
|
||||
|
||||
gEdcaBeAifs=2
|
||||
|
||||
END
|
||||
|
||||
# Note: Configuration parser would not read anything past the END marker
|
||||
|
1
wifi/WCNSS_qcom_wlan_nv.bin
Symbolic link
1
wifi/WCNSS_qcom_wlan_nv.bin
Symbolic link
|
@ -0,0 +1 @@
|
|||
/persist/WCNSS_qcom_wlan_nv.bin
|
3
wifi/hostapd.accept
Normal file
3
wifi/hostapd.accept
Normal file
|
@ -0,0 +1,3 @@
|
|||
# List of MAC addresses that are allowed to authenticate (IEEE 802.11)
|
||||
# with the AP. Optional VLAN ID can be assigned for clients based on the
|
||||
# MAC address if dynamic VLANs (hostapd.conf dynamic_vlan option) are used.
|
2
wifi/hostapd.deny
Normal file
2
wifi/hostapd.deny
Normal file
|
@ -0,0 +1,2 @@
|
|||
# List of MAC addresses that are not allowed to authenticate (IEEE 802.11)
|
||||
# with the AP.
|
1043
wifi/hostapd_default.conf
Normal file
1043
wifi/hostapd_default.conf
Normal file
File diff suppressed because it is too large
Load diff
1
wifi/p2p_supplicant_overlay.conf
Normal file
1
wifi/p2p_supplicant_overlay.conf
Normal file
|
@ -0,0 +1 @@
|
|||
disable_scan_offload=1
|
2
wifi/wpa_supplicant_overlay.conf
Normal file
2
wifi/wpa_supplicant_overlay.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
disable_scan_offload=1
|
||||
p2p_disabled=1
|
Loading…
Reference in a new issue