topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
46.98k stars 11.86k forks source link

Support Wear OS Devices #1257

Closed simonsmh closed 5 years ago

simonsmh commented 5 years ago

Since Wear OS doesn't have document application, it could never install the module from Magisk Manager and this problem is more urgent since v7.1. Also we need a Wear OS Layout for the tiny screen. Design similar to the play store is just OK.

topjohnwu commented 5 years ago

Sorry, but I don't have a wear OS device, and currently don't have time for more UI related work on this project

simonsmh commented 5 years ago

What about running on the emulator? At least leave this issue open and wait community to implement it. It is an issue.

fox8091 commented 5 years ago

Since the UI is going through a pretty heavy refactor, is there any chance this can be revisited? Not only is the UI hard to use on a Wear device, but Magisk Manager can't be hidden nor updated due to the fact that PackageManager denies app installs on Wear. However, Play Store and ADB can install packages without problems.

fox8091 commented 5 years ago

Do note, in the two watches I have access to, you can tell that they're a WearOS device by parsing ro.build.characteristics. WearOS devices have "watch" as one of their characteristics.

lss4 commented 5 years ago

I currently have a Huawei Watch 2 Pro. With janjan's custom ROM and recovery, the result is mostly positive.

Magisk 19.3 can be installed and used without issues. While Magisk Manager's layout might not be the best on the watch, it's still usable.

I've only encountered the following caveats so far. Apart from those, everything's working fine.

  1. It's not possible to answer Superuser prompts on the watch (the prompt simply does not show up). You need to use either Deny or Grant for automatic responses.
  2. (same as fox8091's comments) Wear OS (used to be Android Wear) does not support sideloading APKs, it's not possible to hide or upgrade Magisk Manager. The watch does contain a Package Installer app but what it does is to tell you that "Install/Uninstall actions not supported on Wear". As far as I remember it's still possible to sideload apps via adb install.
simonsmh commented 5 years ago

@lss4 It's far from usable. There is no working download and install manager makes it unable to install magisk itself and modules. This is still a serious problem.

lss4 commented 5 years ago

@lss4 It's far from usable. There is no working download and install manager makes it unable to install magisk itself and modules. This is still a serious problem.

Yeah... personally I never tested those as I hardly thought of any modules useful on a watch. Considering that it's also not possible to install modules or Magisk itself as you mentioned, guess the flashing capability is also not available on the watch, either.

At least it does its intended basic purpose as a systemless root as far as I can tell.

fox8091 commented 5 years ago

I personally am able to install modules (requires clicking the far upper left), but installing Manager doesn't work due to PackageManager. I believe pm install through a shell still works though, so I can test.

FloopDaPig commented 5 years ago

I am also very interested in this as i have a custom rom on my huawei watch 2, and would love to get google pay working.

lss4 commented 4 years ago

A late post regarding the situation with most recent Magisk versions (and Manager).

It seems with latest (redesigned) Magisk Manager, I couldn't even change Automatic Responses to Grant on my Huawei Watch 2 Pro, because with the new UI, the title part is so big that it leaves virtually no room to show the options (made several attempts to choose the option but no avail, changing Display->Font size to Small doesn't help, either). As Prompt doesn't work on Wear OS (not sure how it is now), this makes newer Magisk versions (that come with the redesigned Manager) mostly unusable (one can still use early versions, though).

And as for PackageManager... pm install from a shell (as well as adb install, which was how I sideloaded Kernel Adiutor 4 Wear) does work. It's just that the Package Installer on Wear OS is merely a stub telling you that sideloading is not supported (which is not true).

CodeWithShreyans commented 3 years ago

Can the package installer be tweaked?

darkdex52 commented 3 years ago

I'm also having the same issue on my Asus Zenwatch 2. The new redesign makes the prompt option title too big, so you can't select automatic deny or grant in the options menu, thus you can't grant any apps root permissions.

Please consider re-opening the issue as it is not solved.

browntownington commented 3 years ago

I used to flash Magisk.zip in TWRP on my custom ROM Huawei Watch 2. This process was seamless.

As of Magisk v22 only an apk is provided. I read that you can rename the apk to zip and flash in TWRP but i also read it could cause a boot loop and now the patched boot is now recommended.

I decided to to try 'adb install -r Magisk.apk' which looked to install the manager app. I then on my watch opened Magisk and did an 'update' with direct install method. The screen UI is had to navigate but you can YOLO through. Or you can change the DPI via ADB if you are not sure.

mgood7123 commented 3 years ago

Since Wear OS doesn't have document application, it could never install the module from Magisk Manager and this problem is more urgent since v7.1. Also we need a Wear OS Layout for the tiny screen. Design similar to the play store is just OK.

Wtf WearOS can be rooted? How? There is no recovery mode nor download/fastboot mode

browntownington commented 3 years ago

Wtf WearOS can be rooted? How? There is no recovery mode nor download/fastboot mode

Android Watch is the same as an Android phone. It does have recovery and download/fastboot mode. You simply boot fastboot and boot twrp and flash Magisk to boot as usual. Boom profit.

mgood7123 commented 3 years ago

But ONLY if your wear os device supports usb :(

Wifi adb to reboot and flash is impossible :(

On Wed, 2 Jun 2021, 11:50 am browntownington, @.***> wrote:

Wtf WearOS can be rooted? How? There is no recovery mode nor download/fastboot mode

Android Watch is the same as an Android phone. It does have recovery and download/fastboot mode. You simply boot fastboot and boot twrp and flash Magisk to boot as usual. Boom profit.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/topjohnwu/Magisk/issues/1257#issuecomment-852648887, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLITH7FNA2IFRMSRBFPRQTTQWE53ANCNFSM4HCBZAKQ .

Tiebe commented 1 year ago

There's work being done at https://github.com/Dionicio3/Magisk

fillwithjoy1 commented 3 months ago

Surely UI work on Wear OS should now be considered since we have the Pixel Watches that make it easy to root the device