yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] cyprien T:
hi there is a way to install Windows or linux on my Nexus 5 with EFIdroid?
[Android Software/Hacking General [Developers Only]] cyprien T:
to know how to install it?
[Android Software/Hacking General [Developers Only]] jcmm11:
Simplest way to install Linux is something like https://play.google.com/store/apps/details?id=com.gnuroot.debian

Harder way is to roll your own using chroot. If that's the way you really want to go then Google is your friend.
[Android Software/Hacking General [Developers Only]] mirfatif:
Can we modify bootloader to load kernel from some location other than eMMC? I want to boot from external SD card, talking in this context: https://xdaforums.com/android/help/how-to-boot-sd-card-qmobile-z8-bricked-t3712171
[Android Software/Hacking General [Developers Only]] m11kkaa:
You can boot everything from emmc that comes after EFIDroid. EFIDroid supports sdcards on all devices but resides itself on the boot and recovery partitions of your device.

So if only data/cache/system are damaged you can indeed boot EFIDroid BUT you probably need to compile it yourself so you can tell it to store the ESP on the sdcard instead of /data/media/0/UEFIESP.
[Android Software/Hacking General [Developers Only]] mirfatif:
That's the problem. system, userdata, cache, boot, recovery all are inaccessible. Formatting, e2fsck, even 'parted rm' doesn't work. But fortunately it makes its way to bootloader somehow and is stuck there in fastboot mode. So I need to replace/modify my bootloader to avoid halting of boot process chain.

Anyway sir thanks for your response. It's an honor talking to you. I have used EFIDroid on Nokia X2 and it's an amazing project. It's simplicity and straightforward way of working is more than awesome. I really want to see it growing, will try to compile it for my current device RN4 mido, though I'm zero in development :)
[Android Software/Hacking General [Developers Only]] m11kkaa:
The problem is that most devices use signed bootloader so I guess you're stuck with sideloading boot images using fastboot.

Thanks for liking the project :) I'm currently completely rewriting the project so porting new devices is something that doesn't make much sense right now but you can try when it's more stable :)
[Android Software/Hacking General [Developers Only]] cyprien T:
Efidroid Nexus 6p ?
[Android Software/Hacking General [Developers Only]] madhits45:
Hi m11kkaa,

Can you add support for an android 4.2 device? I have an asus Trio TX201LA with an intel z2560 quad core cpu with 2gb of ram. Having EFIDroid compatibility would make this tablet awesome again. Id be willing to test of course. Please consider adding support, I can provide any information you may need about the device.
[Android Software/Hacking General [Developers Only]] 7root:
He actually needs to own the device in order to compile it for that particular SoC. So you'll have to go through the porting process by yourself.
[Android Software/Hacking General [Developers Only]] fxsheep:
An Intel x86 device? Then you may use grub2, rEFInd or other PC bootloaders to have a try.

This only support qcom chipsets, it won't make any sense even if it's ported to x86
[Android Software/Hacking General [Developers Only]] m11kkaa:
Is it actually an Intel device? from what I understand there's an x86 cpu in the keyboard and an Android CPU in the screen.

EDIT: both seem to be intel(the Android one seems to be an Intel Atom).

So the important question is: does the atom use UEFI already?
[Android Software/Hacking General [Developers Only]] fxsheep:
Well, I once heard that UEFI can be emulated, on the bios firmware.
[Android Software/Hacking General [Developers Only]] m11kkaa:
that is true - using DuetPkg. Though I don't know about it's speed and stability since it's deprecated in favor of native implementations:

https://github.com/tianocore/tianocore.github.io/wiki/DuetPkg
[Android Software/Hacking General [Developers Only]] aksrocks:
Bug on OnePlus One makes this software useless

Bug on the OPO (bacon). After installing EFIDroid, irrespective of the rom you flash if you try to flash gapps the system reboots and gives the message "Previous Boot Failed. Cant allocate child memory -9" or the error 139.

This happens on all primary as well as secondary roms.

If you uninstall EFIDroid, then flashing gapps is successful without any errors. This makes the app completely useless.

It seems like a small error to correct, can someone please look into it? Otherwise such a powerful piece of software.
[Android Software/Hacking General [Developers Only]] madhits45:
The tx201la tablet atom soc uses droidboot and the asus zenphone has the same soc and does have an unlock method for droidboot. I have yet to try to unlock it thought.

I guess what you are getting at is if I dont have UEFI on the tablet no EFIDroid right?
[Android Software/Hacking General [Developers Only]] Curi0:
I think this can run Windows now that Microsoft released Windows 10 ARM64 and it has been ported to the Raspberry Pi
[Android Software/Hacking General [Developers Only]] machetie:
Any proof to that?
[Android Software/Hacking General [Developers Only]] Curi0:
https://github.com/andreiw/RaspberryPiPkg/issues/12

