Jump to content

Samsung Galaxy J3 2016 (samsung-j3): Difference between revisions

From postmarketOS Wiki
No edit summary
status_uart = Y
 
(36 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Infobox device
{{Infobox device
| manufacturer = Samsung
| manufacturer = Samsung
| name = Galaxy J3 2016
| name = Galaxy J3 2016
| codename = samsung-j3, samsung-j3ltetw
| codename = samsung-j3ltetw
| image = File:samsung-j3-phosh.png
| imagecaption =Samsung Galaxy J3 2016
| imagecaption =
| image =File:samsung-j3-phosh.png
| releaseyear = 2016
| releaseyear = 2016
| originalsoftware = Android 5.1.1
| originalsoftware = Android
| chipset = Qualcomm MSM8916 Snapdragon 410
| originalversion = 5.1.1
| chipset = Qualcomm Snapdragon 410 (MSM8916)
| cpu = 4x 1.2 GHz Cortex-A53
| cpu = 4x 1.2 GHz Cortex-A53
| gpu = Adreno 306
| gpu = Adreno 306
| storage = 16 GB
| storage = 8 GB
| display = 1280x720
| display = 1280x720
| memory = 1.5 GB
| memory = 1.5 GB
| architecture = aarch64
| architecture = aarch64
| type = handset
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
| status_usbnet = Y
| status_usbnet = Y
Line 21: Line 24:
| status_wifi = Y
| status_wifi = Y
| status_xwayland = Y
| status_xwayland = Y
| status_fde = P
| status_fde = Y
| status_mainline = Y
| status_mainline = Y
| status_battery = P
| status_battery = P
| status_3d = Y
| status_3d = Y
| status_accel = P
| status_accel = P
| status_light = N
| status_magnet = -
| status_proximity = -
| genericdevice=Generic MSM8916 (qcom-msm8916)
| optionalgenericdevice = yes
| status_light = -
| status_proximity = N
| status_hall = -
| status_hall = -
| status_audio = Y
| status_audio = Y
Line 38: Line 44:
| status_otg = P
| status_otg = P
| status_nfc = N
| status_nfc = N
| status_uart = Y
| booting = yes
| booting = yes
| whet_dhry = 929.9
| whet_dhry = 929.9
}}
}}{{Infobox device
 
| manufacturer = Samsung
{{Based on SoC|Qualcomm_Snapdragon_410/412_(MSM8916)|Snapdragon 410}}
| name = Galaxy J3 2016
 
| codename = samsung-j3ltespr
{{note|'''Note:''' This page is about '''Qualcomm MSM8916''' variants of Samsung Galaxy J3 2016. For Spreadtrum SC9830 variants, see [[Samsung Galaxy J3 (samsung-j3xnlte)]].}}
| image =
| imagecaption =
| releaseyear = 2016
| originalsoftware = Android
| originalversion = 5.1.1
| chipset = Qualcomm Snapdragon 410 (MSM8916)
| cpu = 4x 1.2 GHz Cortex-A53
| gpu = Adreno 306
| storage = 16 GB
| display = 1280x720
| memory = 1.5 GB
| architecture = aarch64
| type = handset
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
| status_usbnet =
| status_flashing =
| status_touch =
| status_screen =
| status_wifi =
| status_xwayland =
| status_fde =
| status_mainline =
| status_battery =
| status_3d =
| status_accel =
| status_magnet = -
| status_light = -
| status_proximity = N
| status_hall = -
| status_audio =
| status_bluetooth =
| status_camera = N
| status_gps = <!-- The Global Positioning System sensor works.  -->
| status_mobiledata =
| status_sms =
| status_calls =
| status_otg =
| status_nfc = -
| status = Dropped. It needs a new device tree.
| booting = no
| whet_dhry =
}}{{note|'''Note:''' This page is about [[Qualcomm Snapdragon 410 (MSM8916)]] variants of [[Samsung Galaxy J3]].}}


== Contributors ==
== Contributors ==
Line 58: Line 106:
== Variants ==
== Variants ==


There are 7 known MSM8916 variants. Current device tree is based on SM-J3109/SM-J320Y/SM-J320YZ and the other variants need their own device tree to work properly.
There are 9 known MSM8916 variants. Current device tree is based on SM-J3109/SM-J320Y/SM-J320YZ and the other variants need their own device tree to work properly.
{| class="mw-collapsible mw-collapsed wikitable"
{| class="mw-collapsible mw-collapsed wikitable feature-colors" style="text-align:center;"
|+ style=white-space:nowrap | Differences
|+ style=white-space:nowrap | Differences
|-
|-
Line 66: Line 114:
! scope="col" | Sensor
! scope="col" | Sensor
! scope="col" | Touchkey
! scope="col" | Touchkey
! scope="col" | Panel Regulator
! scope="col" | Panel</br>Regulator
! scope="col" | NFC
! scope="col" | NFC
! scope="col" | Secondary Microphone
! scope="col" | Secondary</br>Microphone
|-
|-
| SM-J3109<br />SM-J320Y<br />SM-J320YZ
| SM-J3109<br />SM-J320Y<br />SM-J320YZ
| GPIO 0 1
| I2C</br>GPIO </br>0 1
| I2C2
| I2C2
| GPIO 31 32
| I2C</br>GPIO </br>31 32
| -
| -
| I2C1
| I2C1
Line 79: Line 127:
|-
|-
| SM-J320N0<br />SM-J320ZN
| SM-J320N0<br />SM-J320ZN
| GPIO 105 106
| I2C</br>GPIO </br>105 106
| GPIO 8 9
| I2C</br>GPIO </br>8 9
| GPIO 31 32
| I2C</br>GPIO </br>31 32
| GPIO 102
| GPIO </br>102
| I2C2
| I2C2
| -
| -
|-
|-
| SM-J320P<br />SM-J320R4
| SM-J320P<br />SM-J320R4<br />SM-J320V<br />SM-S320VL
| I2C1
| I2C1
| I2C2
| I2C2
Line 92: Line 140:
| -
| -
| -
| -
| Yes<br />
| Y
|}
|}


Line 98: Line 146:
Press Volume Down, Power, and Home all at the same time to boot to Odin mode. After lk2nd is installed, press Volume Down and Power at the same time.
Press Volume Down, Power, and Home all at the same time to boot to Odin mode. After lk2nd is installed, press Volume Down and Power at the same time.


== Installation ==
{{Device samsung-j5-common}}
{{lk2nd|samsung=true|target=msm8916}}
 
