Taillieu.Info

More Than a Hobby..

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 devicescommand.


Unlocking the bootloader

NOTE: The steps below only need to be run once per device.
WARNING: Unlocking the bootloader will erase all data on your device! Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent.
  1. Make sure your computer has working fastboot and adb.
  2. Enable USB debugging on your device.

  3. Connect the device to your PC via USB.
  4. 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.
  5. 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 running fastboot as root/Administrator.

  6. From the same terminal, type the following command to unlock the bootloader:

     fastboot oem unlock
    
  7. If the device doesn’t automatically reboot, reboot it. It should now be unlocked.
  8. Since the device resets completely, you will need to re-enable USB debugging to continue.

Installing a custom recovery using fastboot

  1. Make sure your computer has working fastboot and adb.
  2. Enable USB debugging on your device.
  3. Download recovery - visit twrp.me to obtain the latest version of Team Win Recovery Project for your device.
  4. Connect your device to your PC via USB.
  5. 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.
  6. 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 running fastboot as root/Administrator.

  7. Flash recovery onto your device:

     fastboot flash recovery your_recovery_img.img
    
  8. 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

IMPORTANT: Please read through the instructions at least once completely before actually following them to avoid any problems because you missed something!
  1. Make sure your computer has working adb. Setup instructions can be found here.

  2. 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
  3. 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.
  4. 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.
  5. (Optional, but recommended): Select the Backup button to create a backup.
  6. Select Wipe and then Advanced Wipe.
  7. Select Cache, System and Data partitions to be wiped and then Swipe to Wipe.
  8. Go back to return to main menu, then select Install.
  9. Navigate to /sdcard, and select the LineageOS .zip package.
  10. Follow the on-screen prompts to install the package.
  11. (Optional): Install any additional packages using the same method.
  12. (Optional): Root the device by installing the LineageOS su add-on (use the arm package) or using any other method you prefer.
  13. Once installation has finished, return to the main menu, select Reboot, and then System.
NOTE: If you want any Google apps on your device, you have to do follow step 11 before the first reboot!

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.