Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to SideInstaller are documented here.

## 2.4.0

### Added
- **My apps.** A tab of its own, between Install and Tools, with the apps SideInstaller installed
that are still on this iPhone: each with its icon, version and how long it has left, and a
**Refresh** button that signs it again from the IPA SideInstaller kept, so its seven days start
over whenever you like. **Refresh all** does every one. SideInstaller now notes each app it
installs; the ones it installed before this version are found by the IPA it still holds for
them. Tools › Sideloaded apps still lists every sideloaded app, whoever installed it.

## 2.3.0

### Added
Expand Down
43 changes: 22 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Install SideStore and LiveContainer directly on your iPhone. No PC required.**

[![Install](https://img.shields.io/badge/Install-SideInstaller-2ea44f?style=for-the-badge)](https://sideinstaller.net/)
[![Version](https://img.shields.io/badge/version-2.3.0-2669ed?style=for-the-badge)](CHANGELOG.md)
[![Version](https://img.shields.io/badge/version-2.4.0-2669ed?style=for-the-badge)](CHANGELOG.md)
[![Platform](https://img.shields.io/badge/platform-iOS-lightgrey?style=for-the-badge&logo=apple)](#requirements)
[![License](https://img.shields.io/badge/license-Custom-orange?style=for-the-badge)](LICENSE.md)

Expand Down Expand Up @@ -65,38 +65,39 @@ anyone to read, audit, or contribute to, so you can see exactly what's running o
## How to use it

[siboot](https://github.com/FrizzleM/siboot) installs SideInstaller from the iPhone itself, signed
with your own Apple account: no computer and no certificate. It's one command in Open Minis, with
LocalDevVPN connected; no other app is needed. You need iOS 27 or later, Wi-Fi, Developer Mode on
and Open Minis 1.16 or later. [sideinstaller.net](https://sideinstaller.net/install.html) shows the
same steps.
with your own Apple account: no computer and no certificate. It's one command in rootshell, with
LocalDevVPN connected. You need iOS 27 or later, Wi-Fi and Developer Mode on.
[sideinstaller.net](https://sideinstaller.net/install.html) shows the same steps, with screenshots
and a shortcut that runs the command for you.

1. **Get the apps.** Install [Open Minis](https://apps.apple.com/app/id6759188481) and
1. **Get the apps.** Install [rootshell](https://apps.apple.com/app/id6755794662) and
[LocalDevVPN](https://apps.apple.com/app/id6755608044), both free on the App Store.
2. **Run siboot in Open Minis.** Connect LocalDevVPN. In Open Minis, tap the console icon at the
top right, then **Shell Terminal**, and run:
2. **Set up rootshell.** In rootshell's Settings › General, turn on **Location Diary Mode** (it
keeps siboot running behind Safari and Settings) and **Terminal Notifications** (the pairing
code comes as one); in Settings › Terminal, turn on **Open Links from Programs**. Tap **Allow**
when rootshell asks for the local network.
3. **Run siboot in rootshell.** Connect LocalDevVPN, then paste this into rootshell and press
Return:

```sh
wget -qO- https://raw.githubusercontent.com/FrizzleM/siboot/main/minis/install.sh | sh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/FrizzleM/siboot/main/rootshell/install.sh)"
```

siboot opens a page over the terminal and says what to do. The first time, it pairs the iPhone
with itself: tap **Start pairing**, open **Settings › Privacy & Security › Developer Mode**,
scroll to the bottom, tap **Pair with siboot**, and enter your passcode and the 6-digit code
siboot shows. Leave the player that opens over Minis alone, and go back to Minis once Settings
says it's paired (later runs use the saved pairing). Then enter your Apple account email,
password and verification code. Keep Minis open until it says it's done. The first time, trust
your Apple account in **Settings › General › VPN & Device Management**.
3. **Open SideInstaller.** With LocalDevVPN connected, log in with your Apple account and tap
siboot opens its page in Safari. Pick SideInstaller on the Install tab and tap **Install**. The
first time, it pairs the iPhone with itself: tap **Start pairing**, open **Settings › Privacy &
Security › Developer Mode**, scroll to the bottom, tap **Pair with siboot**, and enter your
passcode and the 6-digit code siboot shows. Go back to Safari once Settings says it's paired
(later runs use the saved pairing). Then enter your Apple account email, password and
verification code. The first time, trust your Apple account in **Settings › General › VPN &
Device Management**.
4. **Open SideInstaller.** With LocalDevVPN connected, log in with your Apple account and tap
**Install SideStore** or **Install SideStore + LiveContainer**.

Once paired, `siboot developer-mode` in Open Minis asks the iPhone to show the Developer Mode switch
in Settings, or with `--turn-on` to turn it on ([details](https://github.com/FrizzleM/siboot/blob/main/minis/README.md#developer-mode)).

### Legacy: enterprise certificates

Before iOS 27, or if siboot doesn't work for you, install SideInstaller with one of the enterprise
certificates at [sideinstaller.net/#legacy](https://sideinstaller.net/#legacy) instead, then go on
from step 3.
from step 4.

### Links

Expand Down
57 changes: 55 additions & 2 deletions ios-app/AppsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ final class SideloadedAppsManager: ObservableObject {
let matched = ProfileMatcher.match(apps: apps, profiles: profiles)
entries = matched.entries
unmatched = matched.unmatched
// What SideInstaller installed and is gone is forgotten.
let onDevice = Set(inventory.apps.compactMap { $0["CFBundleIdentifier"] as? String })
if !onDevice.isEmpty { InstalledAppsLedger.keep(onDevice) }
recorded = InstalledAppsLedger.installed()
await rebuildRefreshable()
hasLoaded = true
lastRefreshed = Date()
Expand All @@ -481,12 +485,61 @@ final class SideloadedAppsManager: ObservableObject {
/// Re-signs and reinstalls every refreshable app, one at a time (they share
/// one device link and signing queue, and Apple's API is rate-limited).
func refreshAll() {
guard !isRefreshing, !isWorking, !refreshable.isEmpty else { return }
refresh(refreshable)
}

/// Refreshes `selected`, unless a load, a refresh or an install runs.
private func refresh(_ selected: [RefreshJob]) {
guard !isRefreshing, !isWorking, !selected.isEmpty else { return }
guard !engine.isRunning else {
lastError = ErrorHelp.explained(L("An install is already running. Wait for it to finish, then refresh."))
return
}
startRefresh(refreshable, showsFailure: true)
startRefresh(selected, showsFailure: true)
}

// MARK: - My apps

/// The bundle IDs SideInstaller recorded installing, as of the last read.
@Published private(set) var recorded: Set<String> = []

/// The listed apps SideInstaller installed, for the My apps tab.
var mine: [SideloadedAppStatus] {
MyApps.select(entries, recorded: recorded, refreshable: refreshable)
}

/// The refresh jobs for `mine`.
var mineRefreshable: [RefreshJob] {
let ids = Set(mine.map(\.id))
return refreshable.filter { ids.contains($0.bundleID) }
}

/// The job that refreshes `bundleID`, when there's an IPA to refresh it from.
func job(for bundleID: String) -> RefreshJob? {
refreshable.first { $0.bundleID == bundleID }
}

/// My apps' Refresh all.
func refreshMine() {
refresh(mineRefreshable)
}

/// My apps' Refresh on one app.
func refresh(bundleID: String) {
refresh(job(for: bundleID).map { [$0] } ?? [])
}

/// The read when the My apps tab shows: the first time, as `autoLoad`,
/// and again once SideInstaller has installed an app the last read
/// didn't have, so the new app is listed.
func autoLoadMine() {
guard hasLoaded else { return autoLoad() }
guard !isWorking, !isRefreshing,
!InstalledAppsLedger.installed().isSubset(of: recorded) else { return }
engine.refreshNetworkStatus()
guard engine.vpnConnected,
!NetworkStatus.links().mobileDataOnly || MobileDataMode.shared.mayHaveOpenTunnel else { return }
load(quiet: true)
}

/// Refreshes `selected` in the background, as the page lists them. A run
Expand Down
12 changes: 12 additions & 0 deletions ios-app/ChineseStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1480,4 +1480,16 @@ let chineseStrings: [String: String] = [
"蜂窝数据",
"Mobile Data Mode":
"蜂窝数据模式",

// My apps: the apps SideInstaller installed.
"My apps":
"我的应用",
"No apps yet":
"还没有应用",
"Apps SideInstaller installs show up here, with how long they have left.":
"SideInstaller 安装的应用会显示在这里,并注明剩余时间。",
"Apps on a free Apple ID last seven days. Refreshing one starts its seven days again.":
"免费 Apple ID 的应用可用七天。续签后,七天重新开始计算。",
"Its IPA is gone. Install it again to refresh it.":
"它的 IPA 已不在了。重新安装后才能续签。",
]
4 changes: 4 additions & 0 deletions ios-app/Engine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2223,6 +2223,10 @@ final class Engine {
throw EngineError.appLimit
}
installProgress = 1
// So My apps can tell it from apps other tools installed.
if let installed = signedAppBundleID() {
InstalledAppsLedger.record(installed)
}
setStep(.install, .done)
}

Expand Down
12 changes: 12 additions & 0 deletions ios-app/FrenchStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1535,4 +1535,16 @@ let frenchStrings: [String: String] = [
"Données cellulaires",
"Mobile Data Mode":
"Mode données cellulaires",

// My apps: the apps SideInstaller installed.
"My apps":
"Mes apps",
"No apps yet":
"Aucune app pour l'instant",
"Apps SideInstaller installs show up here, with how long they have left.":
"Les apps installées par SideInstaller apparaissent ici, avec le temps qu'il leur reste.",
"Apps on a free Apple ID last seven days. Refreshing one starts its seven days again.":
"Les apps d'un Apple ID gratuit durent sept jours. En renouveler une fait repartir ses sept jours.",
"Its IPA is gone. Install it again to refresh it.":
"Son IPA n'est plus là. Réinstallez-la pour la renouveler.",
]
12 changes: 12 additions & 0 deletions ios-app/ItalianStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1528,4 +1528,16 @@ let italianStrings: [String: String] = [
"Dati cellulare",
"Mobile Data Mode":
"Modalità dati cellulare",

// My apps: the apps SideInstaller installed.
"My apps":
"Le mie app",
"No apps yet":
"Ancora nessuna app",
"Apps SideInstaller installs show up here, with how long they have left.":
"Le app installate da SideInstaller compaiono qui, con il tempo che resta a ciascuna.",
"Apps on a free Apple ID last seven days. Refreshing one starts its seven days again.":
"Le app di un Apple ID gratuito durano sette giorni. Rinnovandone una, i suoi sette giorni ripartono.",
"Its IPA is gone. Install it again to refresh it.":
"La sua IPA non c'è più. Installala di nuovo per rinnovarla.",
]
12 changes: 12 additions & 0 deletions ios-app/JapaneseStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1492,4 +1492,16 @@ let japaneseStrings: [String: String] = [
"モバイルデータ通信",
"Mobile Data Mode":
"モバイルデータモード",

// My apps: the apps SideInstaller installed.
"My apps":
"マイアプリ",
"No apps yet":
"まだアプリがありません",
"Apps SideInstaller installs show up here, with how long they have left.":
"SideInstaller でインストールしたアプリが、残りの期間とともにここに表示されます。",
"Apps on a free Apple ID last seven days. Refreshing one starts its seven days again.":
"無料の Apple ID のアプリは7日間使えます。更新すると、7日間が数え直されます。",
"Its IPA is gone. Install it again to refresh it.":
"IPA が残っていません。更新するには、もう一度インストールしてください。",
]
12 changes: 12 additions & 0 deletions ios-app/KoreanStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1494,4 +1494,16 @@ let koreanStrings: [String: String] = [
"모바일 데이터",
"Mobile Data Mode":
"모바일 데이터 모드",

// My apps: the apps SideInstaller installed.
"My apps":
"내 앱",
"No apps yet":
"아직 앱이 없습니다",
"Apps SideInstaller installs show up here, with how long they have left.":
"SideInstaller로 설치한 앱이 남은 기간과 함께 여기에 표시됩니다.",
"Apps on a free Apple ID last seven days. Refreshing one starts its seven days again.":
"무료 Apple ID의 앱은 7일 동안 사용할 수 있습니다. 갱신하면 7일이 다시 시작됩니다.",
"Its IPA is gone. Install it again to refresh it.":
"IPA가 남아 있지 않습니다. 갱신하려면 다시 설치하세요.",
]
Loading
Loading