FORUMS

 View Poll Results: What do you want next for the xCover3?

Custom Kernel
 
4 Vote(s)
26.67%
Modded Firmware (Custom Rom is unfeasible for me)
 
8 Vote(s)
53.33%
Custom Built TWRP for Lollipop
 
4 Vote(s)
26.67%
Other (Post in Thread)
 
1 Vote(s)
6.67%

Samsung XCover3 Development Thread [4.4.4/5.1.1/6.0.1] [Root, TWRP, Mods and ROMS]

642 posts
Thanks Meter: 293
 
By Matt07211, Senior Member on 20th September 2016, 03:42 AM
Post Reply Email Thread
6th October 2016, 08:37 AM |#21  
Matt07211's Avatar
OP Senior Member
Thanks Meter: 293
 
More
Quote:
Originally Posted by Heledir

Software for Samsung Galaxy Xcover 3 VE (SM-G389F) is Android 6.0, so I think it's for MM. The links:
- Device Tree / files

https://github.com/TeamWin/android_d...g_xcover3velte

Say its Android 6.0 branch.

I've install it yesterday with Odin and it works fine on my SM-G389F.

But i haven't find root for SM-G389F and MM.

Oh my fault, I Haden't noticed the "ve" in the end of the link, indicating that it was the value edition version of the phone (I belive the only difference between the two phones is, I belive (I have no proof as I haven't looked into the value edition version yet, is that the system partition is bigger allowing for marshmallow to fit into the system partition. In the normal edition, we have only 200 megabytes left after lollipop update, so probably not enough for Marshmallow. Other then the slightly different partition sizes I belive that the two devices have identical hardware)
I was referencing this version (https://twrp.me/devices/samsunggalaxyxcover3.html) when I said it wasn't working on lollipop, so I wonder if your value edition TWRP would work on the lollipop version (gonna test it later tonight)

Will update the OP with the relevant information/links with credit to you.

As for root on this device I am currently working on it (albeit not my full attention with both work and exam revision gaining most of my attention at the moment, my exams finish on 26 October, so it then will have my full attention until then this isn't of high priority)

My only road block is getting the boot.img to boot once flashed with Odin, which it isn't at the moment, not sure what security they have in place, but hey I will still keep trying till I get it.

Note: for anyone wanting the write-up I mentioned in a earlier post, I haven't had much time to work on it so it's slowly being written up.
Sorry for the wait
8th October 2016, 06:43 PM |#22  
Junior Member
Thanks Meter: 6
 
More
Hi,

here is the analysis of pit file for XCOVER 3 VE (SM-G389F XEF):

PIT file Analysis:
Code:
----------------------------------------------------------
PIT Magic v1.3.10 Copyright © Gaz 2012.
----------------------------------------------------------
Analysis for: XCOVER3VELTE_EUR_OPEN.pit
----------------------------------------------------------


----------------------------------------------------------
<<< Pit File Start >>>
----------------------------------------------------------


----------------------------------------------------------
<<< PIT File Header Information >>>
----------------------------------------------------------

Header Magic: 0x12349876     (4 Bytes)
Entry Count:  26             (4 Bytes)

----------------------------------------------------------
Dummy Data #1 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       COM_
Hexadecimal:  434F4D5F

----------------------------------------------------------
Dummy Data #2 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       TAR2
Hexadecimal:  54415232

----------------------------------------------------------
Dummy Data #3 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       LSI3
Hexadecimal:  4C534933

----------------------------------------------------------
Dummy Data #4 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       475
Hexadecimal:  34373500

----------------------------------------------------------
Dummy Data #5 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       
Hexadecimal:  00000000

----------------------------------------------------------
Dummy Data Length: (4 Bytes Per Block, 20 Bytes In Total.)
----------------------------------------------------------

Header Size: (28 Bytes)


----------------------------------------------------------
<<< PIT File Entries >>>
----------------------------------------------------------


----------------------------------------------------------
Entry Memory Address: 0x1C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 80
Attribute:                  2                (STL)
Update Attribute:           1               (FOTA)
Block Size:                 
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             BOOTLOADER
Flash FileName:             sboot.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xA0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 70
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 34
Block Count:                16
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             PIT
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x124
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 71
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 50
Block Count:                2*048
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             MD5HDR
Flash FileName:             md5.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x1A8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 1
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 8*192
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             BOTA0
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x22C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 2
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 16*384
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             BOTA1
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x2B0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 3
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 24*576
Block Count:                40*960
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             EFS
Flash FileName:             efs.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x334
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 4
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 65*536
Block Count:                16*384
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             CPEFS
Flash FileName:             cpefs.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x3B8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 5
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 81*920
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             m9kefs1
Flash FileName:             m9kefs1.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x43C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 6
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 90*112
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             m9kefs2
Flash FileName:             m9kefs2.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x4C0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 7
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 98*304
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             m9kefs3
Flash FileName:             m9kefs3.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x544
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 8
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 106*496
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             CARRIER
Flash FileName:             carrier.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x5C8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 9
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 114*688
Block Count:                16*384
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             PARAM
Flash FileName:             param.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x64C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 10
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 131*072
Block Count:                26*624
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             BOOT
Flash FileName:             boot.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x6D0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 11
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 157*696
Block Count:                30*720
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             RECOVERY
Flash FileName:             recovery.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x754
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 12
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 188*416
Block Count:                16*384
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             OTA
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x7D8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 13
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 204*800
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             CDMA-RADIO
Flash FileName:             modem_cdma.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x85C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 14
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 212*992
Block Count:                81*920
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             RADIO
Flash FileName:             modem.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x8E0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 15
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 294*912
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             TOMBSTONES
Flash FileName:             tombstones.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x964
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 16
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 303*104
Block Count:                8*192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             TDATA
Flash FileName:             tdata.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x9E8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 17
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 311*296
Block Count:                2*048
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             PERSISTENT
Flash FileName:             
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xA6C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 18
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 313*344
Block Count:                24*576
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             PERSDATA
Flash FileName:             persdata.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xAF0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 19
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 337*920
Block Count:                6*144
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             RESERVED2
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xB74
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 20
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 344*064
Block Count:                4*718*592
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             SYSTEM
Flash FileName:             system.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xBF8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 21
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 5*062*656
Block Count:                409*600
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             CACHE
Flash FileName:             cache.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xC7C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 22
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 5*472*256
Block Count:                81*920
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             HIDDEN
Flash FileName:             hidden.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xD00
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 23
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 5*554*176
Block Count:                
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             USERDATA
Flash FileName:             userdata.img
FOTA FileName:              remained



----------------------------------------------------------
<<< Pit File End >>>
----------------------------------------------------------

Generated on: 08/10/2016 19:00:13
PIT file for Samsung SM-G389F XEF below:
Attached Files
File Type: zip XCOVER3VELTE_EUR_OPEN.zip - [Click for QR Code] (1.1 KB, 486 views)
The Following User Says Thank You to Heledir For This Useful Post: [ View ] Gift Heledir Ad-Free
8th October 2016, 10:46 PM |#23  
Matt07211's Avatar
OP Senior Member
Thanks Meter: 293
 
More
Quote:
Originally Posted by Heledir

Hi,

here is the analysis of pit file for XCOVER 3 VE (SM-G389F XEF):

PIT file Analysis:


PIT file for Samsung SM-G389F XEF below:

Thanks for that, I will be sure to link to one of the beginging post with credit to you. I am assuming you pulled that off your device while it's rooted, if so can you please confirm the way the value edition was rooted. Since twrp for the value edition only got realeased a week ago, and I don't have the value editon I have been unable to verify if it works or if flashing SuperSu worked as well. I am unable to try twrp on the normal edition as the 2 different devices have didfferent boards inside, witht the normal using Marvell Amda pxa1908 and the value editon using an exynos variant.
9th October 2016, 06:56 AM |#24  
Matt07211's Avatar
OP Senior Member
Thanks Meter: 293
 
More
Status Update: An able to boot a custom boot.img with modifications to the ramdisk (especially defult.prop). Now I have hit another road block, that is Samsung's anti-root feature is turned on the stock kernel. Simple fix, compile the kernel with it switched off, will post back here in a few hours with the results
9th October 2016, 12:37 PM |#25  
Junior Member
Thanks Meter: 6
 
More
Yes my phone is rooted with SuperSU-v2.78 since 3 days and it works well.

I've recovered the first pit file (post #22):

XCOVER3VELTE_EUR_OPEN.pit

from the CSC file extracted from this firmware (4 files):

SM-G389F_1_20160901153627_wsmi169bbc_fac.zip

loaded with SamFirm and made his analysis with Pit Magic.

This one:

SM-G389F.pit

is extract with EFS Professional from my rooted phone and busyBox installed.

And here is analysis of this file:

Code:
----------------------------------------------------------
PIT Magic v1.3.10 Copyright © Gaz 2012.
----------------------------------------------------------
Analysis for: SM-G389F.pit
----------------------------------------------------------


----------------------------------------------------------
<<< Pit File Start >>>
----------------------------------------------------------


----------------------------------------------------------
<<< PIT File Header Information >>>
----------------------------------------------------------

Header Magic: 0x12349876     (4 Bytes)
Entry Count:  26             (4 Bytes)

----------------------------------------------------------
Dummy Data #1 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       COM_
Hexadecimal:  434F4D5F

----------------------------------------------------------
Dummy Data #2 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       TAR2
Hexadecimal:  54415232

----------------------------------------------------------
Dummy Data #3 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       LSI3
Hexadecimal:  4C534933

----------------------------------------------------------
Dummy Data #4 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       475
Hexadecimal:  34373500

----------------------------------------------------------
Dummy Data #5 (In String and Hexadecimal Format):
----------------------------------------------------------
String:       
Hexadecimal:  00000000

----------------------------------------------------------
Dummy Data Length: (4 Bytes Per Block, 20 Bytes In Total.)
----------------------------------------------------------

Header Size: (28 Bytes)


----------------------------------------------------------
<<< PIT File Entries >>>
----------------------------------------------------------


----------------------------------------------------------
Entry Memory Address: 0x1C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 80
Attribute:                  2                (STL)
Update Attribute:           1               (FOTA)
Block Size:                 
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             BOOTLOADER
Flash FileName:             sboot.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xA0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 70
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 34
Block Count:                16
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             PIT
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x124
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 71
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 50
Block Count:                2 048
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             MD5HDR
Flash FileName:             md5.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x1A8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 1
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 8 192
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             BOTA0
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x22C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 2
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 16 384
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             BOTA1
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x2B0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 3
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 24 576
Block Count:                40 960
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             EFS
Flash FileName:             efs.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x334
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 4
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 65 536
Block Count:                16 384
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             CPEFS
Flash FileName:             cpefs.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x3B8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 5
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 81 920
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             m9kefs1
Flash FileName:             m9kefs1.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x43C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 6
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 90 112
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             m9kefs2
Flash FileName:             m9kefs2.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x4C0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 7
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 98 304
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             m9kefs3
Flash FileName:             m9kefs3.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x544
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 8
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 106 496
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             CARRIER
Flash FileName:             carrier.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x5C8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 9
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 114 688
Block Count:                16 384
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             PARAM
Flash FileName:             param.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x64C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 10
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 131 072
Block Count:                26 624
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             BOOT
Flash FileName:             boot.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x6D0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 11
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 157 696
Block Count:                30 720
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             RECOVERY
Flash FileName:             recovery.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x754
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 12
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 188 416
Block Count:                16 384
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             OTA
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x7D8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 13
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 204 800
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             CDMA-RADIO
Flash FileName:             modem_cdma.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x85C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 14
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 212 992
Block Count:                81 920
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             RADIO
Flash FileName:             modem.bin
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x8E0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 15
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 294 912
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             TOMBSTONES
Flash FileName:             tombstones.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x964
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 16
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 303 104
Block Count:                8 192
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             TDATA
Flash FileName:             tdata.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0x9E8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 17
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 311 296
Block Count:                2 048
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             PERSISTENT
Flash FileName:             
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xA6C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 18
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 313 344
Block Count:                24 576
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             PERSDATA
Flash FileName:             persdata.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xAF0
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 19
Attribute:                  5       (READ / WRITE)
Update Attribute:           1               (FOTA)
Block Size:                 337 920
Block Count:                6 144
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             RESERVED2
Flash FileName:             -
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xB74
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 20
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 344 064
Block Count:                4 718 592
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             SYSTEM
Flash FileName:             system.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xBF8
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 21
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 5 062 656
Block Count:                409 600
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             CACHE
Flash FileName:             cache.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xC7C
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 22
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 5 472 256
Block Count:                81 920
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             HIDDEN
Flash FileName:             hidden.img
FOTA FileName:              


----------------------------------------------------------
Entry Memory Address: 0xD00
----------------------------------------------------------

Binary Type:                0            (UNKNOWN)
Device Type:                2                (MMC)
Identifier:                 23
Attribute:                  5       (READ / WRITE)
Update Attribute:           5               (FOTA)
Block Size:                 5 554 176
Block Count:                
File Offset (Obsolete):     0
File Size (Obsolete):       0
Partition Name:             USERDATA
Flash FileName:             userdata.img
FOTA FileName:              remained



----------------------------------------------------------
<<< Pit File End >>>
----------------------------------------------------------
PIT file from my rooted Samsung SM-G389F XEF below:
Attached Files
File Type: zip SM-G389F.zip - [Click for QR Code] (1.0 KB, 192 views)
The Following User Says Thank You to Heledir For This Useful Post: [ View ] Gift Heledir Ad-Free
9th October 2016, 02:32 PM |#26  
Matt07211's Avatar
OP Senior Member
Thanks Meter: 293
 
More
Quote:
Originally Posted by Heledir

Yes my phone is rooted with SuperSU-v2.78 since 3 days and it works well.

I've recovered the first pit file (post #22):

XCOVER3VELTE_EUR_OPEN.pit

from the CSC file extracted from this firmware (4 files):

SM-G389F_1_20160901153627_wsmi169bbc_fac.zip

loaded with SamFirm and made his analysis with Pit Magic.

This one:

SM-G389F.pit

is extract with EFS Professional from my rooted phone and busyBox installed.

And here is analysis of this file:



PIT file from my rooted Samsung SM-G389F XEF below:

Cool thanks for the verification and I have aready includes the orignal pit file you posted, onto one of the top posts of this thread, I will just have to compare the differences between the 2 files tomorrow as the both have didfferent sha1sums.

Now the only device we don't have root on is the normal version running lollipop. I can successfully boot an custom boot.img thanks to the work of @akuhak in modifying the degas umkbootimg tool to suit our phones. I am able to boot Up with a modfied ramdisk that has the necessary changes for and to run as root (like ro.secure, debuggable etc.) But know another road block has come up, due to Samsung's anti-root features being enable I am unable to use "adb root" as it does not allow any unprivlaged process to set it's suid to be root. This means I have to recompile the kernel with this setting turned off. I have tried boot.img a custom kernel earlier today, but that didn't work. And with my exams coming up in a couple of days I really can't do much for the device for a little while. But basically we are half way to attaining root on the lollipop version.
9th October 2016, 02:35 PM |#27  
Junior Member
Thanks Meter: 21
 
More
Quote:
Originally Posted by Matt07211

I can successfully boot an custom boot.img thanks to the work of @akuhak in modifying the degas umkbootimg tool to suit our phones. I am able to boot Up with a modfied ramdisk that has the necessary changes for and to run as root (like ro.secure, debuggable etc.)

can you share your modified ramdisk?
The Following User Says Thank You to akuhak For This Useful Post: [ View ] Gift akuhak Ad-Free
9th October 2016, 03:04 PM |#28  
Matt07211's Avatar
OP Senior Member
Thanks Meter: 293
 
More
Quote:
Originally Posted by akuhak

can you share your modified ramdisk?

My modified ramdisk is attached at the bottom. I have already incorporated SuperSu (systemless), patched the sepolicy file (read the How-To SuperSu website for what patchs that where applied) and as well as the normal defult.prop edits, as in my above post we only have (I hope it's the last roadblock) samsungs anti-root is enabled in stock kernel. To see for your self, grab the "extract-ikconfig" script from yhe kernel sources and run it against your stock boot.img outputting it's contents to a .txt file and diff it against our defconfig or .config you will get this output below

Code:
diff ikconfig-extracted.txt  .config

264,270c264,265
< CONFIG_SAMSUNG_PRODUCT_SHIP=y
< CONFIG_SEC_TIMA=y
< CONFIG_TIMA_LKMAUTH=y
< CONFIG_TIMA_PKM=y
< CONFIG_TIMA_LKMAUTH_CODE_PROT=y
< CONFIG_TIMA_UEVENT=y
< CONFIG_TIMA_LOG=y
---
> # CONFIG_SAMSUNG_PRODUCT_SHIP is not set
> # CONFIG_SEC_TIMA is not set
2124a2120
> # CONFIG_GEN_PANEL_TUNING is not set
3393,3396c3389
< CONFIG_SEC_RESTRICT_ROOTING=y
< CONFIG_SEC_RESTRICT_SETUID=y
< CONFIG_SEC_RESTRICT_FORK=y
< CONFIG_SEC_RESTRICT_ROOTING_LOG=y
---
> # CONFIG_SEC_RESTRICT_ROOTING is not set
Are you able to boot a custom boot.img with a custom ramdisk @akuhak , Cause I can but when I tried with a custom kernel as well, the phone went into a boot loop. Enjoy looking through the modifications I have done with the ramdisk.

Keep in mind that I have done the necessary modifications needed for sysyemless root in the ramdisk, we are still getting block by the kernel and it's (samsungs) anti-root feature which doesn't allow processes to set their suid to root. If you compile the kernel and with this flag disabled and you can get it to boot, tell me. To verify, you can type "adb shell suid" and you can we it's running as a normal user, if you then type "adb root", you will then be running as root and you can verify this by using the same suid command, but this time it will be running as root with the id as "0".
If you get the shell as root, tell me, I can give you the su.img, you push it to your device, and upon reboot, it will be mounted and you should have root. If it works, then we can realease it for the users.

Tl; DR compile kernel with anti-root disabled, if it boots tell me ; )
Attached Files
File Type: gz boot.img-ramdisk-new.gz - [Click for QR Code] (1.19 MB, 120 views)
12th October 2016, 11:31 AM |#29  
Matt07211's Avatar
OP Senior Member
Thanks Meter: 293
 
More
Development on attaing root on lollipop is halted on my from 13/10/26 to 26/10/2016 due to exams. Any user feel free to try in my short absence, to compile your own kernel with anti-root off and using my above posted ramdisk, if it boots, PM me and I will give you/guide you/instruct from there to have a fully functional root.

Current Progress: 80% complete
Currently done:
- Modify ramdisk defult.prop to allow ADB roor without having the phone rooted in the traditional sense. This allows use to place the files in the correct positions needed for root in general. The road block/Snag is described in the next section.
- Placed the necessary files with the necessary permissions, as well as modifying any necessary files so SuperSu can work systemless (planning to also create a script to install into system for users who want that instead)
- Patched the sepolicy file to allow the required functions to run in permissive while leaving the rest of the phone in enforcing (Trying to reduce thevamiunt of security relaxed, I pefer my phone be as Secure as possible while still allowing root.)
- Got the phone booting up with a custom ramdisk thanks to the work of @akuhak , in creating/modifying the necessary tools to unpack and repack our boot.img properly

What's still needed to be done:
- Getting a compiled kernel to boot up on the phone. Why? Because of two reasons;
1) Although the necessary modifications to the ramdisk has been done to allow achiving root via ADB possible, due to the security focused Samsung they have added extra security called "anti-root", which stops "adb root" doing what it actually needs to do which is run adb as root (which is needed to place files on the phone to achive root). A stock kernel has this enabled by defult, a custom one does not, thus I need the custom kernel to boot on this phone, for which isn't happening at the moment.
2) Also disabling one flag to allow the selinux mode changes app to actually allow the changing from enforcing to permissive. I personally won't use it unless testing a mod, but would rather have the option there for when its needed
- Update my current "systemless" install script, as well as creating the "system" install script for users who want to install SuperSu into the system instead of the systemless way (giving the users a choice).



Reasons why root is harder to attain on lollipop then compared to the kitkat or the Value Edition version of the phone:

- Why is it harder to attain root on lollipop then Value Edition;
1) Value Edition is built with a different board (it's built with an exnyos board, where's the normal edition is built with a Marvell board) and chainfires tools are more aimed/tested/built to work on at the exnyos board, not out uncommon Marvell board
2) TWRP just got built for the value edition earlier this month, so it's realtuve simple to just flash SuperSu via TWRP.
- Why is it harder to atrain root on lollipp then kitkat;
1) As you all know, updating to lollipop brought new features and nore/better security. Quick note: Systemless Root works/aimed at/needed on Marshmallow and up devices or in Samsung's case 5.1.1 Lollipop (Read chainfires install script as it has a detection query to see If the device is a Samsung running 5.1.1, and if so use systemless root instead of system root). Therefore working around these restrictions require more work.
2) A more prevalent reason is becuse the current TWRP for the normal editon is built for KitKat and not for Lollipop and thus not able to boot. And I have not built it for it yet for the updated OS. Why haven't I built it, so I can just flash SuperSu.zip, it's becuse out device boot.img is not standard, and in chainfires posts/scripts he states that the scripts probably won't work on unstandard boot.img (unless his closed source binary accounts for that configuration I belive). As well as helping in achieving my end goal, which is a fully customized kernel (away from the standard custom one needed to gain root which will be released when I have got it booting), so with this in mind, getting able to get custom boot.img booting is a huge step foward in that direction.

Future plans:
- Release my own custom kernel.

So after reading all that you should know, how far left till root is acived on lollipop, and why lolipop needs/gets special attention/way of aciving root.As well as the fact that I can't do work on this project for about 2 weeks due to exams.

==========

I just feel like I'm talking to myself just to keep track of where I am at on this device and where I am headed. But I felt like posting it so any user who actually cares about this device and getting root on lollipop can follow along, know that i haven't given up, and I am close to achiving that goal.

~Matt07211
The Following 2 Users Say Thank You to Matt07211 For This Useful Post: [ View ] Gift Matt07211 Ad-Free
12th October 2016, 03:35 PM |#30  
Junior Member
Thanks Meter: 21
 
More
Im stopping post info here cause I cant compile custom kernel in my 32bit machine.

But I have some interesting things to post.

First of all I still has knox 0x0 ))) After flashing tons of recoveries still officiwl. Funny thing.

I was succesfully modified grand prime ve TWRP recovery with xcover stock kernel and now has twrp onboard. Of course without root but its funny to see its working ))

And still knox 0x0
The Following User Says Thank You to akuhak For This Useful Post: [ View ] Gift akuhak Ad-Free
12th October 2016, 09:35 PM |#31  
Matt07211's Avatar
OP Senior Member
Thanks Meter: 293
 
More
Quote:
Originally Posted by akuhak

Im stopping post info here cause I cant compile custom kernel in my 32bit machine.

But I have some interesting things to post.

First of all I still has knox 0x0 ))) After flashing tons of recoveries still officiwl. Funny thing.

I was succesfully modified grand prime ve TWRP recovery with xcover stock kernel and now has twrp onboard. Of course without root but its funny to see its working ))

And still knox 0x0

First, I bloody tripped Knox when flashing a boot.img and the message "SEANDROIDENFORCING" showed up in the first boot, so your lucky, but I belive your tool repack the boot.img properly so as not to trip Knox (I belive)

Secondly, I also had ubuntu 32-bit as a dual boot, but that didn't work, so I had to go to a 64but computer and use virtual box.

Third, it's cool you've got a different version of TWRP going meaning we can boot a custom recovery. But I would recommend against it for using its functions if it was designed for a different phone, reasons include that it might have different paths, meaning backup/restore might not work properly, or you could wipe the wrong thing due to it having the wrong paths etc. But it's a great proof of concept. We should propberly download the twrp source for 5.1.1 (I am gonna downlod the small version (just the stuff necessary for TWRP not the whole OMNi rom source code)when I have access to WiFi and after my exams (not my mobile data) which i believe you should be able to do all on a 32bit computer if your willing to try, if not I will
Post Reply Subscribe to Thread

Tags
noad, xcover3

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes