FORUMS

[ROM+KERNEL]HUAWEI WATCH 2[LTE-Sawshark]+[BT-Sawfish]-[OWDE.180926.001.A1][22-Jan-20]

3,038 posts
Thanks Meter: 3,355
 
By janjan, Recognized Developer on 15th November 2017, 10:38 PM
Post Reply Email Thread
[HUAWEI WATCH 2 (LTE/4G-Sawshark) & (Bluetooth/BT-Sawfish)-OWDE.180926.001.A1]

INTERNATIONAL VERSION

Please read the instructions and notes before flashing anything. Don't ask me if you don't read the instructions.

Code:
###Disclaimer###
WARNING: 
IMPROPER FLASHING MAY POTENTIALLY BRICK YOUR DEVICE. SO PLEASE PROCEED AT YOUR OWN RISK. ME OR ANY OTHER DEVELOPER MENTIONED IN THIS POST WILL ASSUME NO RESPONSIBILITY FOR THIS.

DONATE ME HERE

DONATE-ME

##############################
REQUIREMENT
##############################

- An Unlock bootloader
- Working adb/fastboot and driver - Download from Here
- A custom recovery (twrp) See my twrp thread for custom twrp recovery
TWRP-RECOVERY

##############################
HOW TO FLASH KERNEL/BOOT IMAGE
##############################

- Steps via adb/fastboot
- Unzip the folder and move the boot image into your adb/fastboot folder and apply the following commands
Code:
- adb devices
- adb reboot bootloader
- fastboot flash boot boot.img
- fastboot reboot
##############################
HOW TO FLASH THE ROM AND ROOT
##############################

1- Move the build/ROM and Busybox and Magisk to your watch
2- Make a backup - there's always 1% chance something goes wrong.
3- Full wipe is recommended....Wipe data/Factory reset
4- Flash the ROM, then flash Busybox and Magisk (Please flash in this order, ROM, then Busybox and Magisk)
5- Reboot and complete your initial setting
6- Open Magisk Manager and go to settings and set Automatic Response to Grant
7- Done. Don't forget to donate if you like my work, Thanks.

##############################
ROM AND KERNEL FEATURES [22-Jan-2020]
##############################

[Changelog]-Huawei Watch 2 LTE(Sawshark)+Huawei Watch 2 BT(Sawfish)-[22/Jan/2019]

- Based on latest kernel source (-Source 3.18.24) android-wear with latest security patch
- Linux version 3.18.24 (gcc version 4.9.3 20141215 (prerelease) (UBER-SaberMod-4.9.3_arm-graphite)) #1 SMP PREEMPT Wed Jan 22 9:45:39 CET 2020
- Forced-encryption disabled
- dm-verity removed/disabled
- Auto memory killer set to default
- Sepolicy is patched
- Fix the CPU idle latency unvote timeout. It should reduce the wasting power and CPU go to deep idle states immediately after a request
- Add and use a timer frequency of 100 Hz. It should improve power consumption.
- Add and update/Hide verifiedbootstate from /proc/cmdline in order to fix the failed SafetyNet CTS check(It can still fail through other means)-GOOGLE PAY SHOULD WORK. USE MAGISK TO HIDE ROOT. U may need Gpay enabler
- Remove verifiedbootstate flag from /proc/cmdline - Disable CRC check
- Scheduler optimize/support for heterogeneous multi-core
- Scheduler support for heterogeneous multi-processor systems
- Enable all core with scaling_available_frequencies (200000 400000 533333 800000 1094400 1267200 MHz)- scaling down the frequency of the CPUs to 200 MHz during idl mode and rise the freq. to 1.26Ghz during high pressure.
- Set swappiness to 60
- Change zswap max pool % to 20%. It will reduce CPU usage a lot
- Enable zram & zswap and add 256MB virtual memory default. It will speed up the device a lot
- Removed nolog usage, remove rtb logging from the kernel
- Remove selinux auditing from kernel for lower overhead
- Remove IPC logging from the kernel
- Disabled some kernel parameter to speed up the performance- at the cost of battery/ power consumption
- Remove some logging from several drivers
- Improve memory allocations -Should improve the device a lot
- Add some tweaks to improve the overall speed, apps startup are too faster
- Set zswap compressor to lz4 by default
- APM driver updated again to reduce battery usage during sleeping
- Several other patches to reduce battery usage
- Multi-core scheduler enable/optimized
- APM driver updated reduce battery usage during sleeping
- Fix the wake up time. The screen should wake up more quickly when pressing the button.
- Tweaked the scheduler to reduce/save power by scaling down the frequency of the CPUs or idling them,
- A lot subsystems converted to use power efficient workqueue
- The watch goes to sleep during no action in order to save battery
- Remove debug event logging-Kill the useless logging to reduce overhead
- Remove sync debug entirely to cut down CPU waste in the frame render hot path
- Remove 10 ms CPU idle latency unvote timeout- Doesn't force the CPU to stay out of deep idle states for far longer than necessary, which wastes power
- Disable audit support, usually comes with a measurably significant amount of overhead
- Remove audit dependency

