Skip to content
Snippets Groups Projects
  1. Apr 03, 2021
    • Bruno Martins's avatar
      beckham: Add "system/" prefix to system blobs path · d8af4e34
      Bruno Martins authored and Joshua Blanchard's avatar Joshua Blanchard committed
      Change-Id: Id94956fbfd9695f398fd0580548aa17e9d0d126b
      d8af4e34
    • Nolen Johnson's avatar
      beckham: Add MODIFY_AUDIO_ROUTING to privapp perms for ModService · b83bde46
      Nolen Johnson authored and Joshua Blanchard's avatar Joshua Blanchard committed
      Change-Id: I0c56c8dfaf76eb133883946caceb2fec7baa37e7
      b83bde46
    • Nolen Johnson's avatar
      beckham: Make ModService requires MODIFY_AUDIO_ROUTING permission · 5402b2cf
      Nolen Johnson authored and Joshua Blanchard's avatar Joshua Blanchard committed
      * Previous to 11, this permission wasn't explicitely needed.
        Now it is, and ModService doesn't request it, so allow do the
        following:
      
        * `apktool d ModService.apk`
        * Add the following permission to the list of requested permissions:
          <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING"/>
        * `apktool b ModService -o ModService.apk`
      
      * Additionally, this is now fine to platform sign, as Moto Mods are now
        EOL, and therefore we don't have to worry about ModService updates
        anymore. We will leave the vendor_platform_signature function for
        for other apps like ProjectorMod to use.
      
      Change-Id: Ie4a218ff94dc47091487cc0af7a1dd28b79ed863
      5402b2cf
    • Joshua Blanchard's avatar
      beckham: Update Mods priv-app's from foles QPFS30.130-15-11-10 · dc1670b4
      Joshua Blanchard authored
      - Patched ModFmwkProxyService && ModService to include changes
        from previous versions as needed.
      
      Change-Id: I7179c39fe2e7ed203ab03aa6434e4bafc66fba0f
      dc1670b4
    • Nolen Johnson's avatar
      beckham: Cleanup dead targets · 6120ea67
      Nolen Johnson authored and Joshua Blanchard's avatar Joshua Blanchard committed
      build/make/core/main.mk:1136: warning:  device/motorola/beckham/lineage_beckham.mk includes non-existent modules in PRODUCT_PACKAGES
      Offending entries:
      nqnfcee_access.xml
      nqnfcse_access.xml
      build/make/core/main.mk:1136: error: Build failed.
      15:35:26 ckati failed with: exit status 1
      
      To do this yourself, put the following line into
      lineage_$TARGET.mk:
      
      `$(call enforce-product-packages-exist,)`
      
      Note that the above flag must be in the product
      makefile to work.
      
      Change-Id: I0e4d93f4c3be077d49befa1f547d11d623ca74d5
      6120ea67
  2. Jan 31, 2021
    • Erfan Abdi's avatar
      beckham: Fix camera recording · 4cd26b39
      Erfan Abdi authored and Joshua Blanchard's avatar Joshua Blanchard committed
      * Patched libmmcamera2_pproc_modules to not look for manufacturer prop, when
        it finds motorola as manufacturer camera hal will start some processes that
        leads to crash on android R...
      * I'm not sure whats downside of this hexpatch but camera recording is fixed...
      
      Change-Id: I8f67d0b07063df30af325a6b8d4181c90c18202f
      4cd26b39
    • Joshua Blanchard's avatar
      beckham: Add IModManager to VINTF manifest · f6088ff7
      Joshua Blanchard authored
      Change-Id: Ia4bdd85fa116aa62121b5b1f7218402774579f89
      f6088ff7
  3. Jan 09, 2021
  4. Jan 03, 2021
  5. Dec 03, 2020
  6. Nov 08, 2020
  7. Nov 07, 2020
  8. Nov 03, 2020
  9. Nov 01, 2020
  10. Oct 30, 2020
  11. Oct 28, 2020
    • Joshua Blanchard's avatar
      beckham: Add aov_ec_mixer_paths for MotSpeakerHelper · d4f12f99
      Joshua Blanchard authored
      * Based on observing these in logs...
        - E audio_route: Failed to open /vendor/etc/aov_ec_mixer_paths.xml:
            No such file or directory
        - I MotSpeakerHelper: AOV_EC mixer_path xml not found
      
      Change-Id: Iba85d6b192ab408345785b28bbcd434ec72cae1c
      d4f12f99
    • Joshua Blanchard's avatar
      beckham: Use charge_only_mode from PPWS29.131-27-1-27 · 6f09938e
      Joshua Blanchard authored
      * The common binary doesn't have support for Mods whereas this
        one does have dependencies on libmodmanager, so switch to device
        specific. Our blob will simply override the one in common vendor
        thus no need to decommonize it just so we can use our own.
      
      Change-Id: I3186c4aaed1b0272b0c9249fe648d21e0dbe70fd
      6f09938e
    • Joshua Blanchard's avatar
      beckham: Create /data/gbfirmware for ModService · 045a5042
      Joshua Blanchard authored
      * Do this by creating init.sys.beckham.rc which will run from
        /system during post-fs-data. This way the directory gets created
        and proper sepolicies are set and ModService is satisfied.
      
      * Update sepolicy accordingly
      
      * Also, change gbfirmware_file -> greybus_fw_data_file which is the
        same as the stock label.
      
      Change-Id: I8ee402e49dee8f95133634d57b48354a7b2acf43
      045a5042
    • Joshua Blanchard's avatar
      beckham: sepolicy: Label sysfs_greybus path(s) in file_contexts · 2d19d531
      Joshua Blanchard authored
      * Most of these are already added to genfscon, but it seems this
        additional labeling in file_contexts is needed to address a
        crash; E AndroidRuntime: FATAL EXCEPTION: Greybus Dispatcher
      
      Change-Id: I61e87c3f948fc0e3adc93c9e01c00c668f3df660
      2d19d531
    • Joshua Blanchard's avatar
      beckham: Migrate to function blob_fixup() for patching blobs · 882d6cce
      Joshua Blanchard authored
      Change-Id: I45e3454ecd8f5af17b00e6ad2b3001fc82190e88
      882d6cce
    • Joshua Blanchard's avatar
      beckham: Patch ModService to allow INTERACT_ACROSS_USERS_FULL · 9055443f
      Joshua Blanchard authored
      * com.motorola.permission.INTERACT_ACROSS_USERS_FULL ->
        android.permission.INTERACT_ACROSS_USERS_FULL
      
      * This CL fixes ModService crash due to not being able to
        register as a user app. After this, ModService successfully
        registers and no crashes are observed in logs.
      
      Change-Id: Ie3bdcc1c7094513b6962c85ce2972aed5879a852
      9055443f
    • Joshua Blanchard's avatar
      beckham: Give audiohal access to prox and spkr calibration data · d645584a
      Joshua Blanchard authored
      * Speaker (and receiver) calibration files are located on persist
        partition. Grant audio permission to find and read these files.
      
      * Moto's libspeakerbundle needs access to the proximity sensor,
        so allow it to find sensorservice so MotSpeakerHelperProximity
        can instantiate SensorManager.
      
      Change-Id: I888a424fc1c42dea0f130adfc74e02e47927e2b8
      d645584a
  12. Oct 26, 2020
    • Bruno Martins's avatar
      beckham: overlay: Beautify rounded corners · 82aa6375
      Bruno Martins authored and Joshua Blanchard's avatar Joshua Blanchard committed
      
      * Adapted for Beckham.
      
      Change-Id: Ifb3ff156eca7a02daec82138aee449b121c071eb
      Signed-off-by: default avatarJoshua Blanchard <joshua.lee.bbg@gmail.com>
      82aa6375
    • Michael Gernoth's avatar
      beckham: Exclude Lineage Camera app · 6475d0ad
      Michael Gernoth authored and Joshua Blanchard's avatar Joshua Blanchard committed
      * We use our moto Camera app.
      
      EDIT: This way allows us a little more flexability and
      doesn't require decommonizing the package for all devices.
      
      Change-Id: I5345fc03f45844bb10d629f100720e39fbbdf9ee
      6475d0ad
    • Joshua Blanchard's avatar
      beckham: Enable support for prebuilt audiohal · c7a54c01
      Joshua Blanchard authored
      * Setting the flag excludes building the audiohal so we
        don't still end up with the arm64 variant source built
        blob at /vendor/lib64/hw/ being stock only includes arm
        version of the hal, which when shipping the prebuilt blobs,
        are the only variants overridden.
      
      Change-Id: I66c2216e11eec39afdbde488a153fc351e691ea9
      c7a54c01
    • Joshua Blanchard's avatar
      beckham: sepolicy: Allow ModService to set usb priority · b7ecbc8a
      Joshua Blanchard authored
      Change-Id: I258bd9279f0fd770e0e6339a4732e1d413b88619
      b7ecbc8a
    • Joshua Blanchard's avatar
      beckham: Update sepolicy for MotoMods · 376ac5f0
      Joshua Blanchard authored
      
      * Make policy less generic and more specific to what we are
        defining. Move ModService to mods_app and define the attribute
        in public policy so it can be properly used across system
        vendor split within private and vendor policies.
      
      * Address mods_camd denials observed in logs
      
      * Add seinfo for ModService app
      
      * Allow ModService to read ro.boot.secure_hardware property
      
      Change-Id: I1bffe7e7b1ceb54bd91ce3f8b982cf94d9afe2ab
      Signed-off-by: default avatarJoshua Blanchard <joshua.lee.bbg@gmail.com>
      376ac5f0
    • Erfan Abdi's avatar
      beckham: Disable mods_camd · df59d754
      Erfan Abdi authored and Joshua Blanchard's avatar Joshua Blanchard committed
      * mods_camd is for camera mod and camera mod is broken due to missing framework
        changes and we probably can never get it working on lineage anyway
      * This change also fixes camera focus
      
      Change-Id: I1051e94f9ef8eee5ce916bb18a2e3d2996935f5a
      df59d754
    • LuK1337's avatar
      beckham: Patch prebuilt P blobs to load libprocessgroup · e7488488
      LuK1337 authored and Joshua Blanchard's avatar Joshua Blanchard committed
      * The symbol `set_sched_policy` users moved from libcutils
        to libprocessgroup, so change out the dependency.
      * Pin the patched HAL, leave patching logic for when we want
        to update it.
      
      Change-Id: I0151324ec561e2c8c1bcd12fb87254de0d92706a
      e7488488
    • Nolen Johnson's avatar
      beckham: Include MotoSignatureApp · 04923d61
      Nolen Johnson authored and Joshua Blanchard's avatar Joshua Blanchard committed
      * Needed for MotCamera2 to update via the Play Store.
      * Also exclude from dex-opt'ing on host, as this app
        is known not to like that (see: shamu, clark).
      
      Change-Id: Ibf2aafd731783fdae63b228460753457296de47c
      04923d61
    • Nolen Johnson's avatar
      beckham: Mark MotCamera2 as presigned · ad98c738
      Nolen Johnson authored and Joshua Blanchard's avatar Joshua Blanchard committed
      Change-Id: Ifa4501b9dc14326ce73df1b106a9a0dcd5f9b5f6
      ad98c738
    • Nolen Johnson's avatar
      beckham: Add Moto Camera 2 & priv-app permissions · eaf88dec
      Nolen Johnson authored and Joshua Blanchard's avatar Joshua Blanchard committed
      * Snap APIv2 doesn't support our Aux Cam, or Camera
        Mods (considering they are removable and need special
        HAL handling for flash, internal Camera/USB disabling,
        etc.
      
      * Snap APIv1 doesn't like our front-flash, or video
        recording audio (likely fixable). As well as the
        aforementioned lack of Camera Mod support.
      
      * Mata ships Klik to support an external Camera "mod"
        and sets precedent for shipping OEM Cameras, so we're
        just going to go ahead and do it.
      
      Change-Id: I7d5001e7f743cdb9aaeb70c032a19cc008209135
      eaf88dec
    • Nolen Johnson's avatar
      beckham: audio: Kill mot_speaker_effect · 7c19d900
      Nolen Johnson authored and Joshua Blanchard's avatar Joshua Blanchard committed
      * Revives some A2DP use cases (eg. SBC, aptX).
      * I intend to fix this effect at some point,
        though it will require more time.
      * This, comically, fixed Moto's EQ service choking
        in the background, and makes audio from Audio Mods
        sound, like, 100% better, more bass, etc.
      * TODO: Limit Speaker Mod volume, cause over ~70% sounds
        crackly.
      
      Change-Id: I56ca79c9a1fe47b9da812ee2f8b09c4648391005
      7c19d900
Loading