I know this has already been discussed in several threads, but none of them go further than just stating that it doesn't work. I'm talking about external mic support on the OnePlus 3's best video recording apps: OnePlus cam and Gcam. All alternatives are far inferior, but if you know any, please tell me (including voice recording apps that can record while filming).
I'm a total noob at making/modding apps, but I've go so far as to having converted the apks to java source code (or as close as dex2jar can get it. It just seems so simple to change from TYPE_BUILTIN_MIC to TYPE_WIRED_HEADSET with setPreferredDevice() in the interface AudioRouting. But that isn't the case, and I would like to ask if OnePlus cam and Gcam just have different names for these thing and it still would be quite easy to change, or if it's so entangled and proprietary that it's impossible. I have the java code for reference, but not sure if it's against the rules to upload even thought they're free apps.
Does anyone have experience with this and can help me/try and mod the apks?
Here's some files with audio in their names (is this where to look and if so, which?):
OnePlus cam:
AudioAttributesCompatApi21.class
AudioAttributesCompat.class
AudioManagerImpl.class
AudioManager.class
AudioManagerBuilder.class
Gcam:
AudioFrameProvider.class
AudioSample.class
AudioFrameConsumer.class
AudioTrackDecoder.class
In addition to the there are also files with names like: ExternalMediaSource.. MediaDecoderSource.. TrackDecoder..
Thanks in advance - ASH19
Related
Hi.
For my studies I'm expected to develope application which would be able to record phone calls (voice both from mic and speaker). App is for HTC Touch Pro and maybe for Samsung Omnia (but mainly for HTC) and it should be written in C#.
I wrote in my life few CF apps so I know mobile programming topic and I'm not asking for writing application for me. I would like to ask developers who know this topic about few things:
Is it possible to capture voice from mic and speakers while using only CF .NET 3.5 without any specific APIs? Or some additional (phone specific?) APIs are needed? If it is not a problem, can I get few lines of code with description how to do it?
I read few threads here and on other sites but nowhere I can find any information about developing these kind of apps - only posts about which commercial app works on which phone and which is not. So I hope that someone in this development section can help me with this.
I will appreciate any help
Cheers.
No-one? Really?
There are unmanaged APIs which can be used in managed apps by using P/Invoke. Take a look at the 'Wave In' part.
Not sure if this can be easily used for phone call recording.
heliosdev said:
There are unmanaged APIs which can be used in managed apps by using P/Invoke. Take a look at the 'Wave In' part.
Not sure if this can be easily used for phone call recording.
Click to expand...
Click to collapse
Hi.
Thank you for reply. Sample from your link records and plays sounds pretty well, but during phonecall it is completely lost and cannot even save wave properly (and I assume that it is taking control of microphone, because on second phone my voice doesn't exists :/).
I have tried few tricks using openNETCF too, but it also has problems with recording during the phonecall.
Does anyone have any more idea? There are a lot of phonecall recorders which work so somebody must have done this before...
Hi Guys,
I've done some searching and cannot seem to find anything recent about this issue. I'm wanting to write a camera application that shoots and stores the raw camera data from the EVO.
It looks like someone has put together a class that will take the byte array and dump it to DNG format which would be ideal. However, when the callback fires, I get an empty byte array and a null pointer exception.
Now, I'm not sure it's a coding error because the jpg callback works just fine.
Some older threads seem to imply that the raw callback doesn't actually do anything. I think there is one where a google developer said they thought they should nuke it all together....but that was 2008, I think.
So can this callback actually do anything? Does the SDK from HTC give me lower level access to the camera? What are my options? I think the camera in the EVO is okay, but the jpg compression just doesn't seem good to me....
Thanks!
Crud, since I'm new I can't post a link to the google thread I was referencing above with the dev saying he'd like to deprecate raw, but the thread id is: 65191ea020f6bb27 if anyone is interested. But that was in 2/2009.....
It looks like the Android dev implies they might add or support native signal processing, which would be fine but I have no idea how one might accomplish this in Java....(isn't the point of java to work at an abstracted layer?).
Anyway, I'll amend my questions to include this: do any of the ROMs out there support either native signal processing or raw camera call backs?
Maybe this is something I need to take directly to google?
Been a lot of complaints on other forums about the crippled camera app in bada 2.0 and I'd like to restore some of the fuctionality from 1.2. Perhaps it's not actually possible as all I have seen is the KK5 app brought back to enable front camera, and no 1.2 app for bada 2.0 to restore some of the other missing functions like pause in video recording or editing options. So if this is waste of time please let me know, but I though the main problem was passing the sequrity check which has now been solved thanks to kubika. SO if possible this is the precise scope of the project:
It's not just the ability to pause a video recording, or edit anything after, there's a lot of other stuff too...
NO Image Quality selection
NO countinous/sequance shoot mode
NO sharpness, saruration, contrast adjustment... but still have auto contrast check box... as oppesed to what?!?!?
NO thumbnail or info view for picture when reviewing from cammera app
NO edit fuction for anything from anywhere as already mentioned... though admittedly if I really want to edit a pic I'll probably do it on my PC anyway.
Although a noob at this I do have some expeciance with PC's, and my understanding is that bada apps are in C++ so if one can decompile and recompile the camera app. Then ALL missing functions, with possible exception of editing that probably calls on seperate app, should be easily recoverable in the bada 2.0 camera app. I've actually checked the samsung developer website, and it gives guidelines on how to implemnet many of these functions if whishing to create your own app, so the code should be easy to reinsert even for me in their own app. The one problem may be creating/inserting buttons/tiles for the menus if not already available but simply uncalled, which I hope is actually the case since one can easily recover the record call button.
The main issue is I don't know how to decompile the two apps to read and compare the code, and then recompile them, so could someone please point me to the appropriate program(s) with hopefuly some instructions on how to use them. I think this is something that may be appreciated by many since we can now more easily upload modified apps, and is a relatively simple mod for a noob to atempt... so if anyone can offer some help with that to get me started, it's a project I'd be looking to take up .
innovative ..
liked your idea.
+1
to keep it simple, you can't 'decompile' a binary code to a c++ code, the compiling process is a one-way procedure..
Excuse me for asking a silly question.
Just wondering, how difficult is it to reverse engineer the HDR algorithm used in the Pixel camera app?
Is the algorithm itself is embed within encrypted codes to prevent reverse engineering?
(I guess in this case, ported camera apps all just copy and paste the code?)
Or can we actually look at the algorithm if we open the app on a developer platform?
I'm not trying to develop an app, just more general question because I see many manufactures are not quite catching up with Google HDR and wondering why...
port
You can extract the apk and copy the code and build it in your own app or if you want, You can help me develop my rom which can have the HDR algorithm and many more thing.
If you want to contact me you can post anything on the post mentioned below with the link
https://forum.xda-developers.com/ge...e-ui-rom-google-pixel-3-t3954765#post80019412
Ugh.. Sorry I'm not a developer myself. I'd love to help as much tho...
You can download and install RAR and then press the .. button and press it again and copy everything to your download folder and upload everything to mega and tell me your mega account
muhammad42620 said:
You can extract the apk and copy the code and build it in your own app or if you want, You can help me develop my rom which can have the HDR algorithm and many more thing.
If you want to contact me you can post anything on the post mentioned below with the link
https://forum.xda-developers.com/ge...e-ui-rom-google-pixel-3-t3954765#post80019412
Click to expand...
Click to collapse
Did you ever get the ROM going?
I suspect that a lot of the camera processing algorithms used are made with high-perf compiled languages, such as C++, making reverse-engineering quite difficult (but definitely possible). Many of the gcam ports take the original app and make edits, for new UI features or editing libs for features such as contrast. I'm not sure if Google obfuscates their code to protect their intellectual property.
(there is a chance that I am wrong, but simply "copy and pasting" HDR code will definitely not work to create a new app that is separate from GCAM)
More I search, more things I find and less answers too.
I would like to know a few things because it is difficult to look in forums that are not in my native language and find a lot of different informations, so if you can help, I would appreciate it.
1: What is the difference (I mean, in quality) between photo apps? Like: GCAM, MGCAM, Burial, PixelCam, HyperCam and etc?
1.5: What is the difference between developers of the same application? Like "Gcam" Urnyx, Anova, Nikita, and etc. Because they all have the "7.3" version of GCAM and they all have a version that works on Redmi Note 8, so isn't that the same thing?
2: Where do I find XML's? I know that in GCam Hub there are some from each developer, but, if I understand correctly, XML's work as "filters" based on the quality settings/color setting of the camera (right?) and if so, where I search according to the color/effect/filter that I like? For example: something more saturated, like some "sci fi" or "neon" effect.
3: Where i find the best community to look for and search things about that apps? Because all the places I found indicate the XDA forum and also the Telegram, but in Telegram I join a group and indicate another, then in the other I go to another and in the end I am in 200 groups and none have this type of information.
Here's my basic understanding:
1. Different versions of Google Camera (GCam). Different parties implement it differently - different features, etc.
2. I get mine from Telegram.
3. There are a bunch of Telegram groups. Specific groups even for the different GCam verion.
My suggestion... Play around with the different version. See what you want and like.
oneser said:
Here's my basic understanding:
1. Different versions of Google Camera (GCam). Different parties implement it differently - different features, etc.
2. I get mine from Telegram.
3. There are a bunch of Telegram groups. Specific groups even for the different GCam verion.
My suggestion... Play around with the different version. See what you want and like.
Click to expand...
Click to collapse
Thank u so much! I alredy learn some things! Liked the "Burial" one and the "clap" group and xml's <3