Factory reset in Android-x86

599 views
Skip to first unread message

Rahul Jain

unread,
Jun 2, 2020, 2:42:10 PM6/2/20
to andro...@googlegroups.com
Hi All,

I am trying to do recovery sequence as I build mesa driver with new changes most of the time it crashes and hangs my machine as surfacflinger crashed and tries to restart itself and desktop don't boot properly.

For handling it, I want to know about factory reset as in our normal mobile phones like recovery mode.

Do it also recover the buggy driver as well?  Like I can keep a good working mesa driver in some directory in the android system and just recover it back with single command whenever I detect a crash or hang with some script?

Where is Factory reset data is present in Android X86?

I am not sure if my understanding is correct regarding the Factory reset or not :) Please let me know if I am wrong.

--
Thanks,
Rahul jain

Ashutosh prusty

unread,
Jun 2, 2020, 3:31:28 PM6/2/20
to Android-x86
What so you mean build new mesa driver & it lead to your android crash. Are you building only mesa driver then replacing files in working android or building android as whole & testing?
If building android as whole, revert to last commit. If replacing files in system.img, without renaming like mesa.old or mesa.bak(example), those replacements are permanent.

In mobile factory reset=clear data partition.
It never reverts any system changes.

Mauro Rossi

unread,
Jun 2, 2020, 4:15:02 PM6/2/20
to Android-x86
Hi, you could use Auto Update option to restore the mesa driver shipped with iso

Chih-Wei Huang

unread,
Jun 2, 2020, 10:38:21 PM6/2/20
to Android-x86
Rahul Jain <talen...@gmail.com> 於 2020年6月3日 週三 上午2:42寫道:
>
> I am trying to do recovery sequence as I build mesa driver with new changes most of the time it crashes and hangs my machine as surfacflinger crashed and tries to restart itself and desktop don't boot properly.
>
> For handling it, I want to know about factory reset as in our normal mobile phones like recovery mode.
>
> Do it also recover the buggy driver as well? Like I can keep a good working mesa driver in some directory in the android system and just recover it back with single command whenever I detect a crash or hang with some script?
>
> Where is Factory reset data is present in Android X86?

You can just remove all data in /data dir in debug mode.

Boot to debug mode, type

exit
rm -rf data/*
exit

Of course, it won't restore the old mesa if it was replaced.

--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Rahul Jain

unread,
Jun 3, 2020, 6:02:14 AM6/3/20
to andro...@googlegroups.com
Thanks for your replies.
Seems like I should write a script rather to change driver and reboot. 

What I understand is only /data/* gets wiped with factory reset which is not the case for me.

Hi Mauro,

How can I enable auto update option to get the lates mesa ?

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/CAKc24n0asCgyoQe%3D6-B_OrCKVTFC0OfaXhzAqDLNm-%2BUsMc7%3Dw%40mail.gmail.com.

Ashutosh prusty

unread,
Jun 3, 2020, 10:49:00 AM6/3/20
to Android-x86


Hi Mauro,

How can I enable auto update option to get the lates mesa ?

No, He didn't meant that.
He meant Auto update that's present in live USB grub option.
It simply replaces system.img from USB as i understand. Not just mesa. Reverts system.img as whole

Rahul Jain

unread,
Jun 3, 2020, 12:43:26 PM6/3/20
to andro...@googlegroups.com
Ohh I get it now. Thanks .

But it seems not going to fit for my case as well. I am thinking of a script instead which can detect if surfaceflinger crashed or not and replace good driver and reboot. 
But problem is surfaceflinger keeps restarting itself which makes feel like system is in hang mode even adb disconnect as surfaceflinger restart zygote as well. 

Any thoughts on this?

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.

Ashutosh prusty

unread,
Jun 3, 2020, 12:50:20 PM6/3/20
to Android-x86


But it seems not going to fit for my case as well. I am thinking of a script instead which can detect if surfaceflinger crashed or not and replace good driver and reboot. 
But problem is surfaceflinger keeps restarting itself which makes feel like system is in hang mode even adb disconnect as surfaceflinger restart zygote as well. 

Btw how did you replaced mesa driver? From inside android & using  file manager?

I would just mount system.img & replace driver.

Rahul Jain

unread,
Jun 3, 2020, 12:53:57 PM6/3/20
to andro...@googlegroups.com
I simply push it via adb and the reboot.

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages