[Xposed] Run Linux on Dex CLI in the background - Samsung Galaxy S10 Themes, Apps, and Mods

I got my s10 a week ago and found out that the Linux on Dex app pauses the container when the app in the background, so I hooked the methods to stop it from being paused, so you can run a vncserver and connect to it from the phone itself or other clients on the same network
APK and Source Code

reserved

Guys I'm with latest version 0.6 aod on, attached my app settings. The battery drain is much higher that version 0.5 why is that?

Anyway this could be done without root?

Bump for no root option

Related

VNC + VirtualBox = Full OS on your phone

I'm probably not the only one that has done this,but yesterday at work I setup a headless Windows XP VM with virtualbox on a computer,and used RealVNC Viewer on my phone to login remotely,and it worked pretty well. Our service order system does not display correctly in mobile web browsers (even the ones you can set to view in desktop mode),so this was an interesting alternative. I didnt specifically do this for my phone,but more or less to see how it would work on a bigger tablet. I used RealVNC,which is a paid app,but its definitely one of the best ones out there for this setup, more on that at the end.
Anyway,heres a few pointers if anyone wants to try this out.
1. Install virtualbox (and the extension pack),install your favorite guest OS and install your favorite VNC server (I just used TightVNC for the server as well). Also, shut down the VM and change the network type from NAT to Bridge (so it gets an IP from your network). Start it back up, get the IP address and shut it back down.
2. With the VM off,start it back up in headless mode:
My host OS was windows 7,so I created a batch file in the VB program files folder and added this:
Code:
VBoxManage startvm "VM name" --type headless
Then I made a shortcut to the batch file on the desktop.
the command is same for linux,but you can run it from any terminal directory I do believe
3. Give it a min to boot up,then adjust the resolution with:
Use this one time command,adjust the values if necessary. I created another batch file to run this command,then changed it for the next command we have to run.
Code:
VBoxManage setextradata global GUI/MaxGuestResolution 1920,1200
that will allow VirtualBox to globally use any resolution up to 1920x1200,but it wont actually change it,that is what the next one is for,this changes it on the fly:
Code:
VBoxManage controlvm "VM name" setvideomodehint 960 503 24
for best usage,disconnect and reconnect from the phone when changing it on the fly,RealVNC didnt exactly like the resolution changing while logged in.
Now with the RealVNC viewer,it keeps the notification bar at the top,so you cant exactly use it full screen,so thats why its not 960x540.
The realVNC app for 9.99 is worth it,all the other remote apps I have tried are either slower,or had dumb control schemes. This one seems to work the best. Also,I have never used the built in remote display function,so I dont know if it would work any better or not.
I had very minimal lag with 24 bit color on the phone,this method will work on any android device,you just have to figure out the maximum resolution to use without having to pan the screen. Obviously this will work great at home or at work using wifi,but not that great using 3G service.
thats pretty bad ass. For the Tegra 3 crowd, such as myself, Splashtop THD is more than just for gaming, again, it is paid like RealVNC, but the best part about it is it runs nearly lagless. Give it a shot if your hardware supports it

Pairing Android Wear without Android Phone or Table (Via Virtual Machine)

