{"id":28854217,"url":"https://github.com/commaai/android_frameworks_opt_telephony","last_synced_at":"2025-08-17T13:04:38.139Z","repository":{"id":65984934,"uuid":"71850442","full_name":"commaai/android_frameworks_opt_telephony","owner":"commaai","description":"upstream: https://github.com/CyanogenMod/android_frameworks_opt_telephony","archived":false,"fork":false,"pushed_at":"2017-10-06T18:47:41.000Z","size":8559,"stargazers_count":1,"open_issues_count":0,"forks_count":6,"subscribers_count":15,"default_branch":"master","last_synced_at":"2023-04-08T11:56:46.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/commaai.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-25T02:12:00.000Z","updated_at":"2023-04-08T11:56:46.893Z","dependencies_parsed_at":"2023-02-19T18:31:18.166Z","dependency_job_id":null,"html_url":"https://github.com/commaai/android_frameworks_opt_telephony","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/commaai/android_frameworks_opt_telephony","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fandroid_frameworks_opt_telephony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fandroid_frameworks_opt_telephony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fandroid_frameworks_opt_telephony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fandroid_frameworks_opt_telephony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commaai","download_url":"https://codeload.github.com/commaai/android_frameworks_opt_telephony/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fandroid_frameworks_opt_telephony/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260838663,"owners_count":23070614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-06-19T22:09:12.166Z","updated_at":"2025-08-17T13:04:38.126Z","avatar_url":"https://github.com/commaai.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This package contains classes used to manage a DataConnection.\n\nA criticial aspect of this class is that most objects in this\npackage run on the same thread except DataConnectionTracker\nThis makes processing efficient as it minimizes context\nswitching and it eliminates issues with multi-threading.\n\nThis can be done because all actions are either asynchronous\nor are known to be non-blocking and fast. At this time only\nDcTesterDeactivateAll takes specific advantage of this\nsingle threading knowledge by using Dcc#mDcListAll so be\nvery careful when making changes that break this assumption.\n\nA related change was in DataConnectionAc I added code that\nchecks to see if the caller is on a different thread. If\nit is then the AsyncChannel#sendMessageSynchronously is\nused. If the caller is on the same thread then a getter\nis used. This allows the DCAC to be used from any thread\nand was required to fix a bug when Dcc called\nPhoneBase#notifyDataConnection which calls DCT#getLinkProperties\nand DCT#getLinkCapabilities which call Dcc all on the same\nthread. Without this change there was a dead lock when\nsendMessageSynchronously blocks.\n\n\n== Testing ==\n\nThe following are Intents that can be sent for testing pruproses on\nDEBUGGABLE builds (userdebug, eng)\n\n*) Causes bringUp and retry requests to fail for all DC's\n\n  adb shell am broadcast -a com.android.internal.telephony.dataconnection.action_fail_bringup --ei counter 2 --ei fail_cause -3\n\n*) Causes all DC's to get torn down, simulating a temporary network outage:\n\n  adb shell am broadcast -a com.android.internal.telephony.dataconnection.action_deactivate_all\n\n*) To simplify testing we also have detach and attach simulations below where {x} is gsm, cdma or sip\n\n  adb shell am broadcast -a com.android.internal.telephony.{x}.action_detached\n  adb shell am broadcast -a com.android.internal.telephony.{x}.action_attached\n\n\n== System properties for Testing ==\n\nOn debuggable builds (userdebug, eng) you can change additional\nsettings through system properties.  These properties can be set with\n\"setprop\" for the current boot, or added to local.prop to persist\nacross boots.\n\ndevice# setprop key value\n\ndevice# echo \"key=value\" \u003e\u003e /data/local.prop\ndevice# chmod 644 /data/local.prop\n\n\n-- Retry configuration --\n\nYou can replace the connection retry configuration.  For example, you\ncould change it to perform 4 retries at 5 second intervals:\n\ndevice# setprop test.data_retry_config \"5000,5000,5000\"\n\n\n-- Roaming --\n\nYou can force the telephony stack to always assume that it's roaming\nto verify higher-level framework functionality:\n\ndevice# setprop telephony.test.forceRoaming true\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommaai%2Fandroid_frameworks_opt_telephony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommaai%2Fandroid_frameworks_opt_telephony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommaai%2Fandroid_frameworks_opt_telephony/lists"}