[Galaxy S II General] Troubadour666:
[HowTo]I think I eradicate "unfortunately, the process com.android.phone has stopped"

Hi researchers :)

Hope what i explain here could help with this error message we can encountered several times after a flash

message is :

unfortunately, the process com.android.phone has stopped

what i test :

- i restore my personal dualboot NeatRom LSW 4.8 (thanks again to [MENTION=3690986]_Sale_[/MENTION]) in 1rst rom.

- i mod as i like to do it for 1rst rom this LSD rom, thanks to [MENTION=4822300]rrgrrg[/MENTION] too.

what my ziptest countain:

- I change zImage by DorimanX image.

- I delete lines relatives with modem in updater-script.

- I add efs_backup.sh and symlink_secdata process.

- so i give some tries with this new "ziptest" over my neatrom in 1rst rom, and results are :

result of 1rst test, rom booted fine except message : "unfortunately, the process com.android.phone has stopped" and ATM i though about modem, so i replace libsec-ril.so in zip rom, restore my Neatrom, reflash ziptest.

2nd result , rom booted fine with "unfortunately, the process com.android.phone has stopped" message.

Again, i restored my neatrom and this time I reboot my best 2nd [MENTION=4968043]Biftor[/MENTION] rom and on PC opened WINSCP, I decided to have a look in \data_pri_rom\data\ folder of my tel (in fact its neatrom data folder available in 2nd rom runing) and i see some interested folders with "radio" owner and group :)

i deleted these 5 folders :

com.android.providers.telephony

com.android.phone

com.samsung.sec.android.application.csc

com.android.stk

com.android.Preconfig

i reboot recovery and flash my ziptest.

3th result and verdict is No ERROR MESSAGE at 1rst boot :)

Finaly, i found the lines i have to add during updater-script process to avoid the error message at boot :

part of initial personnal lines in my updater-script

delete_recursive("/system");
delete_recursive("/cache");
delete_recursive("/data/sec_data");
delete_recursive("/data/dalvik-cache");
delete("/data/system/batterystats.bin");
delete_recursive("/data/data/com.android.SystemUI");
delete_recursive("/data/data/com.android.providers.settings");
delete_recursive("/data/data/com.android.settings");
delete_recursive("/data/data/com.android.vending");
delete_recursive("/data/data/com.android.providers.downloads");
delete_recursive("/data/data/com.google.android.gsf");
ui_print("Mounting!...");
sleep(5);
ui_print("Extracting Data...");

added lines to avoid "unfortunately, the process com.android.phone has stopped" message

delete_recursive("/system");
delete_recursive("/cache");
delete_recursive("/data/sec_data");
delete_recursive("/data/dalvik-cache");
delete("/data/system/batterystats.bin");
delete_recursive("/data/data/com.android.SystemUI");
delete_recursive("/data/data/com.android.providers.settings");
delete_recursive("/data/data/com.android.settings");
delete_recursive("/data/data/com.android.vending");
delete_recursive("/data/data/com.android.providers.downloads");
delete_recursive("/data/data/com.google.android.gsf");
[COLOR="DarkRed"]
delete_recursive("/data/data/com.android.phone");
delete_recursive("/data/data/com.android.providers.telephony");
delete_recursive("/data/data/com.samsung.sec.android.application.csc");
[/COLOR]
ui_print("Mounting!...");
sleep(5);
ui_print("Extracting Data...");

ATTENTION:

delete_recursive("/data/data/com.android.providers.telephony"); line will delete all mms and sms in rom your have before flash of ziptest

to keep sms and mms in rom, we can use these lines :

delete("/data/data/com.android.providers.telephony/databases/nwk_info.db-journal");

delete("/data/data/com.android.providers.telephony/databases/telephony.db-journal");

delete("/data/data/com.android.providers.telephony/databases/nwk_info.db");

delete("/data/data/com.android.providers.telephony/databases/telephony.db");

delete("/data/data/com.android.providers.telephony/shared_prefs/preferred-apn.xml"):

delete("/data/data/com.android.phone/shared_prefs/com.android.phone_preferences.xml");

i add this lastest in list because this one is re-generated if deleted before flash, with its good contents.

so mmssms.db*.* files will not be deleted .

All is fine here now.

I expect some feedbacks about this.

anw thanks for reading.