View gist:3e8fde6e76bf5529a1535641ee5c0601
[Appium] Welcome to Appium v1.6.4 (REV 56417f88f98a559aca57fc6ba169ed6e1e2c04f1)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"deviceName":"Android GoogleApi Emulator","name":"GoogleMapsTest - Android 6.0","isGms":true,"app":"https://www.dropbox.com/s/tycwrkzvrcbqekn/app-prodFlavour-debug-unaligned.apk?dl=1","appActivity":"com.easymenu.activities.SplashActivity","platformVersion":"6.0","avdArgs":"-camera-back emulated -camera-front emulated","avd":"Pixel_API_O","appPackage":"com.easymenu.android","platformName":"Android","appiumVersion":"1.6.4"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"Android GoogleApi Emulator","name":"GoogleMapsTest - Android 6.0","isGms":true,"app":"https://www.dropbox.com/s/tycwrkzvrcbqekn/app-prodFlavour-debug-unaligned.apk?dl=1","appActivity":"com.easymenu.activities.SplashActivity","platformVersion":"6.0","avdArgs":"-camera-back emulated -
View appium-android-driver.log
createSession
1) should start brave browser
0 passing (9s)
1 failing
1) createSession should start brave browser:
Error: unknown error: WebView apps require activity name
View gist:48aa4acb2d2a7a888ecb018deb6d758c

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
View appium-unlock.log
./node_modules/.bin/gulp transpile && ./node_modules/.bin/mocha --compilers js:babel-core/register -t 0 test/functional/driver-e2e-specs.js
[08:43:15] Using gulpfile ~/Sauce/appium-android-driver/gulpfile.js
[08:43:16] Starting 'transpile'...
[08:43:30] Finished 'transpile' after 15 s
createSession
dbug AndroidDriver AndroidDriver version: 1.10.39
WARN BaseDriver The following capabilities were provided, but are not recognized by appium: unlockType, unlockKey.
info BaseDriver Session created with session id: 9d026d3f-7402-4335-a28e-6f030a80770f
View gist:d4835b9c69ef955d8d530132c493b472
Welcome to Appium v1.6.0 (REV 56417f88f98a559aca57fc6ba169ed6e1e2c04f1)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"deviceName":"Android Emulator","name":"AvailableCamerasTest - Android 6.0","app":"https://s3.amazonaws.com/sauce-bundles/emulator-files/android-emulator-test-app.apk","platformVersion":"6.0","avdArgs":"-camera-back emulated -camera-front emulated","avd":"Nexus5","appPackage":"com.saucelabs.android.emulators.test.app","platformName":"Android","appActivity":"com.saucelabs.android.emulators.test.app.activities.MainActivity"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"Android Emu...
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] deviceName: 'Android Emulator'
[Appium] name: 'AvailableCamerasTest - Android 6.0'
[Appium] app: 'https://s3.amazonaws.com/sauce-bundles/emulator-files/android-emulator-test-app.apk'
[Appium] platform
View .dev.package.json
[{
"module": "standard",
"tasks": {
"prestart": "standard"
},
"extend": {
"standard": {
"globals": [],
"ignore": ["dist/*"]
}
View .gitconfig
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = vrunoa
email = vruno.alassia@gmail.com
[alias]
st = status
ci = commit
co = checkout
View processing.py
for i, m4a_buffer in enumerate(m4a_buffers):
f = tempfile.NamedTemporaryFile(dir=voice_datadir, suffix="."+input_audio_extension, prefix="%s_%d"%(username,i), delete=True)
f.write(m4a_buffers[i])
f.seek(0, os.SEEK_END)
chunk = AudioSegment.from_file(f.name, "mp4")
chunk.export("%s_%d.wav"%(username,i), format="wav")
View chunkBuffer.java
public byte[] chunk(ByteBuffer buffer) {
byte[] finalBuffer = new byte[buffer.limit()-buffer.remaining()];
ByteBuffer target = ByteBuffer.wrap(finalBuffer);
target.order(ByteOrder.LITTLE_ENDIAN);
target.put(buffer.array(), 0, buffer.position());
retur finalBuffer
}
View jniChar2jbyteArray.cpp
JNIEXPORT jbyteArray JNICALL Java_com_urucas_test_getframes(JNIEnv* env, jobject thiz) {
__android_log_write(ANDROID_LOG_INFO, "Test", "getting frames");
char* frame;
int len;
processor->getFrames(&frame, &len);
jbyteArray arr = env->NewByteArray(len);
env->SetByteArrayRegion(arr, 0, len, reinterpret_cast<jbyte*>(frame));
delete processor;
return arr;
}