Git Product home page Git Product logo

Comments (11)

Aefyr avatar Aefyr commented on May 22, 2024 2

Well, I made an option to enter custom install-create command in the Super Secret Settings (Which you can access by tapping SAI logo on about screen 3+ times and then long-tapping it). Here's a debug build (inside a ZIP because GitHub doesn't allow attaching APKs directly), you can try entering pm install-create -r -s there
app-fdroid-debug.zip

from sai.

Aefyr avatar Aefyr commented on May 22, 2024

Does setting install location to prefer external not work? If so, I don't think forcing it would be a good idea since there must be a reason Android doesn't want to install app to external storage.

from sai.

Rikk avatar Rikk commented on May 22, 2024

Looking at su logs, I see SAI relies on --install-location parameter, which doesn't exist in the pm of my Android 5. According to the help of pm, -s parameter is the one that installs on SD. Therefore, it always install into internal.

pm install-create -r --install-location 2 -i 'com.aefyr.sai'
�MError: java.lang.IllegalArgumentException: Unknown option --install-location

from sai.

Aefyr avatar Aefyr commented on May 22, 2024

Does rootless mode not work on your device? In rootless mode, install location is supported on Android 5

from sai.

Rikk avatar Rikk commented on May 22, 2024

Doesn't work...

Your ROM is incompatible with rootless installer. Try selecting another installer in SAI settings.

Other than this error, it also leaves a tmp folder in /data/app

from sai.

Rikk avatar Rikk commented on May 22, 2024

Could you please make a test build that uses pm install-create -r -s [...] instead of pm install-create -r --install-location 2 [...]?

from sai.

Aefyr avatar Aefyr commented on May 22, 2024

You should also provide -i com.aefyr.sai.fdroid argument as well because currently rooted/Shizuku installer in SAI relies on the ACTION_PACKAGE_ADDED broadcast and checks the installer app package there to determine when an app has been installed, so it would hang forever without that argument.

In the build above however there's a bug that I've just found and fixed which would cause it to accept a ACTION_PACKAGE_ADDED event when installer app is null, so installation without that argument works in that build.

from sai.

Rikk avatar Rikk commented on May 22, 2024

This is not related to SAI app...
Weirdly, now I'm only getting this error when using pm install-create -s (I also tested in command line). It only happens when -s parameter is used.

Error: java.lang.IllegalStateException: ☃No storage with enough free space; res=-1

Granted, I remember it didn't trigger error some other time I tried the command. Dunno what is causing it...

from sai.

Aefyr avatar Aefyr commented on May 22, 2024

Android really doesn't want you to install that app to external storage I guess

from sai.

Rikk avatar Rikk commented on May 22, 2024

Android really doesn't want you to install that app to external storage I guess

Not related to the app. Just pm install-create -s on command line also errors out. Without -s no error. Something is strange about my "pm"

from sai.

github-actions avatar github-actions commented on May 22, 2024

This issue hasn't had any activity for the last 60 days and will be automatically closed in 7 days from now

from sai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.