• Stars
    star
    103
  • Rank 322,248 (Top 7 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created 4 months ago
  • Updated 3 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
280
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
93
star
4

YouPiP

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

MGKeys

MobileGestalt Keys (De)obfuscation.
C
75
star
6

LetMeBlock

Make mDNSResponder care more about /etc/hosts
Logos
62
star
7

ASUS-FX504GE-Hackintosh

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

YTABConfig

Configure A/B settings in iOS YouTube app.
Logos
55
star
9

Return-YouTube-Dislikes

Bring Back Dislikes On YouTube iOS.
C
38
star
10

Amber

Amber-ify LED torch of your iOS device.
Logos
37
star
11

YouTube-X

A lightweight YouTube improvement tweak.
Logos
35
star
12

EmojiPort-Legacy

Latest emojis for iOS 6.0-8.2
Logos
34
star
13

YTUHD

Unlock 1440p and 2160p resolutions in iOS YouTube app.
Logos
33
star
14

PoomSmart.github.io

PoomSmart's Tweak Repository.
HTML
32
star
15

SimulatorHooker-Deprecated

iOS Simulator, I got you.
Logos
27
star
16

CAHighFPS

Make your CoreAnimation applications use the highest available FPS.
Logos
27
star
17

CCOnOff

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

IAmYouTube

In every possible way, tell app you are the real YouTube app.
Logos
24
star
19

EmojiPort-PE

Latest emojis for iOS 12.0 - 17.3
Logos
23
star
20

EmojiAttributes

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

exKeyboard

3rd-party keyboard anywhere.
Logos
16
star
22

BlockEmAll

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

YouTubeHeader

Headers for iOS YouTube app.
Objective-C
16
star
24

EmojiLayout

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

TransparentCameraBar

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

PanoEnabler

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

SwipeForMore

Manage packages in Cydia via swipe.
Logos
14
star
28

EmojiFontManager

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

ReplayKit-Max

Record screen without resolution cap.
Logos
14
star
30

BlurryBadges

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

HighGraphics

Best UIKit graphics for older devices.
Logos
12
star
32

YouQuality

View and change video quality in YouTube app from the video overlay.
Logos
11
star
33

Injection-Foundation

Inject UIKit tweaks into Foundation apps.
Logos
11
star
34

PencilPro

Apple Pencil can do better.
Logos
11
star
35

PSHeader

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

YTUnShorts

Remove Shorts from YouTube app's feed.
Logos
11
star
37

MoreSiri

More Siri languages support.
Logos
11
star
38

RecordPause

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

LatestTranslate

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

AppPad

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

Burst-Mode

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

App-Library-for-iPad

Enable App Library on iPad.
Logos
10
star
43

YTDarker

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

YTVideoOverlay

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

PhotoTorch

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

EmojiPort-10-Resources

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

SmoothCursor

Office 2013 cursor animation for iOS.
Makefile
8
star
48

Slo-mo-Mod

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

YouMute

Mute/unmute videos in iOS YouTube directly.
Logos
7
star
50

YTClassicVideoQuality

Revert to the original video quality selector in YouTube app.
Logos
7
star
51

FrontFlash

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

Anywhere-Widgets-for-iPad

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

CamVolZoom

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

Front-HDR

Enable HDR Capture in Front Camera.
Logos
7
star
55

LiveTextEnabler

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

SimulatorTweaks

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

DismissProgress

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

Still-Capture-Enabler-2

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

YTAutoFullScreen

Automatically play videos in full screen.
Logos
7
star
60

Cydia-Stat-Checker

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

EmojiPort-WT

Latest emojis for iOS 10.0 - 11.4
Logos
7
star
62

YouGroupSettings

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

PadGrid

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

Background-App-Refresh-Flipswitch

Flipswitch for Background App Refresh.
Logos
6
star
65

AdvancedMapEnabler-iOS

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

NoYTPremium

Remove YouTube Premium upsell alerts.
Logos
6
star
67

LPM-Enabler

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

PSPrefs

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

YTShortsProgress

Enable YouTube shorts progress/scrubber.
Logos
6
star
70

AdvancedMapEnabler

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

SplitIt

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

HDRBadge70

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

Battery-Health-Enabler

Enable Battery Health on unsupported devices.
Logos
5
star
74

Record--n--Torch

Allow toggling torch while recording video.
Logos
5
star
75

LiveTextEnabler-iOS

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

emoji-meta-reader

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

detect-screenshot-event

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

PoomSmart

PoomSmart's GitHub Profile.
4
star
79

BlurryBar

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

LineBreakLiberator

Safari Quick Search results without truncation.
Makefile
4
star
81

TinyOwl

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

YTNoPaidPromo

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

KBMoreMem

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

EmojiResources

Latest emoji category icons.
Logos
4
star
85

YTSettingsExamples

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

MyAssistive

Repurpose the Assistive Touch.
Objective-C
4
star
87

AnywherePredict

Predictive keyboard anywhere.
Logos
4
star
88

cfprefsd_fix

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

YTABGoodies

Enforce useful YouTube features that are otherwise 50/50 available to you.
Logos
4
star
90

Return-YouTube-Music-Dislikes

Bring Back Dislikes On iOS YouTube Music.
Logos
4
star
91

IGStoryViewerCount

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

cyarchfix

Hide iphoneos-arm64 packages from Cydia.
Logos
3
star
93

CCMultitaskingGestures

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

YTSilentVote

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

Flexmoji

Unrestricted iOS emoji font size.
Logos
3
star
96

Reduce-Transparency-Flipswitch

Flipswitch for Reduce Transparency.
Logos
3
star
97

FaceDetectionDuringVideo

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

ContentBlocker32

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

NoSquare

No more useless square mode!
Logos
3
star
100

EmojiDarkStyle

iOS 10.2+ dark emoji feature.
Logos
3
star