Giter VIP home page Giter VIP logo

android_device_emulator_twrp's Introduction

Team Win Recovery Project (TWRP)

This is a set of device configs that you can use to build and test TWRP in the Android emulator. Note that adb will take about 10 to 15 seconds after TWRP is booted to become available. Just wait and it will come online eventually.

This branch of the device configs is intended to be used with Android 5.1.1 system image. In order to create fake boot and recovery partitions, you will have to boot the emulator with a custom kernel. We simply added support for reading a partition table to the kernel configuration. The source for this kernel is located here:

Kernel Source

To boot this in the emulator, build your recoveryimage. With the Android emulator make a new device based on a Galaxy Nexus. Name it TWRP. Allow it to have a hardware keyboard and a sdcard sized to 2000MB. Give it a decent sized data partition like 2000MB or more. TWRP will be using the data partition as an emulated storage setup as seen on most modern Android devices, so having some extra room may help. Then from your android-sdk/tools folder run the following command:

./emulator -avd TWRP -ramdisk ~/omni_folder/out/target/product/twrp/ramdisk-recovery.img -kernel ~/omni_folder/device/emulator/twrp/goldfish_3.4_kernel

After the first boot, wait for ADB to start up, then: adb shell /sbin/create_partitions.sh

This script will partition the sdcard with a boot, recovery, cache, and removable sdcard partition. It's designed to work with a 2000MiB sdcard. If you want a different sdcard size then you will need to modify the script in the omni_folder/device/emulator/twrp/recovery/root/sbin/create_partitions.sh location to suit your needs.

You can find a compiling guide for TWRP here.

More information about the project.

If you have code changes to submit those should be pushed to OmniROM's gerrit instance. A guide can be found here.

android_device_emulator_twrp's People

Contributors

bigbiff avatar dees-troy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android_device_emulator_twrp's Issues

[ISSUE]Cannot boot 3.4.0-0 in AVD

@Dees-Troy

I have installed Android 4.4.2 armeabi-v7a with SDK Tools 24.2.0 with Galaxy Nexus as Target, Skin HVGA and 1500MiB as SDCARD.

TWRP 3.4.0-0 (and all 3.x) version(s) are not booting at all with above said AVD configuration. Last version booting is 2.8.5.0 in my AVD with 3.4 goldfish kernel from android-4.4 branch.

All the images above 2.7.0.1 except 2.8.0.1 are Android boot.img format, that is the reason TWRP may not boot. We have to unpack it and pack ramdisk.cpio as gzip(?).
2.6.3.0 is working fine with all skins available.
2.8.5.0 is working fine with all skins but not 2.8.0.0.

I don't know if we have to use it in specific android avd or not.

As @dadreamer said here, we have to use it in arm architecture AVD only!(?)

Please correct me if I am wrong. Since there is no simple guide which explains all these things, I am not sure how to choose which version of Android AVD, which version of kernel to choose and lastly which version of TWRP to use.

More instructions like answering above small questions at https://twrp.me/twrp/androidemulator.html will help people like me.

Thanks

Is there possible implementation for Genymotion Emulators? / How to install XposedFramework on Genymotion

Just a question.
I spent some time on researching, but the only one that was worth looking at was How to flash zip on Genymotion programmatically ~ StackOverflow, though it seems too old to be working, I get

Archive:  /sdcard/Download/twrp-2.8.6.0-d802.zip
  inflating: META-INF/MANIFEST.MF
  inflating: META-INF/CERT.SF
  inflating: META-INF/CERT.RSA
  inflating: META-INF/com/google/android/update-binary
  inflating: META-INF/com/google/android/updater-script
  inflating: recovery.img
  inflating: tmp/loki.sh
  inflating: tmp/loki/loki_flash
  inflating: tmp/loki/loki_patch
[flash_archive] Remount /system in rw
[flash_archive] Start file install
[ERROR][flash_archive] META-INF/com/google/android/update-binary is an ARM binary, using system updater
find: system/lib/: No such file or directory
  adding: META-INF/ (stored 0%)
  adding: META-INF/MANIFEST.MF (deflated 39%)
  adding: META-INF/CERT.SF (deflated 40%)
  adding: META-INF/CERT.RSA (deflated 33%)
  adding: META-INF/com/ (stored 0%)
  adding: META-INF/com/google/ (stored 0%)
  adding: META-INF/com/google/android/ (stored 0%)
  adding: META-INF/com/google/android/update-binary (deflated 35%)
  adding: META-INF/com/google/android/updater-script (deflated 54%)
  adding: recovery.img (deflated 5%)
  adding: tmp/ (stored 0%)
  adding: tmp/loki.sh (deflated 48%)
  adding: tmp/loki/ (stored 0%)
  adding: tmp/loki/loki_flash (deflated 34%)
  adding: tmp/loki/loki_patch (deflated 33%)
chmod: updater: No such file or directory
[ERROR][execute_update_binary] execution of update-binary ended with errors
[ERROR]{Result:KO};

Is there a way to get TWRP Working on Genymotion then?

qemu

when i want to start the avd to twrp i get this error

qemu: linux kernel too old to load a ram disk
can someone help me with a solution because i tried everything and i also updated qemu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.