[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108173":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":13,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},108173,"Housekeeping-PoC","JFC-Group\u002FHousekeeping-PoC","JFC-Group","Sweeping in the cracks",null,"Shell",289,153,1,0,11,66,7,60.65,"Apache License 2.0",false,"main",true,[],"2026-11-04 13:36:34","2026-11-22 17:28:41","# Housekeeping\n## A two stage bootloader unlock exploit for JSTBs\n\n### Tested On:\n- JMSC200Av2 on 22.1.09, 24.1.39, and 25.1.9. Should work on older firmwares as well.\n\n#### May not work on JHS series\n#### Boxes other than JMSC200X do NOT have support for USB host in fastbootd.\n#### We are not responsible for bricked STBs, getting scammed, thermonuclear warfare caused by using this script, or anything else.\n#### We also do not condone the usage of other third-party repositories\u002Fguides that are using this repo; We do not know what they contain.\n---\n### Mechanism:\n#### Stage 1 (USB Debugging):\n- A fake TR-069 server is created with GenieACS and a self-signed certificate is assigned and a connection port is opened by pass_front.py at :8443 (sometimes :9443 may be required, change python script if that happens)\n- DNS of the STB is rerouted. \"acs.oss.j.com\" points to the device running GenieACS, then STB is rebooted while running the stage1.sh script\n- STB connects to 8443 (hopefully with no ssl pinning), connection is routed to GenieACS\n- Internal TR-069 variables are flipped by spamming them:\n\t- Device.JSTB.USB.USBDebugging -> true\n\tDevice.JSTB.USB.DebugValidityDate -> 2037-01-01T00:00:00.000Z\n\tDevice.JSTB.FOTA.Disable -> true\n\tDevice.JSTB.FOTA.DowngradeEnable -> true [downgrade has not been tested]\n\tDevice.JSTB.FOTA.DowngradeValidityDate -> 2037-12-31T23:59:59.000Z\n- After adb connect is accomplished, device_provisioned tag is set to 1\n- Bloat and TR069 client is disabled.\n\n#### If you only want ADB, just use the stage1.sh\n---\n### DO NOT SKIP\n#### Risks with Stage 2:\n- **MIGHT NOT WORK FOR ALL**: The CVE was **patched in June 2024 Android Security Bulletin**. Check your ASB date by either going to Device Info, or `adb shell getprop ro.build.version.security_patch`. If it shows anything **after May 2024, the exploit WILL NOT WORK.** No guarantees are given if the script is ran without checking.\n- **ONLY ONE SHOT PER BOOT**: The implemented CVE **breaks zygote connection after running**, so the exploit can only be ran once per boot.\n- **UBOOT FASTBOOT IS HEAVILY RESTRICTED**: You cannot run anything like `flash`, `format`, `slot_active`. They can only be done via fastbootd. **BE VERY CAREFUL IF YOU ARE FLASHING ANY CUSTOM IMAGES, AS IT MAY LEAD TO A BRICK**. AML Download\u002FBurn mode is also disabled, unknown if it can be enabled (I bricked my own device this way, please don't make the same mistake)\n---\n#### Stage 2 (Bootloader Unlock):\n- Implemented CVE-2024-31317, **depends entirely on ASB date, might not work for all**\n- **CVE-2024-31317** (Zygote command injection): injects a newline into\n   `hidden_api_blacklist_exemptions` settings, causing Zygote to fork a process\n   with `--invoke-with` pointing to our command. Runs as `system_app` (uid 1000).\n- ISystemControl HIDL: from `system_app` context, calls\n   `SystemControlManager.setBootenv()` (from `\u002Fvendor\u002Fframework\u002Fdroidlogic.jar`)\n   which talks to the Amlogic systemcontrol HAL via HIDL binder.\n- U-Boot env write:\n\t the HAL writes to `\u002Fdev\u002Fblock\u002Fenv`, changing:\n   - `lock` from `10101000` (locked) to `10100000` (unlocked) — flips bit[4]\n   - `EnableSelinux` from `enforcing` to `permissive`\n- Reboot to fastboot: U-Boot reads the new env and reports `unlocked:yes`.\n   Factory reset required on first boot after unlock state change. **Try fastbootd, if not working, try Android Rescue recovery page with a keyboard.**\n- If device bootloops, try resetting it. This will only work if the Jio boot animation (not just the logo) shows up and the green LED is blinking, If the green LED stays on and only the Jio logo is shown, try booting into uboot fastboot.\n---\n\n### Prerequisites:\n- GenieACS Docker, docker-compose.yml is shipped under tls\u002F dir.\n- DNS redirect of acs.oss.jio.com to the device running GenieACS (please disable firewalls)\n\tAn easy way of doing redirects would be an OpenWRT router. Another way could be directly connecting the STB to the docker-running device and creating a subnet, although it is more difficult.\n#### Ensure that there is NO INTERNET ACCESS to the STB during this entire procedure until stage1.sh finishes.\n---\n\n### Running:\n1. Start the Docker container by:\n\t`cd tls && docker-compose up -d`\n2. .\u002Fstage1.sh                          # enable ADB\n3. .\u002Funlock.sh                          # unlock bootloader\n4. adb reboot bootloader → fastboot reboot → factory reset (keyboard needed)\n5 .\u002Fstage1.sh                          # re-enable ADB after reset\n6. .\u002Funlock.sh selinux                  # NOW set SELinux permissive\n7. adb reboot                           # SELinux permissive takes effect\n8. .\u002Fpull_boot.sh                       # extract boot.img for Magisk\n# Recommended to patch boot.img on device\n---\n\n### Credits:\n1. ak_0o7 and Sandip Bhadoriya for the ACS script\n2. Otus9051 for consolidating ACS script and unlock.sh\n3. Keratin and Anthropic for Claude\n\nI have tried to credit everyone that I am aware of. If you have supported this work in any way and your name is not on here, don't be sad, we are glad that you made this possible!\n---\n\n### THIS PROJECT IS UNDER THE APACHE 2.0 LICENSE\nPlease for the **love of humanity** stop making these into a black market. I am tired. Let this become a way for people to reuse whatever e-waste they have.\n\nWe are irresponsible people, please do not hold us accountable, we are broke and have no lawyers.\n\nThis README, and almost all of the RE, analysis etc on the unlock\u002Froot side, was done by me (Otus9051). Claude merely helped in orchestrating everything. These things take time, coordination, blood and sweat. We do not ask for money. Please credit us, and try not to sell. We make these projects to reduce e-waste that people already have, not create markets. \n","这是一个针对JSTB（Jade Smart TV Box）设备的两阶段引导加载程序解锁概念验证工具，主要用于绕过厂商限制以获取高级调试与系统控制权限。核心功能包括：第一阶段通过伪造TR-069服务器启用USB调试并禁用FOTA限制；第二阶段利用CVE-2024-31317（Zygote命令注入漏洞）提权至system_app，调用Amlogic HAL接口解锁fastbootd环境。项目基于Shell脚本实现，依赖GenieACS和ADB，需配合特定固件版本（Android安全补丁日期不晚于2024年5月）。适用于嵌入式安全研究、固件逆向分析及厂商锁定设备的合法调试场景，不适用于已打补丁的设备或生产环境。",2,"2026-11-24 04:33:43","CREATED_QUERY"]