Skip to content

[WIP] SideKit Activation method Integration - #257

Closed
Spidy123222 wants to merge 13 commits into
developfrom
SideKit-Intergration
Closed

Spidy123222 wants to merge 13 commits into
developfrom
SideKit-Intergration

Conversation

@Spidy123222

@Spidy123222 Spidy123222 commented Feb 10, 2023 •

Copy link
Copy Markdown
Member

We want to have the ability for app developers to automatically activate jit so that it’s a seamless process to use jit/debug based apps. Adding some jitstreamer attach would give backwards compatibility with some apps that don’t use sidekit also. That means you can also immediately try if it works on apps like provenance and dolphiniOS while developing it also. Url scheme sidestore://sidejit-enable?bid=BUNDLEIDHERE
hopefully at some point we get pid to also work properly instead being a copy of bundled url scheme.
sidestore://sidejit-enable?pid=BUNDLEIDHERE
is what we have so far and need one for processid and said above jitstreamer attach support. Currently activating jit via url scheme does work. But first activation when the app is asleep it doesn’t activate the debugger for the app. But after second try with app open it works. Might be async causing problems or if it’s because minimuxer wasn’t loaded when it tried.

Current Changes

  • Adds enable jit url scheme for sidekit to use.

Todo before merge

  • Added Url scheme to debug bundleid
  • Make Activation more reliable from external apps. (Seems to not work when trying to wake app on first try which we want to immediately activate when first wake).
  • Add jitstreamer attach pid activation support and sidekit should decide to use this first as it would be fastest and most convenient method with cost it needs sidestore in background still during this and if it doesn’t get scene by the app it will use url scheme. (Jitstreamer attach uses http://69.69.0.1/attach/PIDHERE).
  • Add option in sidestore url scheme to use process Id instead of bundleid.
  • Maybe add a screen to tell its attempting to activate
  • Have error messages popup if there is any
  • Config wireguard to make a 69.69.0.1 local address

@github-actions

Copy link
Copy Markdown

Builds for this Pull Request are available at
SideStore.ipa
Have a nice day.

@amsam0

amsam0 commented Feb 10, 2023 •

Copy link
Copy Markdown
  • minimuxer: add minimuxer_ready function that returns true if last heartbeat was a success and dev image is mounted (@naturecodevoid)
    • SideStore implementation: possibly an alert "Waiting for SideStore to initialize..." that would be active while we waiting for minimuxer_ready to return true. There would be a cancel button to cancel the operation
  • It would be good to do some sanity checks before executing URL schemes, such as if pairing file is selected

Comment thread AltStore/SceneDelegate.swift Outdated
case .Bad(let code): minimuxer_to_operation(code: code)
}
} catch Uhoh.Bad(let code) {
minimuxer_to_operation(code: code)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to alert the user if this happens

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ngl that came with the code as I got this from a jitenable swift file. Maybe that should be changed also then. Super new at swift so not sure how to handle this.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could use a UIAlertController

@github-actions

Copy link
Copy Markdown

Builds for this Pull Request are available at
SideStore.ipa
Have a nice day.

@amsam0 amsam0 linked an issue Feb 13, 2023 that may be closed by this pull request
@github-actions

Copy link
Copy Markdown

Builds for this Pull Request are available at
SideStore.ipa
Have a nice day.

@Spidy123222 Spidy123222 added Enhancement New feature or request Backend QoL Quality of life improvements labels Feb 19, 2023
Spidy123222 and others added 2 commits February 28, 2023 14:28
* Release channel support

- Show SideStore in Browse if it's not from the current SideStore source
- Change SideStore source URL and source ID based on if beta and nightly are in the version string
- Use StoreApp name for InstalledApp name to allow for source-specified name to show up in My Apps

* Update nightly.yml

Signed-off-by: naturecodevoid <[email protected]>

* Squashed commit of the following:

commit 76b1a8f
Author: naturecodevoid <[email protected]>
Date:   Wed Jan 25 21:17:47 2023 -0800

    improve print statement

commit 526ce43
Author: naturecodevoid <[email protected]>
Date:   Wed Jan 25 21:13:59 2023 -0800

    remove unnecessary parameter

commit ab0e32a
Author: naturecodevoid <[email protected]>
Date:   Wed Jan 25 21:10:51 2023 -0800

    Squashed commit of the following:

    commit 0815e06
    Author: naturecodevoid <[email protected]>
    Date:   Wed Jan 25 21:10:02 2023 -0800

        adi.pb fixes

commit 452da18
Author: naturecodevoid <[email protected]>
Date:   Wed Jan 25 18:23:32 2023 -0800

    allow opening documents in files app again

    Signed-off-by: naturecodevoid <[email protected]>

commit 4ae91d0
Merge: cdf4d02 a56ca59
Author: Nythepegasus <[email protected]>
Date:   Sun Jan 22 10:32:27 2023 -0500

    Merge branch 'SideStore:develop' into feature/anisette_settings

commit cdf4d02
Author: Nythepegasus <[email protected]>
Date:   Thu Jan 5 09:13:05 2023 -0500

    Fix "file not found" error on first anisette fetch

commit f36fad5
Author: Nythepegasus <[email protected]>
Date:   Thu Jan 5 08:49:42 2023 -0500

    Change default anisette server to "official" one

commit 3b05f97
Author: Nythepegasus <[email protected]>
Date:   Thu Jan 5 08:49:23 2023 -0500

    Fix fallback implementation

commit 5da9ca0
Author: Nythepegasus <[email protected]>
Date:   Thu Jan 5 08:37:51 2023 -0500

    Fix Error log in Settings tab

commit dd670b9
Author: Jawshoeadan <[email protected]>
Date:   Wed Jan 4 21:55:00 2023 -0800

    Update AltBackup.ipa

commit 952c803
Merge: 9e80b77 250a7d8
Author: Nythepegasus <[email protected]>
Date:   Wed Jan 4 21:15:37 2023 -0500

    Merge commit '250a7d86279d304f2bba2ad8b248e51b8efc1889'

    Conflicts:
    	AltStore/Info.plist
    	AltStore/Settings/Settings.storyboard

commit 9e80b77
Author: Nythepegasus <[email protected]>
Date:   Wed Jan 4 18:47:13 2023 -0500

    Initial adi.pb POST changes with fallback

commit 6dccdc6
Author: Nythepegasus <[email protected]>
Date:   Thu Dec 22 11:10:49 2022 -0500

    Add UI element to remove adi.pb manually

commit 0095591
Author: Nythepegasus <[email protected]>
Date:   Thu Dec 22 11:09:35 2022 -0500

    Remove double POST if adi.pb doesn't exist

commit b6474cf
Author: Nythepegasus <[email protected]>
Date:   Thu Dec 22 10:47:07 2022 -0500

    Delete adi.pb file when signing out

commit ebe03f7
Author: Nythepegasus <[email protected]>
Date:   Thu Dec 22 10:45:56 2022 -0500

    Switch anisette retrieval to new workaround

commit 294cd5b
Author: Nythepegasus <[email protected]>
Date:   Sun Dec 18 16:07:08 2022 -0500

    Begin work on moving Anisette server settings in app

* Update nightly.yml

Signed-off-by: naturecodevoid <[email protected]>

* Update nightly.yml

Signed-off-by: naturecodevoid <[email protected]>

* Add sidestore anisette server

Signed-off-by: oqammx86 <[email protected]>

* Release channel support

- Show SideStore in Browse if it's not from the current SideStore source
- Change SideStore source URL and source ID based on if beta and nightly are in the version string
- Use StoreApp name for InstalledApp name to allow for source-specified name to show up in My Apps

* My Apps: Fix incorrect app name on first launch

* News: fix duplicate news items from multiple SideStore release channel sources

* Trusted Sources: Add stable and beta

---------

Signed-off-by: naturecodevoid <[email protected]>
Signed-off-by: oqammx86 <[email protected]>
Co-authored-by: naturecodevoid <[email protected]>
Co-authored-by: oqammx86 <[email protected]>
@github-actions

Copy link
Copy Markdown

Builds for this Pull Request are available at
SideStore.ipa
Have a nice day.

@github-actions

Copy link
Copy Markdown

Builds for this Pull Request are available at
SideStore.ipa
Have a nice day.

@amsam0

amsam0 commented Mar 1, 2023

Copy link
Copy Markdown

@Spidy123222 can we delete the branch?

@Spidy123222
Spidy123222 deleted the SideKit-Intergration branch March 1, 2023 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Enhancement New feature or request QoL Quality of life improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] JIT Shortcut/URL-Scheme

2 participants