Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
This project is mirrored from https://github.com/LineageOS/android_packages_apps_Gallery2. Pull mirroring updated .
  1. Nov 29, 2024
  2. Nov 01, 2024
  3. Oct 31, 2024
    • Michael W's avatar
      Remove values-lu · 9c5801d4
      Michael W authored
      * Luxemburgish (lb) was accidentially mapped to "lu" for all of the
        non-AOSP projects.
      * Since the next sync will download "lb" now, just remove "lu"
      
      Change-Id: I4437b4f0832415f47d823d65e4288c3b30e0ef04
      9c5801d4
  4. Oct 22, 2024
  5. Oct 16, 2024
  6. Sep 12, 2024
  7. Jun 07, 2024
    • LuK1337's avatar
      Enable resources shrinking · 955df47d
      LuK1337 authored
      This reduces final apk size from 12MB to 8.4MB.
      
      Change-Id: I9799988456e51625b4e72e837aadaa82a9fc5ba4
      955df47d
  8. May 30, 2024
  9. Apr 12, 2024
  10. Jan 02, 2024
  11. Nov 17, 2023
  12. Nov 16, 2023
  13. Oct 09, 2023
    • spickl's avatar
      Fix Gallery2 path traversal bug · d61e0cdb
      spickl authored
      Fix a path traversal bug that allowed a malicious launcher app to access files in the private space of the Gallery2 app by injecting a bad path.
      Fix: Check URI before passing the file out from SharedImageProvider and raise exception if it's not pointing to the relevant folder.
      Bug: 198174170
      Test: manual by following the reporters instructions
      
      Change-Id: I74dce6c4794b3eafb922bb9a2f2516677cc5f4d8
      d61e0cdb
    • Chih-Hung Hsieh's avatar
      Fix sizeof warnings on malloc · 452229bf
      Chih-Hung Hsieh authored
      Although sizeof(short) and sizeof(unsigned short)
      should have the same value; use the correct type
      to suppress the warning.
      
      Bug: 261919363
      Test: make tidy-packages-apps-Gallery2-jni_subset
      Change-Id: I8244fe20e613d0dea2a74753deec64346d5e9f5b
      452229bf
    • Cole Faust's avatar
      Fix errorprone warnings that should be errors · d04da699
      Cole Faust authored
      This commit is part of a large scale change to fix errorprone
      errors that have been downgraded to warnings in the android
      source tree, so that they can be promoted to errors again.
      The full list of changes include the following, but not all
      will be present in any one individual commit:
      
      BadAnnotationImplementation
      BadShiftAmount
      BanJNDI
      BoxedPrimitiveEquality
      ComparableType
      ComplexBooleanConstant
      CollectionToArraySafeParameter
      ConditionalExpressionNumericPromotion
      DangerousLiteralNull
      DoubleBraceInitialization
      DurationFrom
      DurationTemporalUnit
      EmptyTopLevelDeclaration
      EqualsNull
      EqualsReference
      FormatString
      FromTemporalAccessor
      GetClassOnAnnotation
      GetClassOnClass
      HashtableContains
      IdentityBinaryExpression
      IdentityHashMapBoxing
      InstantTemporalUnit
      InvalidTimeZoneID
      InvalidZoneId
      IsInstanceIncompatibleType
      JUnitParameterMethodNotFound
      LockOnBoxedPrimitive
      MathRoundIntLong
      MislabeledAndroidString
      MisusedDayOfYear
      MissingSuperCall
      MisusedWeekYear
      ModifyingCollectionWithItself
      NoCanIgnoreReturnValueOnClasses
      NonRuntimeAnnotation
      NullableOnContainingClass
      NullTernary
      OverridesJavaxInjectableMethod
      ParcelableCreator
      PeriodFrom
      PreconditionsInvalidPlaceholder
      ProtoBuilderReturnValueIgnored
      ProtoFieldNullComparison
      RandomModInteger
      RectIntersectReturnValueIgnored
      ReturnValueIgnored
      SelfAssignment
      SelfComparison
      SelfEquals
      SizeGreaterThanOrEqualsZero
      StringBuilderInitWithChar
      TreeToString
      TryFailThrowable
      UnnecessaryCheckNotNull
      UnusedCollectionModifiedInPlace
      XorPower
      
      See https://errorprone.info/bugpatterns for more
      information on the checks.
      
      Bug: 253827323
      Test: m RUN_ERROR_PRONE=true javac-check
      Change-Id: If22f7e827ef4d3e5766d6cc9f6a78353fbfaa60f
      d04da699
    • Michael Groover's avatar
      Add unaudited exported flag to exposed runtime receivers · ddb44600
      Michael Groover authored
      Android T allows apps to declare a runtime receiver as not exported
      by invoking registerReceiver with a new RECEIVER_NOT_EXPORTED flag;
      receivers registered with this flag will only receive broadcasts from
      the platform and the app itself. However to ensure developers can
      properly protect their receivers, all apps targeting U or later
      registering a receiver for non-system broadcasts must specify either
      the exported or not exported flag when invoking #registerReceiver;
      if one of these flags is not provided, the platform will throw a
      SecurityException. This commit updates all the exposed receivers
      with a new RECEIVER_EXPORTED_UNAUDITED flag to maintain the existing
      behavior of exporting the receiver while also flagging the receiver
      for audit before the U release.
      
      Bug: 234659204
      Test: Build
      Change-Id: I202a6837a0496cf6761f4b8b3d92a0904af68741
      ddb44600
    • Henri Chataing's avatar
      Remove Nfc beam sharing capability · fb1caae9
      Henri Chataing authored
      The Nfc Beam feature is now removed.
      
      Test: m Gallery2
      Bug: 236980291
      Change-Id: I0de0904e74a73471a785b87cafebccbe25e7450f
      (cherry picked from commit 617969afea0cca94aa2e76e23edc068453383389)
      fb1caae9
    • Alisher Alikhodjaev's avatar
      Remove deprecated NFC beam support · a15648fd
      Alisher Alikhodjaev authored
      Bug: 236980291
      Test: build pass
      Change-Id: Ia92f4afe8f07e21d962456ab7841d46545a9bb7a
      a15648fd
  14. Jul 25, 2023
    • Jing Mike's avatar
      Check for Potential Null Pointer · bca6838e
      Jing Mike authored
      
      
      After calling the function AndroidBitmap_lockPixels(), neither the
      return value nor the returned pointers were checked for the possible
      failure. So the pointers "source" & "destination" could have invalid
      value.
      
      Along with changes above, we also have some compile warnings and code
      format cleaned.
      
      Test: mmm packages/apps/Gallery2, presubmit check.
      
      Change-Id: I28a5d678311cb963bacd6f7b96ca2e12d498d965
      Signed-off-by: default avatarJing Mike <jingyangliu@eswincomputing.com>
      bca6838e
  15. May 28, 2023
  16. Apr 09, 2023
  17. Mar 27, 2023
    • Tommy Webb's avatar
      Gallery2: Ensure cropped output is truncated · 0745df0c
      Tommy Webb authored
      To properly handle the case that a calling app's use of the crop intent
      provides an output URI that already exists, e.g. one that is the same
      as the input URI, ensure that writes are truncated.
      
      If any apps are affected by this in practice, it's not clear which;
      the generic crop intent does not appear to be widely-used, and calls
      from AOSP apps or from the system use temporary files for this.
      
      Change-Id: I2a468d9527b679b6aaef6af1521ec0467f58bf60
      0745df0c
  18. Mar 26, 2023
  19. Nov 25, 2022
  20. Aug 28, 2022
  21. Aug 22, 2022
  22. Jul 04, 2022
  23. Jun 21, 2022
Loading