Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: usage of shizuku for silent-installation #357

Open
4 tasks done
THElegend5 opened this issue Oct 6, 2022 · 15 comments
Open
4 tasks done

feat: usage of shizuku for silent-installation #357

THElegend5 opened this issue Oct 6, 2022 · 15 comments
Labels
Feature request Requesting a new feature that's not implemented yet ReVanced Manager Compose Regarding the Compose rewrite of ReVanced Manager

Comments

@THElegend5
Copy link

Type

Functionality

Issue

Currently you have to wait for full app to complete patching just to click install in the end.

Feature

With Shizuku you can install apps silently in the background so you can start the app patch and it will install the app too on it's own in the background with no need to wait for the patch to complete.

This can also be used to do auto app updates for non - root user if ability to download apps was added to the manager itself in the future or if it able to patch the current installed youtube stable version from playstore if it detects an app update is available and is supported by majority of the patches being used.

Motivation

My main motivation was to make the last step to be automated too like the rest of the steps, the install prompt is also pretty easy go back out of so you have to patch the whole app again if you do so and if this gets implemented both of them will be solved.

Additional context

No response

Acknowledgements

  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly.
  • The issue is related solely to the ReVanced Manager
@THElegend5 THElegend5 added the Feature request Requesting a new feature that's not implemented yet label Oct 6, 2022
@arandomhooman

This comment was marked as spam.

@Ushie Ushie changed the title feat: Add support for shizuku for silent instalation for non-root users. feat: usage of shizuku for silent-installation Oct 19, 2022
@kittenvr
Copy link

@Ushie Ushie added the ReVanced Manager Compose Regarding the Compose rewrite of ReVanced Manager label Nov 21, 2023
@castdrian
Copy link

castdrian commented Dec 26, 2023

this would be excellent for both manager updates and patched app installs. my device is managed since I use a work profile on it, so without shizuku the only way to use revanced is to use an adb shell manually which, quite frankly, sucks ass, using SAI is a decent workaround, but still using shizuku as general install method to update both manager and install patched apps would be lovely

@Ushie
Copy link
Member

Ushie commented Dec 26, 2023

How does SAI do it? do you have to install SAI in the work profile then using it from there? or do you use it in the normal profile and it asks where you want to install it?

If there's an API to install things to other users, that could be implemented as a new feature, as shizuku itself wouldn't solve this issue automatically

@castdrian
Copy link

castdrian commented Dec 26, 2023

no you see I have both a personal profile and a work profile on my phone, so I can install regular apps from Google Play/Samsung Store, however to my begrudging, my companies device rules include blocking sideloading on the personal profile as well as the work profile

fortunately this policy doesn't interfere with ADB, which is what shizuku inherently is (api wrapper around an adb shell) so what SAI does is it offers 3 possible installation modes, default (package installer, which is blocked for me), root (which I can't do if I want to keep my work files), and shizuku, which uses the shizuku api to install packages

droidify (f droid store app thingy) also offers these three installation modes

https://github.com/RikkaApps/Shizuku-API

Whilst saving the apk and then installing it with SAI isn't super duper annoying compared to launching an adb shell manually, having a shizuku install option for both the manager update itself and the patched app install would be very forthcoming

@Ushie
Copy link
Member

Ushie commented Dec 26, 2023

How would shizuku let you select work vs normal user though?

@castdrian
Copy link

it doesn't, installs happen on the personal profile, which is fine by me, I have no need to install non work apps into the work profile, since oneui kinda shows both anyway, work apps just have the little briefcase icon on them, anyhow point is, shizuku as installer alongside root and nonroot would be very favorable for cases like these were sideloading is blocked by some managed device policy

@castdrian
Copy link

I'm not very well versed with the world of jetpack compose, but in case no one else cares about this I'd be willing to see if I can manage a PR myself, however ngl I've barely ever touched compose at all

@oSumAtrIX
Copy link
Member

oSumAtrIX commented Dec 26, 2023

Installation is handled in https://github.com/ReVanced/revanced-library.
The https://github.com/ReVanced/revanced-library/tree/feat/installer branch is currently in development of an implementation of Android installers. In case you want to create a Shizuku installer you can look into https://github.com/ReVanced/revanced-library/blob/feat/installer/revanced-library/src/androidMain/kotlin/app/revanced/library/installation/installer/LocalInstaller.kt#L16

@castdrian
Copy link

well will I be damned, thank you, I'll go see what I can do

@Ushie
Copy link
Member

Ushie commented Dec 26, 2023

it doesn't, installs happen on the personal profile, which is fine by me, I have no need to install non work apps into the work profile, since oneui kinda shows both anyway, work apps just have the little briefcase icon on them, anyhow point is, shizuku as installer alongside root and nonroot would be very favorable for cases like these were sideloading is blocked by some managed device policy

Oh I see the problem now, I missed the point in the initial message

@Ushie Ushie closed this as completed Dec 26, 2023
@Ushie Ushie reopened this Dec 26, 2023
@Ushie
Copy link
Member

Ushie commented Dec 26, 2023

well will I be damned, thank you, I'll go see what I can do

Check this old PR ReVanced/revanced-manager-compose#83, may be helpful

@castdrian
Copy link

I have in the meantime implemented a shizuku installer for a similar project as revanced, (vendetta-mod/VendettaManager#55), so I do know how to do it now, as the links above to revanced-library suggest that that branch is still heavily WIP, I'll hold off messing with it until the regular installers are implemented

@Ushie
Copy link
Member

Ushie commented Aug 5, 2024

@castdrian Still interested?

@castdrian
Copy link

I am a bit busy these days but I can have a look at it sometime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Requesting a new feature that's not implemented yet ReVanced Manager Compose Regarding the Compose rewrite of ReVanced Manager
Projects
None yet
Development

No branches or pull requests

6 participants