<!--
If you manage to get your device packages merged, uncomment links below and change DEVICE_CODENAME with the actual one.
* [https://gitlab.com/postmarketOS/pmaports/tree/master/device/testing/device-DEVICE_CODENAME Device package]
* [https://gitlab.com/postmarketOS/pmaports/tree/master/device/testing/linux-DEVICE_CODENAME Kernel package]
-->
 
== Panel ==
There is no backlight/brightness control support yet. The panel goes sleeping and turns green. Press the power button to wake it up.
 
== Touchscreen ==
Touchscreen is not usable due to lacking of driver. Use mouse/keyboard instead.
 
== Bluetooth ==
Bluetooth somehow doesn't work without reloading kernel module <code>btqcomsmd</code>. Bluetooth should work after reloading.
<source lang="shell-session">
# modprobe -r btqcomsmd
# modprobe btqcomsmd
</source>
 
== USB OTG ==
J3 is currently unable to power up a usb device in mainline. Try a hub with external power supply.


== NFC ==
== Proximity Sensor ==
The NFC chip is a special version of PN547, which needs patched driver.
The driver for <code>cm36672p</code> proximity sensor is not available.


== Photos ==
== Photos ==
<gallery>
<gallery>
File:Samsung-j3ltespr.jpg|thumb|left|Old booting screen and it's fixed. It also turns green when sleeping.
File:Samsung-j3ltespr.jpg|thumb|left|Old booting screen and it has been fixed.
File:Samsung-j3.png|thumb|neofetch
File:Samsung-j3.png|thumb|neofetch
</gallery>
</gallery>


== See also ==
== See also ==
* [https://gitlab.com/wonderfulShrineMaidenOfParadise/pmaports/-/tree/j3/device/testing/device-samsung-j3 Device package]
* [[Samsung Galaxy J5 2015 (samsung-j5)]]
* [https://github.com/wonderfulShrineMaidenOfParadise/linux/tree/j3 Mainline testing tree]
* [[Samsung Galaxy J5 2016 (samsung-j5x)]]
* {{Device package|samsung-j3ltetw}}
* {{Firmware package|samsung-j3ltetw}}

Latest revision as of 16:05, 31 October 2024

Note This page is about the dedicated port of this device. There is also an optional generic port available for this device - see Generic MSM8916 (qcom-msm8916).
Samsung Galaxy J3 2016
Samsung Galaxy J3 2016
Samsung Galaxy J3 2016
Manufacturer Samsung
Name Galaxy J3 2016
Codename samsung-j3ltetw
Released 2016
Type handset
Hardware
Chipset Qualcomm Snapdragon 410 (MSM8916)
CPU 4x 1.2 GHz Cortex-A53
GPU Adreno 306
Display 1280x720
Storage 8 GB
Memory 1.5 GB
Architecture aarch64
Software
Original software Android
Original version 5.1.1
postmarketOS
Category testing
Pre-built images no
Mainline yes
Unixbench Whet/Dhry score 929.9
Optional Generic Port Generic MSM8916 (qcom-msm8916)
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
Partial
Screen
Partial
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Works
Camera
Broken
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
Works
GPS
No data
NFC
Broken
Modem
Calls
Works
SMS
Works
Mobile data
Works
Miscellaneous
FDE
Works
USB OTG
Partial
HDMI/DP
No data
Sensors
Accelerometer
Partial
Proximity
Broken
Haptics
No data
Barometer
No data
This device is marked as not booting.
Status: Dropped. It needs a new device tree.
Samsung Galaxy J3 2016
Manufacturer Samsung
Name Galaxy J3 2016
Codename samsung-j3ltespr
Released 2016
Type handset
Hardware
Chipset Qualcomm Snapdragon 410 (MSM8916)
CPU 4x 1.2 GHz Cortex-A53
GPU Adreno 306
Display 1280x720
Storage 16 GB
Memory 1.5 GB
Architecture aarch64
Software
Original software Android
Original version 5.1.1
postmarketOS
Category testing
Pre-built images no
Note Note: This page is about Qualcomm Snapdragon 410 (MSM8916) variants of Samsung Galaxy J3.

Contributors

  • LorenDB

Users owning this device


Variants

There are 9 known MSM8916 variants. Current device tree is based on SM-J3109/SM-J320Y/SM-J320YZ and the other variants need their own device tree to work properly.

Differences
Varaint MUIC Sensor Touchkey Panel
Regulator
NFC Secondary
Microphone
SM-J3109
SM-J320Y
SM-J320YZ
I2C
GPIO
0 1
I2C2 I2C
GPIO
31 32
- I2C1 -
SM-J320N0
SM-J320ZN
I2C
GPIO
105 106
I2C
GPIO
8 9
I2C
GPIO
31 32
GPIO
102
I2C2 -
SM-J320P
SM-J320R4
SM-J320V
SM-S320VL
I2C1 I2C2 I2C3 - - Y

How to enter flash mode

Press Volume Down, Power, and Home all at the same time to boot to Odin mode. After lk2nd is installed, press Volume Down and Power at the same time.

FRP Lock

Warning WARNING: Logout / delete all of the accounts (especially Google ones) in Android first, before you wiping out or flashing pmOS to partition userdata.

Installation

lk2nd is a secondary bootloader that provides a standard fastboot interface, which can be used to boot postmarketOS without Android boot flashed or pmbootstrap flasher flash_kernel.

  1. Download lk2nd-msm8916.img from Releases page on Github.
  2. Boot your phone to bootloader (Odin/Download) mode by holding Volume Down and Home while powering up.
  3. Follow lk2nd instructions to install lk2nd. Basically flash it to the boot partition (heimdall flash --BOOT lk2nd-msm8916.img)
  4. Follow Qualcomm_Snapdragon_410/412_(MSM8916)#Installation to install postmarketOS.
Note Note: Enter lk2nd fastboot mode by pressing only Volume Down + Power (without Home). Pressing Home additionally will bring you to the Samsung Download mode.

Screen

Screen works partially. While displaying the UI works fine, adjusting the brightness doesn't work.

Fuel Gauge/Charger

sm5703 charger/fuel gauge ic of this device and its driver is WIP, so the charging is not controlled and there is no charging status reporting.

USB OTG

Another sm5703 charger driver issue. It's currently unable to power up a usb device in mainline. Try a hub with external power supply.

Accelerometer

lis2hh12 accelerometer is not so stable for auto screen rotation, which suggests you to use fixed portrait or landscape mode.

Touch keys

The interrupts/input events are not handled properly and it needs a patched driver. See Tm2-touchkey.

NFC

The PN547 NFC chip uses a pad supply voltage (pvdd), which needs a patched driver.

Proximity Sensor

The driver for cm36672p proximity sensor is not available.

Photos

See also