-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fairphone 2 #1
Comments
Where are you downloading the firmware from or are you using one you pulled from your device. I have only found the firmware for the first FairPhone |
You'll have to provide a lot more details than that if you expect anyone to be able to help you with it. What are you patching? How are you patching it? What are you patching it with, precisely? |
Thanks for that fast responses. Firmware can be downloaded here: http://storage.googleapis.com/fairphone-updates/FP2-gms36-1.1.7-ota.zip But I built the AOSP on my own (https://forum.fairphone.com/t/compiling-fairphone-open-source-rooting). |
I didnt really get any issues. You can try these using the ota you linked and see if they work. sorry about the certificate error I'm still using a self signed one. https://lrsservers.ddns.net/download/devices/fairphone/fp2/ use firefox if downloading on android itself. |
Did you modify them in the same way I did? |
I understand the feeling. modified using this projects scripts. |
Which scripts do you mean? |
download.sh and build.sh |
Also tried with download.sh and build.sh now. Same errors. I'll now try with another device, if there are same messages. |
Yah I just caught that one too looking through the logs |
Tried with archos/ac40he. Same errors. Seems to come from my system. |
I compared the ramdisk files now. They are equal. So seems like the errors shouldn't matter. Will check the changes now to decide if I try to flash :-) |
If you are building the boot image from source, you should be applying patches to the source from https://github.com/seSuperuser/AOSP-SU-PATCH Depending on how much they've butchered the source though, it could require some adjustment. |
But for that I'd need the modified boot.img anyway. Or did I understand something wrong? |
Ok, phone booted at least with modified boot.img. |
Which one did you use? User, noverity, nocrypt, eng? |
I tried the user image. |
mstaz: There are two ways to apply the changes needed to the sepolicy; 1) modify an existing binary sepolicy, (2) patch the SOURCE CODE used to GENERATE the sepolicy. The problem with (1), which is what you are trying to do, is that it has to take the boot image apart, find the sepolicy, and modify that sepolicy. In order for it to do this, it makes certain assumptions about the structure of the boot image and the existing binary sepolicy. Unfortunately, some vendors mess things up. Sometimes very badly. When you have the source code for building a boot image from source code, it is a better approach to use (2), because it makes NO assumptions about the boot image or sepolicy structure. |
lbdroid thank you for confirming my suspicions that some vendor screw with the boot image. mstaz this forum post helps to understand the differences in the versions of root. http://forum.xda-developers.com/android/software-hacking/wip-selinux-capable-superuser-t3216394 In general I've noticed eng seems to be the most similar to what people experience with SuperSU and other integrated root methods. |
Lrs121 I should have read everything more clearly. The eng version just works great so far. That's awesome! :-D |
Good luck working on that. There may issues with integrating the Superuser app that I haven't been able to put an issue up yet, haven't been able to make a reliable log remotely. Then again I think I might be forgetting to do something stupid when trying to add it to my builds of Omnirom. |
I'm trying to integrate superuser in new Fairphone's boot.img. Started with the own build boot.img.
I get following messages:
"7254 blocks
source type su_device does not exist: 0,626
source type su_daemon does not exist: 0,627
target type toolbox_exec does not exist
Could not add rule
target type toolbox_exec does not exist
Could not add rule
1303 blocks
Dumped cpio-0
Dumped cpio-1
..."
What does the errors mean? Will it work anyway?
The text was updated successfully, but these errors were encountered: