blob: e74b2a6d00c0eed5f4b2f062ae491f22bb3d9c19 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_ANDROID_BUNDLE_UTILS_H_
#define BASE_ANDROID_BUNDLE_UTILS_H_
#include <string>
#include "base/base_export.h"
namespace base {
namespace android {
// Utils to help working with android app bundles.
class BASE_EXPORT BundleUtils {
public:
// Returns true if the current build is a bundle.
static bool IsBundle();
// dlopen wrapper that works for partitioned native libraries in dynamic
// feature modules. This routine looks up the partition's address space in a
// table of main library symbols, and uses it when loading the feature
// library.
static void* DlOpenModuleLibraryPartition(const std::string& library_name);
};
} // namespace android
} // namespace base
#endif // BASE_ANDROID_BUNDLE_UTILS_H_