Skip to content

Instantly share code, notes, and snippets.

View kevalpatel2106's full-sized avatar
πŸ––
Live long and prosper

Keval Patel kevalpatel2106

πŸ––
Live long and prosper
  • Bristol, UK
  • 05:30 (UTC)
View GitHub Profile
@kevalpatel2106
kevalpatel2106 / AndroidManifest.xml
Created July 27, 2017 12:00 — forked from riggaroo/AndroidManifest.xml
Custom Android Espresso Test Runner - Unlocking a Device, Granting Permission to turn animations off, turning the Screen on.
<?xml version="1.0" encoding="utf-8"?>
<!-- Put this file in the "debug" folder so it only gets merged into debug builds -->
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="org.bookdash.android">
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<!-- Disable animations on debug builds so that the animations do not interfere with Espresso
splits {
density {
enable true
exclude "ldpi", "xxhdpi", "xxxhdpi"
compatibleScreens 'small', 'normal', 'large', 'xlarge'
}
}
abi {
enable true
reset()
pip install RPi.GPIO
Please go to this URL: https://...
Enter the authorization code:
sudo /home/pi/google-assistant-init.sh
sudo nano /etc/profile
@lxterminal -e "/home/pi/google-assistant-init.sh"
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
chmod +x google-assistant-init.sh
#!/bin/sh
/home/pi/env/bin/python3 -u /home/pi/main.py