Wednesday, September 18, 2019

Enable natural scrolling in Windows

1) Identify the mouse/touchpad information via Device Manager


2) regedit

3) Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID

tip: On Windows 10, you can now copy and paste the path in the Registry's address bar to quickly jump to the key destination.

4) Expand the key (folder) that matches the VID ID of your mouse:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID\VID_248A&PID_8368&MI_00&Col01\8&1f989acc&0&0000\Device Parameters

5) Double-click the FlipFlopWheel DWORD and set the value from 0 to 1

6) Reboot your PC

Saturday, September 7, 2019

Moving Windows 10 EFI partition to another GPT disk

If your EFI partition is resided on a different physical disk than your Windows is, but you need the EFI partition on your Windows disk (e.g. for encrypting your Windows partition):
  • Resize the Windows partition in order to free about 200 MB of space for the future EFI partition. Certain position doesn't matter, it could be even at the end of the physical disk.
  • Create a new partition of EFI type (code ef00 in gdisk)
  • Click here to download Windows Media Creation Tool
  • Prepare a USB drive of at least 8GB disk space and create a Windows repairing USB stick
  • Reboot the PC from the USB stick and do the following:
    • Select Repair Your Computer
    • Select Troubleshoot
    • Select Advanced Options
    • Choose Command Prompt from the menu:
      • diskpart
      • list disk
      • sel disk 0
      • list vol
      • sel vol <number of future EFI volume>
      • assign letter=Y: (Y is a letter that isn't in use yet)
      • exit
      • type Y: 
      • type format Y: /FS:FAT32
      • type bcdboot C:\windows /s Y: /f UEFI
Ok, now you have a new FAT32 formatted EFI partition with a proper bootloader installed.

Friday, August 9, 2019

Android Treble GSI

install aosp - https://www.getdroidtips.com/how-to-install-generic-system-image-on-project-treble-devices-phh-treble/
root device via magisk - https://www.getdroidtips.com/download-latest-magisk-zip-magisk-manager-root-phone
open gapps - https://opengapps.org/
AOSP - https://github.com/phhusson/treble_experimentations/releases

about GSI and vbmeta.img - https://source.android.com/setup/build/gsi


GSI variant: legacy arm64 a-only

prerequisites:
- ADB drivers
- ADB framework (platform tools)
- SP Flash Tool
- Magisk Manager (.apk) [and Magisk (.zip)]
- TWRP
- GSI (aosp image)

TODO:
00) flash the whole Firmware via SP Flash Tool

0) enable developer mode (tap on Build Number on the phone About Phone settings)
1) enable USB debugging (see developer options)

2) unlock bootloader:
- allow bootloader unlocking (developer options => OEM unlocking option)
- then:
$ adb reboot bootloader
$ fastboot flashing unlock
$ fastboot reboot
note: 
On some devices Android Verified Boot (AVB) is enabled. This means that installing TWRP or swiping to allow system modifications will prevent you from being able to boot.  To disable AVB grab the vbmeta image from the ROM you are on, and flash it with the following command:
$ fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
3) install TWRP:
$ adb reboot bootloader
$ fastboot flash recovery twrp.img
$ fastboot reboot
note: 
Many devices will replace custom recovery automatically during first boot.
After typing fastboot reboot, hold the key combo and boot to TWRP. 
Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. 
If you don't follow this step, you will have to repeat the install.

4) 
- mount
 => check data,system, vendor, nvdata [,MicroSD card]
- Advanced - File Manager => delete /system_root/system/recovery_fromboot.p
-  Advanced => Close AVB2.0 

5) root:
- install MagiskManager .apk
- run it and update
- patch boot.img from the original Firmware (magisk manager => install magisk => open and patch file)
- flash the patched file:
$ adb reboot bootloader
$ fastboot flash boot patched_boot.img
$ fastboot reboot
- run Magisk Manager and finish Magisk instalation

6) install GSI via TWRP:
- wipe => advanced wipe
- install => image => system image

7) install open gapps .zip via TWRP