This is not a script. This is an APK!

This is not a script. This is an APK!

Many thanks to Lukas Morawietz​, I started this project thanks to him (I guess you know why 😉

And also to Pierre Hébert​ for…everything.

Ok, this app is called Repository importer, and allows you to import any script to the launcher from the Repository with the click of a button.

What it does: you navigate with the built in webview browser, you open a page with a script, you press the import button, and after accept you will have the script available in the launcher.

What it doesn’t do: retrieve the name and the flags required (but you can edit them before import), retrieve more than one script(only the first), and it doesn’t follow the instructions of the script and do them for you.

Keep in mind it is the first published version, I tested it and couldn’t find any more bugs, but I’m sure there are.

Even thought I made this to test myself if I could make a basic app, if I see people use it I will publish it on the play store.

If you want to know how I made to create new scripts from another app…why don’t you try it? (Hint: you need to import a script from lightning menu 😉

[Note]

For obvious reasons I need the Internet permission. I promise non data is collected 🙂

[Update]

Github page: https://github.com/TrianguloY/LLScript_Repository_Importer

https://www.dropbox.com/s/cvvzotsmq81w6sf/Scripts%20importer.apk?dl=0
]]>

29 Commentsto This is not a script. This is an APK!

  1. Anonymous says:

    < ![CDATA[

    “There was a problem parsing the package”. Anyone else?


    Could have been a bad download.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    But can you download the file?


    If the problem is at the installation, which android version do you use?

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Apk downloaded. Error was on install attempt. Android 4.4.4 Tried again with same result.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    There is no name of app. Could that be the problem?

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Strange, there should be a name, and it works on my tablet with 4.2.2



    Someone else with the same problem?

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Chris Chastain do you have ‘Allow installation of apps from unknown Sources’ in android settings/applications enabled?

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Yes. It may have just been a corrupt download. I’ll try more in a bit.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Ok, TrianguloY​ all three downloads have different checksums. I’ll keep trying.

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Have had this problem with some watch faces lately, also hosted from Dropbox. 🙁

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Are you using the app to download them?


    Try to use a different browser too

    ]]>

  11. Anonymous says:

    < ![CDATA[

    No. I don’t have the app. Just clicked directly in g+ and es file explorer downloader does the work. I’ll try something else.

    ]]>

  12. Anonymous says:

    < ![CDATA[

    Whoooaa! This is ABSOLUTELY GIGANTIC!


    And the box that let you edit the script source code, name and attributes on the fly makes the process of script importation even more pleasant!

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Had this idea too! Good think i didn’t started yet 😉


    Would you mind uploading the sources?

    ]]>

  14. Anonymous says:

    < ![CDATA[

    Thank you both 😀



    That box is just a normal alertdialog, with a custom view



    About publishing the sources, of course, but I don’t know the best way of do that. I heard of Github…I’ll try to publish it there this afternoon (any help will be appreciated)

    ]]>

  15. Anonymous says:

    < ![CDATA[

    Easiest way for github: create account, download windows application,


    drop the project in there as a new reporitory

    ]]>

  16. Anonymous says:

    < ![CDATA[

    TrianguloY​​, successful! Used chrome instead of es file downloader. Damn, I wonder what’s up with THAT?


    Edit: should have said that the app seems to work well.


    Just make sure to wait until the actual page containing script loads, because the “import script” button will come up first. 🙂

    ]]>

  17. Anonymous says:

    < ![CDATA[

    Chris Chastain that’s something I think a lot to do that way or not. But in fact even if the page is not yet loaded the button will work (it is independent, tricky thing)


    So I let it this way for fastest tests 😛

    ]]>

  18. Anonymous says:

    < ![CDATA[

    TrianguloY​, not complaining. I understand, and it’s fine. Great actually.

    ]]>

  19. Anonymous says:

    < ![CDATA[

    wow 🙂

    ]]>

  20. Anonymous says:

    < ![CDATA[

    TrianguloY suggestion: create a template only containing your script. You can send an intent to LL loading this template on app start when the script is not installed.

    ]]>

  21. Anonymous says:

    < ![CDATA[

    Lukas Morawietz can I? Didn’t know!


    So, I could keep a template in the apk and send an Intent to LL which will load the template with the script (which intent? )


    But, will the script be run when loaded? I need to send the id of the script to the app, so it can ‘inject’ the data directly.


    Let’s see if I could add it to github, this way you could also test yourself 🙂

    ]]>

  22. Anonymous says:

    < ![CDATA[

    Pierre Hébert is the id of a script kept on template merge if it doesn’t exist already?

    ]]>

  23. Anonymous says:

    < ![CDATA[

    No, the id of the script in the template is not kept during a merge, there are two rules:


    – if the same script already exists (same name, same content, same flags), then reuse the existing one and update all items calling this script in the imported items.


    – if the script doesn’t match any existing item, then find a new free identifier, and update the items as in the first rule

    ]]>

  24. Anonymous says:

    < ![CDATA[

    https://github.com/TrianguloY/LLScript_Repository_Importer


    Is this the page? Can you see the proyect?

    ]]>

  25. Anonymous says:

    < ![CDATA[

    Yes

    ]]>

  26. Anonymous says:

    < ![CDATA[

    I have an idea… It’s not as easy as I thought.

    ]]>

  27. Anonymous says:

    < ![CDATA[

    Nice


    If I can help with something just ask 🙂

    ]]>

  28. Anonymous says:

    < ![CDATA[

    :/ its working, but creates an empty desktop in the progress. This is not a good solution. I tried to delete that desktop afterwards, but failed. Lightning cashes too much data and recreates it afterwards…

    ]]>

  29. Anonymous says:

    < ![CDATA[

    I may still get it usable, but the question is if it is worth the work. You’d have to create a new template each time you want to update the script…

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *