Hello everyone, I have done a bit of reseach inside the android source code and I have found some files you may want to modify. This is for Lineage 17.1, I do not suggest to try this on AOSP.
Somes lines may be unuseful but too much is better than not enough.
THIS IS FOR PEOPLE WHO WANT TO BUILD THEIR OWN ANDROID VERSION :
ADVANCED USERS ONLY !
Note that alot may also come from the device tree during the android build, so you have to make sure that nothing bad come from it.
I guess this have already been done on /e/ but I guess that alot of people here have still a device with lineage.
HTTP 204 :
./frameworks/base/services/core/java/com/android/server/ConnectivityService.java:254: “http://connectivitycheck.gstatic.com/generate_204”;
./frameworks/base/tests/net/java/com/android/server/ConnectivityServiceTest.java:4627: assertEquals(“http://connectivitycheck.gstatic.com/generate_204”, url);
./cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnTest.java:50: private static final String CONNECTIVITY_CHECK_HOST = “connectivitycheck.gstatic.com”;
./cts/hostsidetests/net/app/src/com/android/cts/net/hostside/VpnTest.java:113: public static String TEST_HOST = “connectivitycheck.gstatic.com”;
./cts/tests/tests/net/util/java/android/net/cts/util/CtsNetUtils.java:61: public static final String TEST_HOST = “connectivitycheck.gstatic.com”;
./tools/test/connectivity/acts/tests/google/net/DnsOverTlsTest.py:93: “connectivitycheck.gstatic.com.” not in summary and
./system/extras/multinetwork/quick_test.sh:5:readonly TEST_HOST=“connectivitycheck.gstatic.com”
Fichier binaire ./.repo/project-objects/LineageOS/android_packages_modules_CaptivePortalLogin.git/objects/pack/pack-8d9a1849da6323e97260bf8595bee4005f528e21.pack correspondant
./packages/modules/NetworkStack/res/values-mcc460/config.xml:8: https://connectivitycheck.gstatic.com/generate_204
./packages/modules/NetworkStack/res/values/config.xml:14: http://connectivitycheck.gstatic.com/generate_204
DNS :
./frameworks/base/services/core/java/com/android/server/connectivity/NetworkDiagnostics.java:88: private static final InetAddress TEST_DNS4 = NetworkUtils.numericToInetAddress(“8.8.8.8”);
./frameworks/base/services/core/java/com/android/server/connectivity/tethering/TetheringConfiguration.java:82: private final String[] DEFAULT_IPV4_DNS = {“8.8.4.4”, “8.8.8.8”};
./frameworks/base/core/java/android/net/util/DnsUtils.java:344: new InetSocketAddress(InetAddresses.parseNumericAddress(“8.8.8.8”), 0);
./frameworks/base/core/res/res/values/config.xml:430: eth1;12,13,14,15;ip=192.168.0.10/24 gateway=192.168.0.1 dns=4.4.4.4,8.8.8.8
./frameworks/base/core/res/res/values/config.xml:2039: 8.8.8.8
./frameworks/base/packages/SettingsLib/res/values/strings.xml:1056: 8.8.8.8
./bionic/libc/dns/net/getaddrinfo.c:390: .sin_addr.s_addr = __constant_htonl(0x08080808L) // 8.8.8.8
./device/generic/goldfish/ril/reference-ril.c:819: responses[i].dnses = “8.8.8.8 8.8.4.4”;
./cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/VpnTestActivity.java:105: descriptor = service.new Builder().addAddress(“8.8.8.8”, 30).establish();
SUPL :
./frameworks/base/telephony/java/android/telephony/CarrierConfigManager.java:3008: defaults.putString(KEY_SUPL_HOST_STRING, “supl.google.com”);
./device/common/gps/gps.conf_EU_SUPL:4:SUPL_HOST=supl.google.com
./device/common/gps/gps.conf_AS_SUPL:4:SUPL_HOST=supl.google.com
./device/common/gps/gps.conf_US_SUPL:4:SUPL_HOST=supl.google.com
./cts/tests/tests/location/src/android/location/cts/psedorange/PseudorangePositionVelocityFromRealTimeEvents.java:55: private static final String SUPL_SERVER_NAME = “supl.google.com”;
./hardware/interfaces/gnss/2.0/vts/functional/gnss_hal_test_cases.cpp:252: iAGnss_2_0->setServer(IAGnssCallback_2_0::AGnssType::SUPL, “supl.google.com”, 7275);
./hardware/qcom/gps/msm8960/etc/gps.conf:64:SUPL_HOST=supl.google.com
./hardware/qcom/gps/msm8974/etc/gps.conf:62:SUPL_HOST=supl.google.com
./hardware/qcom/gps/msm8084/etc/gps.conf:62:SUPL_HOST=supl.google.com
./hardware/qcom/sdm845/gps/msm8960/etc/gps.conf:64:SUPL_HOST=supl.google.com
./hardware/qcom/sdm845/gps/msm8084/etc/gps.conf:62:SUPL_HOST=supl.google.com
Regain your privacy! Adopt /e/ the unGoogled mobile OS and online services