Active Topics

 


Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#1
Please read following description carefully before asking any questions.

Have settings applet with simple GUI actions:
  • Reset HTTP(S) default application in android
  • Show/Hide android navigation bar
  • Open android Downloads application
  • Select android keyboard (you can use Google Keyboard or any other in aliendalvik)

Useful utility for sending commands to aliendalvik. It creates dbus service (on session bus) org.coderus.aliendalvikcontrols with following methods:
  • sendKeyevent(int code): sending input events to android
  • sendInput(QString text): sending text input data to android
  • broadcastIntent(QString intent): invoking am broadcast -a intent command on android
  • startIntent(QString intent): invoking am start intent.split(" ") command on android
  • uriActivity(QString uri): sending uri VIEW intent to android
  • uriActivitySelector(QString uri): sending uri VIEW intent with chooser to android
  • shareText(QString text): opening android sharing menu for text/* data
  • shareFile(QString file, QString mimetype): opening android share menu for file by mimetype
  • hideNavBar(): hiding bottom android navigation bar
  • showNavBar(): showing bottom android navigation bar
  • getFocusedApp(): returns package name of topmost android app at this moment
  • isTopmostAndroid(): returns is android a topmost, or native sailfish ones

Application now automatically modifying android desktop files to make it accept parameters.
You can use latest version of Mimer to assign default web browser directly to selected android apps.

Package installs sharing plugin and replaces old Android ShareUI plugin.

Package also installs android-open-url.desktop and androd-open-url-selector.desktop files invoking uriActivity and uriActivitySelector methods which can be set (manually, via xdg-mime tool) to various mimetypes.

Post your improvement ideas in this thread.
Openrepos: https://openrepos.net/content/coderu...dalvik-control
GitHub: https://github.com/CODeRUS/aliendalvik-control
__________________
Telegram | Openrepos | GitHub | Revolut donations

Last edited by coderus; 2019-05-12 at 12:45.
 

The Following 25 Users Say Thank You to coderus For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#2
Settings mimehandler manually:
Code:
ln -sf /home/nemo/.local/share/applications/mimeapps.list /home/nemo/.local/share/applications/defaults.list
<- only once, to make things actually works. Then:
Code:
xdg-mime default android-open-url.desktop x-maemo-urischeme/http
xdg-mime default android-open-url.desktop x-maemo-urischeme/https
Searching activity name for other browser:
Open application desktop file. For example chrome desktop file /usr/share/applications/apkd_launcher_com_android_chrome-org_chromium_chrome_browser_document_ChromeLaunche rActivity.desktop and read last part for Exec line.
Chrome activity: com.android.chrome/org.chromium.chrome.browser.document.ChromeLaunche rActivity
__________________
Telegram | Openrepos | GitHub | Revolut donations

Last edited by coderus; 2016-01-09 at 20:40.
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#3
Nobody interested or nobody figured how to use it?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#4
I'm interested and I can say - it works!
 
Posts: 17 | Thanked: 8 times | Joined on Jul 2013 @ Russia
#5
I cannot understand the second part of "org.mozilla.firefox/org.mozilla.gecko.BrowserApp" to replace it for Chrome
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#6
open chrome desktop /usr/share/applications/apkd_launcher_com_android_chrome-org_chromium_chrome_browser_document_ChromeLaunche rActivity.desktop or other browser desktop. Last part of Exec line is activity you search for. For Chrome it's com.android.chrome/org.chromium.chrome.browser.document.ChromeLaunche rActivity

Added information in description
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
Posts: 17 | Thanked: 8 times | Joined on Jul 2013 @ Russia
#7
Ok, got it. Now I have
Code:
cat /home/nemo/.config/aliendalvikcontrol/mimehandlers/Chrome
com.android.chrome/org.chromium.chrome.browser.document.ChromeLauncherActivity
But I don't have /usr/share/applications/url-handler-Chrome.desktop or any similar file
Code:
ls /usr/share/applications/ | grep url
android-open-url.desktop
android-open-url-selector.desktop
jolla-messages-openurl.desktop
open-url.desktop
voicecall-ui-openurl.desktop
What should I do next?
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#8
start aliendalvik-control from terminal or invoke any dbus command of it to start it in background
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Posts: 5 | Thanked: 3 times | Joined on Mar 2009
#9
@coderus I can see your PoC would have same useful application for example to intercept SMS from Sailfishos and pass it to dalvik which we need for registration in app Signal. Can you look into it?
Tnx.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#10
I dont think it's possible using intents.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Reply

Tags
aliendalvik, browser, mimehandler


 
Forum Jump


All times are GMT. The time now is 09:00.