[ROM][OFFICIAL] LineageOS 14.1 Nightlies for the Verizon Samsung Galaxy S3 (d2vzw)

Search This thread

mjb32803

Senior Member
Apr 26, 2011
171
116
Orlando, FL
OnePlus 7T
I've never flashed anything unsigned.

Sent from my LGL84VL using Tapatalk

Thursday, I learned a real-life lesson in WHY you NEVER want to USE an UNSIGNED build.

It's kind of funny in a way.... but short story is I spent over half an hour on the phone with my bank's fraud department.
My online bank access was disabled because their "system" detected the use of a "fraudulent device" accessing my account.
You guessed it.... it was me testing out my UNSIGNED build, using my bank's android app. Funny right?

From this experience, I can deduce that while building lineage "technically" works (it builds error free, installs, and runs on the phone), you cannot effectively use that build unless it is SIGNED . The guides I've been following (IMHO) seem to imply that once you build, you are home free and that "signing" is just something else you could do (not the case at all). As I found out, "signing" the build is critical.

For reference, I've been using the guides here:

https://wiki.lineageos.org/devices/d2vzw/build
https://xdaforums.com/chef-central/android/how-to-build-lineageos-14-1-t3551484


Now I'm busy trying to get the signing process to work, which so far, has been as complicated at the build process.

Just in case others come looking for guides, I've been reading through here:

https://xdaforums.com/chef-central/android/signing-cyanogenmod-rom-building-t3385756
https://wiki.lineageos.org/signing_builds.html

---------- Post added at 04:10 PM ---------- Previous post was at 03:28 PM ----------

Google is your friend.... but today, Reddit was my BEST friend.

https://www.reddit.com/r/LineageOS/...am_i_building_it_the_efficient_way_are_there/
 

Droidriven

Senior Member
Jan 27, 2014
16,239
13
5,625
NC
Verizon Samsung Galaxy S III
HTC Thunderbolt
Thursday, I learned a real-life lesson in WHY you NEVER want to USE an UNSIGNED build.

It's kind of funny in a way.... but short story is I spent over half an hour on the phone with my bank's fraud department.
My online bank access was disabled because their "system" detected the use of a "fraudulent device" accessing my account.
You guessed it.... it was me testing out my UNSIGNED build, using my bank's android app. Funny right?

From this experience, I can deduce that while building lineage "technically" works (it builds error free, installs, and runs on the phone), you cannot effectively use that build unless it is SIGNED . The guides I've been following (IMHO) seem to imply that once you build, you are home free and that "signing" is just something else you could do (not the case at all). As I found out, "signing" the build is critical.

For reference, I've been using the guides here:

https://wiki.lineageos.org/devices/d2vzw/build
https://xdaforums.com/chef-central/android/how-to-build-lineageos-14-1-t3551484


Now I'm busy trying to get the signing process to work, which so far, has been as complicated at the build process.

Just in case others come looking for guides, I've been reading through here:

https://xdaforums.com/chef-central/android/signing-cyanogenmod-rom-building-t3385756
https://wiki.lineageos.org/signing_builds.html

---------- Post added at 04:10 PM ---------- Previous post was at 03:28 PM ----------

Google is your friend.... but today, Reddit was my BEST friend.

https://www.reddit.com/r/LineageOS/...am_i_building_it_the_efficient_way_are_there/
In my time here, I've never even heard of or seen anyone flashing unsigned ROMs, I wasn't even aware that you could even build a flashable ROM without signing it because, for me, signing is a required default part of the process.

How you overlooked the fact that is a key part of the process is beyond me. Everything I've ever read made it a standard, not an optional thing.

Sent from my LGL84VL using Tapatalk
 
  • Like
Reactions: Ibuprophen

mjb32803

Senior Member
Apr 26, 2011
171
116
Orlando, FL
OnePlus 7T
In my time here, I've never even heard of or seen anyone flashing unsigned ROMs, I wasn't even aware that you could even build a flashable ROM without signing it because, for me, signing is a required default part of the process.

How you overlooked the fact that is a key part of the process is beyond me. Everything I've ever read made it a standard, not an optional thing.

