Obtainium icon indicating copy to clipboard operation
Obtainium copied to clipboard

Import link with share button

Open faustaahmad opened this issue 2 years ago • 7 comments

Faster than copy paste & "Add App" Better if it can work directly in background, example: App repo link » Share » Import to Obtainium » Popup confirmation or directly import app in background

I dont know why adding app is much more slower than using import from url list, consider removing "Add App" entirely & only use "Import/Export"

faustaahmad avatar Nov 14 '22 07:11 faustaahmad

Adding an app is slow because the APK needs to be downloaded first so it can be compared to existing apps installed on the OS and the "install status" can be set correctly.

The reason this is not done for import/export is that it would take too long - better to import first then let the user install when needed. The downside is that we can't compare imported apps to installed apps to check if they are already installed, so the install status can be incorrect. This is why there is a warning about this on the import/export page.

As for being able to accept shared, URLs, I'll look into that. Probably would end up using this plugin.

ImranR98 avatar Nov 14 '22 17:11 ImranR98

Just mentioning #68 here as relevant history on this topic

S7venLights avatar Nov 17 '22 06:11 S7venLights

It would be nice to have a deep link that adds all the required metadata for the app into Obtanium. This link can be encoded into a QR code, placed on web-site, shared via social networks, etc. Currently I added instructions for my users, but I hope to see "Add app" part automated via a deep link.

rtsisyk avatar Feb 20 '24 07:02 rtsisyk

Something like that:

      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <data android:scheme="obtanium"/>
      </intent-filter>

obtanium://add?source=github&repo=https://github.com/ImranR98/Obtainium&xxx.... Android will open the app and pass this URL to intent.getData().

rtsisyk avatar Feb 20 '24 07:02 rtsisyk

It should be easy to introduce a special URL scheme like obtanium://link-to-the-releases-page-or-apk-on-github

And support/intercept https://github.com/ URLs too to extract necessary data from them.

That should allow "one-click installations" for users without complex instructions.

biodranik avatar Feb 20 '24 07:02 biodranik

Interception of third-party links doesn't work in Android anymore.

rtsisyk avatar Feb 20 '24 08:02 rtsisyk

qr code would be also good

inson1 avatar Feb 28 '24 22:02 inson1