diff --git a/AltServer/AltServerApp.cpp b/AltServer/AltServerApp.cpp index 46600f6..df50ad4 100644 --- a/AltServer/AltServerApp.cpp +++ b/AltServer/AltServerApp.cpp @@ -1308,11 +1308,18 @@ pplx::task> AltServerApp::PrepareProvisioni std::string preferredName; std::string parentBundleID; - parentBundleID = app->bundleIdentifier(); - preferredName = app->name(); + if (parentApp.has_value()) + { + parentBundleID = (*parentApp)->bundleIdentifier(); + preferredName = (*parentApp)->name() + " " + app->name(); + } + else + { + parentBundleID = app->bundleIdentifier(); + preferredName = app->name(); + } - std::string updatedParentBundleID; - updatedParentBundleID = parentBundleID + "." + team->identifier(); + auto updatedParentBundleID = parentBundleID + "." + team->identifier(); std::string bundleID = std::regex_replace(app->bundleIdentifier(), std::regex(parentBundleID), updatedParentBundleID); diff --git a/AltServer/DeviceManager.cpp b/AltServer/DeviceManager.cpp index a704663..df30373 100644 --- a/AltServer/DeviceManager.cpp +++ b/AltServer/DeviceManager.cpp @@ -315,6 +315,7 @@ pplx::task DeviceManager::InstallApp(std::string appFilepath, std::string instproxy_client_options_add(options, "PackageType", "Developer", NULL); fs::path destinationPath = stagingPath.append(appBundlePath.filename().string()); + std::string installationPath = "/private/var/mobile/Media/" + destinationPath.generic_string(); int numberOfFiles = 0; for (auto& item : fs::recursive_directory_iterator(appBundlePath)) @@ -479,10 +480,7 @@ pplx::task DeviceManager::InstallApp(std::string appFilepath, std::string didBeginInstalling = true; }; - auto narrowDestinationPath = StringFromWideString(destinationPath.c_str()); - std::replace(narrowDestinationPath.begin(), narrowDestinationPath.end(), '\\', '/'); - - instproxy_install(ipc, narrowDestinationPath.c_str(), options, DeviceManagerUpdateStatus, uuidString); + instproxy_install(ipc, installationPath.c_str(), options, DeviceManagerUpdateStatus, uuidString); instproxy_client_options_free(options); // Wait until we're finished installing;