Skip to content

[TrollStroe App Developer] TrollStore wrongly allocated the widget sandbox path #873

Description

@DevelopCubeLab

No Duplicates Issue

  • I'm sure I've searched on the issue tracker before creating one.

Expected Behavior?

Widget can get it own sandbox

Current Behavior?

Widget get and return 'com.icraze.gtatracker' sandbox path.
In iOS 14 and iOS 17.0 it show: /var/mobile/Containers/Data/Application/{com.icraze.gtatracker}
In iOS 15 and iOS 16 it show: /var/mobile/Containers/Data/PluginKitPlugin/{com.icraze.gtatracker}

Possible Solution?

I didn't come up with a solution, I can only try to get the Widget and the incorrect Sandbox directory in my application.
And I reviewed the source code of TrollStore, and I did not find any information about com.icraze.gtatracker, but I remember that gtatracker is the installer for devices with A12 and above on TrollStore 1.

Steps to Reproduce

  1. I try to develop a battery info TrollStore application, and this is my code: WidgetController (Sorry more Chinese comment) currently an unreleased version, still under test.
  2. getWidgetBatteryData()this function. Widget will use NSLog output there sandbox path.
  3. When I finished building this Widget, it couldn't access the data, so I tried using NSLog to make the Widget output its own sandbox directory.
  4. In iOS 14 and iOS 17.0 it show: /var/mobile/Containers/Data/Application/{com.icraze.gtatracker}In iOS 15 and iOS 16 it show: /var/mobile/Containers/Data/PluginKitPlugin/{com.icraze.gtatracker}
    I expect it to access its own sandbox, I did not use AppGroup to share data; I let the main program search for PluginKitPlugin to get its directory. You can check getWidgetSandboxDirectory() -> [String]

I don't know why it's like this, I think maybe it's a problem with my list of rights? I still let iOS allocate a sandbox for me.

This bug is very strange, because I remember that TrollStore 2 no longer uses gtatracker to install TrollStore on iOS 16 and iOS 17.0, yet gtatracker still appears.

TrollStore Version

TrollStroe 2.1

iOS/iPadOS version

iOS 14.3 iOS 15.3.1 iOS 15.4.1 iOS 15.5 iOS 16.5 iOS 16.6 iOS 17.0

iDevice Model

iPhone 12 mini iPhone 13 mini iPhone 13 Pro iPhone 13 Pro Max iPhone 11 iPhone SE 3

Other info of your environment

macOS 15.2 Xcode 16.2 Theos 2.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions