Active Topics

 


Reply
Thread Tools
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#781
I think the RIL is ok. When I do a 'ps -ef | grep -i ril' it returns:
Code:
[nemo@Sailfish ~]$ ps -ef | grep -i ril
radio      959   782  0 23:08 ?        00:00:01 /system/bin/rild
root      2586  2421  0 23:08 ?        00:00:00 /system/bin/rild -l libalien_native_ril.so
nemo      5087  3488  0 23:26 pts/0    00:00:00 grep -i ril
And I can call/send message from and to the phone. If there is a problem with the RIL, none of these should work, I guess.
 

The Following User Says Thank You to edp17 For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#782
Have you tied the solution on the first page of this thread in the FAQ section?
 

The Following 2 Users Say Thank You to mautz For This Useful Post:
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#783
Originally Posted by mautz View Post
Have you tied the solution on the first page of this thread in the FAQ section?
I have tried this
Code:
dbus-send --system --type=method_call --print-reply --dest=org.ofono /ril_0 org.ofono.RadioSettings.SetProperty string:TechnologyPreference variant:string:lte
but didn't make any difference.

The other thing, pixel ratio. I added the line '%define pixel_ratio 2.0' into the mentioned 'droid-hal-hammerhead.spec' but didn't make any difference.
Then I found this setup in 'hybrys/droid-configs/rpm/droid_config_hammerhead.spec' so it should work.

Now I am working on the GStreamer 1.0 and Camera section in the hadk. Once that work, I will generate a new image and hopefully the pixel ratio will be ok.
 

The Following 2 Users Say Thank You to edp17 For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#784
Don't forget to upload it
 

The Following User Says Thank You to mautz For This Useful Post:
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#785
Originally Posted by mautz View Post
Don't forget to upload it
Update: 07/12/2022 - Uploading sfos version 4.4.0.72

Update: 19/02/2021 - Restructuring of the post and uploading sfos version 4.0.1.48.

Version 4.4.0.72 is available to download from here: 4.4.0.72.

Version 4.0.1.48 is available to download from here: 4.0.1.48.
On this latest build AD doesn't properly work. I could give you instruction on how to make it start, but because of an error in the alien_bridge_server, apps cannot be installed on it anyway. (If you would like to experiment with it, let me know and I tell you how to make it AD start.)
Because of the freshly introduce app sandboxing firejail (or how it is called on sfos sailjail) the dynamic calendar and clock apps need to update its .sh script. The manual fix is the following:Because the firejail/sailjail interferes with the pre-installed browser search engines, those are removed from this build.
Today only the fresh install is available. Once OBS is ready I'll ask @mautz to create a repo for OTA upgrade.

Older SFOS versions where AD works fine: (all of them with CM12.1 base)
  • 02/11/2020 - 3.4.0.24
    If you install this from fresh (not upgrading from the previous version) you'll need to apply this fix to make AD work.
  • 12/05/2020 - 3.3.0.16
  • 13/01/2020 - 3.2.1.20
    On this one, the date&time cannot be set right after the installation. This is because in the build the time is set to 2019 therefore the 'pkcon refresh' command returns with an error. The workaround is setting the date in command line first:
    Code:
    devel-su (then, enter password when prompted)
    date -s "2020-01-16 20:43:00"
    Then timed-qt5 can be installed and pkcon can be refreshed/updated. (commands can be found below)
  • 01/01/2020 - 3.2.0.12
--------------------------------
Works:
  • Calls
  • Messages
  • Mobile data
  • Wifi
  • Wifi tethering (with this method)
  • GPS
  • Sensors
  • Bluetooth
  • Audio + Headphone jack
  • Default pixel ratio 2.0
  • HW acceleration in games (9155 with 3DMark - Ice Storm Extreme )
  • Sound in games within AD
  • internal sd mounted under /android folder
  • Low Power Mode (AKA "sneak peek" or "ambient display") - install instruction in first post or install as a patch with patch manager)
  • Camera (taking pictures only)
  • Storeman works (requires to do a pkcon update in the command line)
  • Torch
  • Video playback (It works from Gallery and with Kodi)
  • Itt comes with different browser search engines pre-installed (like duckcuckgo) we just need to set the one we prefer (Settings/Apps/Browser)
  • It comes with findutils CLI tool (locate and updatedb) preinstalled
  • It comes with all the icons for pixel ratio 1.82 pre-installed but needs to do some manual work to activate this mode (these commands are extracted from kimmoli's DIY icon changer script):
    Code:
    sudo rm -f /etc/dconf/db/vendor.d/locks/silica-configs.txt
    sudo dconf update
    su -l nemo -c "dconf write /desktop/sailfish/silica/theme_pixel_ratio 1.82"
    sudo systemctl-user restart lipstick
  • Date & Time cannot be changed until the timed-qt5 is reinstalled (this is not required to do on the sfos 4.0.1.48 build):
    Code:
    sudo pkcon install timed-qt5
  • MTP connection with PC


Does NOT work
  • Video recording (It doesn't really work in other sfos versions either. See my test results here.)

--------------------------------

Some useful patches: (Some do not required/not work on sfos 4.0)
--------------------------------

Upgrade to a version
  1. Boot into sfos, enable developer mode and set a password
  2. Connect the phone to a wifi network (for downloading packages)

    From this point, we will work on the PC, leave the phone connected.
  3. Connect the phone to a PC, open a console and on the PC run (enter the password when you prompted):
    Code:
    ssh nemo@192.168.2.15
  4. switch user to root (enter the password when you prompted):
    Code:
    devel-su
  5. Check repos, enter:
    Code:
    ssu lr
  6. Disable all adaptation-something:
    Code:
    ssu dr adaptation-something
  7. Uninstall all patches and patchmanager
  8. Uninstall aliendalvik-control, if you have it installed (Actually, somehow I had two versions installed. The first one was removed fine with pkcon, but the second one has dropped an error. Finally, I removed that with this command: 'rpm -e --noscripts aliendalvik-control')
  9. Disable to start android support at the boot! (This only required for upgrading to 3.4.0.24)
  10. Disable all openrepos
  11. Add new adaptation-community-hammerhead repo:
    upgrading 3.1 to sfos version 3.2 (3.2.1.20):
    Code:
    ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/cm12.1/sailfishos_3.2.1.20_latest/
    upgrading 3.2 to sfos version 3.3 (3.3.0.16):
    Code:
    ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/cm12.1/sailfishos_3.3.0.16_latest/
    upgrading 3.3 to sfos version 3.4 (3.4.0.24): (more info about this upgrade)
    Code:
    ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/cm12.1/sailfishos_3.4.0.24_latest_armv7hl/
  12. Add new adpatation-community-common-hammerhead (as the sailfish_latest_armv7hl is always pointing to the latest sfos version, a version specific needs to be used for older versions):
    upgrading 3.1 to sfos version 3.2 (3.2.1.20):
    Code:
    ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.2.1.20/
    upgrading 3.2 to sfos version 3.3 (3.3.0.16):
    Code:
    ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.3.0.16/
    upgrading 3.3 to sfos version 3.4 (3.4.0.24): (more info about this upgrade)
    Code:
    ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.4.0.24/
  13. Double check both freshly added repos are enabled (ssu lr), if disabled, then:
    Code:
    ssu er adpatation-community-whichever_is_disabled
  14. Put the device in release mode
    Code:
    ssu release <wanted_sfos_version>
    (replace the <wanted_sfos_version> with 3.2.1.20, 3.3.0.16 or 3.4.0.24)
  15. Refresh packages:
    Code:
    pkcon refresh
  16. Upgrade the system:
    Code:
    version --dup
  17. Then reboot:
    Code:
    reboot

Custom boot screen:
To install this you need to flash the edp17-hammerhead_sfos-bootimage.zip in recovery.

Then the boot screen will be:


When on the charger:


To go back to (slightly) original, just flash this: hammerhead_no-padlock-bootimage.zip. (In this one, there is no padlock image at the bottom.)

Last edited by edp17; 2022-12-07 at 11:28.
 

The Following 15 Users Say Thank You to edp17 For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#786
Thanks for your new build.

Can not test mobile data, because i have no sim in the phone.

Things i found not working:

- Audio
- Accelerometer
- Gyroscope
- Light sensor
- Proximity sensor

Have you done the camres part in the HADK? I couldn't find the needed files on the system.
 

The Following 2 Users Say Thank You to mautz For This Useful Post:
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#787
Originally Posted by mautz View Post
Thanks for your new build.

Can not test mobile data, because i have no sim in the phone.

Things i found not working:

- Audio
- Accelerometer
- Gyroscope
- Light sensor
- Proximity sensor

Have you done the camres part in the HADK? I couldn't find the needed files on the system.
Thank you for testing this!
Oh, yes. I forgot to mention the sensors. Plus some other things also don't work. Today (hopefully) I'll try again.

And yes, I used the hadk to make the camera working.
 
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#788
Yes, I used the hadk to build gstreamer (chapter13.2) and camera (13.3 chapter) but when it said "Install the RPM from$ANDROID_ROOT/droid-local-repo/$DEVICE/droid-camres/onto your de-vice and execute"
I am not sure how to do it.
If I ssh into the phone the 'droid-camres -w' command returns with error.

I thought if I complete chapter 13.2 and 13.3 when I create the final build it will include both things.
However, seemingly the camera is not there as the Mpx in the settings is only showed as a '?'.
 
edp17's Avatar
Posts: 600 | Thanked: 711 times | Joined on Jul 2019 @ UK
#789
I need to install the gstreamer and camera rpms somehow onto the device but I am not sure how to do it? I thought the build will install them automatically.
This section in the hadk is not clear for me. Or I missed to read something.
 
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#790
Just copy the RPMs onto your phone and install them.
 

The Following User Says Thank You to mautz For This Useful Post:
Reply

Tags
hammerhead, nexus5, sailfishos, sfdroid


 
Forum Jump


All times are GMT. The time now is 16:29.