Skip to content
Snippets Groups Projects
  1. Oct 11, 2023
    • Anton Hansson's avatar
      Cleanup obsolete doc build targets · 2e6a904a
      Anton Hansson authored
      - the *-check-docs target doesn't do anything the other targets don't
      - online-* are, I think, the old d.a.c targets but the ds-* targets are
        what's currently used
      - the hidden-* target isn't meaningfully different from others, either
      
      Test: presubmit
      Change-Id: Icab977d40917aa14c629629965c6126e20f4f3ee
      2e6a904a
  2. Feb 14, 2022
  3. Jul 15, 2020
    • Anton Hansson's avatar
      Remove always-empty variable · 215c5ee2
      Anton Hansson authored
      This has been empty since Ibdfe1cbf34d97c43f4857c2c5d7604fa72d5b5a4.
      
      Test: m
      Change-Id: I7ac973f82dc07fb74e0aae80c10a68d3ae6e1d72
      215c5ee2
  4. Apr 28, 2020
    • Dan Willemsen's avatar
      Fix unzip timestamps · e8727501
      Dan Willemsen authored
      ninja: Missing `restat`? An output file is older than the most recent input:
       output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/activity_actions.txt
        input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
      ninja: Missing `restat`? An output file is older than the most recent input:
       output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/broadcast_actions.txt
        input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
      ninja: Missing `restat`? An output file is older than the most recent input:
       output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/categories.txt
        input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
      ninja: Missing `restat`? An output file is older than the most recent input:
       output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/features.txt
        input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
      ninja: Missing `restat`? An output file is older than the most recent input:
       output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/service_actions.txt
        input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
      ninja: Missing `restat`? An output file is older than the most recent input:
       output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/widgets.txt
        input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
      
      Which was caused by unzip setting the timestamps of the output files to 2008.
      
      Test: m out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/activity_actions.txt
      Change-Id: Ie62b0f52eb9aae11db7899c363780daf7d2c0e95
      e8727501
  5. Apr 17, 2020
    • Anton Hansson's avatar
      Remove obsolete dist rules · 8f750753
      Anton Hansson authored
      The API files are disted to the apistubs/ subdir now, and all
      known users have been updated to use that path.
      
      Bug: 152479829
      Test: No
      Change-Id: I224fd5af8ba740c6ad94bbbdb20f5d53509e51f6
      Merged-In: I224fd5af8ba740c6ad94bbbdb20f5d53509e51f6
      8f750753
    • Anton Hansson's avatar
      Remove obsolete dist rules · 82ab0c4f
      Anton Hansson authored
      The API files are disted to the apistubs/ subdir now, and all
      known users have been updated to use that path.
      
      Bug: 152479829
      Test: No
      Change-Id: I224fd5af8ba740c6ad94bbbdb20f5d53509e51f6
      82ab0c4f
    • Anton Hansson's avatar
      Convert disting of api txt from mk to bp · ba367d3b
      Anton Hansson authored
      droidstubs dist now dists the api file, so convert these manual
      mk rules into bp dist instead.
      
      Bug: 149293194
      Test: m dist sdk && find out/dist/apistubs -name /android\.txt
      Change-Id: I96052b427dc01a6d24b040ad0006129d4d1e48fb
      Merged-In: I96052b427dc01a6d24b040ad0006129d4d1e48fb
      ba367d3b
  6. Mar 23, 2020
    • Anton Hansson's avatar
      Convert disting of api txt from mk to bp · d9a3fee2
      Anton Hansson authored
      droidstubs dist now dists the api file, so convert these manual
      mk rules into bp dist instead.
      
      Bug: 149293194
      Test: m dist sdk && find out/dist/apistubs -name /android\.txt
      Change-Id: I96052b427dc01a6d24b040ad0006129d4d1e48fb
      d9a3fee2
  7. Mar 21, 2020
  8. Mar 20, 2020
    • Anton Hansson's avatar
      Add module_lib and system-server artifacts to sdk dist · 9a01e55c
      Anton Hansson authored
      Makes these artifacts available for the update_prebuilts script.
      
      Bug: 149293194
      Test: m win_sdk dist && find out/dist -type f
      Change-Id: Ia1064e50e987433e5e308527c6770ba2d3e8bde3
      Merged-In: Ia1064e50e987433e5e308527c6770ba2d3e8bde3
      (cherry picked from commit 7b0414be)
      9a01e55c
  9. Mar 19, 2020
  10. Feb 25, 2020
  11. Nov 18, 2019
    • Jerome Gaillard's avatar
      Use Metalava to get SDK metadata for devtools · 326fce2e
      Jerome Gaillard authored
      Metalava, not Doclava, should be used to extract the metadata used in
      devtools. The files created then need to be copied into the SDK.
      
      Bug: 142480924
      Test: m sdk
      Change-Id: I7eb15341fde9520d51a696a6416a63e6c19c71f9
      Merged-In: I7eb15341fde9520d51a696a6416a63e6c19c71f9
      326fce2e
  12. Oct 17, 2019
    • Jerome Gaillard's avatar
      Use Metalava to get SDK metadata for devtools · b59a1cd6
      Jerome Gaillard authored
      Metalava, not Doclava, should be used to extract the metadata used in
      devtools. The files created then need to be copied into the SDK.
      
      Bug: 142480924
      Test: m sdk
      Change-Id: I7eb15341fde9520d51a696a6416a63e6c19c71f9
      b59a1cd6
  13. Apr 22, 2019
    • Colin Cross's avatar
      Remove framework.aidl rules · b9cb74b0
      Colin Cross authored
      They are now located in build/soong/java/sdk.go.
      
      Bug: 130798034
      Bug: 122332340
      Test: m checkbuild
      Change-Id: I4e8ee725e660e52aa56c2a10b626dff517669869
      Merged-In: I4e8ee725e660e52aa56c2a10b626dff517669869
      (cherry picked from commit 196fa294)
      b9cb74b0
  14. Apr 18, 2019
    • Colin Cross's avatar
      Remove framework.aidl rules · 196fa294
      Colin Cross authored
      They are now located in build/soong/java/sdk.go.
      
      Bug: 130798034
      Bug: 122332340
      Test: m checkbuild
      Change-Id: I4e8ee725e660e52aa56c2a10b626dff517669869
      196fa294
  15. Feb 14, 2019
    • Colin Cross's avatar
      Don't run doc-comment-check-docs for update-api · 22ec2e68
      Colin Cross authored
      update-api would be fast except that it spends ~4 minutes doing
      doc-comment-check-docs.  doc-comment-check-docs isn't really
      related to update-api, so lets just remove it.
      
      Fixes: 124386818
      Test: m update-api
      Change-Id: I0f5311e98063786671c0d8b6a8db52351d9fcfd7
      22ec2e68
  16. Feb 08, 2019
    • Colin Cross's avatar
      Unzip offline-sdk-docs for m offline-sdk-docs or m docs · c07f3823
      Colin Cross authored
      offline-sdk-docs is the most useful target for local developers
      verifying documentation changes.  Unzip offline-sdk-docs.zip
      into out/target/common/docs/offline-sdk/ whenever the offline-sdk-docs
      or docs targets are built.
      
      Fixes: 124115897
      Test: m offline-sdk-docs
      Change-Id: I92ce65742e7475cc64a688f2b1893c96ecfd2a52
      c07f3823
  17. Feb 05, 2019
    • Colin Cross's avatar
      Move hiddenapi rules to Soong · 98d3da86
      Colin Cross authored
      The hiddenapi rules are now in build/soong/java/hiddenapi_singleton.go.
      The dist goals are still here for now.
      
      Bug: 123645297
      Test: m checkbuild
      Change-Id: Id25b2bf0d6b49be2f908a4613f012773fb1f02c4
      98d3da86
  18. Jan 19, 2019
    • David Brazdil's avatar
      hiddenapi: Expect public/private API as CSV · 17d16e84
      David Brazdil authored
      Refactor of `hiddenapi` changed the output format of public/private API
      lists to a single CSV file. Change API list generation accordingly.
      
      In order to avoid special-casing this CSV file, it is treated the same
      as the CSV files produced by `class2greylist`. The merging rules are
      relaxed so that signatures in CSV files are not checked against
      a pre-initialized set of all signatures (previously generated from the
      public/private API files). This should not lead to build errors as the
      CSV files are always auto-generated, and a missing/extra signature will
      be caught by `hiddenapi`.
      
      API lists in frameworks/base/config are processed later and checked
      that they are a subset of the signatures in CSV.
      
      Bug: 119068555
      Test: compiles, hiddenapi-flags.csv unchanged
      Change-Id: I33f2cbaa15f2d423a75e6ca64abe1c5b0c40c86f
      17d16e84
  19. Jan 18, 2019
    • David Brazdil's avatar
      Add SOONG_HIDDENAPI_FLAGS as hiddenapi_flags.csv dependencies · 4f895b2b
      David Brazdil authored
      Hiddenapi build logic has moved to soong and list of flags.csv files
      is now being passed to make files through SOONG_HIDDENAPI_FLAGS
      variable. Adjust the build rule for hiddenapi_flags.csv accordingly.
      
      Test: aosp compiles
      Change-Id: I930f918fb36ce3532478035e83c2632559fd07b6
      4f895b2b
  20. Jan 17, 2019
  21. Dec 05, 2018
    • David Brazdil's avatar
      Rename hiddenapi config files · d719f513
      David Brazdil authored
      Rename files to reflect new API list naming convention:
        light-greylist => greylist
        max-sdk-p-blacklist => greylist-max-p
      
      This also removes unused files (private-dex.txt, public-dex.txt,
      removed-dex.txt) and merges vendor.txt into greylist.txt.
      
      Test: m appcompat
      Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
      Merged-In: I4922ecb011a03bef3fa105f8181d1851d2cc496a
      Change-Id: I4922ecb011a03bef3fa105f8181d1851d2cc496a
      d719f513
    • David Brazdil's avatar
      Rename hiddenapi config files · 3eae313e
      David Brazdil authored
      Rename files to reflect new API list naming convention:
        light-greylist => greylist
        max-sdk-p-blacklist => greylist-max-p
      
      This also removes unused files (private-dex.txt, public-dex.txt,
      removed-dex.txt) and merges vendor.txt into greylist.txt.
      
      The CL also starts using greylist-max-p.txt (which is currently empty).
      
      Test: m appcompat
      Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
      Change-Id: I4922ecb011a03bef3fa105f8181d1851d2cc496a
      3eae313e
  22. Nov 30, 2018
  23. Nov 29, 2018
    • David Brazdil's avatar
      Turn hidden API lists into a single CSV · 89bf0f28
      David Brazdil authored
      Maintaining multiple text files has become too cumbersome as adding
      each new category of API requires changes across many projects.
      This patch changes generate_hiddenapi_lists.py to produce a single
      CSV file in the format:
      
        <api_signature>,<flag1>,...,<flagN>
      
      It can accept legacy API list files as input (for existing
      frameworks/base/config/hiddenapi-*.txt files) as well as per-package
      CSVs produced by class2greylist.
      
      Test: m, check lists have not changed
      Test: phone boots
      Test: tools/hiddenapi/generate_hiddenapi_lists_test.py
      Change-Id: Iebcef426ec93ea1d72b662bbff91d4e068fa0a70
      89bf0f28
  24. Oct 16, 2018
    • Mathew Inwood's avatar
      Merge hidden API metadata into a single CSV file. · ea14c0c3
      Mathew Inwood authored
      Add a python script to merge the CSV files, dealing with the fact that the
      source columns may differ due to the annotation properties present in the
      source.
      
      Add this new file and the existing greylist.txt files as dependencies of
      the 'dist' target, so that they appear as artifacts on the build server.
      This allows them to be processed later by reading them from the build
      server.
      
      Test: m out/target/common/obj/PACKAGING/hiddenapi-greylist.csv
      Bug: 117314178
      Change-Id: Ib9e5da90e4c32333a3f4f02ee7f159f77086ae5e
      ea14c0c3
  25. Oct 15, 2018
    • Mathew Inwood's avatar
      Add new "max-sdk-p blacklist". · 50dea427
      Mathew Inwood authored
      This will contain greylist entries accessible by apps with a
      targetSdkVersion of less than Q. Currently empty, will be populated in
      follow up CLs.
      
      For now, these APIs are just merged into the light greylist at build time,
      pending support in the runtime for implementing the correct runtime
      behavior.
      
      Also fix a bug in sort_api.sh so it deals with empty API lists
      correctly.
      
      Bug: 115609023
      Test: m
      Change-Id: I213874062f393f96d120648a934ae5ad7aba93af
      50dea427
  26. Sep 17, 2018
    • Nan Zhang's avatar
      Enable jdiff for api-stubs-docs · 81f29f5c
      Nan Zhang authored
      And also clean legacy MK code in Android.mk
      
      Test: api-stubs-docs-diff
      Bug: b/78245848
      Change-Id: I733e0e2c29f8273db3ffb9730c70d5b4e2b1438d
      81f29f5c
  27. Sep 11, 2018
  28. Sep 07, 2018
    • Mathew Inwood's avatar
      Include dark greylist entries from annotations. · 5e37d226
      Mathew Inwood authored
      @UnsupportedAppUsage annotations support setting a maxTargetSdk property
      on the which results in the member being placed on the dark grey list,
      or in future on a P or Q blacklist.
      
      Bug: 114361293
      Test: m
      Change-Id: I33be28f8afb034a030bdf5cf29d43ba72f50bfcd
      5e37d226
  29. Sep 06, 2018
    • David Brazdil's avatar
      Mark hidden API lists .KATI_RESTAT · 081a589a
      David Brazdil authored
      Change hidden API list generation build rule so that it checks if
      outputs have changed and only commit them when changes have been made.
      .KATI_RESTAT instructs ninja to restat the outputs and remove reverse
      dependencies when rebuilding dependencies is not needed.
      
      Bug: 113278235
      Test: m appcompat
      Change-Id: Ic3ec82534a6d79b6a85f865a6e9eb5f0b3f12424
      081a589a
    • David Brazdil's avatar
      Check in P dark greylist, use it for hidden API list generation · 3cc74c71
      David Brazdil authored
      We want to preserve the same semantics as P wrt dark greylist. This will
      eventually become the "blacklist for target SDK >= P".
      
      Bug: 113881436
      Test: phone boots
      Change-Id: I3bb72102e1d054eb0f2cae089ab633a0bc2bb276
      3cc74c71
  30. Sep 03, 2018
    • Sundong Ahn's avatar
      Change the dist path of api files · c21f78e2
      Sundong Ahn authored
      The dist path of the api files are changed for consistency of dist path.
      
      Test: make -j40 PRODUCT-sdk_phone_armv7-sdk dist sdk_repo
      Change-Id: I8dae352288458f6305ab6a0e5210c042ab372e33
      c21f78e2
  31. Aug 30, 2018
    • David Brazdil's avatar
      Rewrite hidden API list generation in Python · 8503b904
      David Brazdil authored
      Generating hidden API lists has grown in complexity and the original
      Makefile rule has become a bottleneck for build times. Rewrite the
      logic in Python.
      
      Bug: 113278235
      Bug: 73736106
      Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
      Change-Id: I63f03133d70260d06c55f482b844a4980dc6f734
      8503b904
  32. Aug 23, 2018
    • David Brazdil's avatar
      Support whitelist entries from class2greylist · 9b1068cc
      David Brazdil authored
      Whitelist used to be the same as all entries in API stubs. This is no
      longer true as libcore will generate hidden bridge methods which are
      supposed to be whitelisted. CL in build/make calls class2greylist on
      each boot classpath module to dump their list and this patch creates
      a build rule for the new whitelist.
      
      Bug: 112186571
      Test: m appcompat, diff public-list.txt whitelist.txt
      Change-Id: I7b3957ea9ed8bebb483609d94b1e6f169f4379dd
      9b1068cc
  33. Aug 20, 2018
  34. Aug 03, 2018
    • David Brazdil's avatar
      Revert^2: Start using new list of non-SDK APIs · 80e6ac7d
      David Brazdil authored
      The `hiddenapi` build tool has been extended to provide a full list
      of non-SDK APIs in an effort to remove dependency on Doclava.
      This patch changes the build rules generating non-SDK API lists to
      start using hiddenapi's list instead of Doclava's.
      
      Consequences:
      (a) some greylist entries change signature (fixing Doclava varargs bug)
      (b) cloned public fields are now whitelisted (b/79432238)
      (c) new APIs need to be greylisted because they are used by apps
      
      Bug: 79432238
      Bug: 79409988
      Bug: 76424618
      Test: phone boots
      Merged-In: I681c1e97d0929cfb1d357b2243ecb210d18f9e87
      Change-Id: I681c1e97d0929cfb1d357b2243ecb210d18f9e87
      (cherry picked from commit b59c36f5)
      80e6ac7d
  35. Aug 02, 2018
    • Nan Zhang's avatar
      Add offline/online-sdk-docs in Soong. · c3ce78d6
      Nan Zhang authored
      Since support libraries have been migrated to Soong, these docs modules
      currently are ready to be supported in Soong.
      
      Bug: b/70351683
      Test: m -j offline-sdk-docs
      Change-Id: I8739d94909c7cc830c30fa3d1047d26761cc5076
      Merged-In: I8739d94909c7cc830c30fa3d1047d26761cc5076
      c3ce78d6
Loading