• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created 11 months ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A TrollStore application to control individual flashlight LEDs for iOS devices.

TrollLEDs

A TrollStore application to control individual flashlight LEDs for iOS devices.

When used on a jailbroken device, remove Amber tweak because this app will simply be overridden by it.

Compatibility

  • iOS 11 or higher
  • iPhone or iPad with multiple of different flashlight LEDs (e.g. amber and regular white)
  • Devices with a single-color flashlight LED are not supported, such as iPhone 4s and iPhone 5
  • iPhone 14 series and higher are not supported, as Apple has completely redesigned the flashlight LEDs

Usage (Quad-LEDs Devices)

Quad-LEDs devices are the devices that the private API SetTorchManualParameters can successfully adjust the LEDs. SetTorchManualParameters expects four parameters (LED levels of White 1, White 2, Amber 1 and Amber 2). This includes most modern devices with flashlight LEDs such as iPhone 11 (two physical LEDs) and iPad Pro 3rd generation (four physical LEDs).

LED Sliders

There are four sliders in the app:

  1. Cool LED 0 - The brightness of the first white LED
  2. Cool LED 1 - The brightness of the second white LED (if the device has it)
  3. Warm LED 0 - The brightness of the first amber LED
  4. Warm LED 1 - The brightness of the second amber LED (if the device has it)

Each slider can be adjusted independently. The more the value, the more brightness of the LED will get. If the value is set to 0, the LED will be off. If all sliders are set to 0, all LEDs will be off.

Devices with four physical LEDs such as iPad Pro 3rd generation will get the maximum brightness of the LEDs when all sliders are set to 100%. However, devices with two physical LEDs such as iPhone 11 will get the maximum brightness of the LEDs when Cool LED 0 and Warm LED 0 are set to 100%, while the others are set to 0%. The Cool LED 1 and Warm LED 1 sliders only act as a low brightness mode for their LED 0 equivalent.

Physical LED Count

Despite being categorized as a quad-LEDs device, it may have only two physical LEDs. TrollLEDs allows you to explicitly set the physical LED count in the app (There is no good way to automatically detect the physical LED count, yet).

If the value is set to Dual:

  1. The app shortcut Amber On will maximize the Warm LED 0 slider only
  2. The app shortcut White On will maximize the Cool LED 0 slider only
  3. The app shortcut All On will maximize the Cool LED 0 and Warm LED 0 sliders only

If the value is set to Quad, the app shortcuts will maximize all related sliders.

Usage (Dual-LEDs Devices)

Dual-LEDs devices are the devices that the private API SetTorchManualParameters cannot be used. They mostly come with two physical LEDs (white and amber), and are old devices, such as iPhone 5s and iPhone SE 1st generation.

There are two sliders in the app:

  1. Torch Level - The brightness of the LEDs
  2. Warmth - The "warmth" of the light color

Unlike Amber tweak, this app cannot force the two LEDs to be on at the same time. You can use Torch Level slider to control the brightness of the LEDs just as you can from the Control Center, but the Warmth slider will only set the warm percentile of the scene. The more the value, the more brightness of the amber LED will get, resulting in a warmer light color. If Warmth is set to the max, only the amber LED will be on.

Limitation

Exclusive Control

TrollLEDs utilizes the mediaserverd-exclusive BWFigCaptureDeviceVendor class to control the flashlight LEDs. This creates an instance of BWFigCaptureDevice (or OpaqueFigCaptureDeviceRef). There can only be one instance at a time, so if there is another app that creates it (i.e., mediaserverd), TrollLEDs will not be able to control the flashlight LEDs. This is why there is a switch at the top of the app to lock the flashlight LEDs to TrollLEDs only. If you want to use the LEDs (or use the Camera app) from somewhere else, you can either turn off the switch (and wait few seconds) or kill the app.

Battery Concern

As long as TrollLEDs app is running, the flashlight device connection will be kept alive. This may cause battery drain, as reported by some users. To mitigate this issue, the app will automatically kill itself after 5 minutes of inactivity.

Building

Build .tipa (sandboxed and unsandboxed) and .deb (rootful and rootless) with:

./build.sh

Future Plans

  1. More accessible sliders (are they too small?)
  2. Better error handling?
  3. As AppIntents metadata can only be generated from Xcode, we should find a way to generate it from theos

More Repositories

1

IDAObjcTypes

A collection of types & functions definitions useful for Objective-C binaries analysis.
Objective-C
319
star
2

EmojiLibrary

Global headers, functions and resources used by PoomSmart's Emoji tweaks.
Objective-C
119
star
3

EmojiFonts

Python scripts to backport and theme Apple Color Emoji font.
Python
118
star
4

YouPiP

