diff --git a/app/src/main/java/io/lbry/browser/reactmodules/UtilityModule.java b/app/src/main/java/io/lbry/browser/reactmodules/UtilityModule.java index 721abd27..e6bd02bc 100644 --- a/app/src/main/java/io/lbry/browser/reactmodules/UtilityModule.java +++ b/app/src/main/java/io/lbry/browser/reactmodules/UtilityModule.java @@ -470,4 +470,16 @@ public class UtilityModule extends ReactContextBaseJavaModule { // This obtains a public default download directory after the storage permission has been granted promise.resolve(Utils.getConfiguredDownloadDirectory(context)); } + + @ReactMethod + public void getLbrynetDirectory(Promise promise) { + String path = String.format("%s/%s", Utils.getAppInternalStorageDir(context), "lbrynet"); + promise.resolve(path); + } + + @ReactMethod + public void getPlatform(Promise promise) { + String platform = String.format("Android %s (API %s)", Utils.getAndroidRelease(), Utils.getAndroidSdk()); + promise.resolve(platform); + } }