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

Commit 09e47be1 authored by Anton Hansson's avatar Anton Hansson
Browse files

Make Environment.getProductDirectory() @TestApi

Tests should be allowed to know where the product directory is mounted.

Bug: 119049497
Test: atest SysConfigTest
Change-Id: I3f196a862ad10d21646d4d5f8e46f6eec0a3bf6c
parent c5cee1e4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -707,6 +707,7 @@ package android.os {

  public class Environment {
    method public static java.io.File buildPath(java.io.File, java.lang.String...);
    method public static java.io.File getProductDirectory();
    method public static java.io.File getStorageDirectory();
  }

+1 −0
Original line number Diff line number Diff line
@@ -199,6 +199,7 @@ public class Environment {
     * @hide
     */
    @SystemApi
    @TestApi
    public static File getProductDirectory() {
        return DIR_PRODUCT_ROOT;
    }