Replace native camera with static image from internal storage. - General Questions and Answers

Wanted to ask if anyone had knowledge of any app that can be used to override the call for the native camera app on apps that specifically ask for a picture to be taken of a QR code or documentation for verification. I was able to email pictures to myself and simply want to use them when it prompts me to take pictures of them.
I see how this is made harder by needing to line up the image in the parameters that the app gives you to take a picture of the image you desire, just wanted to see if it was possible though.
Apologies if my question is confusing, to put simply, I just want to replace the native camera with a static image when an app automatically accesses the camera for things like a QR code or identification verification.
This is for a Nexus 6P, running rooted 7.1.2 with Xposed, if that makes any difference.

Related

[APP] Motion detector with recording abilities

Hello everyone,
I am new to this forum. I decided to register here after I completed my android project.
I created a program that can detect movements and save pictures of the moving objects. Phone has to remain static in order to work properly. The program also features separate address book. Address book keeps phone numbers for SMS notification. In order to activate that you have to create a new contact then long press the item in the list. The program creates folder on memory card where it saves the pictures. The speed is very high on Galaxy S. You can throw something fast and phone still snaps the flying object if it passes by the camera.
The program has many settings that can dramatically alter the performance. Settings have to be adjusted in accordance with the lighting conditions.
I tested app only on 2.2 Vibrant. I am really curious to see how it works on other 2.2 devices.
ARMv7 processor is a must!!
Please give me some feedback!
App is called Motion Recorder
this sounds like a great app. gonna try it now on my incredible.
My app MobileWebCam also does this (simpler detection algorithm I suppose) and can automatically save, upload the pictures or send email:
Development Thread is here:
http://forum.xda-developers.com/showthread.php?t=950933
Are you interested in sharing your motion detection code? Possibly we could combine functionality of both apps?
dirtsky, If you have any questions or if you find any bugs please write in this thread.
The program is little hard to use so feel free to ask.
_miha_, Mine detects motion by analyzing color. What about yours?
How do you send e-mail without the annoying pop up?
theandre said:
_miha_, Mine detects motion by analyzing color. What about yours?
How do you send e-mail without the annoying pop up?
Click to expand...
Click to collapse
My motion detection is three steps: Image is converted to grey, then I max every pixel with the ones around to remove the flickering pixels (especially needed for night/low contrast situations) and calc the difference between the last and this new pixels. Some magic value (which should better be configurable later decides about the motion. Problem is this is very slow (should use the ndk but only began working with it recently) so I have to scale down the image before which is bad for small/distant moving objects.
Email: Is not sent with Android/Intent. I use JavaMail. I had some difficulties with the libs but got it working somehow (and even more difficulties with proguard which I needed because file size is getting too large without using it).
_miha_, did you test my app? How does it stack up against yours in terms of performance?
I cant seem to find where the images are being saved on my SDcard. Epic 4G Froyo ec05 midNight Rom
I looked for the folder "Motion Recorder" and i dont see it. and theres nothing in the Gallery
zman519, since your device is basically Galaxy S type it will save in internal memory(aka 14 GB "SD card").
Please let me know if you find the folder there.
I have total 105 installs out which 35 are active. Is it considered as bad result?
UPDATE: 59 active installs out of 109 which makes it >50%. Is it good?
theandre said:
zman519, since your device is basically Galaxy S type it will save in internal memory(aka 14 GB "SD card").
Please let me know if you find the folder there.
Click to expand...
Click to collapse
The Epic does not have an internal sdcard. That must be the problem. I looked around with root explorer and did not see the folder.
Sent from the Drivers Seat of my Suby txting and Driving doing 100MPH+ in a school zone! Ha.
zman519, thank you for feedback, I will fix that and let you know once the update is ready. It should not take more than half an hour.
Question to developers:
My program saves pictures to the following path:
String path = "/sdcard/Motion Recorder/TakenOn" +...
Why does it not automatically save to external sd card in the case when there is no internal sd?
UPDATE. I figured out myself. Working on update that allows user to choose between internal and external memory.
Hello dev,
I tried it on my DHD - it crashes and don't save settings.
I just updated to v0.42 which adds support for the external storage. Just go to settings and tap the checkbox. Unfortunately I have not tested the new feature on the actual hardware because I do not have one at the moment. So please, those of you who can test it please let me know if it does not work.
drast-x, Thank you for the feedback. Please give me some more details. When does it crash? After you hit the start? When you hit the start do you get the preview from the camera? Unfortunately settings do not save after the exit except contacts...
Did it happen on:Jun 11, 2011 9:32:07 PM ? I ask you this because Developer console shows me one crash that occurred at that time:
java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.native_setup(Native Method)
at android.hardware.Camera.<init>(Camera.java:294)
at android.hardware.Camera.open(Camera.java:271)
Does saving pictures work on any of the phones except Epic 4g?
Thank you
I updated to v0.45
Now settings will save. Motion Recorder 0.45
Many thanks to the user of my app who sent this feedback:
"force close when start button clicked in nexus".
It turns out Nexus One (or S?) does not support either VGA or QVGA preview frames. So I had to fix this issue by requesting the supported resolutions. Very surprised by this issue. I expected that Android OS would figure this out on its own...
Thus new version 0.45.5 is supposed to fix the issue. I do not have Nexus One so I am not 100% about the fix. Those of you who are reading this and have Nexus One, please try new version!
Thank you!
Have you tried first reducing your image resolution to something ridiculously small like 32x32 and apply a DCT to keep only the low frequencies?
This might offer much better performance.
You can perform very good
_miha_ said:
My motion detection is three steps: Image is converted to grey, then I max every pixel with the ones around to remove the flickering pixels (especially needed for night/low contrast situations) and calc the difference between the last and this new pixels. Some magic value (which should better be configurable later decides about the motion. Problem is this is very slow (should use the ndk but only began working with it recently) so I have to scale down the image before which is bad for small/distant moving objects.
Email: Is not sent with Android/Intent. I use JavaMail. I had some difficulties with the libs but got it working somehow (and even more difficulties with proguard which I needed because file size is getting too large without using it).
Click to expand...
Click to collapse

[SOLVED] "Photo Settings" app by infinity8 trapped my photos, any way to save them?

[SOLVED] "Photo Settings" app by infinity8 trapped my photos, any way to save them?
I have this app called "Photo Settings" store some of my photos. All of them are 8MP photos 3264x2448.
http://www.windowsphone.com/en-US/apps/e88ce04d-ff1e-490c-86b8-66beab519c46
Viewing the thumbnails of the photos in the album work fine. But when clicking it to view the whole picture, and more importantly, giving me access to the export button, crashes the app.
It does not crash when the photo is smaller in size.
Is there any way to get my photos back other than waiting for an update of the app?
My device is an HTC Titan which cannot be interop unlocked right now to get filesystem access, and from what I know, even if interop unlocked, the isolated storage of the app is encrypted, right?
Are the photos not syncing with Zune?
Ah apologies, the images are stored in the app's file storage not in your media library. Then no. The app's file storage is isolated. So you'll have to wait for the dev to update the app.
Casey
Yes, you can do it easy. You will need any ISF access desktop app (search forum). Or you may use standard MS app called ISETool.exe (located at %ProgramFiles\Microsoft SDKs\Windows Phone\v7.1\Tools\IsolatedStorageExplorerTool), it came with WP7 SDK.
Command line should be: ISETool.exe ts de e88ce04d-ff1e-490c-86b8-66beab519c46 [C:\Users\YourName\Pictures]
ts = take snapshot (i.e. download all ISF content for the app to desktop)
de = device
e88ce04d-ff1e-490c-86b8-66beab519c46 = "Photo Settings" app GUID
[C:\Users\YourName\Pictures] = you should specify snapshot location here
@sensboston: ISEtool and its ilk can only be used on sideloaded apps. Given that the OP gave a link to the marketplace, I'm guessing he didn't sideload this app.
@OP: Isolated storage is not automatically encrypted (though the app developer can choose to encrypt files before putting them there, which this dev *might* have chosen to do). However, accessing the filesystem does typically require interop-unlock, so that's probably not going to help in your case.
It's a pity, I didn't know that BTW, on interop-unlocked Focus I still can access any ISF using WP7 Root Tools.
P.S. @GoodDayToDie, what if I sideload any dummy app with the same guid? Have you tried that trick?
UPDATE: tried, doesn't work (as an update; reinstall is working but deletes old ISF)
Agh... yeah, I should have mentioned, do *not* try that! If you do so, the default beahvior is re-install (wipes the IsoStore). If you try to force an update instead of a reinstall, the phone won't permit it (if you're replacing a Marketplace app with a sideloaded one). Somebody at MS already thought of that trick. :-/
Don't worry, I've experimented with useless app, of course
Summarizing: he-he, here is another reason to sideload apps instead using marketplace
P.S. It's definitely app author's fault. WP7 data API's are such limited but Pictures is the one of most opened and well known. Nothing prevented the author to save captured images in the MediaLibrary...
sensboston said:
Don't worry, I've experimented with useless app, of course
Summarizing: he-he, here is another reason to sideload apps instead using marketplace
P.S. It's definitely app author's fault. WP7 data API's are such limited but Pictures is the one of most opened and well known. Nothing prevented the author to save captured images in the MediaLibrary...
Click to expand...
Click to collapse
Well, the point of the app is to hide pictures from the Pictures library...
I should have tested it more thoroughly before putting secret yet important photos inside
Have you tried to contact the author? Most smart app authors include contact info somewhere in the app, usually in an "About" section. Lacking that, you can always use the review as a place to leave feedback, though it's hard for the dev to respond.
GoodDayToDie said:
Have you tried to contact the author?
Click to expand...
Click to collapse
It seems like a best advise in this topic. Contact author and ask about adding option to save pictures to SkyDrive or media library.
GoodDayToDie said:
Have you tried to contact the author? Most smart app authors include contact info somewhere in the app, usually in an "About" section. Lacking that, you can always use the review as a place to leave feedback, though it's hard for the dev to respond.
Click to expand...
Click to collapse
Yes there's an email to author link in the app, I emailed the author a few days ago, but got no reply.
I found what seems to be the author's personal email address by checking the author's domain information and emailed there too, still got no reply.
Does WP7 itself encrypt the NAND? When Riffbox supports the Titan, I can make a full NAND dump of the device through JTAG, are there any tools available to extract files from such dumps?
Phil_123 said:
Does WP7 itself encrypt the NAND? When Riffbox supports the Titan, I can make a full NAND dump of the device through JTAG, are there any tools available to extract files from such dumps?
Click to expand...
Click to collapse
I don't know 100%, but may guess - it shoud be encrypted, same way as sd-card.
At this time, WP7 does not (claim to) support full device encryption. It's possible that it does so anyhow, of course.
It does lock the SD card, which means another device can't even see the data on the card, but JTAG might get around that.
One-star reviews + emails to the author explaining thr problem and the reason for the one-star review seems like the best bet for now. Lame, I know.
The author finally responded, he will be fixing the problems

[Q] Good mobile phone cameras

I'm a photographer who wants to get good quality images when they have to be shot with a mobile phone (maybe because it's the only camera I have with me at the time). The camera isn't the most important thing I consider when selecting a phone, but it's still important.
Megapixels are not that important to me - even if I was to display my images on a 1000 x 1000 display screen, that image would have only 1000 x 1000 = 1000000 pixels..... 1 megapixels. Unless I want to print or crop my photos, I might as well use a 1 megapixel camera. Bottom line for me, 4 or 5 megapixels is more than I need.
The quality of an image depends on many more things, the quality of the lens, the camera sensor, the ability of the camera-phone to focus properly, the software that determines the camera settings (ISO speed, shutter speed, f/stop), and the software that processes the image that has been captured, creating the image file that gets stored on the phone. (I realize a lot of the above is not too important to most people - they just want to capture a snapshot, possibly apply filters to the photo to give it a different look, and send it to friends or social networking sites. Fortunately, there are lots of "apps" that do this very nicely.) What I'm concerned with, is the quality of the captured image, not how it might be modifed.
My question here, is to ask what is the best way to do threethings:
First, to take control of the camera, and adjust the settings manually (ISO speed, shutter speed, lens aperture, focusing distance).
Second, to save the image to a file as an un-compressed file, even if this makes the file size very large, and
If possible, to save the image data, in "raw" format, so that all the information from the camera sensor is saved in a file.
It is unlikely that a mobile phone can process an image as well as a dedicated computer. Anyone who has ever worked with "raw" images knows how much hidden detail is included in those files, much of which is lost as soon as the files are saved as "jpg" images. I'd like to be able to do that, but maybe it's too much to ask for - for that to happen, the camera would need to save the "raw" file, and the camera manufacturer would need to release the information on how a computer program could "read" that data.
I've been doing some of the above, using the app "Camera FV-5". On my HTC One Google Edition, it seems to help get images that might be as good as what the phone hardware allows. What I would really like though, is a way to capture ALL the data from the camera sensor as a photo is taken, transfer it to my computer, and use a program such as Lightroom or Photoshop to transform that "raw" data into the best image possible from the captured data. I know this isn't possible using the standard camera functions, but I was thinking that maybe I could somehow get the camera data by using some "development" features.
Any suggestions?

