openstf / STFService.apk

Monitor and perform various actions on your Android device. Not meant for actual user devices.
Other
242 stars 207 forks source link

take screenshot which follow minicap protocol #8

Open codeskyblue opened 7 years ago

codeskyblue commented 7 years ago

based on @stanliski work.

codeskyblue commented 7 years ago
adb install -r app-debug.apk
APK=$(adb shell pm path jp.co.cyberagent.stf | tr -d '\r' | awk -F: '{print $2}')
adb shell CLASSPATH="$APK" exec app_process /system/bin jp.co.cyberagent.stf.Capture

for now screenshot is about 4~5fps

sorccu commented 7 years ago

This is great, but could you add real header values?

codeskyblue commented 7 years ago

@sorccu So any other need to change? I can update now.

sorccu commented 7 years ago

Does it need QUIRK_ALWAYS_UPRIGHT?

On Fri, 25 Nov 2016 at 20:41 shengxiang notifications@github.com wrote:

@sorccu https://github.com/sorccu So any other need to change? I can update now.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/openstf/STFService.apk/pull/8#issuecomment-262939130, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_WhRue5YV4N3MwrBkUdiQp1ESyMgks5rBskhgaJpZM4K8FLP .

codeskyblue commented 7 years ago

no

sorccu commented 7 years ago

Thanks I'm a little busy now but I hope I can integrate this next weekend!

codeskyblue commented 7 years ago

might reach 14~20fps, I guess.

sorccu commented 7 years ago

I'm sorry I just realized I forgot to look into this last weekend. I will try again this weekend.

By the way I was able to find an HTC Desire 816 for relatively cheap and it just arrived (which is why I realized forgetting this). However it seems to work OK with current minicap (see https://github.com/openstf/stf/issues/484). Perhaps post your values to compare?

codeskyblue commented 7 years ago

@sorccu you can close it if it is ok, I do not have that HTC now.