Hello everyone,
It's been a long time since I have viewed the XDA forums. A brief background of what I was working to accomplish was to activate and use an Android wear device without pairing to a phone. I did not find any articles online or procedures for this. What this method allows you to do is pair, fetch software, and get notifications (email etc.), via your PC. The basic test setup is running Android x86 v4.4-RC2 as a virtual machine under Parallels on a Macbook Pro. Steps are listed below. Hope this helps in others endeavors.
1. Initially install Parallels desktop. (Virtualbox was tested but would not work with the Bluetooth hardware_
2. Run the pre-configured experimental Android VM from Parallels initially creating the virtual machine.
3. After successfully installing the new Android VM bundled download Android x86 v4.4-RC2 iso.
4. Shutdown the initially created VM and mount the iso to a virtual cd drive. Set boot order to start with cd first.
5. After startup in grub go to the install Android option (last one)
6. During the install allow formatting of the virtual drive and overwrite the initial operating system that was installed with the new version.
7. After startup of the new virtual machine with the correct image setup your Google account to access the play store.
8. Download Google Wear and install.
9. Go to the vm settings while running and check to share both Bluetooth and web cam USB devices.
10. Go to settings in the Android VM and then Bluetooth. Attempt to pair with the watch.
11. A prompt will come up in the actual OS to pair with the watch, this is ok click on pair in the main os.
12. The main os will say the watch is not connected but the guest Android VM will now recognize the watch and start the pairing process.
13. Once pairing is complete simply use all functions that would normally be used in the virtual machine.
13a. In order to receive text message notifications by your computer when paired use a carriers text app such as Verizons connect app.
Mac OS X Yosemite Parallels Android Virtual Machine Smart watch Bluetooth Pairing
matrixfatalerror said:
Hello everyone,
It's been a long time since I have viewed the XDA forums. A brief background of what I was working to accomplish was to activate and use an Android wear device without pairing to a phone. I did not find any articles online or procedures for this. What this method allows you to do is pair, fetch software, and get notifications (email etc.), via your PC. The basic test setup is running Android x86 v4.4-RC2 as a virtual machine under Parallels on a Macbook Pro. Steps are listed below. Hope this helps in others endeavors.
1. Initially install Parallels desktop. (Virtualbox was tested but would not work with the Bluetooth hardware_
2. Run the pre-configured experimental Android VM from Parallels initially creating the virtual machine.
3. After successfully installing the new Android VM bundled download Android x86 v4.4-RC2 iso.
4. Shutdown the initially created VM and mount the iso to a virtual cd drive. Set boot order to start with cd first.
5. After startup in grub go to the install Android option (last one)
6. During the install allow formatting of the virtual drive and overwrite the initial operating system that was installed with the new version.
7. After startup of the new virtual machine with the correct image setup your Google account to access the play store.
8. Download Google Wear and install.
9. Go to the vm settings while running and check to share both Bluetooth and web cam USB devices.
10. Go to settings in the Android VM and then Bluetooth. Attempt to pair with the watch.
11. A prompt will come up in the actual OS to pair with the watch, this is ok click on pair in the main os.
12. The main os will say the watch is not connected but the guest Android VM will now recognize the watch and start the pairing process.
13. Once pairing is complete simply use all functions that would normally be used in the virtual machine.
13a. In order to receive text message notifications by your computer when paired use a carriers text app such as Verizons connect app.
Click to expand...
Click to collapse
Hi! I registered just to say thanks, and this post gives me hope.
However, my Android install still refuses to turn on the bluetooth and it flips back to off whenever I turn it on.
Im using 4.4 R2 on Parallells 10 (the latest update). I've selected Webcams and Bluetooth in the Parallels config settings, but my Pebble software still cant connect.
Could you give a bit more detail (Steps 9, 10 and 11) on how to turn on the bluetooth? (maybe with a couple screenshots).
I'm using a Summer 2012 13" macbook pro 2.5GHz Core I5 with 16gb RAM Yosemite. My VM has 2GB RAM
Cheers!
I want to make sure this works before I go out and actually buy an LG G Watch R (The dopest looking smartwatch in existence)
---------- Post added at 08:44 AM ---------- Previous post was at 08:31 AM ----------
I restarted the VM and the BlueTooth is working now!!
WTF!!!
I first Paired the Pebble to the Macbook Pro, then the VM found it in the bluetooth menu and now I'm connected!
Awesome!!
ummm, am I missing something or will this just allow connection via Bluetooth to a computer that sits at home and will never leave so your watch will never connect more than 50ft away? I love the idea but what does this accomplish? Not bashing, more curious
swyner said:
ummm, am I missing something or will this just allow connection via Bluetooth to a computer that sits at home and will never leave so your watch will never connect more than 50ft away? I love the idea but what does this accomplish? Not bashing, more curious
Click to expand...
Click to collapse
Well, Debugging for one. Second, I only own an iPhone, but I love the LG G Watch R, and there is no way in hell I'm buying an Android phone. So I use the VM to activate it and load watch faces, and now I have a cool watch on my wrist with various faces.
The Idea that I HAVE to use it with my phone is ridiculous. I can use it however I want to! Like the iPod Nano 6th gen I still own with a Lunatik watch strap, it's the cool factor for me right now, until I can use android wear with my iPhone

			
				
Hi, I am able to install, and run Android 4.4 on parallels on my mac. However, once I enable bluetooth for the android OS it does not find my watch, let alone any of the other bluetooth devices in my apartment. Do you know if there is any way to force the OS to find a device? Or perhaps it really isn't connecting with my computer's bluetooth device at all?
I purchased an LG G Watch R and I started it up by pairing with an android in the store, and I was able to pair the watch to the macbook itself, but not through the android OS running on parallels. Am I missing anything here?
Thank you!
how you install apk to watch?)
Pairing problems
smartwatchLG said:
Hi, I am able to install, and run Android 4.4 on parallels on my mac. However, once I enable bluetooth for the android OS it does not find my watch, let alone any of the other bluetooth devices in my apartment. Do you know if there is any way to force the OS to find a device? Or perhaps it really isn't connecting with my computer's bluetooth device at all?
I purchased an LG G Watch R and I started it up by pairing with an android in the store, and I was able to pair the watch to the macbook itself, but not through the android OS running on parallels. Am I missing anything here?
Thank you!
Click to expand...
Click to collapse
Hi there,
I'm started reading this forum and this thread cause I also have no android device. I've the same problems connecting a moto 360 to the Android VM on parallels.
My Mac is paired with the watch but the VM not.
Did anyone has a hint how to share the Mac Bluetooth with the Android VM so the smart watch is in the Android VM?
 @smartwatchLG Could you connect your watch now?
same problem as others. I get everything installed and moto paired with macbook, but it wont connect to vm. I know bluetooth is working on vm because it detetects my iphone but not my watch for some reason.
Ok, something I found out is that if you are like me and previously synced your watch with another device then you must reset the watch for this to work.
@matrixfatalerror
Thanks a lot mate, got the Moto 360 up and running.
Only 1 Question left. Did you manage to get the "Moto Connect App" working? Every time I open it and try to change the Watch Face Settings it keeps crashing. Would love to use personalized custom Watch Faces.
Best
faymus said:
same problem as others. I get everything installed and moto paired with macbook, but it wont connect to vm. I know bluetooth is working on vm because it detetects my iphone but not my watch for some reason.
Click to expand...
Click to collapse
i have some question
my parallel can't show any bluetooth .. my lg g watch or iPhone
what setting i must change
thanks for this howto - work for me on a macbook air with yosemite. Only challenge was to get bluetooth connection established but took a while until I had it connected through the VM with passcode given in OSX.
Installation of shiitakeo android for ios worked as well as the motorola extras
Have you gone into settings and turned Bluetooth on inside your parallels android install.
Here is a video tutorial that I made based off of your instructions. Great job on figuring this out BTW.
https://www.youtube.com/watch?v=0VzWq4BiOEE
Hope you like.
Having problems embedding the video.. Anyone know why? I'm using the [ youtube ] tags.
dabears said:
@matrixfatalerror
Thanks a lot mate, got the Moto 360 up and running.
Only 1 Question left. Did you manage to get the "Moto Connect App" working? Every time I open it and try to change the Watch Face Settings it keeps crashing. Would love to use personalized custom Watch Faces.
Best
Click to expand...
Click to collapse
I'm having the same problem Anyone know of a fix?
Could I use this update my Moto360 software??
Thanks
Root s6

[APP] Do Not Disturb sync for Wear 2.0

Those who have been lucky to upgrade to Wear 2.0 have probably noticed the removed Do Not Disturb toggle synchronization between wearable and phone. Some like it, some not. I didn't like it, so I made an app that does the sync. Currently it only works one way: wearable -> phone. With some hacking, sync is working both ways.
You can find the application in Play Store.
Source, builds and setup instructions are available in github and licensed under Apache 2.0.
Installation instructions for Watch -> Phone sync:
Install phone application and wearable application from on-watch Play Store
Launch application on Phone
Click "Grant Permission" button
Enable Do Not Disturb access permission for application
Make sure all 3 checks in the application pass
Installation instructions for Phone -> Watch sync:
Setup watch ADB
Execute:
Code:
adb shell settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:rkr.weardndsync/rkr.weardndsync.NotificationService
Enable state broadcast in Watch Setup wizard
Currently synchronization phone -> watch is only possible by assigning permissions in ADB. Wear OS doesn't provide management settings. As this is not officially supported - it may not work for everyone or the next Wear version.
I love that something like this is now made, but I have a question. What is the first screenshot in the Google Play Store link for? I thought this was only for DND?
I'd like to install it and find out myself, but my ZenWatch 2 still hasn't received the update.
If your watch isn't updated, then the sync should work out of the box. As for the screenshot, I tried to show that the toggle in the watch will sync to the toggle in the phone. I'm not a designer.
Wonderful little utility. Thank you very much.
Fingers crossed to get phone > watch allowed.
I have a few apps that toggle DND via Tasker on my phone, and having it trigger the watch too would be sweet.
Good news and bad news.
The bad: notification access and all the management is unavailable in Wear. So there will not be an official way to make this work (source).
The good: you can grant the permission in ADB. I tried it and the app can actually switch DND on and off (source).
Having to run a single ADB command will probably not stop the brave people of XDA! So synchronization should eventually come to the watch, just give me some time to fix the current bugs.
Bonus news: AudioManager can be used in android <6 for sound modes. Haven't looked into that yet.
Thanks for this app, I miss the functionality!
Sync from phone to watch is implemented and functional! v1.5 is being pushed to the Play Store. You just need to enable broadcast from phone in setup wizard and execute this command in the watch:
Code:
adb shell settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:rkr.weardndsync/rkr.weardndsync.HackService
raimondas.rimkus said:
You can find the application in Play Store
Click to expand...
Click to collapse
Hello!
Not work on Huawei Mediapad X2 (android 5.1.1).
I know: "only Android 6+ is supported"... But, maybe, android 5.1 can be added to?..
Thank you!
If it can help, I can access Do Not Disturb on android 5 through Tasker.
But it is called "Interrupt Mode". It can be found here: http://tasker.dinglisch.net/userguide_summary.html search for "Interrupt Mode".
raimondas.rimkus said:
Those who have been lucky to upgrade to Wear 2.0 have probably noticed the removed Do Not Disturb toggle synchronization between wearable and phone. Some like it, some not. I didn't like it, so I made an app that does the sync. Currently it only works one way: wearable -> phone. With some hacking, sync is working both ways.
You can find the application in Play Store.
Source is available in github and licensed under Apache 2.0.
Installation instructions for Watch -> Phone sync:
Install phone application and wearable application from on-watch Play Store
Launch application on Phone
Click "Grant Permission" button
Enable Do Not Disturb access permission for application
Make sure all 3 checks in the application pass
Installation instructions for Phone -> Watch sync:
Setup watch ADB
Execute:
Code:
adb shell settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:rkr.weardndsync/rkr.weardndsync.HackService
Enable state broadcast in Watch Setup wizard
Currently synchronization phone -> watch is only possible by assigning permissions in ADB. Wear OS doesn't provide management settings. As this is not officially supported - it may not work for everyone or the next Wear version.
Click to expand...
Click to collapse
Thank you so much.
Sent from my ONEPLUS A3003 using Tapatalk
Works perfect!! Thanks!
raimondas.rimkus said:
... As for the screenshot, I tried to show that the toggle in the watch will sync to the toggle in the phone. I'm not a designer.
Click to expand...
Click to collapse
me neither, but maybe this could help?
I'm just curious. What's the difference between this version available in the Play Store (source code available here) and your own? It looks to me as though that blunden may have forked your code.
That's how open source works, you are free to fork it or take it as an inspiration. His code isn't a plain copy paste, it looks like he even has sync to older android versions, which I didn't have time to do.
I can no longer sync both ways after the newest update, v1.6. I can only control DND from both devices from my watch. Anyone else having this problem with v1.6?
Sent from my SM-G955U using Tapatalk
thecarp1975 said:
I can no longer sync both ways after the newest update, v1.6. I can only control DND from both devices from my watch. Anyone else having this problem with v1.6?
Sent from my SM-G955U using Tapatalk
Click to expand...
Click to collapse
The first idea is that app got suspended after the update. Make sure watch app is updated and start the app on phone. I've added a check that will tell you if watch DND permission is granted. If everything passes, then there is probably something weird with the AudioManager. Previous version used the new NotificationManager, but it requires a running service for broadcast events. I've switched to legacy AudioManager that can use a stateless broadcast receiver.
[Edit:] Android 4.3+ support is being pushed. This needed a code refactoring, so bugs are probable.
okk
raimondas.rimkus said:
The first idea is that app got suspended after the update. Make sure watch app is updated and start the app on phone. I've added a check that will tell you if watch DND permission is granted. If everything passes, then there is probably something weird with the AudioManager. Previous version used the new NotificationManager, but it requires a running service for broadcast events. I've switched to legacy AudioManager that can use a stateless broadcast receiver.
[Edit:] Android 4.3+ support is being pushed. This needed a code refactoring, so bugs are probable.
Click to expand...
Click to collapse
Yeah, all three permissions were granted. You wouldn't happen to have the APK for the previous version?
Sent from my SM-G955U using Tapatalk
V1.5 attached.
I would still prefer if you could make a logcat and I could fix the problem for the rest of the people. Just do these steps:
Connect phone to ADB
Enable DND, Disable DND on phone
Enable DND, Disable DND in watch
Run: adb logcat -d > bug_phone.txt
Repeat with watch connected to bug_watch.txt
PM the logs and I may try to fix it. It's not the first time android APIs don't work in specific phones.
Just a quick FYI. Version 1.6 works fine here. Nexus 6 / Pure Nexus 7.1.1 / Magisk root. Huawei watch AW 2.0 7.1.1 stock.
I can start DND from either watch or phone and the other device enables.
It works when I start Sleep as Android; SaS enables phone DND and that enables DND for AW 2.0, then Tasker via AutoWear triggers theater mode on my watch. One step goodness! :victory:

Dex questions

Hello guys,
I've been looking for some information related to Dex but couldn't find any on the Internet. Maybe some of you have the answer to my questions:
- Is it possible to open several instances of the same optimized APP like 2 Excel files at the same time for example?
- I've seen OneDrive was also optimized for Dex. The regular Onedrive app doesn't allow editing of offline files when you are not connected to the Internet. What about this one?
- Still about OneDrive for offline files: the background sync doesn't happen unless you've opened the app. If new files are added from, let's say Windows, you'll need to open the APP again to have it refreshed in the regular app. Is it happening automatically with the Dex version?
Generally speaking: are the Dex optimized APP the same APK used on other Android phone which perform differently when Dex is launched or is it a complete different APK?
Thanks
Therrm
Therrm said:
Hello guys,
I've been looking for some information related to Dex but couldn't find any on the Internet. Maybe some of you have the answer to my questions:
- Is it possible to open several instances of the same optimized APP like 2 Excel files at the same time for example?
- I've seen OneDrive was also optimized for Dex. The regular Onedrive app doesn't allow editing of offline files when you are not connected to the Internet. What about this one?
- Still about OneDrive for offline files: the background sync doesn't happen unless you've opened the app. If new files are added from, let's say Windows, you'll need to open the APP again to have it refreshed in the regular app. Is it happening automatically with the Dex version?
Generally speaking: are the Dex optimized APP the same APK used on other Android phone which perform differently when Dex is launched or is it a complete different APK?
Thanks
Therrm
Click to expand...
Click to collapse
1: yes
2: yes but they will not sync until youre online
3:sync happens as long as your online. when i edit a file on my computer, its updated on my phone(dex) before i even look for it. but only if youre online.
i dont use a samsung dex dock or dex station
vnc does not work in dex but es with network options does
can't kill the samsung keyboard and still use dex.
Vnc doesn't work with deX. But remote desktop from Microsoft does.
thegreatkazoo said:
1: yes
2: yes but they will not sync until youre online
3:sync happens as long as your online. when i edit a file on my computer, its updated on my phone(dex) before i even look for it. but only if youre online.
i dont use a samsung dex dock or dex station
vnc does not work in dex but es with network options does
can't kill the samsung keyboard and still use dex.
Click to expand...
Click to collapse
can i use dex with wifi ?
or should i get Ethernet dongle with that?
dimitrispas22 said:
can i use dex with wifi ?
or should i get Ethernet dongle with that?
Click to expand...
Click to collapse
Your call.
I use Ethernet to offset some of the battery usage.

Taking Screenshot on Android Smartphones Locally via Python (Without a second smartphone, PC, Wifi or USB Connection)

Hi All,
I am totally new in XDA forum and Android app development. So I hope I am in the right place now
I want to take screenshots of my Android smartphone screen(not only screenshot of my app but whole screen) locally in background (without a second smartphone, PC , Wifi or USB connection) in my application via Python,
but unfortunately I could not find a proper way to do it. I tried and researched following methods but none of them is the right way in my case:
Android Screen Buffer: I guess this is used for screenshot, but I could not achieve to install it. I get following error:
The conflict is caused by: ash 0.3, 0.2 and 0.1 depends on opencv-python==4.1.2.30
but this version does not support any arm base platform. So I cannot install it. Moreover it has also dependencies with ADB tool,
so it looks like wifi or serial connection required.
ADB(Android Debug Bridge Tool): It requires either USB Cable or Wifi connection. The problem is that I do not want that my app users
requires necessary the same Wifi connection(I know internet connection not required but they need to be somewhere around a modem) to be able to use my app.
LADB: This requires also USB Cable or Wifi connection
scrcpy: It has also ADB dependencies. I get no devices/emulators found if I do not start any server from a PC.
Note: is it possible to do it via an other programming language and if it is so, then which language and library would you recommend? I found some examples via Java but all of them were capturing the window within the application not whole smartphone screen, I want to implement an app which works as a service in background.
Thanks a lot in advance.
Environment: Android 11
Prog Language: Python 3.7
Smartphone:Samsung Galaxy A8
Do a related Google search. You'll get dozens of findings.
An example:
Android: The Perfect And Easy Way to Make Screen Recorder
How to Make Screen Recorder in Android Studio
codingwithsaud.medium.com
xXx yYy said:
Do a related Google search. You'll get dozens of findings.
An example:
Android: The Perfect And Easy Way to Make Screen Recorder
How to Make Screen Recorder in Android Studio
codingwithsaud.medium.com
Click to expand...
Click to collapse
Hi, thanks a lot for your fast response. Actually a second language was the worst case for me. My app is already implemented in a cross platform via Python for MacOS and Windows, so unfortunately it will be really painful to implement everything via Java again. Moreover I just want to take screenshot instead of screen recording. But if none can give me a better solution, maybe i can try to integrate your java app into my python code(maybe intentservice), so my code can start/stop the screen cap code and the rest of implementation i can keep in python

Categories

Resources