NOTE: THERE IS NO NEED TO FLASH THE LATEST KERNEL IF YOU FLASH THE LATEST ROM.

##############################
DOWNLOAD
##############################

[Huawei Watch 2 4G/LTE]+[Huawei Watch BT][22-Jan]
[DECRYPTION KEY]
WO0FVexxQnrtcODYdmNvnQ


##############################
MAGISK/BUSYBOX/APP-KERNEL-CONTROL
##############################

DOWNLOAD LATEST MAGISK FROM HERE
DOWNLOAD LATEST BUSYBOX FROM HERE
KERNEL CONTROL APP WEAR OS
##############################
How to get the Gpay back...
##############################
1-https://pastebin.com/HKV7cj7H
2-https://forum.xda-developers.com/sma...821013/page172
3-https://www.youtube.com/watch?v=UKxGfNxRjo4&t=320s
4-https://forum.xda-developers.com/sho...postcount=1720

##############################
HOW TO FLASH THE STOCK IMAGES-(BACK TO STOCK)
##############################

1- Download and unzip the system image below
2- Attach the watch charger to the watch and plug the USB cord (from the charger) into your computer
3- Use the following adb command to start the watch in fastboot mode: adb reboot bootloader
4- On your computer, navigate to the directory where you unzipped the system image in Step 1. At the top level of that directory, execute the flash-all script:
- On Linux or MacOS, type ./flash-all.sh
- On Windows, type flash-all.bat
5 -DONE. Don't forget to donate if you like my work, Thanks.

STOCK-IMAGES-HUAWEI-WATCH-2-LTE-LEO-DLXX-OWDE.180215.017-SAWSHARK-(13/Oct/2018)
STOCK-IMAGES-HUAWEI-WATCH-2-BT-LEO-BX9-OWDD.180215.018-SAWFISH-(22/7/2018)

##############################
Source/GitHub
##############################
-Source

IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN BUY ME A SHOT OF WHISKY
DONATE ME HERE
DONATE-HERE

Special thanks to:
If you can, donate and respect all the devs and enjoy
@Chainfire for great work in android
@Maxr1998 Big thanks for giving me knowledge and your great work for Asus Zenwatch_3 and your great github guide. Please thank and donate him for all his efforts
@topjohnwu for his great effort (Magisk)Thank you so much
@SuperR.R for the great kitchen
@Xmaster24 for system-less root-
@moneytoo for his great app. Please appreciate and donate him
Pay Enabler
@SuperThomasLab for great tools
Please always support devs and others (soon).
The Following 68 Users Say Thank You to janjan For This Useful Post: [ View ]
16th November 2017, 06:04 AM |#2  
Member
Thanks Meter: 24
 
More
ROM download asking for decryption key?Can fix the link?
16th November 2017, 07:51 AM |#3  
Hoffmanns's Avatar
Senior Member
Flag Czech Paradise
Thanks Meter: 95
 
More
Hello All,

Is it possible to install this latest ROM on model without LTE?

Thank you for reply
16th November 2017, 10:33 AM |#4  
janjan's Avatar
OP Recognized Developer
Flag Aalborg
Thanks Meter: 3,355
 
Donate to Me
More
Quote:
Originally Posted by arthos7

ROM download asking for decryption key?Can fix the link?

Quote:
Originally Posted by Hoffmanns

Hello All,

Is it possible to install this latest ROM on model without LTE?

Thank you for reply

Link are fixed now. It will properly not gonna work on non-lte. I can build a new for non-lte version if some one send me the latest system image and boot image. (I can extract from your watch via teamviewer, in case you can't) But you need to flash the latest firmware without root.

IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN BUY ME A SHOT OF WHISKY
DONATE ME HERE
The Following 2 Users Say Thank You to janjan For This Useful Post: [ View ]
16th November 2017, 11:08 AM |#5  
janjan's Avatar
OP Recognized Developer
Flag Aalborg
Thanks Meter: 3,355
 
Donate to Me
More
I will upload a complete latest stock images N7176C (lte) incase anyone wanna go back to latest stock again.

The only thing you have to do is boot into bootloader mod and then run the script by double click on it. After some reboots you will be back on latest stock.

I will combine both Linux and Windows together, use one you prefer.

IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN BUY ME A SHOT OF WHISKY

DONATE ME HERE
The Following 3 Users Say Thank You to janjan For This Useful Post: [ View ]
28th November 2017, 07:35 AM |#6  
rimsilva's Avatar
Senior Member
Thanks Meter: 269
 
More
Just received my Huawei SW 4G this weekend and after installing Huawei wear I got the alert message that the watch was rooted.

How can I confirm is it's rooted or not.

Thanks

Sent from my ONEPLUS A3003 using Tapatalk
30th November 2017, 06:08 AM |#7  
Member
Flag Minneapolis, MN
Thanks Meter: 13
 
More
Can anyone who's used this verify that it's notably faster or has improved battery life compared to stock? Or is the difference negligible?
30th November 2017, 03:20 PM |#8  
Junior Member
Thanks Meter: 0
 
More
How to build boot.img
Hi Janjan,

I am trying to build a custom kernel for my Huawei Watch 2 (non LTE) and I was wondering if you could share a little of your development work.
How do you actually put the boot image together? I am able to compile the kernel from android-msm-sawshark-3.18-nougat-mr1-wear-release,
which gives me a zImage. I also have the original images. So I tried to unmkbootimg the original boot image and replace the kernel. However, this doesn't seem to work. when I compare the sizes of the supposedly original zImage and the one created from the repository above, their size differs by roughly a factor of 100. So there must be something seriously wrong

What steps do you use to create the kernel and the boot image?

I also checked your github code and tried to use it but it seems to depend on other stuff that is not in your repos. Where did you find the code you have in your repos?

Best regards,

Mogli
1st December 2017, 08:25 AM |#9  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by janjan

I can build a new for non-lte version if some one send me the latest system image and boot image. (I can extract from your watch via teamviewer, in case you can't) But you need to flash the latest firmware without root.

Does that offer still stand? If yes I am willing to let my watch be used as a test subject.
1st December 2017, 10:09 AM |#10  
janjan's Avatar
OP Recognized Developer
Flag Aalborg
Thanks Meter: 3,355
 
Donate to Me
More
Quote:
Originally Posted by mogli19

Hi Janjan,

I am trying to build a custom kernel for my Huawei Watch 2 (non LTE) and I was wondering if you could share a little of your development work.
How do you actually put the boot image together? I am able to compile the kernel from android-msm-sawshark-3.18-nougat-mr1-wear-release,
which gives me a zImage. I also have the original images. So I tried to unmkbootimg the original boot image and replace the kernel. However, this doesn't seem to work. when I compare the sizes of the supposedly original zImage and the one created from the repository above, their size differs by roughly a factor of 100. So there must be something seriously wrong

What steps do you use to create the kernel and the boot image?

I also checked your github code and tried to use it but it seems to depend on other stuff that is not in your repos. Where did you find the code you have in your repos?

Best regards,

Mogli

Sure, tell me what you did and your steps for building zImage + modul. I am away from my office for a while.
The Following User Says Thank You to janjan For This Useful Post: [ View ]
3rd December 2017, 04:18 PM |#11  
cdkg's Avatar
Senior Member
Thanks Meter: 57
 
More
janjan, have you had success with making a non-lte version?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes