@AndyBig, and all others here
Good news, I made your apk take screen shot from the button "Quick"
One sec while I gather up the docs for you. Super easy fix. Nice work on the edits btw.
********************************************
1sec later...
My edits are via ssh, I left off using adb to push app back onto scope, I park it in /system/priv-app/Sparrow/ as 644 root:root , pm install that apk
You need to add a perm to AndroidManifest.xml
<uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER"/>Recompile, align, sign, reinstall
The launcher should restart scope app in a few sec
Find the uid for com.rigol.scope (ps |grep scope), you'll use this new uid in your
platform.xml edit (my example shows u0_a36, your uid might be different)
The pitfall here is, every re-install will get a new uid for the app. I started with u0_a35, my hack failed, I tried again, works. I can create bash script to awk sed the platform file after a app reinstall to make it less pita, etc.
mount -o rw,remount /system
vi /system/etc/permissions/platform.xml
copy-paste the below block in
save file
reboot
<assign-permission name="android.permission.READ_FRAME_BUFFER" uid="u0_a36" />
<assign-permission name="android.permission.CAPTURE_VIDEO_OUTPUT" uid="u0_a36" />
<assign-permission name="android.permission.CAPTURE_SECURE_VIDEO_OUTPUT" uid="u0_a36" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="u0_a36" />
<permission name="android.permission.READ_FRAME_BUFFER" >
<group gid="u0_a36" />
</permission>
<permission name="android.permission.CAPTURE_VIDEO_OUTPUT" >
<group gid="u0_a36" />
</permission>
<permission name="android.permission.CAPTURE_SECURE_VIDEO_OUTPUT" >
<group gid="u0_a36" />
</permission>
<permission name="android.permission.ACCESS_SURFACE_FLINGER" >
<group gid="u0_a36" />
</permission>
***********************************************
side note for readers, if you want to see what all the code is logging, from ssh just run "
logcat /system/log", then touch a knob, or tap screen and see what coords you actually touched. When logcat is idle, you can hit enter a few times to make a space, then touch a scope control, everything is basically logged, which in my opinion we might want to turn off to take some load off the cpu side, not need to log all that stuff unless we trying to debug it.
And sorry I could not hack it as fast as AndyBig has, my dho has been in the box, I only get to play around with it in limited spare time, I actually reworking my little lab area.