Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 877f9f8

Browse files
committed
bugfix: allows haptic engine to run in background
Signed-off-by: 82Flex <82flex@gmail.com>
1 parent 37b63a7 commit 877f9f8

File tree

3 files changed

+3
-26
lines changed

3 files changed

+3
-26
lines changed

gen-control.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Depends: firmware (>= 14.0), mobilesubstrate (>= 0.9.7000)
2424
Architecture: iphoneos-arm
2525
Author: Lessica <82flex@gmail.com>
2626
Maintainer: Lessica <82flex@gmail.com>
27-
Description: Troll speed, but jailbroken.
27+
Description: Troll your speed, but jailbroken.
2828
__EOF__
2929

3030
# Set permissions

sources/HUDMainApplication.mm

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,6 @@
1717
#import "HUDMainApplication.h"
1818
#import "UIApplication+Private.h"
1919

20-
static void DumpThreads(void)
21-
{
22-
char name[256];
23-
mach_msg_type_number_t count;
24-
thread_act_array_t list;
25-
task_threads(mach_task_self(), &list, &count);
26-
for (int i = 0; i < count; ++i)
27-
{
28-
pthread_t pt = pthread_from_mach_thread_np(list[i]);
29-
if (pt)
30-
{
31-
name[0] = '\0';
32-
__unused int rc = pthread_getname_np(pt, name, sizeof name);
33-
log_debug(OS_LOG_DEFAULT, "mach thread %u: getname returned %d: %{public}s", list[i], rc, name);
34-
}
35-
else
36-
{
37-
log_debug(OS_LOG_DEFAULT, "mach thread %u: no pthread found", list[i]);
38-
}
39-
}
40-
}
41-
4220
@implementation HUDMainApplication
4321

4422
- (instancetype)init
@@ -150,9 +128,6 @@ - (instancetype)init
150128
{
151129
/* Tested on iOS 15.1.1 and below */
152130
[fetcher setValue:dispatcher forKey:@"eventFetcherSink"];
153-
154-
/* Print NSThread names */
155-
DumpThreads();
156131
}
157132

158133
[self setValue:fetcher forKey:@"eventFetcher"];

supports/entitlements.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<true/>
99
<key>com.apple.backboard.client</key>
1010
<true/>
11+
<key>com.apple.private.allow-background-haptics</key>
12+
<true/>
1113
<key>com.apple.private.hid.client.event-dispatch</key>
1214
<true/>
1315
<key>com.apple.private.hid.client.event-filter</key>

0 commit comments

Comments
 (0)