Factory reset Android x86
Go to the homescreen, press the menu button then navigate through:
Settings->Privacy->Factory data reset
Wipe data/Factory reset through ADB
After a lot of digging around I finally ended up downloading the source code of the recovery section of Android. Turns out you can actually send commands to the recovery.
* The arguments which may be supplied in the recovery.command file:
* --send_intent=anystring - write the text out to recovery.intent
* --update_package=path - verify install an OTA package file
* --wipe_data - erase user data (and cache), then reboot
* --wipe_cache - wipe cache (but not user data), then reboot
* --set_encrypted_filesystem=on|off - enables / diasables encrypted fs
Those are the commands you can use according to the one I found but that might be different for modded files. So using adb you can do this:
adb shell
recovery --wipe_data
Using --wipe_data seemed to do what I was looking for which was handy although I have not fully tested this as of yet.
EDIT:
For anyone still using this topic, these commands may change based on which recovery you are using. If you are using Clockword recovery, these commands should still work. You can find other commands in /cache/recovery/command
For more information please see here:
https://github.com/CyanogenMod/android_bootable_recovery/blob/cm-10.2/recovery.c
How to start GUI from command line in Android-x86
To go back to GUI try use Alt+F7
How to install libhoudini on a custom Android x86 rig
So I've actually managed to find a pretty new tutorial about this and I've successfully installed and used libhoudini
on my rig.
The newest Android-x86 isos from http://www.android-x86.org actually have a bash script executable that will help us install libhoudini
. So these are the steps:
- Enable this option:
Settings>Apps Compatibility>Enable Native Bridge
- Go to the Android console (Alt-F1 or install a terminal emulator)
- Login as super user / root
- Run
/system/bin/enable_nativebridge
NOTE: If you look at the script itself, you will see that the script will try to download the needed file if your device doesn't have one. But there's a chance that the server of the file will be down and the wget
will loop indefinitely. If that's the case, this is what you have to do:
- Download the appropriate
houdini.sfs
from https://github.com/rrrfff/libhoudini- Move / copy
houdini.sfs
to/system/etc
- Go to the Android console (Alt-F1 or install a terminal emulator)
- Run
/system/bin/uname
, if it saysx86-64
, renamehoudini.sfs
tohoudini64.sfs
- Run
/system/bin/enable_nativebridge
I hope it helps anyone who wants to run ARM apps on an Android-x86 using libhoudini. Cheers.
Preinstall App on Android x86
The great people at Android x86 helped me solve my question. Here is the best answer I received:
If you just want to put a prebuilt apk to android-x86 image,
that's simple. Just put it to
build/target/board/generic_x86/app/
(for froyo-x86) or
device/common/app/ (for gingerbread-x86).If you hope to build your app with android-x86,
that's another story. Basically speaking,
you need to create an Android.mk for your app.See packages/apps/*/Android.mk as examples.
Thanks, Chih-Wei Huang!
Related Topics
Android Check Null or Empty String in Android
How to Make a New Line or Tab in <String> Xml (Eclipse/Android)
How to Remove Focus from Edittext When User Is Done Editing
Android.Support.V7.App.Activitycompat Not Found
How to Start Android Application on Device Boot
How to Clear Navigation Stack After Navigating to Another Fragment in Android
Android Kotlin Call a Function in Other Activity
Can't Create Handler Inside Thread That Has Not Called Looper.Prepare()
How to Use Python to Execute Adb Commands
How to Set the Height of an Item Row in Gridlayoutmanager
Android No on Screen Keybord ( Only Voice )
Images Are Not Visible in React-Native App Release Build
Missing Android Platform(S) Detected
Super.Onbackpressed() and Finish() Exits the App