Install LineageOS on hammerhead (Nexus 5)
connect:
Solution: On LG Nexus 5, one must ensure that both the USB debugging mode and the USB Selection mode is set to CHARGING.
Ensure to delete adbkey and adbkey.pub from your ~/.android folder. (This folder is usually in C:\Users\username\.android)
Perform adb kill-server
then adb start-server
then adb devices
on Command Line terminal. See: ADB Command
USB Selection Mode: When you plug the phone in, swipe down on screen and you will note Charging mode, listed as the last notification item. Ensure it says Charging - if anything else, simply tap and choose Charging as the mode. See: MTP Mode
IMPORTANT: You must install all drivers in all device mode. The USB cable must be connected to the phone and computer at all time.
1) If the device is ON and on the standard operation state, ensure both Nexus 5 and MTP listed devices in Device Manager is installed. The MTP should be loaded as Android Bootstrap Loader driver/device.
2) If the device is OFF, ensure the device is detected and the driver is installed.
3) If the device is in debug mode (when phone is OFF, hold Volume Up and Down button simultaneously and press the power button until you see the screen showing START), ensure that the driver is installed in that mode as well.
In each mode, the device is detected and Device manager will refresh to show the device detected.
Congratulations: Your device should show up as device
when you run adb devices
command.
Unlocking the bootloader
- Make sure your computer has working fastboot and adb.
-
Enable USB debugging on your device.
- Connect the device to your PC via USB.
-
Open a terminal on the PC and boot the device to fastboot mode by typing:
adb reboot bootloader
You can also boot into fastboot mode via a key combination:
- With the device powered down, hold the Volume Down and Volume Up buttons. Then press and hold the Power button until a boot menu appears.
-
Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
If you see
no permissions fastboot
or<waiting for device>
, try runningfastboot
as root/Administrator. -
From the same terminal, type the following command to unlock the bootloader:
fastboot oem unlock
- If the device doesn’t automatically reboot, reboot it. It should now be unlocked.
- Since the device resets completely, you will need to re-enable USB debugging to continue.
Installing a custom recovery using fastboot
- Make sure your computer has working fastboot and adb.
- Enable USB debugging on your device.
- Download recovery - visit twrp.me to obtain the latest version of Team Win Recovery Project for your device.
- Connect your device to your PC via USB.
-
Open a terminal on the PC and boot the device to fastboot mode by typing:
adb reboot bootloader
You can also boot into fastboot mode via a key combination:
- With the device powered down, hold the Volume Down and Volume Up buttons. Then press and hold the Power button until a boot menu appears.
-
Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
If you see
no permissions fastboot
or<waiting for device>
, try runningfastboot
as root/Administrator. -
Flash recovery onto your device:
fastboot flash recovery your_recovery_img.img
- Now reboot into recovery to verify the installation:
- With the device powered down, hold the Volume Down and Volume Up buttons. Then press and hold the Power button until a boot menu appears. Navigate using the volume keys and select RECOVERY using the Power key.
Installing LineageOS from recovery
-
Make sure your computer has working
adb
. Setup instructions can be found here. -
Download the LineageOS install package that you’d like to install or build the package yourself.
- Optionally, download 3rd party application packages like Google Apps
- Place the LineageOS
.zip
package, as well as any other .zip packages on the root of/sdcard
:- Using adb:
adb push filename.zip /sdcard/
- You can use any method you are comfortable with.
adb
is universal across all devices, and works both in Android and recovery mode, providing USB debugging is enabled.
- Using adb:
- If you aren’t already in recovery, boot into recovery:
- With the device powered down, hold the Volume Down and Volume Up buttons. Then press and hold the Power button until a boot menu appears. Navigate using the volume keys and select RECOVERY using the Power key.
- (Optional, but recommended): Select the Backup button to create a backup.
- Select Wipe and then Advanced Wipe.
- Select Cache, System and Data partitions to be wiped and then Swipe to Wipe.
- Go back to return to main menu, then select Install.
- Navigate to
/sdcard
, and select the LineageOS.zip
package. - Follow the on-screen prompts to install the package.
- (Optional): Install any additional packages using the same method.
- (Optional): Root the device by installing the LineageOS su add-on (use the
arm
package) or using any other method you prefer. - Once installation has finished, return to the main menu, select Reboot, and then System.
Get assistance
If you have any questions, or get stuck on any of the steps, feel free to ask on our subreddit, or in #LineageOS on freenode.
My PVoutput
Crack Sheet Protection Password
This routine provides a password to unprotect your worksheet. However, it may not give you the original password that was used.
Open the workbook that has the protected sheet in it. Hit Alt+F11 to view the Visual Basic Editor. Hit Insert-Module and paste this code into the right-hand code window:
Sub PasswordBreaker()
'Author unknown but submitted by brettdj of www.experts-exchange.com
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If ActiveSheet.ProtectContents = False Then
MsgBox "One usable password is " & Chr(i) & Chr(j) & _
Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
ActiveWorkbook.Sheets(1).Select
Range("a1").FormulaR1C1 = Chr(i) & Chr(j) & _
Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub
Close the VB Editor window. Navigate to the worksheet you want to unprotect. Hit Tools-Macro-Macros and double-click PasswordBreaker in the list.