Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Quick Lib Changer #61

Closed
modbrin opened this issue Nov 18, 2014 · 35 comments
Closed

Quick Lib Changer #61

modbrin opened this issue Nov 18, 2014 · 35 comments
Labels

Comments

@modbrin
Copy link

modbrin commented Nov 18, 2014

Hello again, pkmx,
It takes some time to change 60hz lib to normal. So, i created a small app. This app uses two files in sdcard. And the lib can be changed very quickly. After changing, l camera have to be restarted.
screenshot_2014-11-18-17-03-22
screenshot_2014-11-18-17-27-21

@utkarshns
Copy link

Could you please share it?
On Nov 18, 2014 5:59 PM, "modbrin" [email protected] wrote:

Hello again, pkmx,
It takes some time to change 60hz lib to normal. So, i created a small
app. This app uses two files in sdcard. And the lib can be changed very
quickly. After changing, l camera have to be restarted.
[image: screenshot_2014-11-18-17-03-22]
https://cloud.githubusercontent.com/assets/9750068/5087198/6ad7b124-6f47-11e4-839d-69d61aa6e7a4.png
[image: screenshot_2014-11-18-17-27-21]
https://cloud.githubusercontent.com/assets/9750068/5087264/49c720ae-6f48-11e4-98b9-989f355481a5.png

Reply to this email directly or view it on GitHub
#61.

@modbrin
Copy link
Author

modbrin commented Nov 18, 2014

Yes, I have .apk and it works perfectly, but there is still some work on the code. I will give a link as soon as possible.

@PkmX
Copy link
Owner

PkmX commented Nov 18, 2014

If this app is open-source, I will happily add a link to it in the README.

@PkmX PkmX added the other label Nov 18, 2014
@andriy2
Copy link

andriy2 commented Nov 18, 2014

@PkmX, if this app is open-source, you can add this toggles to L Camera settings.
Settings > libs > and three lines:
Backup
Install modes
Install stock

I think, it will be a great feature!

@ion-storm
Copy link

this is genius, I was about to share the idea myself as a feature request ;) Care to share the apk?

@modbrin
Copy link
Author

modbrin commented Nov 18, 2014

Finally, here is the link; http://goo.gl/PDQooA I hope it works))). Before installing app read the installation instructions. This app allows to change library without using terminal.

@andriy2
Copy link

andriy2 commented Nov 18, 2014

@modbrin, can you add killall for killing L Camera?

@modbrin
Copy link
Author

modbrin commented Nov 18, 2014

@andriy2 , i updated app: http://goo.gl/yq9Ns6 ;Can anyone say if it works properly?

@andriy2
Copy link

andriy2 commented Nov 18, 2014

@modbrin, works perfectly

@ion-storm
Copy link

does this enable 60fps recording as well?

@Virkkunen
Copy link

App works fine, thanks for sharing. Earlier today I was going to post a Tasker task while we waited for your app, but well, here's for those that want to use Tasker

New task

  • Script > Run Shell
    Command:
    mount -o remount,rw /system
    install -m644 /path/to/libmmcamera_imx179_xxxx.so /system/lib/libmmcamera_imx179.so
    mount -o remount,ro /system
    killall mm-qcamera-daemon mediaserver

Check "Use root"

@andriy2
Copy link

andriy2 commented Nov 18, 2014

I can change to 60fps)

But in custom libs have some bug...
From one distance, has more cropping

@Virkkunen
Copy link

@andriy2 that's because the sensor receives full resolution and crops to 1080p (or something like that). Read more here #4 (comment)

@divyesh43
Copy link

I am able to record in 60fps from app. but when i see the file its 30fps only.. anybody?

@modbrin
Copy link
Author

modbrin commented Nov 20, 2014

@divyesh43, try using exposure settings 1/60 or faster

@divyesh43
Copy link

@modbrin thanks it worked... but pics are still saved in .jpg

@utkarshns
Copy link

@divyesh43
Goto settings and turn on DNG output if you want that. The lib changer
works perfectly and all features in the lcamera work on the nexus 5 with
builds greater than LRX21O

On 20 November 2014 18:42, divyesh43 [email protected] wrote:

@modbrin https://github.com/modbrin thanks it worked... but pics are
still saved in .jpg

Reply to this email directly or view it on GitHub
#61 (comment).

@utkarshns
Copy link

Yes, 7 frames at 30fps.
All are RAW dng at 8mp in the default camera directory. Open them in light
room or Photoshop or a raw image editor of your choice.
30fps jpeg bursts aren't possible as they would require heavy processing.
On Nov 20, 2014 6:59 PM, "divyesh43" [email protected] wrote:

@utkarshns https://github.com/utkarshns I am on LRX21O . Is burst mod
working for you?

Reply to this email directly or view it on GitHub
#61 (comment).

@modbrin
Copy link
Author

modbrin commented Nov 21, 2014

Beta 0.3 is out now,: http://goo.gl/zGLbC0 Now working on adding statusbar buttons
comp 1_1_00000

@Leoxur
Copy link

Leoxur commented Nov 23, 2014

I install beta 0.3 of quick lib changer, when i open L_camera, the option to recording at full resolution 30fps isn't selectable anymore, and both (shot or video) the scene i zoomed

@modbrin
Copy link
Author

modbrin commented Nov 23, 2014

@Leoxur, Yes, u can only use 1080p@60 fps on cropped sensor with mod or the full sensor at 30fps with normal lib, the app is specially for quick changing the libs

@Leoxur
Copy link

Leoxur commented Nov 23, 2014

ok, what about the zoom??

@modbrin
Copy link
Author

modbrin commented Nov 23, 2014

@Leoxur, l camera using inly 1/4 of sensor to achieve 60 fps,

@modbrin modbrin closed this as completed Nov 23, 2014
@modbrin modbrin reopened this Nov 23, 2014
@FluorescentHallucinogen

@modbrin What about checking MD5/SHA-1 hash check sums of the libs before changing?

@modbrin
Copy link
Author

modbrin commented Nov 25, 2014

@FluorescentHallucinogen, no,it it doesn't check them, but if you want I can add a feature of ignoring the installation in case then checksums are the same

@FluorescentHallucinogen

@modbrin From ReadMe of your app: it copies the original lib from /system/lib/limmcamera_imx179.so to /sdcard/LC-Cache/backup, so if something goes wrong you will be able to restore using terminal.

The key word is "original". There is no warranty that lib /system/lib/limmcamera_imx179.so is original/unmodified before install and first run Lib Changer. Users can replace it manually using terminal and if you don't check the checksums, modified lib will be copied to /sdcard/LC-Cache/backup instead of original.

I think the original/unmodified file limmcamera_imx179.so (and maybe the latest version of modified lib, don't sure) from/for LRX21O can be stored into the APK file inside instead of /sdcard/LC-Cache/orig.so (and /sdcard/LC-Cache/mod.so) and it would be a nice idea. This will simplify the process of installing and using the application for noobs. :-) Users just need install APK and use it without copying anything to sdcard. Note that BusyBox app (https://play.google.com/store/apps/details?id=stericson.busybox) stores binaries into APK.

@FluorescentHallucinogen

@modbrin

  1. What about adding checking of BusyBox is installed to Lib Changer?
  2. Where can I find source code of Lib Changer? Could you publish it on GitHub? It uses superuser permission. Obscurity (closed source) is not security.

@modbrin
Copy link
Author

modbrin commented Nov 25, 2014

@FluorescentHallucinogen , here is the link to libchanger project, you can find main elements of source code there (mainactivity.java and layout)

@modbrin modbrin closed this as completed Nov 25, 2014
@huff109
Copy link

huff109 commented Nov 28, 2014

Im just curious as to why the file is hosted somewhere else and not directly here. Its close to impossible to download the file from mediafire. Its easier to download the main app than to download this. If you wanted money just say so. Im willing to pay. Dont lead me to some shady download service that tried to install some malware on my phone. You are clearly taking advantage of pkmx's project.

@modbrin
Copy link
Author

modbrin commented Nov 28, 2014

@huff109 ,sorry for the inconvenience of mediafire, but it's kind a tricky to upload the file directly on github, also i had a bug with sourceforge.((( btw, mediafire doesn't pay me at all, goo.gl either. i will try to upload the file to some good git hosting, also i have some ideas to implement in libchanger but i will only have free time on this saturday.

@modbrin
Copy link
Author

modbrin commented Nov 28, 2014

dropbox link here; new versions will be available on github.com/modbrin/libchanger

@Ep0chalypse
Copy link

I was bored today and decided to expand upon modbrin's lib changer to add some checks and stuff like that. This one ships with all 3 library files included into the apk(stock, 60fps, and 120fps). Feel free to check it out and use it in any way you want to. https://github.com/Wicked0ne/LCameraLibChanger

Side note: I have not written java or developed for Android in over a year. Please be gentle lol.

@DirtyDroidX
Copy link

I will test the beta version of the camera stock and use the lib changer to modify it on my N6. If I have any problems I will look through the code. Regardless, I will post back details of my tests.

@DirtyDroidX
Copy link

Edit, just seen its for N5. If stock don't work I will edit for shamu.

@Ep0chalypse
Copy link

From my understanding(correct me if I'm wrong) the 60/120 fps mods are only for Nexus 5's. I hard coded a check into my app to check if its a Nexus 5 and wont do anything if it fails to find it's a Nexus 5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests