Hopefully you were able to buy a N5 at a good price : )
I'd recommend you flash to devel_rc-proposed
and set updates to manually only.
Hopefully you were able to buy a N5 at a good price : )
I'd recommend you flash to devel_rc-proposed
and set updates to manually only.
Perhaps you might offer up a bounty? I think they are setup to work with Bitcoin (฿).
@below-freezing might be able to offer guidance. example
I changed the status of my attempt to stopped.
I don't have any interest in in-depth learning about node.js or javascript so best for me to quietly bow out of this bounty.
Someone with the skill set already might find is a trivial bounty to fix.
Of the Ubports channels for N5 devel_rc-proposed is definitely the better choice at this point in time.
OK. Stable channel is rather old at this point. I've had the best results with using current devel_rc-proposed but with rootfs of 7/28/2016. It's not straight forward how to do that though. I think very soon we will have better options available.
You are definitely looking in the right place for answers. Have look at this page for an understanding what is happening:
https://wiki.ubuntu.com/Touch/ContainerArchitecture
Grab boot.img , recovery.img, and system.img from
https://seafile.nigle.nl/d/62d505f0a7/
Grab rootfs (ubuntu-xxxx.tar.xz) and device-xxxx.tar.xz from http://system-image.ubports.com with:
ubuntu-device-flash -v --server=http://system-image.ubports.com touch --channel=ubuntu-touch/devel_rc-proposed –device=FP2 --download-only
Modify a copy of rootstock-device-install to use the parts of device-xxxx.tax.zx we need.
rename to rootstock-FP2-install
Boot to fastboot mode with by pressing volume down and power button till Fairphone logo comes up. Connect to USB cable
Check for fastboot mode.
sudo fastboot devices
sudo fastboot flash boot boot.img
sudo fastboot reboot-bootloader
sudo fastboot flash recovery recovery.img
Manually boot into recovery with up-volume button and power button.
use modified rootstock-FP2-install to install rootfs, system.img, and custom.tar.zx
Boot phone to Ubuntu Touch.
Set security.
Unset auto updates.
Verify adb
Set up /home/phablet/.ssh
run
phablet-config writable-image
To make rootfs writable.
adb shell
sudo add-apt-repository ppa:peat-new/fp2-custom-test
sudo apt-get update
sudo apt-get upgrade
sudo install xterm xauth mir-android-diagnostics mir-test-tools mir-demos synaptic
Test mir, etc.
I'll attempt to tell you how to find the ones built by the Ubports Jenkens server.
If you execute this
ubuntu-device-flash -v --server=http://system-image.ubports.com touch --channel=ubuntu-touch/devel_rc-proposed –device=hammerhead --download-only
Then look in
~/.cache/ubuntuimages/pool
You will find among other files, this one
59147132 Dec 21 18:57 device-1343cffe4d2fe5b529e198a4182e1b20de176d284b1d340f5b44f3ac25896e79.tar.xz
If you then extract you will find two directories labeled partition with boot.img and recovery.img within and another directory labeled system.
Great you are trying Ubports out.
So it sounds like AppArmor permission problems. Hmm, but other apps are working?
What did you flash your N5 with?
Just as I was about to make a back up copy of FP2 stock android it wants to upgrade to a newer version. Since I had already let it upgrade once before, I thought, why not? So now I'm waiting for the apps to be upgraded.
Build number now is r4275.1_FP2_gms70_70_1.10.1
I'm not planning to test new update today. I'm take a quick look to see if boot and recovery have changed any.
Reading rootstock script and modifying it to your needs is good way to learn this process. I have also been doing this.
Are you able to flash and use the boot and recovery partitions?
Hm I would suggest that what you have asked for is available on GitHub but perhaps start with wiki.ubports.com.
This is just a heads up on getting adb access while running the stock android version.
Do the usual ->settings->about phone
Then tap Build Number till it tells you are a developer.
Then go back:
Now select [] Developer options
Turn on debugging.
Now connect USB cable and "USB computer connections" should then be available to make selections.
Actually if you want adb shell to work you must unselect all options.
Then a pop-up asking if you want to authorize such and such computer access, Say yes.
And adb shell should work.
The purpose of this topic is to document the Recovery image details of the FP2 as I initially received it.
<icon>
horizontal android, chest door open, exposing red triangle with exclamation point.
Android system recovery <3e>
r4275.1_FP2_gms69_1.9.3
Volume up/down to move highlight;
enter button to select.
reboot system now
apply update from ADB
wipe data/factory reset
wipe cache partition
reboot to bootloader
power down
view recovery logs
apply update from sdcard
Plugged USB cable results in dmesg:
[65653.044636] usb 3-1: new high-speed USB device number 25 using xhci_hcd
[65653.173731] usb 3-1: New USB device found, idVendor=2ae5, idProduct=9039
[65653.173738] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[65653.173741] usb 3-1: Product: Android
[65653.173744] usb 3-1: Manufacturer: Android
[65653.173747] usb 3-1: SerialNumber: f8c9f680
[65663.005036] usb 3-1: USB disconnect, device number 25
[68831.732542] perf interrupt took too long (2509 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
Scrolling down and selecting option "apply update from ADB"
FP2 responds with same icon.
Text bottom of screen:
Now send package you want to apply
to the device with "adb sideload <file name>"
resulting dmesg:
[69031.019059] usb 3-1: new high-speed USB device number 26 using xhci_hcd
[69031.148680] usb 3-1: New USB device found, idVendor=18d1, idProduct=d001
[69031.148687] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[69031.148690] usb 3-1: Product: FP2
[69031.148693] usb 3-1: Manufacturer: Fairphone
[69031.148696] usb 3-1: SerialNumber: f8c9f680
Oppsie : ) Waited too long.
Now send package you want to apply
to the device with "adb sideload <file name>"...
Timed out waiting for package.
Installation aborted.
Reselecting option "apply update from ADB"
adb devices reports.
List of devices attached
f8c9f680 sideload
And I saw the suggestions about placing in git and assumed GitHub : )
Yes, write in one place !
Maybe here ?
Thanks, great job.
Of course minor difficulties exist with in it.
The versions and sources of the boot.img, recovery.img, and system.img?
Does the FP2 come with an unlocked bootloader ? Seems the answer is "yes" but unknown. And eventually the meet to relock the bootloader.
@ivo_xavier , almost... I was thinking you should start a new topic in this directory.
There is flexibility in where posting may be done here on forums.ubports.com .
I suggest we start development posts here, in this node.
Thanks
So I'm using this as a notebook to keep track and also share progress.
Today I tried out the rootfs of 9-20-2016 has the display corruption.
So backing off to 7-28-2016 works fine as far as the display goes.
Now to do some testing on it I need to set the rootfs writable to be able to install more packages but I struggle to remember the utility to do it with.
To be continued....
Today was kind of a milestone. The first time building other peoples code contributions and ideas, scopes displays correctly.
In anticipation of helping in the porting of FP2 I did a fresh repo with standard Ubports instructions
Plus the a local manifest as shown here: instructuons
But more specifically a local default.xml manifest for N5
~/phablet/.repo/local_manifests/hammerhead.xml
<manifest>
<!-- Lge -->
<project path="device/lge/hammerhead" name="android_device_lge_hammerhead" remote="ubp" />
<project path="kernel/lge/hammerhead" name="android_kernel_lge_hammerhead" remote="ubp" />
<!-- Comment this next line out if it is included somewhere else. -->
<project path="device/qcom/common" name="android_device_qcom_common" remote="cm" />
<!-- -->
<project path="vendor/lge" name="proprietary_vendor_lge" remote="them" />
</manifest>
Then after make finishes successfully..... oops.
There will be an error about missing make rules for live wall paper.
Try running this script :
~/phablet/device/lge/hammerhead/setup-makefiles.sh
or edit directly file
~/phablet/vender/lge/hammerhead/hammerhead_vendor.mk
to:
# Copyright (C) 2014 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This file is generated by device/lge/hammerhead/setup-makefiles.sh
# Live wallpaper packages
PRODUCT_PACKAGES := \
# LiveWallpapers \
# LiveWallpapersPicker \
# MagicSmokeWallpapers \
# VisualizationWallpapers \
librs_jni
# Publish that we support the live wallpaper feature.
#PRODUCT_COPY_FILES := \
# packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
# Pick up overlay for features that depend on non-open-source files
DEVICE_PACKAGE_OVERLAYS := vendor/lge/hammerhead/overlay
# Apps
PRODUCT_PACKAGES += \
qcrilmsgtunnel \
shutdownlistener \
TimeService \
UpdateSetting
$(call inherit-product, vendor/lge/hammerhead/hammerhead-vendor-blobs.mk)
Then grab a rootfs
I hacked my version of rootstock-toouch-install to handle installing all to the phone.