93 Commits

Author SHA1 Message Date
d447adc133 chore: replace em dashes with ASCII hyphens.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 11:56:37 +03:00
4b0eee3eb5 Release PronBox v1.12.0 from NIH TechnoPron.
Rename Magisk branding to PronBox (author: TechnoPron team), stop customize.sh from forcing Box for Magisk, and ship wg-obfuscator plus Manage Profiles templates.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 09:09:32 +03:00
89d0adb27c Release VeilBox v1.11.0: switchable TrustTunnel/olcrtc profiles.
Rename display name to VeilBox, add box.profile + sbfr p switcher, and ship scrubbed sing-box profile templates for quick TT/olcrtc flips.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 20:34:21 +03:00
07d81c9249 первый комит 2026-08-12 15:12:01 +03:00
taamarin
4580a552e3 feat(box.tool): mask sensitive token in subscription URL logs 2025-09-06 23:11:15 +07:00
taamarin
6074f4c6f0 fix(scripts): use /system/bin/sh and add curl timeout options in box.tool 2025-09-05 10:25:16 +07:00
taamarin
6a3acff87c box.tool(subs): extend protocol detection & clarify error log 2025-09-04 03:05:36 +07:00
taamarin
cf3e360be0 feat: support Base64 subscription(clash/momo) file in box.tool 2025-09-04 02:30:05 +07:00
taamarin
8d74c59e45 box: switch sing-box to single config file
- Add log_backup flag (default: false) for optional log backup
- Include Android user 999 in tun config
- Use -c "${sing_config}" instead of -C for sing-box check/run
2025-08-25 09:23:18 +07:00
taamarin
d28ba2f645 scripts: add settings.ini validation to all entry scripts
- Added syntax validation for `/data/adb/box/settings.ini` at the start of:
  * box.inotify
  * box.iptables
  * box.service
  * box.tool
  * ctr.inotify
  * start.sh
- If validation fails, an error message is logged to
  `/data/adb/box/run/settings_err.log` and the script exits immediately.
- Ensures misconfigured settings.ini do not break runtime scripts.
2025-08-17 05:23:42 +07:00
taamarin
7cb8f49373 refactor(customize): improve binary update flow and mirror selection 2025-08-16 20:04:15 +07:00
taamarin
042d079b17 feat(clash): add support for multiple subscription URLs and configs
- subscription_url_clash now supports arrays for multiple URLs
- name_provide_clash_config updated to support arrays matching the URLs
- Added validation to ensure URL and config counts match
- When renew=true, only the first index is processed
- Loop through all subscriptions for clash_provide_config updates
- Improved logging for mismatches and update failures
- Refactored clash_provide_config to use base path clash_provide_path
- Updated settings.ini:
  - subscription_url_clash → array
  - name_provide_clash_config → array
  - default renew=false (fetch proxies only)
2025-08-16 14:45:54 +07:00
taamarin
515eae8447 feat: improve install & update flow, add progress bars, ghfast prompt, and logging polish
- box.service:
  • Add check for empty interva_update before scheduling GeoX & subscription updates
  • Improve logging for crontab setup

- box.tool:
  • Change ghproxy URL to https://ghfast.top
  • Add --progress-bar to curl commands for better download visibility
  • Suppress noisy extraction outputs, log only success/failure
  • Cleanup temp files after updates (SHA256SUMS, yq.bak)
  • Improve GeoX update logs with timestamp and bin_name
  • Return 1 instead of exiting for failed downloads in upkernel
  • Minor log output polish and error suppression

- customize.sh:
  • Add interactive prompt for enabling ghfast mirror before downloads
  • Improve Kernel & GeoX download prompt with auto-download fallback
  • Enhance restore process with per-component logging
  • Add detailed extraction and permission setup logs
  • Final polish on cleanup, symlink creation, and completion messages

- module.prop:
  • Update module name to “Box for Magisk/KernelSU/APatch”
2025-08-14 09:02:36 +07:00
taamarin
f13c8608bb feat(subscriptions): add sing-box subscription support
- Added subscription update support for sing-box:
  - Downloads config from subscription_url_singbox.
  - Restarts service if update is successful.
- Updated settings.ini:
  - Added subscription_url_singbox entry.
2025-08-13 15:40:26 +07:00
taamarin
e9eda0e417 fix(subscription): restart box.service on subscription update, if renew=true 2025-08-13 08:30:40 +07:00
taamarin
acfa76b2af fix: create clash_provide_config file and update subscription settings
- Improved comments in settings.ini for better clarity on renew behavior and subscription URL usage.
2025-08-13 07:29:37 +07:00
taamarin
768d5bbeb5 feat: improve logging, add help menus, and enhance update/reload routines
- box.inotify: redirect service actions to inotify.log instead of service.log
- box.iptables: add help|-h|--help commands with usage descriptions, remove color codes from errors
- box.service:
  - rewrite log cleanup to timestamped backup with clearer messages
  - add help menu for service control commands
  - remove unnecessary inline comments
- box.tool:
  - add detailed logging for config checks, reload, and update operations
  - improve error handling and skip steps on failure
  - add backup steps before updating curl, yq, and other binaries
  - enhance geo data update with explicit logging and cleanup
  - refine kernel updates for sing-box, clash, xray/v2fly, hysteria with clearer output and checks
  - improve cgroup management log messages
  - add comprehensive help menu for all commands
2025-08-11 07:17:23 +07:00
twnesss
a8ee2493a9 feat(cgroup): refactor memcg/cpuset/blkio logic, update settings
- Parameterize PID file and fallback values
- Improve detection and assignment of cgroup paths
- Update default memcg limit to 100M, cpuset CPU range, blkio weight
- Refine CPU core detection using /proc/[pid]/stat
2025-05-26 10:29:32 +07:00
Шоколад
57f9dbd4d1 feat: Improve download handling by adding curl fallback 2024-12-25 17:14:50 +07:00
Шоколад
7caf827136 Added logic to use curl if available for file downloading, falling back to wget if curl is not found. https://github.com/taamarin/box_for_magisk/issues/172 2024-12-25 15:30:47 +07:00
twnesss
88b6200c00 Refined box.tool: subscription
- adjust clash configuration
- add a Node as an example
- settings.ini add example subs
2024-11-06 20:14:39 +07:00
twnesss
9623ecf1e1 Fix update curl 2024-10-16 23:37:55 +07:00
twnesss
ad87f5d322 use yacd-chizi 2024-09-17 21:54:08 +07:00
twnesss
64b7a9d9c1 provide anti-loopback rule logs 2024-09-17 16:58:57 +07:00
tearmoon
c32eb04516 [box.tool] Add option to download sing-box "Pre-release" and "Latest release" https://github.com/taamarin/box_for_magisk/issues/133 2024-07-24 23:36:15 +07:00
tearmoon
e62128d74e [box.tool] download Hysteria core 2024-07-22 21:46:00 +07:00
tearmoon
6725e2894f add hysteria
misc
2024-06-21 21:27:31 +07:00
bugme2
427fcd0a2b kernelsu添加clash面板 (#106)
* kernelsu添加clash面板

* 删除无用目录

* 判断为clash核心时则为kernelsu添加webui面板

---------

Co-authored-by: Your Name <you@example.com>
2024-03-28 14:31:28 +07:00
tearmoon
0a3632bf04 fix https://github.com/taamarin/box_for_magisk/issues/104 2024-03-27 21:23:54 +07:00
tearmoon
71aaf9b448 Change proxy_mode=tun -> network_mode=tun
— Add network_mode=enhance
— Adjust iptables version
— Delete Taskset
— Misc
2024-03-21 17:10:43 +07:00
tearmoon
5ffac72163 Mirror Fix 2024-03-07 22:23:22 +07:00
tearmoon
16bd5cb828 [adjust] box.scripts 2024-02-25 21:43:22 +07:00
tearmoon
bc15f3d99e Simplified script directory determination. 2024-02-01 16:52:50 +07:00
meiwj
af913f1b75 update ghproxy url (#72)
The primary domain ghproxy.com has been banned by the GFW.
2023-12-22 10:49:37 +07:00
tearmoon
8cee2dfe7c replace upyacd => upxui
default MetaCubeX/metacubexd
2023-12-10 01:55:55 +07:00
tearmoon
3e5d800c70 refined bfr scripts 2023-12-04 19:31:46 +07:00
tearmoon
0f1b83980d Update core repo
binary file name clash.meta changes to mihomo
2023-12-02 19:45:48 +07:00
tearmoon
34336db22e adjust BFR scripts 2023-12-01 18:09:32 +07:00
dependabot-preview[bot]
213c880819 upkernel clash function: added busybox before the wget command to run it with busybox 2023-10-24 18:24:08 +07:00
KAF:KA
c4f872aaac patch: ~
+ [debug] add cgroup: blkio(background),cpuset(top-app)
+ add taskset
+ box.tool: adjust function upcurl
+ box.iptables: adjust disabled/enabled QUIC
+ ap_list: add swlan+
+ update sing-box/config.json
2023-10-16 16:20:46 +07:00
KAF:KA
88f0571b60 added stable Clash.Meta kernel downloads 2023-09-27 23:49:13 +07:00
KAF:KA
06e0fac9e3 fix typo 2023-09-27 10:11:08 +07:00
KAF:KA
59957599f9 added function to check $bin_name if it suddenly stopped.
adjust:
   box/scripts/box.iptables
   box/scripts/box.service
   box/scripts/box.tool
   box/settings.ini
2023-09-27 02:18:13 +07:00
KAF:KA
a4f2874d05 remove useless and repetitive code
add download/update curl
2023-09-26 07:58:20 +07:00
renovate[bot]
92ddd8dc37 remove sing-box subscription support
notes: you can use sing-box-yaott or qjebbs[may not be stable yet]
2023-08-30 15:52:33 +07:00
renovate[bot]
f0e0f55c2f adjust logs function 2023-08-30 15:33:56 +07:00
renovate[bot]
042a16f415 Added conditional statement to check for custom subscription rules (if custom_rules_subs=true). 2023-08-15 19:51:41 +07:00
Tw
4347929087 support rules specified in subscriptions (#44)
This is useful when the subscription contains customized rules as well.

Signed-off-by: Tw <tw19881113@gmail.com>
2023-08-15 17:58:58 +07:00
dependabot
5024b1e2b5 adjust update_kernel sing-box function 2023-08-11 11:10:41 +07:00
dependabot
0c89c14701 customize some functions 2023-08-04 00:26:54 +07:00