EFIDroid for the Samsung Galaxy Note 4/Note Edge (Snapdragon Variants)

Search This thread

goolby

Senior Member
Feb 8, 2010
83
30
Baia Mare
Unfortunately, this isn't enough. Logcats get cleared on reboot, so this wouldn't have any info on why the 2ndary ROM wasn't booting.

I suspect something in the setup, as some people have had success with the N910F... Do you mind posting screenshots of the OS slot config from the EFIDroid Manager app?

Sent from my Samsung Galaxy Note 4 using XDA Labs

Here you go :good:
 

Attachments

  • Screenshot_2017-03-22-15-07-59.jpg
    Screenshot_2017-03-22-15-07-59.jpg
    117.3 KB · Views: 395
  • Screenshot_2017-03-22-15-08-04.jpg
    Screenshot_2017-03-22-15-08-04.jpg
    124 KB · Views: 390
  • Like
Reactions: abraha2d

dhplap

Senior Member
Oct 8, 2015
878
171
N.Y.
Why hello @dhplap! You should be fine with NSeven as your primary. Just make sure you go and change your build.prop to reflect a code name of trltevzw, instead of whatever the note 7 one is...

AFAIK, you can't boot nandroid backups (you may be able to with some trickery, I don't know much about the format of a nandroid backup. Never done one myself). I can look into it and report back.

Sent from my Samsung Galaxy Note 4 using XDA Labs

Awesome, Thank you!
 

goolby

Senior Member
Feb 8, 2010
83
30
Baia Mare
This seems fine, just like my setup. I don't know what's going on. Maybe @petbede could post his setup, and you guys could compare...

Honestly, without a logcat, I don't know where to start.

Sent from my Samsung Galaxy Note 4 using XDA Labs

It's working now but I had to set "Force selinux to permissive" in the EFIDroid boot loader settings. I tried with EmotionOS and LineageOS and both are working.

Thank you for your work :good:
 
Last edited:

abraha2d

Senior Member
May 15, 2016
227
129
Atlanta, GA
i9100
Verizon LG G2
It's working now but I had to set "Force selinux to permissive" in the EFIDroid boot loader settings. I tried with EmotionOS and LineageOS and both are working.

Thank you for your work :good:

No problem, but there's some deeper problem here... "Force selinux to permissive" is a sort of band-aid fix... :confused:
Maybe @m11kkaa can weigh in...
 

Kawalpreet Juneja

Senior Member
May 6, 2014
303
146
25
Bhopal
@abraha2d

Hi?
Everything is perfect on my side.
Just wanted to know, where does ROM boot from? If it's internal storage, then, I shouldn't be able to access internal storage on the secondary ROM. Or EFIDroid makes partition?
Is it okay to install heavy touchwiz ROM along with primary touchwiz and secondary AOSP?
How can I change stock name and icon on boot screen? Is there a way to add primary ROM option in app to change it's icon and name?
Well. No thanks is enough for your help. But again, Thank You!
 

abraha2d

Senior Member
May 15, 2016
227
129
Atlanta, GA
i9100
Verizon LG G2
@abraha2d

Hi?
Everything is perfect on my side.
Just wanted to know, where does ROM boot from? If it's internal storage, then, I shouldn't be able to access internal storage on the secondary ROM. Or EFIDroid makes partition?
Is it okay to install heavy touchwiz ROM along with primary touchwiz and secondary AOSP?
How can I change stock name and icon on boot screen? Is there a way to add primary ROM option in app to change it's icon and name?
Well. No thanks is enough for your help. But again, Thank You!

The secondary ROMs are usually installed to the internal SD card (/data/media/0). You can install any combo of ROMs that you want. For the most part, they are completely separate. And no, as of now, there's no way to change the name/icon of the primary ROM.

Sent from my Samsung Galaxy Note 4 using XDA Labs
 

cod_r

Senior Member
Mar 9, 2016
60
8
It's working now but I had to set "Force selinux to permissive" in the EFIDroid boot loader settings. I tried with EmotionOS and LineageOS and both are working.

Thank you for your work :good:
That worked for me too. Now I can boot fine lineage os after forcing selinux to permissive. Looks like the problem happens when you have the primary rom stock touchwiz which has selinux set to enforcing. The note 7 ports usually have selinux to permissive by default.

Sent from my SM-N910F using Tapatalk
 

d3multimedia

Member
Apr 6, 2013
19
5
Brampton
I was also having issues with lineageOS not booting until I set it to permissive. Would be great if there was a way to set specific ROMs to permissive instead of all of EFIDroid.

As for migrating from DualBootPatcher I setup a new ROM through EFIDroid, moved the installed folders from MultiBoot folder to /data/media/0/multiboot/[secondary name] and edited the ini to make system a folder instead of a img. Works.

Also wouldn't it be possible to add a line to buildprop ie MultiBootName to set the name of primary. Just a thought.

Sent from my SM-N910W8 using Tapatalk
 
Last edited:

abraha2d

Senior Member
May 15, 2016
227
129
Atlanta, GA
i9100
Verizon LG G2
That worked for me too. Now I can boot fine lineage os after forcing selinux to permissive. Looks like the problem happens when you have the primary rom stock touchwiz which has selinux set to enforcing. The note 7 ports usually have selinux to permissive by default.

That's weird, as I have completely stock (not even rooted) Samsung CQA1 as my primary (Selinux obviously enforcing)... @m11kkaa tells me this is a known issue, though...

I was also having issues with lineageOS not booting until I set it to permissive. Would be great if there was a way to set specific ROMs to permissive instead of all of EFIDroid.

As for migrating from DualBootPatcher I setup a new ROM through EFIDroid, moved the installed folders from MultiBoot folder to /data/media/0/multiboot/[secondary name] and edited the ini to make system a folder instead of a img. Works.

Also wouldn't it be possible to add a line to buildprop ie MultiBootName to set the name of primary. Just a thought.

Nice to hear that you migrated from DBP successfully... For some reason, I wasn't able to get bind-mount /system to work properly, so i ended up just moving the data folder to the EFIDroid multiboot folder, and reinstalling the ROM zip to repopulate /system...

For that last question, I don't know. You would be better off asking on the main thread. :good:

Sent from my Samsung Galaxy Note 4 using XDA Labs
 

MDHACK

Senior Member
Feb 29, 2012
84
32
Ya, that's because the first time around, the system partition is empty (I.e. no file system). I guess the EmotionOS ROM zip automatically formats the system partition. Otherwise, you would've had to manually format it in TWRP.

Sent from my Samsung Galaxy Note 4 using XDA Labs

I have tried installing EmotionOS on my N910T and TWRP also fails to mount/format the system partition. I tried all three different partition schemes (LoopSystem + BindOther, BindAll, LoopAll). The first one fails to format and mount the system partition both manually and by using the installation zip file for the ROM. The second one mounts and format manually, but fails with the ROM zip. The third one fails for all partitions (system, data, cache, etc) either manually or ROM zip. I noticed the installation fails on this line in the EmotionOS update-script

Code:
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
  abort("E1001: Failed to update system image.");
 

Kawalpreet Juneja

Senior Member
May 6, 2014
303
146
25
Bhopal
I have tried installing EmotionOS on my N910T and TWRP also fails to mount/format the system partition. I tried all three different partition schemes (LoopSystem + BindOther, BindAll, LoopAll). The first one fails to format and mount the system partition both manually and by using the installation zip file for the ROM. The second one mounts and format manually, but fails with the ROM zip. The third one fails for all partitions (system, data, cache, etc) either manually or ROM zip. I noticed the installation fails on this line in the EmotionOS update-script

You don't need to format system partition.
Just let scheme be what it is, select internal storage for ROM installation and put ROM.zip on external SD.
After that when you reboot, select TWRP then Secondary ROM and then directly flash ROM.zip and GApps (if required).
Also, to mention, if it's your first time, try RR ROM (if available) or any other touchwiz ROM. I had problem after flashing EmotionOS... I mean bootloop.
 
  • Like
Reactions: abraha2d

Cauterized

Senior Member
Apr 17, 2008
71
15
There is my error now ... what boot and recovery img are you talking about??

I'm having this error on my n910v running the latest paulpizz. My build.prop is set to n910v and trtlevzw. I have tried installing, clearing data and cache, clearing the OTA override box, granting storage permission, installing the debug app, cleared data and cache and granted storage permission on the debug version as well.

Still no dice.

Thought maybe root cloak was preventing it from requesting root, but disabled it and I still have nothing. Any ideas?
 

Banty448

Senior Member
Dec 19, 2016
64
3
Hi i have Samsung note 4 sm-n910f Verizon that is on lollipop. I want to know which version of twrp and Odin i should use to flash.
 
Last edited:

Kawalpreet Juneja

Senior Member
May 6, 2014
303
146
25
Bhopal
I'm having this error on my n910v running the latest paulpizz. My build.prop is set to n910v and trtlevzw. I have tried installing, clearing data and cache, clearing the OTA override box, granting storage permission, installing the debug app, cleared data and cache and granted storage permission on the debug version as well.

Still no dice.

Thought maybe root cloak was preventing it from requesting root, but disabled it and I still have nothing. Any ideas?

As operator posted earlier, you can attach logcat to get quick response.
For logcat, you can use matlog app.

---------- Post added at 06:33 PM ---------- Previous post was at 06:30 PM ----------

Hi i have Samsung note 4 sm-n910f Verizon that is on lollipop. I want to know which version of twrp and Odin i should use to flash.

Hello.
Head:
https://xdaforums.com/note-4/help/noob-friendly-question-t2866810/page189
for help related to TWRP, rooting and Odin.
 
  • Like
Reactions: abraha2d

Cauterized

Senior Member
Apr 17, 2008
71
15
I'm having this error on my n910v running the latest paulpizz. My build.prop is set to n910v and trtlevzw. I have tried installing, clearing data and cache, clearing the OTA override box, granting storage permission, installing the debug app, cleared data and cache and granted storage permission on the debug version as well.

Still no dice.

Thought maybe root cloak was preventing it from requesting root, but disabled it and I still have nothing. Any ideas?

Here is my logcat. I appreciate the help.
 

Attachments

  • Efi2017-03-24-14-47-48.txt
    222.6 KB · Views: 16

abraha2d

Senior Member
May 15, 2016
227
129
Atlanta, GA
i9100
Verizon LG G2
Major update

Hey guys,

I've made some infrastructure changes which require some additional steps from your side to update. I've renamed the EFIDroid code name for the Note 4 from trltevzw to trlte, to better reflect the scope of this port (and possibly get this device as officially supported). I've also (partially) moved from hosting releases on my personal server, to hosting on GitHub.

Please update to the latest version by following these steps:
  1. Clear the data of the EFIDroid Manager app. (Settings > Apps > EFIDroid Manager > Storage > Clear Data).
  2. Open the EFIDroid Manager app, and navigate to "Install/Update".
  3. Hit the orange "Install" button.
This should bring you up to speed with the latest version of EFIDroid (03/25).

I will be releasing an updated version of the app soon, to complete the transition to GitHub hosting.
 

carlosggb

Senior Member
Oct 18, 2012
2,119
4,233
Santiago
Hey guys,

I will be releasing an updated version of the app soon, to complete the transition to GitHub hosting.

Some info i would like to know:

Will the next update fix the fact that the phone cannot charge while off because it will immediately go to EFIDroid? Or at leest put a screen off timeout so it prevents screen burn in.

Will the roms be totally separated, i still see some connection, is not a bad thing but just asking

Thanks for all the hard work you are putting into this buddy :good:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    I have ported EFIDroid (developed by @m11kkaa) to the Snapdragon variants of the Samsung Galaxy Note 4/Note Edge.
    @m11kkaa's original EFIDroid thread here: https://xdaforums.com/android/software-hacking/efidroid-t3447466.



    This is an unofficial port of beta software. I am not responsible for anything that may happen to your device. Use at your own risk.



    Note: This has been tested with Samsung stock ROM, EmotionOS 7.1.1, and TWRP 3.0.2-0 on an SM-N910V/trltevzw. All other configurations are untested by me, but should work.

    Confirmed working on:
    - SM-N910V (trltevzw) (my device)
    - SM-N910T (trltetmo) (thanks @viewsfromthepi)
    - SM-N910G (trltedt) (thanks @Preet Juneja)
    - SM-N910P (trltespr) (thanks @carlosggb)
    - SM-N910W8 (trltecan) (thanks @d3multimedia)
    - SM-N910F (trltexx) (thanks @cod_r) (possibly some issues with multiboot)
    - SM-N915FY (tbltebtu) (thanks @jpearn)
    - SM-N915F (tbltexx) (thanks @Juank2007)

    I believe this works on all Snapdragon variants. If you're willing to test a variant not listed above, follow the instructions below, and post below if you had success, or if you encountered any issues.



    Warning: There have been reports of the app failing to backup the boot/recovery partitions on other devices, leaving the device unable to boot to the OS and/or recovery. I have no way of testing whether this happens on the Note 4, so be ready with a working recovery/boot img on your computer...

    I believe this issue does not affect the Note 4, as there have been successful installs with the app. However, I am leaving the related info on how to recover below, just in case this happens to one of you.



    Installation

    1. Install the attached EFIDroid Manager apk. Since this is an unofficial port, the EFIDroid Manager app from the Play Store won't work.
    2. Open the EFIDroid Manager app, open the menu (at the top left), and click "Install/Update".
    3. Click the big orange Install button.
    And voila, you're done in 3 easy steps! Reboot to see your new 2nd-stage bootloader!
    Post below with your variant/installed ROM if you have success.

    To update EFIDroid, just repeat step 2, and the click the big orange Update button.
    The app won't automatically check for updates, so I'll post an announcement on this thread whenever an important update is available.

    Multibooting

    You can use EFIDroid as a multiboot manager. To add a multiboot ROM, do the following:
    1. Open the EFIDroid Manager app. Press the plus button at the bottom right side of the screen to start adding a multiboot slot.
    2. Under "Location", there should be a couple paths. Select the one containing "/data/media/0" if you want the new slot to reside on the internal SD card (recommended for speed). Select the one containing "/mnt/media_rw/" if you want the new slot to reside on the external SD card.
    3. You can give the slot a name/description by using the appropriate fields.
    4. Press the checkmark at the top right side of the screen to create the multiboot slot.
    5. Reboot. When EFIDroid comes up, select TWRP, then select the newly created slot.
    6. Go to the "Wipe > Advanced Wipe" menu. Select "System", then swipe to wipe.
    7. Install all the zips you want on that slot.
    8. Reboot, and when EFIDroid comes up, your new slot should automatically be selected. Press the power button to boot, and enjoy!

    Migrating from Dual Boot Patcher

    Coming soon!

    Troubleshooting

    If you are unable to boot the OS/recovery from EFIDroid, do the following (you do have a working boot.img and recovery.img, right?)
    This assumes you have fastboot properly setup.
    1. In EFIDroid, use the volume keys to navigate to "Fastboot", the press the power key to select it.
    2. There should only be one entry in the Fastboot menu. Press the power key to select it.
    3. Connect your phone to your computer with a USB cable. Run the following (on the computer), one line at a time:
      Code:
      fastboot flash boot <path/to/boot.img>
      fastboot flash recovery <path/to/recovery.img>
      fastboot oem exit
    4. In EFIDroid, use the volume keys to navigate to the back button at the top of the screen. Press the power key to select.
    5. Use the volume keys to navigate to "Reboot", then press the power key to select.
    6. If Maintenance Mode comes up, press the home button to reboot.
    You should be able to boot the installed OS/recovery now. If this doesn't work, you can always Odin a TWRP tar, and then flash your original boot.img from inside TWRP, to get back up and running again.

    Known Bugs

    1. Aroma installers in TWRP may flicker, rendering them unusable.


    Again, all credit goes to @m11kkaa for doing all the hard work in developing EFIDroid.

    XDA:DevDB Information
    EFIDroid, Kernel for the Verizon Samsung Galaxy Note 4

    Contributors
    abraha2d, m11kkaa
    Source Code: https://github.com/efidroid

    Kernel Special Features: UEFI, MultiBoot

    Version Information
    Status: Beta
    Current Beta Version: 0.1
    Beta Release Date: 2017-03-18

    Created 2017-03-19
    Last Updated 2017-07-03
    7
    Official Status!

    Guys, good news! This port of EFIDroid has gained official status! The Note 4 will be included in the list of devices supported by the next official build.

    I am not in control of the official builds, @m11kkaa is. Once he releases the next official build, you will be able to use the official EFIDroid Manager app from the Play Store to install/update official builds. I will release an announcement when that happens.

    You will always be able to use my unofficial app to install my unofficial builds. I'll release new builds whenever a non-trivial change is made in the EFIDroid source code.
    4
    Major update

    Hey guys,

    I've made some infrastructure changes which require some additional steps from your side to update. I've renamed the EFIDroid code name for the Note 4 from trltevzw to trlte, to better reflect the scope of this port (and possibly get this device as officially supported). I've also (partially) moved from hosting releases on my personal server, to hosting on GitHub.

    Please update to the latest version by following these steps:
    1. Clear the data of the EFIDroid Manager app. (Settings > Apps > EFIDroid Manager > Storage > Clear Data).
    2. Open the EFIDroid Manager app, and navigate to "Install/Update".
    3. Hit the orange "Install" button.
    This should bring you up to speed with the latest version of EFIDroid (03/25).

    I will be releasing an updated version of the app soon, to complete the transition to GitHub hosting.
    4
    Thanks! So this allows you to dual boot 2 different roms?
    One is primary installed as normal, i take. Now the second one, how is it installed? How is it saved?
    Thank you. I'm just curious. This sounds convenient to have your daily driver as primary, and be able to test other roms without constantly backing up and restoring. Am i correct in thinking this way? :)

    EFIDroid allows you to boot as many different ROMs as you want. You're only limited by the space on your phone.
    The secondary ROMs can either be stored on the internal SD card (emulated on the data partition in our case), or external SD card. I wouldn't recommend the external SD though, as it is usually slower than the internal SD.

    To install a secondary ROM, use the EFIDroid Manager to create a new OS slot (the plus button at the bottom right of the main screen). Then, reboot, and when EFIDroid shows up, select TWRP, and then select the newly created OS slot. Wipe the system partition in TWRP (to initialize it), and then install whatever ROM/Gapps zip you want.

    EDIT: If you're using Dual Boot Patcher currently, there's a slightly involved method to migrate your setup to EFIDroid without loss of data. If anyone's interested, I might put up a how to.
    2
    Are you also not able to get a logcat? Seems to be some issue with F variant devices...
    It's kinda hard to debug without knowing what's going wrong...
    @cod_r, @goolby, @abraha2d,
    It is working for me and my device is N910F.
    I am using Dr Ketan ROM M12 by @dr.ketan as my primary.
    I have used EmotionOS dated March 20, 2017 by @hsbadr as my secondary.
    I have also used UNOFFICIAL LineageOS 14.1 by @jef_00 as my secondary.
    I've got no issue at all...
    EFIDroid for the Samsung Galaxy Note 4 Snapdragon Variants is working like a charm on my Samsung Note 4 N910F
    Thanks so very highly much @abraha2d :good: :good: :good: