Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i = system ("kill $(pidof cameraserver) $(pidof vendor.samsung.hardware.camera.provider@2.4-service)");
- if (i == 0 )
- {
- msg = String8::format("Done : Setting torch mode of camera \"%s\" to %d failed: %s (%d)",id.string(), enabled, strerror(-err), err);
- }else
- {
- msg = String8::format("Nope : Setting torch mode of camera \"%s\" to %d failed: %s (%d)",id.string(), enabled, strerror(-err), err);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement