Jump to content

Samsung Galaxy J7 Prime (samsung-on7xelte): Difference between revisions

From postmarketOS Wiki
Naproxen (talk | contribs)
mNo edit summary
Naproxen (talk | contribs)
Major restructuring; Installation guide; Modem updates
Line 1: Line 1:
{{Infobox device
{{Infobox device
| manufacturer = Samsung
| image                 = File:on7xelte.jpg
| name = Galaxy J7 Prime
| imagecaption           = J7 Prime running GNOME Mobile
| codename = samsung-on7xelte
| image = File:on7xelte.jpg
| imagecaption = J7 Prime running GNOME Mobile
| releaseyear = 2016
| originalsoftware = Android 6.0.1, upgradable to Android 8.1
| chipset = Samsung Exynos 7870 Octa
| cpu = Octa-core 1.6 GHz Cortex-A53
| gpu = Mali-T830 MP1
| storage = 32 GB
| display = 1080 x 1920 PLS IPS
| memory = 3 GB
| architecture = aarch64
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
| status_usbnet =  Y<!-- USB networking does work? then put Y here and delete this comment -->
| status_flashing = P<!-- Flashing with "pmbootstrap flasher" works? Put Y here. It works the same for everything coming below. -->
| status_touch = Y<!-- Touch screen is working? You can also answer these questions with P for partially. -->
| status_screen = Y<!-- The display is working? -->
| status_wifi = Y<!-- Wireless network works? -->
| status_xwayland = P<!-- Showing X11 applications in a Wayland compositor (Weston, KWin, ...) works? -->
| status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? -->
| status_mainline = N<!-- Instead of a Linux kernel fork, it is possible to run mainline. -->
| status_battery = Y<!-- Charging the battery with charging-sdl is possible -->
| status_3d = N<!-- Hardware accelerated 3D graphics (e.g. with freedreno) -->
| status_accel = N<!-- The sensor that measures proper acceleration works -->
| status_audio = N<!-- Using the device's speakers/headphone jack works -->
| status_bluetooth = P<!-- It's possible to pair and use other devices via the bluetooth protocol -->
| status_camera = N<!-- Taking photos and videos works. -->
| status_gps = N<!-- The Global Positioning System sensor works.  -->
| status_mobiledata = N<!-- Connecting to the Internet via cellular network. -->
| status_sms = N<!-- Sending and receiving short messages works as intended. -->
| status_calls = N<!-- Talking to other people over the cellular network. -->
| status = Boots :) <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
| status_otg = <!-- USB-OTG adapters work, e.g. to connect an USB flash drive to the device -->
| status_nfc = <!-- Near-Field Communication (NFC) works -->
| status_irtx = <!-- Infrared (IR) port works -->
| booting = yes <!-- The device is booting at all, can be yes/no *IMPORTANT* -->


<!-- you can also use these lines if you need to:
| manufacturer          = Samsung
if the device haven't originally ran Android OS, e.g. Nokia N900
| name                  = Galaxy J7 Prime
| n-android =
| codename              = samsung-on7xelte
Version of the kernel that pmos is running
| releaseyear            = 2016
| pmoskernel = 3.18.14
| originalsoftware      = Android 6.0.1, upgradable to Android 8.1
see Unixbench page on wiki
| chipset                = Samsung Exynos 7870 Octa
| whet_dhry = 0.0
| cpu                    = Octa-core 1.6 GHz Cortex-A53
-->
| gpu                    = Mali-T830 MP1
| storage                = 32 GB
| display                = 1080 x 1920 PLS IPS
| memory                = 3 GB
| architecture          = aarch64
 
| status                = Mainline works somewhat
| booting                = yes
 
| status_usbnet          = Y
| status_flashing        = P
| status_touch          = Y
| status_screen          = Y
| status_wifi            = Y
| status_fde            =
| status_mainline        = N
| status_battery        = Y
| status_3d              = N
| status_audio          = N
| status_bluetooth      = N
| status_camera          = N
| status_gps            = N
| status_mobiledata      = N
| status_sms            = Y
| status_calls          = Y
| status_otg            =
| status_nfc            = -
 
| status_accel          =
| status_magnet          = -
| status_light          = -
| status_proximity      =
| status_hall            = -
| status_barometer      = -
| status_powersensor    = -
 
| status_cameraflash    =
| status_keyboard        = -
| status_touchpad        = -
| status_usba            = -
| status_hdmidp          = -
| status_irtx            = -
| status_irrx            = -
| status_stylus          = -
| status_haptics        =  
| status_ethernet        = -
| status_fossbootloader  = -
}}
}}
'''Samsung Galaxy J7 Prime''', also known '''Samsung Galaxy On Nxt''' and '''Samsung Galaxy On7 Prime''', is an Exynos 7870 device released by Samsung in 2016.


== Contributors ==
== Contributors ==
* naproxen
* sleirsgoevy (Mainlining efforts in [[Samsung_Galaxy_A6_2018_(samsung-a6lte)|a6lte]])
* th1nhhdk
* th1nhhdk
* Otus9051
* Otus9051
* naproxen


== Users owning this device ==
== Users owning this device ==
{{Device owners}}
{{Device owners}}
<!-- autogenerated, use {{Owns device|devicepage|notes}} on your profile page -->
<!-- use _ instead of spaces in device page name, e.g. {{Owns device|HTC_Desire_(htc-bravo)|custom notes}}-->
<!-- you may need to purge page cache to see changes (more->purge cache)-->
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->


== How to enter flash mode ==
== How to enter flash mode ==
Heimdall: When the device is fully powered off, hold Power, Volume Down and Home for a few seconds.
A (turquoise) download mode warning screen should appear, press Volume Up to confirm.


TWRP: As Heimdall is broken as ever, we need to use TWRP/PBRP. Power + Volume Up + Home for a few seconds for TWRP. You need to install it first tho.
When the phone is powered off, hold the {{Button|Power}}, {{Button|Home}} and {{Button|Volume Down}} buttons to boot into download mode. A turquoise colored screen will appear, asking for confirmation. Press {{Button|Volume Up}} to confirm. Your device is ready for flashing via a front-end such as Odin or Heimdall.
 
To boot into recovery, hold the {{Button|Power}}, {{Button|Home}} and {{Button|Volume Down}} buttons.
 
 
{{Notice|Download mode doesn't seem to like flashing images containing subpartitions. So, it isn't possible to flash any combined boot and root image file. It should be theoretically possible to install postmarketOS in download mode with split images.}}


== Installation ==
== Installation ==
Export Recovery Zip
 
=== Prerequisites ===
 
Make sure your phone:
 
* Has its bootloader unlocked.
* Has a custom recovery installed (such as TWRP)
 
=== Preparation ===
 
Choose the following in the <code>pmbootstrap init</code> wizard:
'''Vendor:''' samsung
'''Device codename:''' on7xelte
'''User interface:''' xfce4
 
<code>xfce4</code> is tested and works out of the box. Other UIs are not guaranteed to work.
 
<code>gnome-mobile</code> comes with wayland as its dependency. Since wayland doesn't run in downstream kernels, xorg needs to be installed.
'''Extra packages:''' xorg-server
 
To proceed with the installation run:
'''$''' pmbootstrap install --android-recovery-zip
 
This will begin installing pmbootstrap prepare a recovery zip file. By default, the rootfs is flashed in the <code>SYSTEM</code> partition of the device.
 
In order to change the default partition (let's say, the <code>USERDATA</code> partition), append <code>--recovery-install-partition=USERDATA</code> to the above command.
 
After the installation process is completed, get your phone booted into recovery, and enable sideloading via adb. Then run:
'''$''' pmbootstrap flasher --method=adb sideload
 
The recovery zip gets flashed to your device. Reboot to system when it's done.


== See also ==
== See also ==
<!--
 
Link to related GitLab issues or merge requests like the following (replace CHANGEME with the ID, e.g. 1234):
* {{MR|CHANGEME|pmaports}} Initial merge request
* {{issue|CHANGEME|pmaports}} Some related issue
You can also add normal web links:
* [https://redmine.replicant.us/projects/replicant/wiki/GalaxyS2I9100 Replicant wiki page]
-->
{{MR|4220|pmaports}} Initial merge request
{{MR|4220|pmaports}} Initial merge request


<!--
If you manage to get your device packages merged, uncomment links below and change DEVICE_CODENAME with the actual one.
* {{Device package|DEVICE_CODENAME}}
* {{Kernel package|DEVICE_CODENAME}}
-->
{{Device package|samsung-on7xelte}}
{{Device package|samsung-on7xelte}}


{{Kernel package|samsung-on7xelte}}
{{Kernel package|samsung-on7xelte}}

Revision as of 22:49, 15 September 2023

Samsung Galaxy J7 Prime
J7 Prime running GNOME Mobile
J7 Prime running GNOME Mobile
Manufacturer Samsung
Name Galaxy J7 Prime
Codename samsung-on7xelte
Released 2016
Hardware
Chipset Samsung Exynos 7870 Octa
CPU Octa-core 1.6 GHz Cortex-A53
GPU Mali-T830 MP1
Display 1080 x 1920 PLS IPS
Storage 32 GB
Memory 3 GB
Architecture aarch64
Software
Original software Android 6.0.1, upgradable to Android 8.1
postmarketOS
Category testing
Pre-built images no
Mainline no
Features
Flashing
Partial
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Broken
Audio
Broken
Camera
Broken
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
Broken
GPS
Broken
Modem
Calls
Works
SMS
Works
Mobile data
Broken
Miscellaneous
FDE
No data
USB OTG
No data
Sensors
Accelerometer
No data
Proximity
No data
Haptics
No data


Samsung Galaxy J7 Prime, also known Samsung Galaxy On Nxt and Samsung Galaxy On7 Prime, is an Exynos 7870 device released by Samsung in 2016.

Contributors

  • naproxen
  • sleirsgoevy (Mainlining efforts in a6lte)
  • th1nhhdk
  • Otus9051

Users owning this device


How to enter flash mode

When the phone is powered off, hold the Power, Home and Volume Down buttons to boot into download mode. A turquoise colored screen will appear, asking for confirmation. Press Volume Up to confirm. Your device is ready for flashing via a front-end such as Odin or Heimdall.

To boot into recovery, hold the Power, Home and Volume Down buttons.


Notice Download mode doesn't seem to like flashing images containing subpartitions. So, it isn't possible to flash any combined boot and root image file. It should be theoretically possible to install postmarketOS in download mode with split images.

Installation

Prerequisites

Make sure your phone:

  • Has its bootloader unlocked.
  • Has a custom recovery installed (such as TWRP)

Preparation

Choose the following in the pmbootstrap init wizard:

Vendor: samsung
Device codename: on7xelte
User interface: xfce4

xfce4 is tested and works out of the box. Other UIs are not guaranteed to work.

gnome-mobile comes with wayland as its dependency. Since wayland doesn't run in downstream kernels, xorg needs to be installed.

Extra packages: xorg-server

To proceed with the installation run:

$ pmbootstrap install --android-recovery-zip

This will begin installing pmbootstrap prepare a recovery zip file. By default, the rootfs is flashed in the SYSTEM partition of the device.

In order to change the default partition (let's say, the USERDATA partition), append --recovery-install-partition=USERDATA to the above command.

After the installation process is completed, get your phone booted into recovery, and enable sideloading via adb. Then run:

$ pmbootstrap flasher --method=adb sideload

The recovery zip gets flashed to your device. Reboot to system when it's done.

See also

pmaports!4220 Initial merge request

Device package

Kernel package