Samsung Galaxy A5 2015 (samsung-a5)

Contributors

 * minecrell
 * maccraft123 (only wiki page)

Architecture
Some variants are released with Kitkat 4.4, which doesn't boot arm64 kernel, so upgrade to Lollipop 5.0 or later first.

Installation
There are several ways to install postmarketOS on Samsung Galaxy A5 2015. All of them require you to flash lk2nd.

Partition layout
Disk /dev/mmcblk0: 14.68 GiB, 15758000128 bytes, 30777344 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt

Device           Start      End  Sectors Name /dev/mmcblk0p1    8192    38911    30720 apnhlos /dev/mmcblk0p2   38912   156543   117632 modem /dev/mmcblk0p3  156544   157567     1024 sbl1 /dev/mmcblk0p4  157568   157631       64 ddr /dev/mmcblk0p5  157632   161727     4096 aboot /dev/mmcblk0p6  161728   162751     1024 rpm /dev/mmcblk0p7  162752   163775     1024 qsee /dev/mmcblk0p8  163776   164799     1024 qhee /dev/mmcblk0p9  164800   170943     6144 fsg /dev/mmcblk0p10 170944   170975       32 sec /dev/mmcblk0p11 170976   192511    21536 pad /dev/mmcblk0p12 192512   212991    20480 param /dev/mmcblk0p13 212992   241663    28672 efs /dev/mmcblk0p14 241664   247807     6144 modemst1 /dev/mmcblk0p15 247808   253951     6144 modemst2 /dev/mmcblk0p16 253952   280575    26624 boot /dev/mmcblk0p17 280576   311295    30720 recovery /dev/mmcblk0p18 311296   337913    26618 fota /dev/mmcblk0p19 337914   352231    14318 backup /dev/mmcblk0p20 352232   358375     6144 fsc /dev/mmcblk0p21 358376   358391       16 ssd /dev/mmcblk0p22 358392   374775    16384 persist /dev/mmcblk0p23 374776   393207    18432 persdata /dev/mmcblk0p24 393208  5275639  4882432 system /dev/mmcblk0p25 5275640 5685239   409600 cache /dev/mmcblk0p26 5685240 30777303 25092064 userdata

Plasma Mobile
Plasma mobile currently works on A5 2015, but you should set custom scaling factor to 2.

should work.

To run this command from ssh session add the following env variables to the above command:

Plasma works smoothly, but there are some graphical glitches sometimes.

Battery
Somehow the battery can be charged to 102%.

Ambient Light/Proximity Sensor
The driver for  ambient light/proximity sensor is not available.

Mobile Data
2G and 3G working. 4G not working. Need to got to Setting, Mobile Data, Network Mode and select 2G, 3G (Preferred)

Dual Sim
Samsung Galaxy A5 Duos support dual sim but Samsung Galaxy A5 dont