Skip to content

AICP/packages_apps_PartsBin

Repository files navigation

PartsBin

License: GPL v3

A configurable collection of settings for OnePlus phones.

Currently supported devices:

  • Google Nexus 5: hammerhead
  • OnePlus 5: cheeseburger
  • OnePlus 5T: dumpling
  • OnePlus 6: enchilada
  • OnePlus 6T: fajita
  • OnePlus 7: guacamoleb
  • OnePlus 7 Pro: guacamole
  • OnePlus 7T Pro: hotdog
  • OnePlus 8: instantnoodle
  • OnePlus 8 Pro: instantnoodlep
  • OnePlus 8T: kebab

Description

Based on OMNIROMs DeviceParts package, the idea is to manage device specific settings from a common code base while allowing features/implementations to be unique to individual devices to coexist with common ones. Feature availability is controlled by adding various overlays to the device tree for this package. Overlays are mostly sysfs paths controlling that particular feature. This application must have proper file access and sepolicy security contexts to those sysfs paths.

Resource strings are used from https://github.com/AICP/packages_resources_deviceparts

Currently supported features include:

Toggles and Paths

Note that defining paths needs support in the kernel! Thus the features might not work, if you are using a custom kernel.

HWKSwitch: Hardware keys swap toggle (supported on devices hw nav keys)

Offscreen-gestures: Only set to true, if the device supports Screengestures while the display is off.

Doubletap to wake (DT2W): En-/disable waking up the display by tapping on it two times.

Sweep to wake (S2W): En-/disable waking up the display by swiping from left to right in the lower section.

Sweep to sleep (S2S): En-/disable to put the display to sleep by swiping from left to right in the lower section.

SoundTuner: En-/disable the proprietary SoundTuner (Vendor specific)
[Note: Requires the needed vendor packages. Automatically appears when packages are correctly installed.
           and defined by the strings mentioned below.]

HBMSwitch: High Brightness Mode toggle with configurable off-on values with additional QS tile

DCDSwitch: DC-Dimming toggle with additional QS tile

Displaypanel Color Modes: sRGB, Adobe RGB, DCI-P3, WideColor, OnePlus, Nightmode. With additional QS tile

Display Refreshrate: Automatic, Manual, forced Peakrate with additional QS tile
[Note: Requires setting the kernel node for "dynamic_fps" and a few other bools.]

Vibration Modes: System, Calls, Notifications
[Note: For a vibration to work the corresponding integer vibrator overlays must be defined.]

Fastcharge: En-/disable USB charging with max. 900mA

Screen-Off Gestures (with optional haptic feedback)

SingleTap - to display ambient mode

Music Control - Play/Pause ("||"), skip to previous ("<") or next (">") track

Letter "O", "W", "M", "S", "V", "A" Gestures - configurable

Left-Right-Up-Down Swipes - configurable

Fingerprintreader Swiping Gestures (on non-FOD devices)

Left-Right-Up-Down Fingerprint-Swipes - configurable
[Note: Down-Swipe can also be disabled in favour of the AOSP build-in gesture.]

AlertSlider

Top-Center-Bottom positions with position bubbles

Possible selections:

  - Ringer: ring, vibrate, silent
  - Zen mode: priority only, alarms only, do not disturb
  - Flashlight

5G Network Mode Switcher

    [Note: Currently available on Oneplus 8 devices.]

    Possible selections:

      - NSA (Non-StandAlone) only
      - SA (StandAlone) only
      - NSA + SA

Configurable overlays

`

false`

<!-- Whether the device has hardware navigation buttons (true/false) -->
<bool name="config_device_has_hw_nav_buttons"> </bool>

<!-- Whether the device supports offscreen-gestures (true/false) -->
<bool name="config_device_supports_gestures"> </bool>

<!-- Whether device supports switching display refreshrates (true/false) -->
<bool name="config_device_supports_switch_refreshrate">false</bool>

<!-- Integer value of the minimal/base display refreshrate (usually 60) -->
<integer name="BaseRefresh">60</integer>

<!-- Integer value of the maximum/peak display refreshrate (e.g. 90) -->
<integer name="PeakRefresh"> </integer>

<!-- Whether device supports 5G networks (true/false). Default value is false. -->
<bool name="config_device_supports_network5gswitch"> </bool>

<!-- Show/hide the QS tile, if device supports DC Dimming or not. Default value is false. -->
<bool name="enableDCDTile">false</bool>

<!-- Show/hide the QS tile, if device supports switching display refreshrates or not. Default value is false. -->
<bool name="enableRefreshrateTile">false</bool>

<!-- Show/hide the QS tile, if device supports switching Displaymodes or not. Default value is false. -->
<bool name="enablePanelModeTile">false</bool>

<!-- Show/hide the QS tile, if device supports switching HighBrightness mode or not. Default value is false. -->
<bool name="enableHBMModeTile">false</bool>

<!-- Dolby atmos package -->
<string name="dolby_atmos_packagename">com.dolby.daxservice</string>

<!-- Sound tuner package -->
<string name="sound_tuner_packagename">com.oneplus.sound.tuner</string>

<!-- Dolby atmos classname -->
<string name="dolby_atmos_classname">com.oneplus.sound.tuner.panoramic.DolbyPanoramicSoundActivity</string>

<!-- Whether device supports disabling hwkeys -->
<string name="pathHWKToggle"> </string>

<!-- Path to devices single-tap toggle file -->
<string name="pathSTapToggle"> </string>

<!-- Path to devices doubletap to wake toggle file -->
<string name="pathDoubleTapToWakeToggle"> </string>

<!-- Path to devices sweep to sleep toggle file -->
<string name="pathSweepToSleepToggle"> </string>

<!-- Path to devices sweep to wake toggle file -->
<string name="pathSweepToWakeToggle"> </string>

<!-- Path to devices High Brightness Mode toggle file -->
<string name="pathHBMModeToggle"> </string>
<string name="hbmOFF">"0"</string>
<string name="hbmON">"1"</string>

<!-- Path to devices OnePlus Mode toggle file -->
<string name="pathOnePlusModeToggle"> </string>

<!-- Path to devices SRGBMode toggle file -->
<string name="pathSRGBModeToggle"> </string>

<!-- Path to devices AdobeRGBMode toggle file -->
<string name="pathAdobeRGBModeToggle"> </string>

<!-- Path to devices DCI-P3 Mode toggle file -->
<string name="pathDCIModeToggle"> </string>

<!-- Path to devices Nightmode toggle file -->
<string name="pathNightModeToggle"> </string>

<!-- Path to devices DC-Dimming Mode toggle file -->
<string name="pathDCDModeToggle"> </string>

<!-- Path to devices WideMode toggle file -->
<string name="pathWideModeToggle"> </string>

<!-- Path to devices system vibrationlevels -->
<string name="pathSystemVibStrength"> </string>

<!-- Path to devices calls vibrationlevels -->
<string name="pathCallVibStrength"> </string>

<!-- Path to devices notification vibrationlevels -->
<string name="pathNotifVibStrength"> </string>

<!-- Device vibrator min-max-default values -->
<integer name="vibratorMinMV"> </integer>
<integer name="vibratorMaxMV"> </integer>
<integer name="vibratorDefaultMV"> </integer>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages