问题标签 [theos]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
756 浏览

jailbreak - 在 THEOS/LOGOS 中的 Hook 块内的类的条件调用

在我的 THEOS 调整中,我正在挂钩一个类并成功调用它的一个方法。

我的问题是方法名称在我正在调整的应用程序更新后发生了变化。

在旧版本中,有问题的方法采用一个参数(方法:arg1),然后更新为采用 2 个参数(方法:arg1:arg2)。现在我的代码看起来像这样

此设置在新版本上运行良好,但会导致应用在旧版本中崩溃。有没有一种方法可以根据捆绑版本([[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"])有条件地调用其中一种方法?

我玩过#if 和#endif,但没走多远。

非常感谢您的帮助。

0 投票
2 回答
1239 浏览

iphone - 从 Springboard 获取应用程序图标图像(越狱)

我正在使用 theos 开发锁屏应用程序,部分功能需要手机上某些应用程序的图标图像。如何获取这些图标图像并将它们显示在手机的锁屏上?

到目前为止,我已经尝试了所有我能想到的东西,并且没有运气搜索过跳板标题。我一直在尝试从我通过谷歌找到的建议中检索 SBApplication 和 SBIconModel 中的图像,但我仍然没有运气。

任何帮助是极大的赞赏。谢谢!

0 投票
2 回答
357 浏览

iphone - 如何在 Theos 应用程序中使用 sqlite3

我试图创建一个需要使用 sqlite 的 Theos 应用程序,但我不知道应该如何像在 Xcode 应用程序中那样导入 sqlite3 库。以下是我到目前为止所做的,并在编译时出错。

  1. 添加导入RootViewController.h
  2. 从这个Zip中提取sqlite3.hsqlite3.c在我的应用程序的根目录中

试图从这么多天弄清楚我是新人。

0 投票
1 回答
619 浏览

jailbreak - ios 6.0 中未安装 Theos

我已经使用installtheos3来自移动终端的命令以 root 用户身份在我的 IOS 中安装 Theos,但无法在 /var 目录中看到 theos 文件夹。它在我重新启动设备之前存在,但之后它就消失了。我尝试安装多次,安装过程成功完成,但 /var 中没有 theos 文件夹。即使在 cydia 包中也不可见。我注意到能够创建任何项目 usnig theos 出现以下错误。

-sh /var /theos/bin/nic.pl:没有这样的文件或目录

0 投票
2 回答
201 浏览

ios - 使用解锁栏并使其引发事件?

我正在对 iPhone 进行调整,将在关机滑块下方放置一个复位滑块。我找到了合适的类,我已经覆盖了它,并且我设法插入了一个按钮,单击该按钮可以重新启动设备。但是,我需要用“滑动重新启动”栏替换该按钮,就像上面的“滑动关闭电源”一样。我怎样才能做到这一点?提前致谢!:)

编辑:这是我的源代码:

0 投票
1 回答
965 浏览

ios - PreferenceBundle Not Loading Specifiers in Jailbreak (Theos) App

I have been fighting with this bizarre all afternoon long with no results. Before, I was able to just create a Tweak, using Theos' Tweak template, and add a PreferenceBundle to it by creating the subproject using the template in its directory. I'd run the tweak, open its page in the Settings.app, and it would loud the specifier list (which includes "Awesome Switch 1" when you don't modify it).

In other words, I'd get this screen by just creating the project doing little to no modifications at all:

enter image description here

Now, today I created a new project the same way (create Tweak first, PreferenceLoader project second) and tried to get to this result with no avail.

I have been fighting with this for over 6 hours. I have tried it in two jailbroken devices. I have uninstalled and re-installed Theos. I have reset my computer, I have rebooted both devices, and no matter what I do, that screen doesn't include it's preferences. It contains the background, but no specifiers at all.

The plist currently looks like this. I need to not the plist tool doesn't return any syntax error when running -lint:

(Five.plist. The PreferenceLoader subproject is called "Five").

And the preferences .mm looks like this:

Now I know the file exists and is being read properly because I checked if it exists manually in /Library/PreferenceBundles and because you can change the title key in the above plist and it will reflect in the Preference's page navbar title. I'm not sure what is causing it to read the title but not the rest of the specifiers.

I'm completely dumbfounded by this. I have never seen such a weird behavior with PreferenceLoader projects, and it looks like it started completely randomly, as I haven't changed any Theos setting or anything.

Any help with this will be appreciated.

0 投票
1 回答
597 浏览

objective-c - THEOS 错误 llvm-g++-4.2:无效的架构名称:导出

我正在使用 iOS SDK 6.1 并尝试使用 THEOS 进行越狱调整。我使用了默认的调整模板 (5),创建了项目,构建了它,但出现了错误:

我查了一下,发现这个响应:升级到 Xcode 4.5 后,theos 项目的错误“ld 以信号 6 终止”

根据那篇文章,我将其添加到我的 MakeFile 中:

我重建了它并提出了这个错误:

我看了看,找不到为什么它给了我这个答案——有什么想法吗?谢谢!

0 投票
1 回答
912 浏览

ios - iOS - UIButton 不会出现在 UIView 上

这个调整应该用一个视图覆盖锁屏(确实发生了),并在视图中添加了一个“iOS”按钮(没有)。这是我的代码:

提前致谢!:)

0 投票
2 回答
324 浏览

ios - 是否可以通过 Springboard 调整在 SBApplication 中设置 userInfo?

是否可以通过 Springboard 调整在 SBApplication 中设置 userInfo,所以当应用程序启动时我可以在 didFinishLaunchingWithOptions 中捕获它?

0 投票
1 回答
360 浏览

theos - Objective C Theos UIView 不工作

嗯,我不能得到这个太工作。我的目标也是在 Minecraft 袖珍版中添加一个 UIButton。我认为这个问题很容易或很明显,所以请不要被小墙的代码所迷惑。

非常感谢, Kivifreak