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

Commit 008c37d8 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

Part of fix for bug 5584571 Add HTTP request header with app name

Need the context to get the package name, adding it method here
that can be called from JNI.

Change-Id: I530d81d9d922ea73a3f9d185618a5c4cfde0aca7
parent 9039e43a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -91,6 +91,16 @@ class JniUtil {
        return sCacheDirectory;
    }

    /**
     * Called by JNI. Gets the application's package name.
     * @return String The application's package name
     */
    private static synchronized String getPackageName() {
        checkInitialized();

        return sContext.getPackageName();
    }

    private static final String ANDROID_CONTENT = "content:";

    /**