Cannot root & flash LineageOS 14.1 (v1awifi) with sequence in LineageOS wiki page

Bearacuda

Member
Dec 6, 2017
10
1
0
Cannot root & flash LineageOS 14.1 (v1awifi) with sequence in LineageOS wiki page

Presently I have an unrooted SM-P900
Android: v 5.0.2
Build: LRX22G.P900UES1CPL1

I am using a custom built desktop Windows 10 machine. At this point I don't know what else to try. I'm not a computer noob, but I am new to rooting and flashing Android ROMs. I'm hoping I can get help from the community.

The installation instructions I followed are on the Lineage OS wiki. I can't post the link because I have fewer than 10 posts here.

1. Success: Setup "adb" via instructions. Entered "adb devices" and got successful response.
2. Success: Enabled USB debugging on P900.
3. Success: Installed Heimdall Suite v 1.4.0. Found at Glassechidna website. Installed " Microsoft Visual C++ 2012 Redistributable Package (x86)" version 4. Typed "heimdall version" in 'Command Prompt' and got "1.4.0" in response.
4. Success: Next - 'Power' + 'Vol. Down' + 'Home' - to get into 'Download Mode' on the P900: Successful.
5. Success: Run "zadig.exe" [v2.0.0]. 'Options' menu, 'List all devices'. Found item called "Gadget Serial" that represents my tablet.
6. Success: In "zadig.exe", choose a 'driver' and click "Replace Driver" button.
a. The 'driver' options to choose from are: WinUSB (v6.1.7600.16385), libusbK (v3.0.4.0), libusb0 (v1.2.5.0).
b. In my efforts to be successful, I tried all 3 drivers.
7. FAIL: Test Heimdall Suite setup. Type "heimdall print-pit --verbose", if device reboots then Heimdall is installed and working correctly.
* This is the point in the installation process I can't get past. I get errors and my P900 does not reboot. In the 'Command Prompt' I see:
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...

Initialising protocol...
ERROR: Failed to initialise protocol!


** 'Verbose' mode returns more information than what I've shown. The 'Initializing protocol' step has failed with errors: -1, -7, -12 depending on the drivers I installed in Step 6. Those drivers are compiled into the "zadig.exe" program.

I have tried the following:
( 1 ) All three drivers in v2.0.0 of 'zadig.exe' listed above.
( 2 ) All four drivers in v2.3.701 of 'zadig.exe' which includes: WinUSB (v 6.1.7600.xxxx), libusb-win32 (v1.2.6.0), libusbk (v3.0.7.0), usb Serial (CDC).
( 3 ) USB 3.0 samsung cable in both USB 2.0 and USB 3.0 ports.
( 4 ) USB 2.0 Amazon cable in both USB 2.0 and USB 3.0 ports.
( 5 ) Repeated all previous steps with a Lenovo Ideapad Y470 laptop with Windows 10. Nothing different happened.
( 6 ) Reinitializing Android OS with Kies v3. Kies sees the P900. I can choose to 'update and reinitialize'. It presents a status bar showing it is downloading something. The tablet then goes into 'Download Mode'. But then I get an error that connection with the P900 was lost. Tried this with USB 2.0 / USB 3.0 cables and ports on desktop PC, same result.

My thoughts:
[ i ] There is a v1.4.2 of the Heimdall Suite. But only the source code is available. When I googled it I read of people having more success with that most recent version on other Android devices. But, I don't know the first thing about compiling the code into a Windows 10 executable. And I don't want to use Linux distro CD to run v1.4.2 because I know nothing about Linux OS.
[ ii ] I used 'Power' + 'Vol. Up' + 'Home' to reformat P900 into factory condition prior to all of these steps. But I thought that my tablet initially was 4.4.2 Android. I thought perhaps downgrading the Android OS to 4.4.2 might help, which is why I tried KIES. But even that does not work.
[ iii ] My initial motivation for doing this was to format my external SD card as internal. I know it will be slower, but that is ok. I just do not want to have storage limitations (I have 32 GB version). v 5.0.2 has immature options to achieve this on the P900. I couldn't simply format the external SD card as 'internal'. NO option to do so.

Thank you,
Bearacuda
 
Last edited:

Bearacuda

Member
Dec 6, 2017
10
1
0
UPDATE

I reached out to the LineageOS community on Reddit. AndyCGYan replied and told me he had compiled 1.4.2 windows versions of heimdall.exe and heimdall-frontend.exe. I asked him to share them with me. He did. In a command prompt I typed: "heimdall142 print-pit --verbose". The command prompt scrolled with a flurry of text and my SM-P900 rebooted from 'Download Mode'. It worked!

I'd feel better if the Glassechidna guy would compile his own software into a 1.4.2 windows product, but I'm grateful this guy responded.

Thanks AndyCGYan
 

Bearacuda

Member
Dec 6, 2017
10
1
0
UPDATE 2: SM-P900 flashed with TRWP and Lineage OS 14.1

I finished the process of flashing my SM-P900 to the Lineage OS v14.1 (20171125). Lineage OS v14.1 (20171202) gave the following error:
"adb: error: failed to get feature set: no device/emulators found"

But when I flashed the 20171125 version it worked. So I'm guessing there is a problem with the 1202 nightly.

The Windows compiled v1.4.2 version of Heimdall I received got me past the 1.4.0 print-pit problem. I don't have 10 messages posted here yet so I can't post the link to the files. But if you go to my post on Reddit in the Lineage OS forum you'll see the link. The person who made the files available to me said he'd keep the files there for others to download. Unless you compile them yourself, I don't know of anywhere else these can be obtained.

To clarify, here is the information regarding my SM-P900
Stock Android v5.0.2
Country: Cellular South (XAR)
PDA: P900UES1CPL1
CSC: P900XAR1CPL1

Kies 3.0 (to obtain most recent Windows Samsung device drivers)
ADB v1.0.39
Heimdall Suite (v1.4.0 with heimdall.exe (v1.4.2) and heimdall-frontend.exe (v1.4.2) replacing 1.4.0 versions)
TWRP v3.1.1-0-v1awifi
Lineage OS 14.1 - Android v7.1.2 - nightly version 20171125 (20171202 gave an error)
Open GApps - arm - v7.1 nano
addonsu - arm - v14.1

NOTE: Even though ADB was successfully setup, I was not successful pushing any files (TWRP, LineageOS, etc.) onto "/sdcard/". Trying so caused an error. I was able to:
( 1 ) remove my extSDCard (64gb Samsung) from the SM-P900,
( 2 ) plug it into my computer and copy over the TWRP, LineageOS, Open Gapps, and addonsu zip files to extSDCard
( 3 ) re-insert my extSDCard back into SM-P900
( 4 ) In TWRP recovery mode, there is an 'INSTALL' button that lets you select multiple zips from either internal or external SD storage. After selecting the zips on the extSDCard all of the files flashed over just fine.

NOTE: When the LineageOS instructions tell you to reboot into recovery mode just after flashing TWRP, what they mean is to press the "REBOOT" button which then leads to a submenu with a "RECOVERY" button. I initially thought the "REBOOT" button meant restarting the system so I didn't push it. Instead I tried pressing the Home + Vol. UP + Power button combination. But all that did was restart the SM-P900 into the stock v5.0.2. Which according the LineageOS instructions destroys the TWRP custom recovery. After repeating this step several times while trying variations of button pressing I finally hit the "Reboot" button and found the submenu of additional options: "System", "Recovery", "Download", etc...

Good Luck
 

omniajet13

Senior Member
Dec 19, 2008
170
22
0
I reached out to the LineageOS community on Reddit. AndyCGYan replied and told me he had compiled 1.4.2 windows versions of heimdall.exe and heimdall-frontend.exe. I asked him to share them with me. He did. In a command prompt I typed: "heimdall142 print-pit --verbose". The command prompt scrolled with a flurry of text and my SM-P900 rebooted from 'Download Mode'. It worked!

I'd feel better if the Glassechidna guy would compile his own software into a 1.4.2 windows product, but I'm grateful this guy responded.

Thanks AndyCGYan
please can you share the 1.42 version with me? i am having the same problems
 

Gallion

Member
Mar 2, 2012
48
5
0
I'm not sure if there is a specific reason you proceeded using this method rather than using Odin as it was pretty painless to do it with Odin 3.10.6. This is what I did :

(I was already on Lollipop so I did not need to install a Lollipop bootloader.)
- Uploaded TWRP through Odin with auto-reboot and Reset Time unselected.
- I manually turned off the tablet after it was done flashing.
- I turned the tablet back on by pressing Vol.Up + Home + Power
- In TWRP : I swiped to allow modifications
- I made a backup
- I wiped everything except external storage
- I flashed Lineage OS and Magisk in one go.