[EN] How to fix RIL (Radio Interface Layer) crash loop
Possible Symptoms:
Cellular connectivity is constantly flapping (cycles between working and "no service" every few seconds)
Unable to make phone calls
If you have at least 2 of these symptoms, you likely received a malformed WAP Push (Remote Modem Crash / SMS of Death). In short, it causes a telephony framework / modem crash loop.
How to Fix
After these actions, you need reboot your phone
[RU] Как фиксить крашлуп RIL (Radio Interface Layer)
Возможные симптомы
- Вечно крашится com.android.phone
- Вечно пропадает связь (то связь работает, то нет)
- Невозможно позвонить
Если у вас хотя бы 2 из этих симптома - вам закинули WAP Push Remote Modem Crash.
Если в кратце - краш модема.
Как дефать
После этого перезагружаем телефон
Possible Symptoms:
com.android.phone crashes constantlyCellular connectivity is constantly flapping (cycles between working and "no service" every few seconds)
Unable to make phone calls
If you have at least 2 of these symptoms, you likely received a malformed WAP Push (Remote Modem Crash / SMS of Death). In short, it causes a telephony framework / modem crash loop.
How to Fix
1) Turn on Airplane Mode.
2) Connect your phone to your PC via ADB.
3) Run the following commands ONE BY ONE:
1. Find the bad entries. Look for WAP Push rows (destination_port=134020) and note down their address (sender's number):
adb shell content query --uri content://sms/raw --projection _id:destination_port:date:deleted
2. Allow the shell to edit SMS storage:
adb shell cmd appops set com.android.shell WRITE_SMS allow
3. Delete only the malicious entries. Replace <SENDER> with the sender address/number from Step 1:
adb shell "content delete --uri content://sms/raw --where \"address='<SENDER>'\""
(Alternatively, delete by specific ID if address is empty: adb shell "content delete --uri content://sms/raw --where \"_id=<ID>\"")
4. Reset the permission back to default:
adb shell cmd appops set com.android.shell WRITE_SMS default
The Nuclear Option
If you don't care about keeping your message history and just want an instant fix without parsing IDs, clear all SMS/MMS, telephony database, and APN settings completely:
adb shell pm clear com.android.providers.telephony
After these actions, you need reboot your phone
[RU] Как фиксить крашлуп RIL (Radio Interface Layer)
Возможные симптомы
- Вечно крашится com.android.phone
- Вечно пропадает связь (то связь работает, то нет)
- Невозможно позвонить
Если у вас хотя бы 2 из этих симптома - вам закинули WAP Push Remote Modem Crash.
Если в кратце - краш модема.
Как дефать
1) Перейдите в авиарежим
2) Подключите телефон к компу по adb
3) Вводим команды ПО ОЧЕРЕДИ
Ищите строки WAP Push (порт назначения destination_port=134020) и запишите их адрес (номер пранкера)
adb shell content query --uri content://sms/raw --projection _id:destination_port:date:deleted
Разрешите шеллу изменять хранилище SMS:
adb shell cmd appops set com.android.shell WRITE_SMS allow
Удалите только эти записи. Замените <SENDER> на адрес (номер пранкера), полученный на шаге 1:
adb shell "content delete --uri content://sms/raw --where \"address='<SENDER>'\""
Сбрасываем разрешения
adb shell cmd appops set com.android.shell WRITE_SMS default
Если вам настолько лень, вы можете очистить нахуй все настройки SMS/MMS и APN
adb shell pm clear com.android.providers.telephony
После этого перезагружаем телефон
👍1