Create a job in laravel with command artisan
php artisan make:command ExampleCron --command=example:cron
Navigate to file create in project
app\Console\Commands\ExampleCron.php
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>VPS Monitor</title> | |
| <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
| <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"> | |
| </head> |
| #!/bin/bash | |
| # Update package lists (adjust for your package manager) | |
| sudo apt update # Debian/Ubuntu | |
| # sudo yum update # RedHat/CentOS | |
| # Install Apache | |
| sudo apt install apache2 -y # Debian/Ubuntu | |
| # sudo yum install httpd -y # RedHat/CentOS |
Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage
( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs),
but on a production release app downloaded from an app store you're most likely to see:
run-as: Package 'com.mypackage' is not debuggable