Enable native PiP in iOS YouTube app.
Logos
92
star
5

MGKeys

MobileGestalt Keys (De)obfuscation.
C
87
star
6

YTABConfig

Configure A/B settings in iOS YouTube app.
Logos
67
star
7

LetMeBlock

Make mDNSResponder care more about /etc/hosts
Logos
63
star
8

ASUS-FX504GE-Hackintosh

Necessary configurations and instructions to get this laptop working with macOS.
58
star
9

Return-YouTube-Dislikes

Bring Back Dislikes On YouTube iOS.
C
47
star
10

YouTube-X

A lightweight YouTube improvement tweak.
Logos
44
star
11

Amber

Amber-ify LED torch of your iOS device.
Logos
40
star
12

YTUHD

Unlock 1440p and 2160p resolutions in iOS YouTube app.
Logos
36
star
13

EmojiPort-Legacy

Latest emojis for iOS 6.0-8.2
Logos
34
star
14

PoomSmart.github.io

PoomSmart's Tweak Repository.
HTML
32
star
15

CAHighFPS

Make your CoreAnimation applications use the highest available FPS.
Logos
30
star
16

SimulatorHooker-Deprecated

iOS Simulator, I got you.
Logos
27
star
17

CCOnOff

Properly toggle Wi-Fi and Bluetooth from Control Center (iOS 11+).
Logos
26
star
18

EmojiPort-PE

Latest emojis for iOS 12.0 - 17.3
Logos
26
star
19

IAmYouTube

In every possible way, tell app you are the real YouTube app.
Logos
26
star
20

YouTubeHeader

Headers for iOS YouTube app.
Objective-C
23
star
21

EmojiAttributes

Various under-the-hood fixes for emoji display.
C
18
star
22

libSubstitrate

Substrate/Substitute hooking selector.
Objective-C++
18
star
23

exKeyboard

3rd-party keyboard anywhere.
Logos
16
star
24

BlockEmAll

No 50K/150K entries limit for Safari content blockers.
Logos
16
star
25

ReplayKit-Max

Record screen without resolution cap.
Logos
16
star
26

EmojiLayout

Adjust rows and columns number of emoji page.
Logos
15
star
27

TransparentCameraBar

Set the opacity, hide or shrink the camera bars.
Logos
15
star
28

PanoEnabler

Enable Panorama and Customize it.
Objective-C++
15
star
29

YTUnShorts

Remove Shorts from YouTube app's feed.
Logos
14
star
30

SwipeForMore

Manage packages in Cydia via swipe.
Logos
14
star
31

EmojiFontManager

Emoji font override and management.
Objective-C
14
star
32

PencilPro

Apple Pencil can do better.
Logos
13
star
33

BlurryBadges

Add colored blur to SpringBoard icon badges.
Logos
13
star
34

HighGraphics

Best UIKit graphics for older devices.
Logos
12
star
35

YouQuality

View and change video quality on iOS YouTube app from the video overlay.
Logos
12
star
36

Injection-Foundation

Inject UIKit tweaks into Foundation apps.
Logos
11
star
37

PSHeader

My own headers (PS.h and friends) used in several tweaks.
Objective-C
11
star
38

MoreSiri

More Siri languages support.
Logos
11
star
39

RecordPause

Pause/resume video recording for stock camera app.
Logos
10
star
40

LatestTranslate

Make Apple's Translate app support all languages to date.
Logos
10
star
41

AppPad

Full screen, Split and Slideover for every app on iPad.
Logos
10
star
42

Burst-Mode

The Camera Burst Mode Feature Enabler/Enhancer.
Logos
10
star
43

App-Library-for-iPad

Enable App Library on iPad.
Logos
10
star
44

YTVideoOverlay

A helper tweak to add buttons on YouTube video overlay.
Logos
9
star
45

YouMute

Mute/unmute videos in iOS YouTube directly.
Logos
9
star
46

EmojiPort-10-Resources

Necessary CoreEmoji data for latest emojis support on iOS 10+
Shell
9
star
47

YTDarker

Enable native darker dark mode on YouTube.
Logos
9
star
48

YouGroupSettings

Allow tweak-made settings to be grouped and displayed in iOS YouTube app.
Logos
9
star
49

YTClassicVideoQuality

Revert to the original video quality selector in YouTube app.
Logos
8
star
50

PhotoTorch

Adjustable torch for camera app.
Objective-C
8
star
51

SmoothCursor

Office 2013 cursor animation for iOS.
Makefile
8
star
52

Slo-mo-Mod

Enable and customize Slo-mo capture.
Objective-C
8
star
53

NoYTPremium

Remove YouTube Premium upsell alerts.
Logos
7
star
54

FrontFlash

Enable Flash in Front-Facing Camera.
Objective-C
7
star
55

Anywhere-Widgets-for-iPad

Allow widgets to be on home screen on iPad.
Logos
7
star
56

CamVolZoom

Zoom in-out your Camera using Volume buttons!
Logos
7
star
57

Front-HDR

Enable HDR Capture in Front Camera.
Logos
7
star
58

LiveTextEnabler

Enable Live Text recognition feature on macOS Monterey (Intel) computers.
Objective-C
7
star
59

SimulatorTweaks

A collection of iOS Simulator tweaks by PoomSmart.
Logos
7
star
60

DismissProgress

Whenever you don't want to respring or reboot while installing using Cydia.
Logos
7
star
61

Still-Capture-Enabler-2

Allow taking still during video recording using button.
Logos
7
star
62

YTAutoFullScreen

Automatically play videos in full screen.
Logos
7
star
63

Cydia-Stat-Checker

Simple Java program to explore your tweaks downloads.
Java
7
star
64

EmojiPort-WT

Latest emojis for iOS 10.0 - 11.4
Logos
7
star
65

YTShortsProgress

Enable YouTube shorts progress/scrubber.
Logos
7
star
66

PadGrid

Increase home screen and folder icon grid size for iPad.
Logos
6
star
67

AdvancedMapEnabler-iOS

Enable Advanced Map (globe) on unsupported iOS 15 devices.
Makefile
6
star
68

LPM-Enabler

Enable Low Power Mode natively on unsupported devices.
Shell
6
star
69

Battery-Health-Enabler

Enable Battery Health on unsupported iOS devices.
Logos
6
star
70

Background-App-Refresh-Flipswitch

Flipswitch for Background App Refresh.
Logos
6
star
71

PSPrefs

Original preferences saving methods, simplified, dirt.
Logos
6
star
72

AdvancedMapEnabler

Enable Advanced Map in macOS Monterey (Intel computers)
Objective-C
5
star
73

SplitIt

Enable keyboard split feature on borderless iPads.
Logos
5
star
74

HDRBadge70

Fulfill the incompleted HDR badge done by Apple in iOS 7.0
Logos
5
star
75

emoji-meta-reader

Read iOS emojis data inside the mysterious `emojimeta.dat`
Objective-C++
5
star
76

Record--n--Torch

Allow toggling torch while recording video.
Logos
5
star
77

YTABGoodies

Enforce useful YouTube features that are otherwise 50/50 available to you.
Logos
5
star
78

LiveTextEnabler-iOS

Enable Live Text on unsupported iOS 15+ devices.
Logos
5
star
79

YouChooseQuality

Auto-select the video quality of choice in iOS YouTube app.
Logos
5
star
80

detect-screenshot-event

PoC Detection of screenshot events on iOS.
Logos
5
star
81

Return-YouTube-Music-Dislikes

Bring Back Dislikes On iOS YouTube Music.
Logos
5
star
82

cyarchfix

Hide iphoneos-arm64 packages from Cydia.
Logos
4
star
83

PoomSmart

PoomSmart's GitHub Profile.
4
star
84

LineBreakLiberator

Safari Quick Search results without truncation.
Makefile
4
star
85

TinyOwl

Aimed to be a tiny dark mode tweak, but...
Logos
4
star
86

YTNoPaidPromo

Remove "Include paid promotion" banner from videos on YouTube app.
Logos
4
star
87

KBMoreMem

More memory for all 3rd-party keyboards (obsoleted).
Logos
4
star
88

EmojiResources

Latest emoji category icons.
Logos
4
star
89

YTSettingsExamples

Examples for in-app iOS YouTube tweak settings.
Logos
4
star
90

MyAssistive

Repurpose the Assistive Touch.
Objective-C
4
star
91

AnywherePredict

Predictive keyboard anywhere.
Logos
4
star
92

cfprefsd_fix

Preferences saving without cfprefsd's caching.
Logos
4
star
93

BlurryBar

iOS 7 fast blur effect for SB status bar.
Logos
4
star
94

IGStoryViewerCount

How often do your followers view your Instagram stories?
Python
4
star
95

CCMultitaskingGestures

CC module for Multitasking Gestures feature.
Objective-C
3
star
96

YTSilentVote

No messages will pop up as you like/dislike videos.
Logos
3
star
97

Flexmoji

Unrestricted iOS emoji font size.
Logos
3
star
98

Reduce-Transparency-Flipswitch

Flipswitch for Reduce Transparency.
Logos
3
star
99

FaceDetectionDuringVideo

Fully Enable Face Detection in video mode.
Logos
3
star
100

ContentBlocker32

(Untested) iOS 9 content blocker enabler for 32-bit devices.
Logos
3
star