Compare commits

..

2 Commits

Author SHA1 Message Date
Magesh K
ad9f4a8f1f - freeze altsign version for 0.5.10 (refer notes below)
(this was missed while tagging the original release so removed actual tag and created new branch to preserve the changes that went into 0.5.10 as-is incase anyone wants to build from source)
2025-02-25 00:27:02 +05:30
Spidy123222
d7957a8821 Try adding backwards compatibility in trusted
Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com>
2025-02-24 23:42:38 +05:30
6 changed files with 51 additions and 55 deletions

View File

@@ -590,8 +590,6 @@
B3C3960F284F53E900DA9E2F /* AltBackup.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AltBackup.xcconfig; sourceTree = "<group>"; };
B3EE16B52925E27D00B3B1F5 /* AnisetteManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnisetteManager.swift; sourceTree = "<group>"; };
BD4513AA2C6FA98C0052BCC0 /* AppExtensionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppExtensionView.swift; sourceTree = "<group>"; };
BD7FFE492D1D2B7F00A9623D /* ptrace.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ptrace.m; sourceTree = "<group>"; };
BD7FFE4A2D1D2B8F00A9623D /* ptrace.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ptrace.h; sourceTree = "<group>"; };
BF02419522F2199300129732 /* RefreshAttemptsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RefreshAttemptsViewController.swift; sourceTree = "<group>"; };
BF08858222DE795100DE9F1E /* MyAppsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyAppsViewController.swift; sourceTree = "<group>"; };
BF08858422DE7EC800DE9F1E /* UpdateCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateCollectionViewCell.swift; sourceTree = "<group>"; };
@@ -1309,7 +1307,6 @@
BF66EE7F2501AE50007EE018 /* AltStoreCore */ = {
isa = PBXGroup;
children = (
BD7FFE492D1D2B7F00A9623D /* ptrace.m */,
BF66EE802501AE50007EE018 /* AltStoreCore.h */,
BF66EE8A2501AEB1007EE018 /* Components */,
BF66EEE32501AED0007EE018 /* Extensions */,
@@ -1320,7 +1317,6 @@
BF66EE8D2501AEBC007EE018 /* Types */,
BF66EE812501AE50007EE018 /* Info.plist */,
BFCB9205250AB1FF0057B44E /* Resources */,
BD7FFE4A2D1D2B8F00A9623D /* ptrace.h */,
);
path = AltStoreCore;
sourceTree = "<group>";
@@ -3448,8 +3444,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/SideStore/AltSign";
requirement = {
branch = master;
kind = branch;
kind = revision;
revision = 4323ff794e600ce1759cb6ea57275e13b7ea72f2;
};
};
4879A9602861049C00FC1BBD /* XCRemoteSwiftPackageReference "OpenSSL" */ = {

View File

@@ -233,13 +233,6 @@ private extension AppDelegate
return true
case "jit":
let queryItems = components.queryItems?.reduce(into: [String: String]()) { $0[$1.name.lowercased()] = $1.value } ?? [:]
guard let pidstr = queryItems["pid"], let pid = Int32(pidstr) else { return false }
return ptrace(14, pid, nil, 0) == 0
default: return false
}
}

View File

@@ -26,4 +26,3 @@ FOUNDATION_EXPORT const unsigned char AltStoreCoreVersionString[];
#import <AltStoreCore/ALTWrappedError.h>
#import <AltStoreCore/NSError+ALTServerError.h>
#import <AltStoreCore/CFNotificationName+AltStore.h>
#import "ptrace.h"

View File

@@ -1,14 +0,0 @@
//
// ptrace.h
// AltStore
//
// Created by June P on 12/26/24.
// Copyright © 2024 SideStore. All rights reserved.
//
#ifndef ptrace_h
#define ptrace_h
int ptrace(int request, pid_t pid, caddr_t addr, int data);
#endif /* ptrace_h */

View File

@@ -1,27 +0,0 @@
//
// ptrace.m
// AltStore
//
// Created by June P on 12/26/24.
// Copyright © 2024 SideStore. All rights reserved.
//
int ptrace(int request, pid_t pid, caddr_t addr, int data) {
int result = 0;
__asm__ (
"MOV x16, #26 \n" // Syscall number for ptrace
"MOV x0, %[request] \n" // Pass request to x0
"MOV x1, %[pid] \n" // Pass pid to x1
"MOV x2, %[addr] \n" // Pass addr to x2
"MOV x3, %[data] \n" // Pass data to x3
"SVC 0 \n" // Make the syscall (0 for ARM64)
: [result] "=r" (result) // No output
: [request] "r" (request), // Input constraints
[pid] "r" (pid),
[addr] "r" (addr),
[data] "r" (data)
: "x0", "x1", "x2", "x3", "x16" // Clobber list
);
return result;
}

View File

@@ -1,5 +1,54 @@
{
"version": 1,
"sources": [
{
"identifier": "io.sidestore.example"
},
{
"identifier": "com.sidestoreapps.community",
"sourceURL": "https://community-apps.sidestore.io/sidecommunity.json"
},
{
"identifier": "org.provenance-emu.provenance",
"sourceURL": "https://provenance-emu.com/apps.json"
},
{
"identifier": "me.oatmealdome.altstore",
"sourceURL": "https://altstore.oatmealdome.me"
},
{
"identifier": "com.utmapp.repos.UTM",
"sourceURL": "https://alt.getutm.app"
},
{
"identifier": "com.flyinghead.source",
"sourceURL": "https://flyinghead.github.io/flycast-builds/altstore.json"
},
{
"identifier": "dev.crystall1ne.repos.PojavLauncher",
"sourceURL": "https://alt.crystall1ne.dev"
},
{
"identifier": "eu.pokemmo.altstore",
"sourceURL": "https://pokemmo.eu/altstore/"
},
{
"identifier": "dev.theodyssey.sidestore",
"sourceURL": "https://theodyssey.dev/altstore/odysseysource.json"
},
{
"identifier": "stream.yattee",
"sourceURL": "https://repos.yattee.stream/alt/apps.json"
},
{
"identifier": "com.litritt.litsource",
"sourceURL": "https://altstore.ignitedemulator.com/"
},
{
"identifier": "thatstel.la.altsource",
"sourceURL": "https://alt.thatstel.la/"
}
],
"sources": [
{
"identifier": "io.sidestore.example"