{"id":25821192,"url":"https://github.com/fairydevicesrd/thinklet.app.adbrecovery","last_synced_at":"2026-06-14T10:33:30.374Z","repository":{"id":278340706,"uuid":"869343480","full_name":"FairyDevicesRD/thinklet.app.adbRecovery","owner":"FairyDevicesRD","description":"THINKLET開発者向けのAdbを起動時に自動有効化するサンプル実装","archived":false,"fork":false,"pushed_at":"2025-02-19T08:20:01.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-06-14T10:33:28.761Z","etag":null,"topics":["thinklet"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FairyDevicesRD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-08T06:23:07.000Z","updated_at":"2025-02-19T08:20:04.000Z","dependencies_parsed_at":"2025-02-19T09:36:00.297Z","dependency_job_id":null,"html_url":"https://github.com/FairyDevicesRD/thinklet.app.adbRecovery","commit_stats":null,"previous_names":["fairydevicesrd/thinklet.app.adbrecovery"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/FairyDevicesRD/thinklet.app.adbRecovery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.adbRecovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.adbRecovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.adbRecovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.adbRecovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FairyDevicesRD","download_url":"https://codeload.github.com/FairyDevicesRD/thinklet.app.adbRecovery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.adbRecovery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34318523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["thinklet"],"created_at":"2025-02-28T10:37:58.234Z","updated_at":"2026-06-14T10:33:30.359Z","avatar_url":"https://github.com/FairyDevicesRD.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AdbRecovery\n- THINKLET開発者向けのAdbを起動時に自動有効化するアプリです．\n \n\u003e [!CAUTION]\n\u003e 確実にAdb有効化を保証するものではありません．\n\u003e また，開発時のみご利用ください．\n\n## 使い方\n1. リリースからAPKを取得します．\n2. 次のコマンドでTHINKLET（開発機）にインストールします．\n   ```\n   adb install -g thinklet.app.adbRecovery.apk\n   ```\n3. [scrcpy](https://github.com/Genymobile/scrcpy) で画面を表示しながら，下記のコマンドを実行し，Activityが立ち上がることを確認します．\n   ```\n   adb shell am start -n com.example.fd.adbrecovery/.MainActivity\n   ```\n4. **電源ボタンを操作して**，THINKLETを再起動してください．\n5. 再起動直後に，次のコマンドで自動有効化の機能が動いていることを確認します．\n    ```\n    $ adb logcat | grep AdbRecoveryReceiver\n    ```\n    - 次のようなログが出力されていれば，正しく動作しています．\n    ```\n    09-26 19:27:29.658  1417  1460 I ActivityManager: Start proc 3125:com.example.fd.adbrecovery/u0a77 for broadcast com.example.fd.adbrecovery/.AdbRecoveryReceiver\n    09-26 19:27:29.756  3125  3125 D AdbRecoveryReceiver: onReceived ACTION_BOOT_COMPLETED\n    09-26 19:27:30.809  3125  3139 D AdbRecoveryReceiver: adbRepository.enable() ret=true\n    ```\n\n## ビルド\n1. トークン発行\n   - このアプリは，[thinklet.app.sdk](https://github.com/FairyDevicesRD/thinklet.app.sdk) を使用します．\n   - [ここ](https://github.com/FairyDevicesRD/thinklet.app.sdk?tab=readme-ov-file#%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A7%E3%81%AE%E5%88%A9%E7%94%A8%E6%96%B9%E6%B3%95) に従い，Githubから，GitHub Packagesにあるライブラリを取得するためのトークンを発行します．\n2. `local.properties` ファイルに追記します．\n    ```\n    TOKEN=ghp_***************\n    USERNAME=your-github-account-name\n    ```\n3. AndroidStudioでビルドあるいは，`./gradlew assembleRelease` でビルドできます．\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairydevicesrd%2Fthinklet.app.adbrecovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffairydevicesrd%2Fthinklet.app.adbrecovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairydevicesrd%2Fthinklet.app.adbrecovery/lists"}