How to set default startup applicationv on android tv 7.1.2 - android-tv

Anyone who knows how you can change the default start up application on an Android tv box [H96 max RK3328]r.
I tried different autorun managers, but it doesn't work?
I want to use a visitors screen with videos that permanently loop.. Even when someone shut down everything? It would restart and automatically open the desired app.
Hope someone can help

Used to be possible until the update to Android 7 by disabling the default home screen. That was blocked and AFAIK there's no way to do it without flashing your own version of Android on the device or rooting it.

One of the approach is to delete your current launcher from STB, if you have a launcher on the startup. Check do you have settings button on your remote or any other way to change installed apps.
If you have adb with root permission.
To delete the Launcher do this steps:
adb connect <stb ip address>
adb shell
su
mount -o rw,remount /system
rm -rf /system/app/<current launcher name>
rm -rf /data/data/com.<developer>.<current launcher name>

Related

Cannot install soap on wordpress on azure

I want to install a plug that requires SoapClient.
In WooCommerce -> Status I have message like that "Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected."
I spent a lot of time on it trying several ways:
1. https://social.msdn.microsoft.com/Forums/en-US/18ddb045-05ed-4ad3-aafa-a2c872ece55e/install-soap-module-for-php-72-in-web-app-for-containers-wordpress?forum=windowsazurewebsitespreview
In Azure SCM Kudu -> SSH
Later I reset the server using azure and still not working.
When I perform this action twice I get this message, but when I do a reset I can install it again.
2. How do I install soap extension?
In Azure SCM Kudu -> SSH
I cannot use sudo and apt-get
I also can't understand why I don't have root on ssh. In many examples, people have something like root#ASFF1234. I have only ASFF1234. :(
In Azure SCM Kudu -> Bash
I cannot use sudo and apt-get doesnt work.
3. https://bobcares.com/blog/woocommerce-soap-client/
yum doesn't work on SSH and bash
Would someone be able to tell me what I'm doing wrong?
Thank you in advance.

AWS CodeDeploy deployment failed at event ApplicationStop

I am trying to set up auto-deployment from GitHub to AWS, using EC2.
I set Role with CodeDeployServiceRole auto policy
After following the Tutorial: Use AWS CodeDeploy to Deploy an Application from GitHub, my deployment fails at the ApplicationStop event, after trying for couple of minutes with error code HEALTH_CONSTRAINT. I'm not sure how to troubleshoot the issue/where to look.
These are few hints of how you can navigate your way
Logs as mentioned in comments in /var/log/aws/codedeploy-agent
As AWS support recommend you can add for one time --ignore-application-stop-failures so it will skip that step in case it failed last time and see، because the application stop Lifecycle event uses the appspec file from the last successful build so if that one is corrupted somehow this step will fail in the following builds
(not recommended) you can delete the file, that CodeDeploy uses to keep track of the previous successful deployment in the following path /opt/codedeploy-agent/deployment-root/deployment-instructions/
Check the latest logs at /var/log/aws/codedeploy-agent
If your deployment is failing at ApplicationStop event, then most likely the issue is your EC2 instance does not have the necessary permissions to get the artifacts from S3 bucket.
Your EC2 instance must have an IAM role attached which gives it enough permissions to download the artifacts from S3 bucket
Your EC2 must be started with an IAM role. So you may have to reboot your instance after attaching the role to it.
From your configuration, looks like you have provided permissions to CodeDeploy to perform certain actions on your EC2. You may want to check if your EC2 also has the necessary permissions to download packages from S3 bucket.
Another reason for this error is that the CodeDeploy Service is not running on your machine. On Windows machines, Code Deploy Service terminates sometimes, and as a result, the deployment is not downloaded on the machine. Nothing appears in the logs either.
Run services.msc and check the code deploy agent service. If it is not running, start it and retry the deployment.
I had the same issue and solved it by solving codedeploy-agent that wasn't working on my EC2 instance.
sudo service {httpd/apache2} status
Something might have cause the agent not to run properly
Hope it will help
I had the same issue. You also need to make sure that your EC2 instance has code-deploy-agent installed.
Follow the below aws guide. It worked for me.
AWS guide to install code agent in linux server
Check if the codedeploy-agent is running.
sudo service codedeploy-agent status
if not running then use below command to run
sudo service codedeploy-agent start
If you are using aws Windows server, check the logs at :
C:\ProgramData\Amazon\CodeDeploy\log\codedeploy-agent-log.txt
AWS Docs
To check if the codedeployagent running in windows. Open powersheel command window and run these command.
powershell.exe -Command Get-Service -Name codedeployagent
Better to stop and start again.
powershell.exe -Command Stop-Service -Name codedeployagent
powershell.exe -Command Start-Service -Name codedeployagent
Or Restarting also works
powershell.exe -Command Restart-Service -Name codedeployagent
For me I had to uninstall the codedeployagent on windows by uninstalling and deleting old files of codedeploy.
Run the below command in powershell one by one to uninstall.
wmic
product where name="CodeDeploy Host Agent" call uninstall /nointeractive
exit
After this delete the codedeploy folder at this location.
C:\ProgramData/Amazon/CodeDeploy/
Now install codedeployagent on windows.
Start the codedeployagent again.
powershell.exe -Command Start-Service -Name codedeployagent

Sonatype Nexus only starting in console mode

I installed Nexus 3.6.0-02 on Redhat 7.4.
I am able to get Nexus to start in console mode by running the command: ./nexus run
If I try and start nexus as a service per the following documentation, nothing happens.
https://help.sonatype.com/display/NXRM3/Run+as+a+Service
If I run the command ./nexus start, the application does not start and there is nothing written into any nexus logs indicating why it failed to start.
The install and sonatype-work directories are all owned by the user who I have configured Nexus to run as.
Any ideas as to where to look or troubleshoot to figure this problem out.
Thanks
In my case I am using nexus 3 . I resolved this by deleting lock file placed inside nexus3 folder of sonatype folder and restart it by nexus start command.
Make sure the "run_as_user" configured in $install_dir/bin/nexus.rc has permissions to write to the installation directory and the work directory. And make sure they have a login shell, that is required for the startup script to work.

How do I delete preinstalled apps on an android?

I am trying to delete preinstalled applications on my HTC phone. I have tried to root my phone but was not very successful.
Ty
Disabling is one way. For example Motorola enables them every update.
You can also remove them completely using adb:
Install adb if you do not already have it, https://developer.android.com/studio/command-line/adb
Enable developer mode, usually by going to settings > system > about phone > and repeatedly clicking build number
Configure your phone in debug mode, usually settings > systems > developer options > USB debugging
Start a console and put adb in your path
List your packages using: adb shell pm list package -f
Remove the package using: adb shell pm uninstall --user 0
Example:
adb shell pm uninstall --user 0 com.microsoft.office.outlook
Removes Outlook
adb shell pm uninstall --user 0 com.linkedin.android
Removes LinkedIn
I'm not sure if updates reinstall applications.
Source: How do I get an apk file from an Android device?
Try disabling them first from Settings and then delete app data

When attempting to install WhatsApp Messenger on Android-x86, I get the error: "Your device isn't compatible with this version."

Some applications install, while others don't. This one in particular, WhatsApp Messenger, is very important for me to get running, since my Mobile Android device needs repairs. How can I get this installed?
Have you tried to do it through Google Play?
Try direct link from whatsapp web-site.
I had the same error when I was trying to install the app from Google Play on my AVD. Perhaps following instruction will be helpful for you if you decide to run the app on the emulator.
There were my steps to install it (you already need an installed Android SDK or Bundle):
Download whatsapp (link is above)
Run your emulator
./LOCATION/TO/sdk/tools/emulator -avd VM_NAME_HERE -partition-size 500 -no-audio -no-boot-anim -netfast
Mount the storage:
./LOCATION/TO/sdk/tools/platform-tools/adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
Give permissions
./LOCATION/TO/sdk/tools/platform-tools/adb shell chmod 777 /system/app
Push the apk to the device:
./LOCATION/TO/sdk/tools/platform-tools/adb push /LOCATION/TO/YOUR/WHATAPP/APK/WhatsApp.apk /system/app/.
That's all

Resources