---------- Post added at 03:47 AM ---------- Previous post was at 03:46 AM ----------

They probably can be extracted from Snapdragon Windows phones
[Android Software/Hacking General [Developers Only]] Curi0:
Some guy got Windows ARM64 on a Windows Phone so maybe it is possible
[Android Software/Hacking General [Developers Only]] Baggistrumps:
Any update on the project?
[Android Software/Hacking General [Developers Only]] zaibansari20:
I'm thinking that Efidroid uses fastboot but my LG G2 doesn't have a fastboot mode..

So what should I do to port it to my device
[Android Software/Hacking General [Developers Only]] joopy101:
First of all, I really like your project. It looks like the only good dual boot solution for Android. :good:

But there are some things I would like to know:

1) Is internal storage (the files you see in file explorer) shared between ROMs? Do I have to download files for every ROM or can I just download them in one ROM and access them in all other ROMs?

2) Is the TWRP that you get when clicking TWRP -> your primary ROM the same as the one you can get when you go to fastboot -> recovery mode?

3) Is the "rewrite" finished?

If so, I would like to Port it to my Moto g5 plus (Potter - msm8953).

msm8953 is not yet officially supported I think, so probably I have to wait for it.
[Android Software/Hacking General [Developers Only]] MetalmanIX:
How do I get rid of this without using the app? I updated my TWRP and it cant load it anymore because of ramdisk errors. I got a bootloop on the ROM and cant even use recovery to fix anything. I ve got a brick right now because of this. How do I remove it? Is fastboot my only option?
[Android Software/Hacking General [Developers Only]] m11kkaa:
Inside UEFI, select TWRP, long-press the power key, and select unpatched boot.

If that doesn't work, then fastboot is your only option.
[Android Software/Hacking General [Developers Only]] MetalmanIX:
Thank you for your fast answer. No solution worked and my phone was hardbricked at the end. Fortunately I found a guide and unbricked it.

Looking forward to your new EFI.
[Android Software/Hacking General [Developers Only]] MasterCATZ:
amlogic p201 tvbox ?
[Android Software/Hacking General [Developers Only]] SnowFuhrer:
Is it simple enough to tell me how to port it?
[Android Software/Hacking General [Developers Only]] SnowFuhrer:
Ok, I thought I had read it was easy to port. I don't know much about that kind of stuff though.
[Android Software/Hacking General [Developers Only]] SnowFuhrer:
Why isn't it? Is it not the same as it was when it came out?
[Android Software/Hacking General [Developers Only]] SnowFuhrer:
So it would work on armv7 then?
[Android Software/Hacking General [Developers Only]] SnowFuhrer:
I would like it for a 5.1.1 phone but I think it's getting ported. Also for Samsung but its arm64 and running 8.0. So I doubt it will happen unless I suddenly get really smart haha.
[Android Software/Hacking General [Developers Only]] Fara_98:
Hi how I can a fix it?

/home/FaraS/Загрузки/efidroid/bootloader/lk/qcom/LA.BR»

write /home/FaraS/Загрузки/efidroid/out/device/asus/ze550kl/lk_kernel/fdt_out/0.dtb

write /home/FaraS/Загрузки/efidroid/out/device/asus/ze550kl/lk_kernel/fdt_out/1.dtb

write /home/FaraS/Загрузки/efidroid/out/device/asus/ze550kl/lk_kernel/fdt_out/2.dtb

write /home/FaraS/Загрузки/efidroid/out/device/asus/ze550kl/lk_kernel/fdt_out/3.dtb

/home/FaraS/Загрузки/efidroid/out/host/dtbtools/dtbefidroidify /home/FaraS/Загрузки/efidroid/out/device/asus/ze550kl/lk_kernel/fdt_out /home/FaraS/Загрузки/efidroid/out/device/asus/ze550kl/lk_kernel/fdtpatched_out 1 qcom

Processing 0.dtb

Can't open file 0.dtb

make[1]: *** [out/build.mk:1029: lk_kernel] Ошибка 255
[Android Software/Hacking General [Developers Only]] guest4711:
Perhaps you should use ASCII in file and directory names.

Move the efidroid folder into /usr/local, change folder permissions to 0777 and try again.
[Android Software/Hacking General [Developers Only]] aiamuzz:
Hi,

Just want to know if efidroid is alive and kicking ?

Does it support devices that run Android 9 & Android 10 ?

thanks.
[Android Software/Hacking General [Developers Only]] noidodroid:
Just want to say thanks to [MENTION=3530648]m11kkaa[/MENTION] , others involved and of course UEFI for if which we had not.. then it would have never left the shell of it's PC and decided to journey over to the Android world resulting in this beautiful PRJ that seems to have taken MultiROM to a whole other level of custom.

I look forward to putting it to use soon on some older devices who are in much need of some custom TLC.

Any further information, latest use and feedback or anything else on EFIDroid here on XDA or elsewhere? Would love to get some feedback and soak up as much as I can on the Droid UEFI precious.
[Android Software/Hacking General [Developers Only]] aiamuzz:
Credit to the people behind this project ... but unfortunately this great project has come to an end ... one of the primary dev's behind this proj just confirmed that its not logical to support this project on Android 9 & 10 ... nevertheless ... a valiant effort !!!
[Android Software/Hacking General [Developers Only]] noidodroid:
I still wouldn't mind using it on older devices.
[Android Software/Hacking General [Developers Only]] madhits45:
Yes I agree this needs to LIVE on so older devices Android 4-7 can run newer OS's. I have a few android 4 devices that got left for dead to go to the dump and I refuse to let this happen on this perfectly working tablets/phones.

Your app would allow my x86 android 4-7 device to run a newer OS if only you kept working on it. :(
[Android Software/Hacking General [Developers Only]] m11kkaa:
well if there aren't any problems then even your grandma should be able to port it :P

https://github.com/efidroid/projectmanagement/wiki/[EFIDroid]-Porting-a-new-device

if there are, just come visit on slack and I'll help you out.
[Android Software/Hacking General [Developers Only]] rickliu2000:
Cool I was thinking of booting the darwin with it

Maybe its possible for future great developers to boot the clover and run ios on it。Or maybe arm osx in rumor , :D:D
[Android Software/Hacking General [Developers Only]] m11kkaa:
afaik - unlike OSX - iOS doesn't use EFI. and even if it would, this doesn't automatically give you the possibility to boot it on any device. (U)EFI is just for booting the OS, how many drivers are implemented using stuff like ACPI and how much needs full kernel drivers is up to the OS designer.

And looking at how many driver kernel modules both OSX and Linux need in UEFI boot mode I'd say UEFI does almost nothing.
[Android Software/Hacking General [Developers Only]] king960:
Hey, I compiled nouefi lk for Xperia z3 Compact.

I tried to boot it with "fastboot boot lk.img", The device returned status that image was flashed propely, LED light remained blue as if device was still in fastboot mode, but I couldn't communicate with device. ( fastboot devices didn't show any devices connected) Xperia Z3 Compact has the same CPU as 1+1 (msm8974AC) What could be wrong?
[Android Software/Hacking General [Developers Only]] king960:
I synced the repo, added device using my compiled boot img (stock with little mod. - working ), then compiled lk for sony/aries as added and chosed msm8974, Then I did as I said in the last post, LED was still blue, no fastboot communication with device and the finalize_device command also didn't work (like it was waiting for fastboot)

DT command, you mean when I am using dtbtool I have to add command from wiki? Also I used dtbtoolCM for preparing DT.img but it isn't a problem, is it?
[Android Software/Hacking General [Developers Only]] king960:
NVM I just solved it, The kernel wasn't booting, The dt.img wasn't prepared correctly.
[Android Software/Hacking General [Developers Only]] gregrwm:
could i get some clues of the principal of operation? will alternate roms run on the sdcard, or slower for other reasons? likely to port successfully to the sgh-t989?
[Android Software/Hacking General [Developers Only]] m11kkaa:
rom's can be stored on any filesystem, but usually either internal memory(datamedia) or sdcards are used.

The speed depends on the the speed of the sdcard. If you're using it in adoptable mode it's encrypted which makes it even slower.

the device uses a qcom APQ8060 wich is part of the msm8960 family so it should be pretty easy to port.
[Android Software/Hacking General [Developers Only]] Mike0505:
[MENTION=3530648]m11kkaa[/MENTION]

Kind request if Xiaomi Mi Max Pro - helium , can be added to supported devices ?

Thanks!
[Android Software/Hacking General [Developers Only]] m11kkaa:
if you find sbd. who ports efidroid to this device, ofc.
[Android Software/Hacking General [Developers Only]] InterestingTwist:
[MENTION=6746969]Whalerus[/MENTION]

Could probably help on this project.
[Android Software/Hacking General [Developers Only]] Lyokacanthrope:
Colour me as interested. I'd love to attempt to work on this for Kenzo (Redmi Note 3) and help advance the port to hlte (GSM Galaxy Note 3)...All the android devices I have right now, sadly.

Except for the Shield Tablet but that's not QCOM, so... :B
[Android Software/Hacking General [Developers Only]] admuerte:
Can we expect new update?

Išsiųsta naudojantis A0001 Tapatalk 4 Lt
[Android Software/Hacking General [Developers Only]] m11kkaa:
I was a little limited in time but since that's over now I'll look into some issues which prevent devices from becoming official(Like Nexus5's dtb selection).

Also sbd. sponsored me a Xiaomi Mi4c which is still on it's way which will not just help to get this specific device working but also 64bit devices in general.
[Android Software/Hacking General [Developers Only]] musklor:
Hello, anyone tried with an opo?
[Android Software/Hacking General [Developers Only]] m11kkaa:
check the OP, this device is already supported (though unstable atm)
[Android Software/Hacking General [Developers Only]] musklor:
Yes and it works on my OPO

Cm (infernal) and the second ROM RR 7.1

Reboot on recovery and go to multiboot/média/0/

Install ROM and gapps

Reboot and choose your ROM
[Android Software/Hacking General [Developers Only]] xeph20:
I'm very interested.

So it doesnt need a custom recovery like multirom? any recovery will do?

and it has no problem directly flasking cm14.1 nightly as secondary? because multirom has many problems :)

Edit: is it possible to update the roms ota? Or should it fully be reflected and data removed?
[Android Software/Hacking General [Developers Only]] musklor:
No need multirom.

Twrp official will do.

Read carefuly, it's not the same philosophy.

I'll try for the ota.

A guide : https://z3ntu.github.io/2016/11/01/Install-and-configure-efidroid.html

At the end choose multiboot/media/0.

Install ROM and gapps. Reboot and enjoy.

Guide for opo.

Ã‰dit : arg I can't flash gapps, only ROM (RR)
[Android Software/Hacking General [Developers Only]] musklor:
In efidroid app, don't update for the moment. Can't boot anymore "unable to find a suitable device tree for device".

I had to do " fastboot flash boot boot.img"

(Boot.img from cm 14.1)
[Android Software/Hacking General [Developers Only]] Adriano-A3:
You can try to trebelize your devices. That's not hard to do. I mean, create vendor partition. Many Samsung J (e.g J7 2016)and A were trebelized, also some Leeco (e.g Le Max 2).

Just read the tutorial carefully, analise the given zips and try to adapt the steps to your devices. It's all about gparted and mathematics.
[Android Software/Hacking General [Developers Only]] J.V.B.:
If this project was still alive it could have been used to run windows on arm on every android device. I hope a similar project will come along one day.
[Android Software/Hacking General [Developers Only]] dharmabm:
Why in the world would anyone want to do that?! ?
[Android Software/Hacking General [Developers Only]] J.V.B.:
To have full desktop windows with upcoming x86_64bit support and use display over usb. This way you have a portable windows machine which you can put in tablet mode. Check the windows on lumia project for the lumia 950(xl).
[Android Software/Hacking General [Developers Only]] fxsheep:
Far from it.You didn't take ACPI and drivers into account.
[Android Software/Hacking General [Developers Only]] J.V.B.:
Oh yeah. But at least the process of doing that would be a lot easier than all the work that is being done to get it on lumia 950(xl), rpi 3, rpi 4. Windows on arm really is a cool thing.
[Android Software/Hacking General [Developers Only]] mark251107:
Asus zb602kl

Can you pls port efidroid to asus zb602kl?
[Android Software/Hacking General [Developers Only]] m11kkaa:
which device?
[Android Software/Hacking General [Developers Only]] rluque35:
hi, i have a problem, maybe some can help me, i have a oneplus one, TWRP 3.0.2, and my rom is TugaPower N9, based on CM 14.1/Android 7.1, i have installed efimanager and figured out how to create and boot to TWRP for a secondary rom, the problem is when i try to install the secondary rom there is nothing on sdcard, i can mount OTG usb drive and then when i try to flash the secondary rom, it aborts stating system can not be mounted because of an invalid argument, anybody has had the same problem? am i doing someting wrong? any help would be greatly appreciated. thanks
[Android Software/Hacking General [Developers Only]] m11kkaa:
sounds like your ROM doesn't support creating the filesystem. try to do that manually for /system in TWRP's partition manager.
[Android Software/Hacking General [Developers Only]] rluque35:
thanks, i have no idea how to do that. i'll read around on how to do it.

thanks.

---------- Post added at 05:04 PM ---------- Previous post was at 04:52 PM ----------

i will try a different primary rom, any rom you would recommend that works as primary for efiDroid, im thinking pure nexus por OPO.

thanks.
[Android Software/Hacking General [Developers Only]] m11kkaa:
I don'T have a OPO but in theory any rom should work :P (at least when the maintainer fixed the new booting bugs).
[Android Software/Hacking General [Developers Only]] admuerte:
On OPO for me the same. Reported via github

IÅ¡siÅ³sta naudojantis A0001 Tapatalk 4 Lt
[Android Software/Hacking General [Developers Only]] musklor:
Opo

---------- Post added at 10:35 PM ---------- Previous post was at 10:31 PM ----------

Read #41
[Android Software/Hacking General [Developers Only]] m11kkaa:
I've just published a new build for 1+1 and I hope that the critical bugs are fixed now.

I'm sorry for the problem and this just shows me that some devices need more testing.
[Android Software/Hacking General [Developers Only]] musklor:
OK I can boot, install ROM and gapps. (I tried with cm14.1 with open gapps)

Thx a lot
[Android Software/Hacking General [Developers Only]] :
Does this work on Z3 Compact? For me it says it cannot find value for sony/aries
[Android Software/Hacking General [Developers Only]] m11kkaa:
this has to be ported for every device separately, check the compatibility list in the OP
[Android Software/Hacking General [Developers Only]] :
Okay thanks for answering
[Android Software/Hacking General [Developers Only]] m11kkaa:
support for two new devices :)

- motorola/peregrine (Motorola Moto G 4G)

- pantech/ef63 (Vega Iron 2)

Also, new builds for all devices :)
[Android Software/Hacking General [Developers Only]] symbuzzer:
My Nokia X2 (ara) devise is encrypted due my firm policies. So I tried to install manually.

- I flashed lk.img via fastboot flash boot lk.img

- I can reach efidroid's menu

- But I can't add installed rom and twrp recovery from there (I know I should use android app. But I can't use efidroid's android app, because of my data partition is encrypted - it show's not supported message when I click install button)

So is there any way to add my rom and recovery manually, like editing a xml based config file etc?

Also I am developer of Multibootloader for Nokia X2. I think I have right skills to understand you ;)
[Android Software/Hacking General [Developers Only]] m11kkaa:
if your data partition is encrypted then there's no way for UEFI to read from that. You'd have to store your multiboot rom's on another unencrypted partition(sdcard?)
[Android Software/Hacking General [Developers Only]] symbuzzer:
Okay, I only use 1 rom and 1 recovery for now. I only test efidroid, dont want to use multi-roms. Still need step by step instructions...
[Android Software/Hacking General [Developers Only]] m11kkaa:
"1 rom and 1 recovery" do you mean the internal rom by that? if not then it's still multibooting even if it's only 1 additional ROM ;)

Another problem I just remembered is that uefi stores copies of the boot and recovery partitions inside /data/media which means you can't even boot the internal ROM if /data is encrypted.

So you have to compile efidroid yourself and change the esp location to your sdcard.
[Android Software/Hacking General [Developers Only]] symbuzzer:
Thanks for your help. Can you explain, its working procedure?

What LK does with these (boot and recovery images) during boot time? It flashes them on recovery and reboot recovery to start kernel? Or what?
[Android Software/Hacking General [Developers Only]] m11kkaa:
uefi gets flashed to both the boot and recovery partition and created loop images on the data partition.

UEFI obviously knows about that and always boots from the loop images, The whole recovery system is being ptraced to redirect all access to the loop images.

In Android the replacement is done by patching both fstab and /dev before anything else loads.
[Android Software/Hacking General [Developers Only]] symbuzzer:
this is great, good work. thanks...
[Android Software/Hacking General [Developers Only]] zaibansari20:
So what are the main requirements to make a device supported by your mod
[Android Software/Hacking General [Developers Only]] m11kkaa:
In theory any qualcomm device should do. 64bit support is somewhere at 95% but should generally work already.

There've been a few device which either can't boot LK or can boot LK but can't boot UEFI.

Just follow the porting guide and try :)
[Android Software/Hacking General [Developers Only]] zaibansari20:
What about Snapdragon 600 device
[Android Software/Hacking General [Developers Only]] m11kkaa:
I said "any", so yes, this should work too :)
[Android Software/Hacking General [Developers Only]] Mis012:
Hello, I would like to know if there is some summary of what other processor brands were looked into and what were the outcomes. The brand I am most interested in is spreadtrum which lots of lower end samsung phones use. I didn't find any useful info on the internet so maybe you did?

Just to say I for some reason really like UEFI, although the specification should force secure boot -ish functions to be disable-able, but still it's like locked/unlocked bootloaders so whatever.