-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a known URL for Charging Optimization? #52
Comments
Also very interested in this and have tried various combinations without success. |
Came here looking for the same thing, and tried many of the same URLs as the first poster. |
Also tried:
But didn’t work either |
This seems to work, but only when my device language is US English: |
|
@colin273 I'm guessing you have the iPhone 15 (non-Pro)? |
Yeah, it's a subpage that shows three options, one for optimized battery charging, one for the 80% limit, one for none. that's why I want this so bad, it's yet another level of setting. I have a iPhone 15 Pro. |
I have an SE 2020 (hence the notchless status bar). That explains why I don't see the page. I've looked around in system files, but so far I've come up empty. The search manifests don't seem to contain any useful information, and the battery settings bundle and its binary aren't much help either. Edit: the key for the "Optimized Charging" string in the relevant loctable is |
Certainly appreciate you taking a look around for us! |
Does not work (iPhone 15 Pro Max, USA, iOS 17.0.2). Copied exactly as shown here on github and the shortcut drops you in one step short of "Charging Optimization" screen. https://www.youtube.com/shorts/rWbW6XgCUF8 |
The URL I sent earlier takes me directly to the "Optimize Battery Charging" switch in my settings. The path to the "Charging Optimization" page, and even the bar to access it on the Battery Health page, is almost certainly different for iPhone 15 Pro models, since it's effectively a different settings item that just happens to generally control the same thing. |
That URL definitely does not work on iPhone 15 pro, unfortunately. |
Based on all other setting urls, I’d find weird to have one url that is working depending on the language set in the phone |
The optimized charging setting is also available on the regular iPhone 15, at least on iOS 17. Unfortunately the posted link doesn’t work on it either. I tried:
both with Region and language set to USA/English US. |
So, I'm doing some digging behind this. I'll try to explain this in some terms that will simplify this.
It seems like the URLs are based on the identifiers of the nested specifiers. So, it turns out Optimized Charging on non-iPhone 15 devices is indeed |
Tried these so far... nothing.
|
With iOS 17.4 (which restructured the "Battery Health"/"Charging Optimization" menus) and iPhone 15 Pro (or potentially any future models) supporting the 80% Limit, I found with some trial and error (and thanks to the previous work by commenters such as @colin273 & @chrisharper22 ) that this URL directly opens the menu "Battery > Charging Optimization" (at least with system language set to EN-US): It's better than nothing when trying to quickly enable/disable the 80% Limit via Shortcuts... |
|
I am on iOS 17.5.1 with an iPhone 14 and this URL is working perfectly! Finally found it, thanks!! |
As of right now, Apple prevents this behavior with Shortcuts, most likely from downloaded Shortcuts from changing system settings without acknowledgement. |
Sadly |
Found it !
Shortcut for the lazy : https://www.icloud.com/shortcuts/f48d78ffcb2b400182656cccc36f63b8 |
I've been searching for this, and it's absolutely perfect! |
And for anyone that may help, I did it w/ the help of the script I did for finding health deeplinks : And replaced all "health" occurrences with "battery". That gave me a file on the desktop after one or two hours (maybe more, didn't check). So basically this : #!/bin/bash
# Change to the mounted filesystem root
cd /Volumes/CrystalBSeed22B5054e.D94DeveloperOS
# Output file
output_file=~/Desktop/battery_data.txt > "$output_file"
# Function to process plist files
function process_plist() {
echo "Processing plist file: $1"
plutil -p "$1" 2>/dev/null | grep -i 'battery' >> "$output_file"
}
# Function to process json files
function process_json() {
echo "Processing json file: $1"
cat "$1" | grep -i 'battery' >> "$output_file"
}
# Function to process txt files
function process_txt() {
echo "Processing txt file: $1"
grep -i 'battery' "$1" >> "$output_file"
}
# Function to process general files
function process_strings() {
echo "Processing general file: $1"
strings "$1" | grep -i 'battery' >> "$output_file"
}
# Export the functions for use in find's exec
export -f process_plist
export -f process_json
export -f process_txt
export -f process_strings
export output_file
# Find and process .plist files
find . -name "*.plist" -exec bash -c 'process_plist "$0"' {} \;
# Find and process .json files
find . -name "*.json" -exec bash -c 'process_json "$0"' {} \;
# Find and process .txt files
find . -name "*.txt" -exec bash -c 'process_txt "$0"' {} \;
# Find and process other files
find . -type f ! -name "*.plist" ! -name "*.json" ! -name "*.txt" -exec bash -c 'process_strings "$0"' {} \;
echo "Battery-related strings have been saved to $output_file" |
Awesome!! Mega thanks! |
There have been a number of responses that have been offered for many different versions of iOS. Can you try some of them to see if they work for you, then close this issue if they do? Just trying to do my part to keep this awesome resource tidy and up-to-date. Thanks, |
Added contributions that were hidden in the "Issues" tab. A few battery settings (FifiTheBulldog#52) and an iCloud Mail Rules Setting (Issue FifiTheBulldog#78)
I'm trying to get to the Charging Optimization page under Battery -> Battery Health & Charging. I've tried the following:
prefs:root=BATTERY_USAGE&path=BATTERY_HEALTH
, and that gets me to the Battery Health page - great start. To try to go deeper, I've triedHas anyone had success with this?
The text was updated successfully, but these errors were encountered: