You are right. One would have to configure the container to have access to USB. It’s probably possible, I don’t know how.
But you can easily install fastboot on your host operating system (it is available for Linux, Windows, etc) and flash from there. Incidentally that’s what I did half an hour ago.
In case anyone else had the same problem, what I did to fix it was open the id_rsa.pub file and copy it from my text editor instead of pasting the results of “cat id_rsa.pub”.
But at the same time I also poked around my account on the website and added a user name, that might have been what actually fixed it.
Then edit system/core/rootdir/init.rc and add after the existing imports:
import /init.superuser.rc
edit: editing init.rc may not be necessary, patch 7 seems to add it already.
Then continue to build and upload.
When you have installed Superuser with package name com.koushikdutta.superuser, it may just work.
I’m curious to hear if this works for anyone else.
I’m glad to hear it works for you. I got familiar with this missing import aswell Saying I see you are making the same steps I have done right one week before
Since it is not easy to understand short-held compiling questions, I wasn’t sure about your knowledge-level. My build is running right now, and if it works, I’ll have a one-build solution with TWRP and Superuser-embedded all-at-once. We’ll see…
This does not yet include the Superuser app. It would be useful to have it installed in the system image, and it would be good for security (or any app using the same id could obtain root when it’s not installed).
It seems that currently only su in the shell works, not from apps I guess it’s a permissions/user/selinux problem (selinux line + Permission denied for opening local socket).
[code]out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/generic/obj/ETC/sepolicy_intermediates/policy.conf
external/sepolicy/radio.te:33:ERROR ‘unknown type persist_file’ at token ‘;’ on line 3850:
allow radio persist_file:dir search;
checkpolicy: error(s) encountered while parsing configuration
external/sepolicy/Android.mk:121: recipe for target ‘out/target/product/generic/obj/ETC/sepolicy_intermediates/sepolicy’ failed
make: *** [out/target/product/generic/obj/ETC/sepolicy_intermediates/sepolicy] Error [/code]
When I then do cd external/sepolicy/; git checkout cae72b60bc2e4f5509c08232f211044af7eb375d and try to compile again
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
Ok, first try and first successful make ! Instead of a make -j8 I tried a simple make. It tooks about 6 hours to build but I have a fully functional Fairphone Open Source OS on my FP2 now.
Thanks a lot everybody for all the tips.
I didn’t see where you mentioned it before (this forum layout is confusing
Sometimes there’s issues with copy/pasting adding weird line breaks, depending on where you copy/paste from so I thought I’d mention that too. (I’ve had that issue before when adding keys to my authorized_keys file.)
I just have deleted my whole branch yesterday and now i need a halfway latest FFOS Image which is working. Can someone please send me a build from the last week? Downloadspeed 200kps sucks for another buildingstart. Would be great! jom
Obviously a new version of FPOS has been released today. Would you guys know if the sources are updated as well, i.e. would it make sense to download and compile again?
And would I still need to apply the Unified NLP patches to have network-based location on a Google-free FPOSOS?
I have to admit that I didn’t check myself, but I would assume that you can answer your questions by looking at their gerrit… Afaik some pull requests have still been open.
I tried cloning the fairphone osos repos as described in the build instructions, but the given http-address 404s and the ssh-address gives “Permission denied” although i did add my key in gerrit. Does anyone know where else i can get the sources?
If you are running Ubuntu 16.04 which uses OpenSSH 7 then you will need to add a .ssh/config file with the gerrit host to allow the right cypher: http://www.openssh.com/legacy.html
For Example:
user@skylake:~/fairphone_os$ repo init -u ssh://code.fairphone.com:29418/fp2-dev/manifest -b fp2-sibon Unable to negotiate with 37.187.31.110 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1