Opening photos via camera is buggy?

Does anyone else have an issue when they press the photo preview in the camera app where it stays pixilated for a while, the screen goes black, then I crashes back to the camera?
I also have the same issue if it loads correctly but I then delete a photo. It hangs for a while and does nothing. Sometimes it deletes, sometimes it doesn't.
Whilst I do like Google Photos, it'd be nice to change the default app to open with.
Sent from my HTC U11 using XDA-Developers Legacy app
JonesWTF said:
Does anyone else have an issue when they press the photo preview in the camera app where it stays pixilated for a while, the screen goes black, then I crashes back to the camera?
I also have the same issue if it loads correctly but I then delete a photo. It hangs for a while and does nothing. Sometimes it deletes, sometimes it doesn't.
Whilst I do like Google Photos, it'd be nice to change the default app to open with.
Sent from my HTC U11 using XDA-Developers Legacy app
Click to expand...
Click to collapse
Yes, and it's horrendous. If you save photos to microSD and the image happens to be HDR, it can take 10-20 seconds for the picture to properly load (and reload and flash, etc, until it's done loading) from the camera app using Photos (I think it's faster if images are saved internally, but I really prefer being able to transfer my photos from device to device on microSD, and I often don't have access to the cloud to view uploaded photos). I have no idea why Google Photos is so slow, because if you take the picture and immediately open ANY other 3rd-party gallery app, the image is instantly viewable at the same quality, so you can't blame microSD speed. I think this is Android's doing, though, since it was also this way on my HTC 10 since the Nougat update (before that update, you could set the default gallery app to something else, so I always used 3rd-party galleries and had the luxury of seeing my photos instantly). Now, after taking a picture, if I want to review, I close the camera app and open my own gallery app. It's annoying to add so many steps, but it's still infinitely faster than waiting for Google Photos to load. Personally, I absolutely despise Google Photos and think it's a prime example of trash programming, but Android (which is becoming more and more a closed system every day) has spoken, and we have to use it, moles and warts and all.
I know other ROMS have worked around Android forcing you to use Photos from the camera, but I prefer to stay on stock for stability. But if anyone knows where in the code this is kept, I'd love to tweak the system to enable a different default gallery app. I just don't know where it is.
itiskonrad said:
I know other ROMS have worked around Android forcing you to use Photos from the camera, but I prefer to stay on stock for stability. But if anyone knows where in the code this is kept, I'd love to tweak the system to enable a different default gallery app. I just don't know where it is.
Click to expand...
Click to collapse
I want this to, would love to use my preferred gallery app. I tried removing google photos and use another gallery as default but then you can not view your photos from the camera app directly.
U have to be rooted so u can install gallery apk to system
itiskonrad said:
Yes, and it's horrendous. If you save photos to microSD and the image happens to be HDR, it can take 10-20 seconds for the picture to properly load (and reload and flash, etc, until it's done loading) from the camera app using Photos (I think it's faster if images are saved internally, but I really prefer being able to transfer my photos from device to device on microSD, and I often don't have access to the cloud to view uploaded photos). I have no idea why Google Photos is so slow, because if you take the picture and immediately open ANY other 3rd-party gallery app, the image is instantly viewable at the same quality, so you can't blame microSD speed. I think this is Android's doing, though, since it was also this way on my HTC 10 since the Nougat update (before that update, you could set the default gallery app to something else, so I always used 3rd-party galleries and had the luxury of seeing my photos instantly). Now, after taking a picture, if I want to review, I close the camera app and open my own gallery app. It's annoying to add so many steps, but it's still infinitely faster than waiting for Google Photos to load. Personally, I absolutely despise Google Photos and think it's a prime example of trash programming, but Android (which is becoming more and more a closed system every day) has spoken, and we have to use it, moles and warts and all.
I know other ROMS have worked around Android forcing you to use Photos from the camera, but I prefer to stay on stock for stability. But if anyone knows where in the code this is kept, I'd love to tweak the system to enable a different default gallery app. I just don't know where it is.
Click to expand...
Click to collapse
How fast is you micro SD card. Maybe is the speed of the card.
slyvester7 said:
How fast is you micro SD card. Maybe is the speed of the card.
Click to expand...
Click to collapse
As I said, other apps open the image instantaneously. Only Google Photos takes forever, so it's not the microSD speed.
I also save directly to the internal memory, so I can confirm, it's not an SD card issue.
Sent from my HTC U11 using XDA-Developers Legacy app
FYI this problem or bugg, is from the Google Photo software, it's not a hardware issue, because even on my Samsung phone it did exactly the same thing, that annoying lag is terrible when switching between Camera and Gallery in the Google Photo App.

Privacy concern with a dubious app

Any help will be much appreciated.
I have to install an app which I don't trust, but which requires too many permissions, which obviously I am not keen on giving the app. For reasons beyond my control, I can't name the app (it's a work thing).
My idea is to create a new user on the phone, (OnePlus2) and install the app for that user only. Would this stop it from being able to access the data under my own user, and restrict it to only read the data available for the new user for which it is installed?
It requires permission to: (just incase this info helps)
Draw over other apps
Take pictures and videos
Find accounts on the device
Approximate location, precise location
Read SMS/MMS, Send & View SMS/MMS
Modify or delete contents of USB storage
Read contents of USB storage
Read phone status and Identity
Any other solution I should look at? Or will this work just fine?
Cheers!
No way I would install that. Not on a device I use. Unless I had full control over the source code for the apks. I could see some uses.
But to answer your question, I think that should work. I don't have much experience with the details of extra users on the device bit you can look it up on the Google developer site.
That should be enough.
For good measure, I Tried Doing this on my Moto G4 Plus. I created a new user and installed Drupe and Textra. And here is what happened.
1. The New User did not have access to my contacts, call records or SMS
2. The old user could not see these two apps.
since the gallery is tied to photos on the Moto, the users could not see each other's photos.
UPDATE: I just saw an app on another thread that may work for you. - https://forum.xda-developers.com/android/apps-games/closed-beta-test-incoming-companion-app-t3366295

Categories

Resources