Sent from my LGL84VL using Tapatalk

Apparently quite easily.... /s
I went back and re-read through this link <https://xdaforums.com/chef-central/android/how-to-build-lineageos-14-1-t3551484>, then just to be sure, did a search on "sign"... found nothing pertinent

Then I went to this link other link I was using <https://wiki.lineageos.org/devices/d2vzw/build>
The only reference I saw was this text.. " Tip: Want to learn how to sign your own builds? Take a look at Signing builds."
"Tip" doesn't exactly scream that this is something critical and/or mandatory.... but hey, maybe it's just me?

To provide context, the "Tip" it is located AFTER the section that builds, and right BEFORE the section to install.

"Start the build
Time to start building! Now, type:
croot
brunch d2vzw

The build should begin.
Tip: Want to learn how to sign your own builds? Take a look at Signing builds.
Install the build
Assuming the build completed without errors (it will be obvious when it finishes), type the following in the terminal window the build ran in:
cd $OUT"
 

Droidriven

Senior Member
Jan 27, 2014
16,239
13
5,625
NC
Verizon Samsung Galaxy S III
HTC Thunderbolt
Apparently quite easily.... /s
I went back and re-read through this link , then just to be sure, did a search on "sign"... found nothing pertinent

Then I went to this link other link I was using
The only reference I saw was this text.. " Tip: Want to learn how to sign your own builds? Take a look at Signing builds."
"Tip" doesn't exactly scream that this is something critical and/or mandatory.... but hey, maybe it's just me?

To provide context, the "Tip" it is located AFTER the section that builds, and right BEFORE the section to install.

"Start the build
Time to start building! Now, type:
croot
brunch d2vzw

The build should begin.
Tip: Want to learn how to sign your own builds? Take a look at Signing builds.
Install the build
Assuming the build completed without errors (it will be obvious when it finishes), type the following in the terminal window the build ran in:
cd $OUT"
I'm not criticising, I just didn't understand how you came to your interpretation. Forgive me for saying, but, it seemed as if you didn't fully dig in to understand what you were doing, it seemed that you dug only deep enough to "throw" a build together.

Software development in android can be a risky thing as it can easily destroy a device just testing your work. Android devices aren't as flash friendly as PC, there isn't much you can do with PC to render it completely dead unless you flash an incorrect BIOS. Android is much more hardware/software specific than even the most complex PC system.

When developing android, it's best to research it from all angles and at all depths because there are a lot of specifics involved with most devices, specifics that can easily be overlooked even by those with experience and can cause major issues.

When attempting a process that you've never done, research the "don't do's" involved along with the "How to do's" involved in the process. Look for things discussing the mistakes that others made when attempting the process and their solutions. This gives you the advantage of being aware of the various mistakes to avoid and how to correct any issues if anything does go wrong.

In other words, don't just learn how to get to the door and open the door, also research what is on the other side of the door and what to expect, BEFORE opening that door. Waiting until after you've opened the door and stepped through to do more research is a disadvantage because you may have stepped into a pit that there is no escape from or any solution to.

Sent from my LGL84VL using Tapatalk
 
Last edited:
  • Like
Reactions: mjb32803

mjb32803

Senior Member
Apr 26, 2011
171
116
Orlando, FL
OnePlus 7T
My Build Experience ---- Do's and Don'ts

Caveat: Just documenting my "do's and don'ts" experiences, while I try and learn how to build LineageOS for the d2vzw.

Just to document how much research I've been doing leading to where I am today, here are my notes. Maybe someone else trying to learn will find something useful.

Websites with valuable information that helped (thanks to all the people involved with those pages)

https://wiki.lineageos.org/devices/d2vzw/build
https://xdaforums.com/chef-central/android/how-to-build-lineageos-14-1-t3551484
https://gist.github.com/fourkbomb/ce92262fc633a9a001e19095c0e9d734
https://download.lineageos.org/shamu
https://www.reddit.com/r/LineageOS/...am_i_building_it_the_efficient_way_are_there/
https://www.reddit.com/r/LineageOS/...am_i_building_it_the_efficient_way_are_there/
https://github.com/TheMuppets/proprietary_vendor_samsung/tree/lineage-15.1/d2-common/proprietary/bin

IMPORTANT - when you open a command line window, do ALL of these commands within that SAME window... each window is isolated WRT setting variables

First part is to setup build environment and download the android repository (repo)
I followed this guide to accomplish this step https://xdaforums.com/chef-central/android/how-to-build-lineageos-14-1-t3551484

I then deviated from the build procedures in the guide above. Those procedures let you create an unsigned build, which, while it will "work", isn't be best solution. I followed the instructions below to setup the signing infrastructure, and then sign everything after the building process is over.

Generating the keys that will be necessary to sign your builds
Note: You only need to run this ONCE.
BACKUP these CERTIFICATES!!!!

If you ever loose them and need to rerun these, you’ll need to migrate between builds, which means WIPING DATA (aka Factory Reset)

Make sure you are in the root of your Android tree (~/android/system)

These parameters will be used to define a system variable that will be used to create the signing certificates.

/C=<your country>
/ST=<your state>
/L=<your city>
/emailAddress=<your email address>

Run the following commands <edit the parameters listed above, within the 'subject' variable below. My specific information is used below.

subject='/C=US/ST=Florida/L=Orlando/O=Android/OU=Android/CN=Android/emailAddress=android@myisp.com'
mkdir ~/.android-certs
for x in releasekey platform shared media; do ./development/tools/make_key ~/.android-certs/$x "$subject"; done

You will be asked to create a PASSWORD for the certificates.
The password can be left blank.
If you do use a password, when flashing later, you will get a ZIP Verification error.
To get around the error, disable ZIP Verification checking in TWRP.

Signing will required additional certificates {cyngn-app,cyngn-priv-app,testkey}.{pk8,x509.pem}
These certificates can be created by using symbolic links to the releasekey cert

Put these in the same folder you generated media,platform,releasekey,shared.

It'll look like this when you are done:

lrwxrwxrwx 14 cyngn-app.pk8 -> releasekey.pk8
lrwxrwxrwx 19 cyngn-app.x509.pem -> releasekey.x509.pem
lrwxrwxrwx 14 cyngn-priv-app.pk8 -> releasekey.pk8
lrwxrwxrwx 19 cyngn-priv-app.x509.pem -> releasekey.x509.pem
-rw-r--r-- 1217 media.pk8
-rw-r--r-- 1115 media.x509.pem
-rw-r--r-- 1218 platform.pk8
-rw-r--r-- 1115 platform.x509.pem
-rw-r--r-- 1216 releasekey.pk8
-rw-r--r-- 1115 releasekey.x509.pem
-rw-r--r-- 1217 shared.pk8
-rw-r--r-- 1115 shared.x509.pem
lrwxrwxrwx 14 testkey.pk8 -> releasekey.pk8
lrwxrwxrwx 19 testkey.x509.pem -> releasekey.x509.pem

Create the symbolic links by running:
Hint: copy and paste the entire script onto the command line and press enter.

# symlink certs
for c in cyngn{-priv,}-app testkey; do
for e in pk8 x509.pem; do
ln -s releasekey.$e $c.$e;
done;
done

Six new certificates should show up. You are done with this step.

Now it's time to build lineageos. Run the following commands:
Note that <codename> is the name of your specific phone. In this case it is the Verizon version of the Samsung Galaxy SIII --> d2vzw

cd ~/android/system
make clean
rm /home/bakermj/android/system/out/dist/*target_files*
repo sync
source build/envsetup.sh
breakfast d2vzw
export USE_CCACHE=1
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
mka target-files-package dist


Sit back and wait for a while - it may take a while depending on your computer’s specs.
If you see a LOT of WARNING messages, don't worry, that is normal.
After it’s finished, you just need to sign all the APKs:

croot
TARGET_FILES_SIGNED=lineage-$(get_build_var LINEAGE_VERSION)-signed-target_files.zip

./build/tools/releasetools/sign_target_files_apks -o -d ~/.android-certs ~/android/system/out/dist/*-target_files-*.zip $TARGET_FILES_SIGNED


The file 'lineage-<LINEAGE_VERSION>-signed-target_files.zip" will be in ~/android/system


Generating the install package

Now, to generate the installable zip, run:

OTA_PACKAGE=lineage-$(get_build_var LINEAGE_VERSION)-install.zip

./build/tools/releasetools/ota_from_target_files -k ~/.android-certs/releasekey --block --backup=true $TARGET_FILES_SIGNED $OTA_PACKAGE

The build is located in ~/android/system

This build requires a factory reset, which means you will then need to install GAPPS afterward.
If you did a FULL wipe (including System), then you will loose root.
If that happens you will need to flash addonsu-14.1-arm-signed.zip which is located here https://download.lineageos.org/extras
__________________________________________________________________________
Other method for signing and building, BUT there are ISSUES with this process at the moment, so DO NOT USE, as it DOES NOT WORK
Create certificates as above.
Create symbolic link to certs.

goto /home/bakermj/android/system/device/samsung/d2vzw
edit full_d2vzw.mk

add to the end of the script

PRODUCT_DEFAULT_DEV_CERTIFICATE := /home/bakermj/.android-certs/releasekey
save the file

now build using:


cd ~/android/system
repo sync
source build/envsetup.sh
breakfast d2vzw
export USE_CCACHE=1
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
croot
brunch d2vzw

the build process will sign the files as it is being built...
nothing else to do afterwards


the build will be located in /home/bakermj/android/system/out/target/product/d2vzw
 
Last edited:
Just a suggestion/recommendation @mjb32803...

You may want to create a separate thread for your Progress on your Unofficial LineageOS 14.1 for the d2vzw.

I only mentioned this to help prevent any, potential, backfire from XDA or one of the Official LineageOS Developers thinking that you may be, inadvertently, Hijacking this thread.

Maybe you can title it similar to the following...

[DISCUSSION][UNOFFICIAL]LineageOS 14.1 for the Samsung Galaxy S3[d2vzw]

I would hate to see you, possibly, receive any negative responses for your great work that is progressing very well.


~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
 

mjb32803

Senior Member
Apr 26, 2011
171
116
Orlando, FL
OnePlus 7T
Just a suggestion/recommendation @mjb32803...

You may want to create a separate thread for your Progress on your Unofficial LineageOS 14.1 for the d2vzw.

I only mentioned this to help prevent any, potential, backfire from XDA or one of the Official LineageOS Developers thinking that you may be, inadvertently, Hijacking this thread.

Maybe you can title it similar to the following...

[DISCUSSION][UNOFFICIAL]LineageOS 14.1 for the Samsung Galaxy S3[d2vzw]

I would hate to see you, possibly, receive any negative responses for your great work that is progressing very well.


~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.

Thanks for the heads-up, and apologies if I've stepped on toes... I don't spend much time on XDA and I'm an old guy who doesn't know much about the protocols. I mistakenly assumed since I was trying to pick up where the OP stopped, it would be ok to post here. Obviously that is not acceptable. I will hold back on the posting for now and do some more reading on the "thread starting" process. With my luck, I'll start it under the wrong category and end up offending someone.
 
Thanks for the heads-up, and apologies if I've stepped on toes... I don't spend much time on XDA and I'm an old guy who doesn't know much about the protocols. I mistakenly assumed since I was trying to pick up where the OP stopped, it would be ok to post here. Obviously that is not acceptable. I will hold back on the posting for now and do some more reading on the "thread starting" process. With my luck, I'll start it under the wrong category and end up offending someone.
The following thread is from an XDA Administrator with a little guidance for New Threads.

https://xdaforums.com/showthread.php?t=2635135

This type of Discussion Thread can be posted within one of the following areas of the forum.

https://xdaforums.com/galaxy-s3-verizon/general

https://xdaforums.com/galaxy-s3-verizon/help

Just a little Helper for you... :)


~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
 
  • Like
Reactions: J-Lindo
I just wanted to spread the word regarding the following thread for those who may be interested in a continued development for an Unofficial release.

[ROM] [Unofficial] [LineageOS 14.1] [Verizon] [d2vzw] [SCH-I535] by mjb32803

This specific conversation will need to take place there to prevent any misunderstandings regarding this Official and the above threads Unofficial releases.

Thank you very much for your time and understanding with this! :)


~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
 
Last edited:
  • Like
Reactions: J-Lindo

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1 (Nougat), which is designed to increase performance and reliability over stock Android for your device.

    Code:
    #include <std_disclaimer.h>
    
    /*
     * Your warranty is now void.
     *
     * We are not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you.
     *
     */

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

    Download Links

    LineageOS:
    Downloads: https://download.lineageos.org/d2vzw

    Google apps addon:
    OpenGapps: http://opengapps.org/ (you'll want a zip for the ARM platform, Android version 7.1)
    HEADS UP: Be sure you flash the gapps package with your rom. If you boot your rom, then go back and try to flash gapps after the fact, you're gonna have a bad time.

    Firmware:
    Your best bet is to be on the MF1 bootstack/NE1 modem combo. Here's a flashable zip (this only needs to be done once): http://www.invisiblek.org/firmware/d2/d2vzw_MF1_firmware_NE1_modem.zip

    Misc Links

    Changelog:
    Link: https://download.lineageos.org/d2vzw/changes/

    Learn to build yourself:
    Link: https://wiki.lineageos.org/devices/d2vzw/build

    The LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!

    XDA:DevDB Information
    [ROM][OFFICIAL] LineageOS 14.1 Nightlies for the Verizon Samsung Galaxy S3 (d2vzw), ROM for the Verizon Samsung Galaxy S III

    Contributors
    invisiblek
    Source Code: http://github.com/LineageOS

    ROM OS Version: 7.x Nougat

    Version Information
    Status: Nightly

    Created 2016-12-05
    Last Updated 2016-12-05
    11
    Just an FYI regarding a link that's titled

    "List of devices getting official LineageOS Roms"

    http://www.lineageosrom.com/2016/12/list-of-devices-getting-official.html

    Just spreading the word that the d2vzw is on the list. I'm hoping that it remains there for when they release the ROMs.

    YAY!!!

    Sent from my SCH-I535 using XDA Labs


    This is 100% NOT legit. This guy is not affiliated with us at all and is completely trying to mislead people for whatever reason. I HIGHLY recommend not downloading anything off that website.
    6
    Anyone know our future status here? Will we continue to be supported by LineageOS, or is this the end of the road?

    After doing some digging, I found this branch on github.. Hopefully this means we will continue to be supported

    https://github.com/LineageOS/android_device_samsung_d2vzw

    Nah, looks like we are good! :) There are a few people building UNOFFICIALS for us right now, with OFFICIALS to follow when they get build servers and everything else sorted out. If you want to try it, here is a good working build: http://download.invisiblek.org/roms/lineage-14.1/d2vzw/lineage-14.1-20170106-UNOFFICIAL-d2vzw.zip
    I have been running it all day with no issues, pretty much same as last CM builds were. However ***NOTE***, you MUST wipe clean before you flash this, you cannot dirty flash or upgrade this from Cm 14.1 builds due to the fact that this build does not use "test keys" as the OFFICIAL Cm14.1 builds did before shutdown..

    Stealth111
    4
    How can I install it on 4.4.2 Verizon device? :(

    No Soup for you ;)
    4
    I just wanted to let you all know that I have been doing some much needed housecleaning on my PC and I just uploaded, to my File Host Account, a ton of (untouched) CyanogenMod releases for archival purposes that date back to CM10 (and even earlier in some cases) for the d2vzw, d2lte, jfltevzw and jfltexxx.

    If anyone is interested in any/all of them, they can go to the following link(s):

    D2VZW

    D2LTE

    JFLTEVZW

    JFLTEXXX


    Though, I'm pretty confident that I uploaded all of what I have, i plan to upload any additional ones if i come across any more.

    ENJOY!


    Sent from my SCH-I535 using XDA Free mobile app