copy Nexus 5 libOmxCore.so to /system/lib/libOmxCore.so
http://storagecow.eu/index.php?dir=Xda/Nexus+5/
edit /etc/media_codecs.xml
MPEG2:
<MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports"/>
<Quirk name="defers-output-buffer-allocation"/>
</MediaCodec>
VC1/WMV:
<MediaCodec name="OMX.qcom.video.decoder.vc1" type="video/x-ms-wmv" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports"/>
<Quirk name="defers-output-buffer-allocation"/>
</MediaCodec>
複製代碼
DIVX:
<MediaCodec name="OMX.qcom.video.decoder.divx" type="video/divx" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports"/>
<Quirk name="defers-output-buffer-allocation"/>
</MediaCodec>
複製代碼
WMA:
<MediaCodec name="OMX.qcom.audio.decoder.wma" type="audio/x-ms-wma" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports"/>
<Quirk name="defers-output-buffer-allocation"/>
</MediaCodec>
http://www.hkepc.com/forum/viewthread.php?tid=2020308&highlight=
I´ve created a flashable ZIP : http://d-h.st/7jg
Enjoy
Thanks. What does it do? Sorry not familiar with this stuff.
This ZIP does everything what is described in the first post and saves you some time
situman said:
Thanks. What does it do? Sorry not familiar with this stuff.
Click to expand...
Click to collapse
Will this automagically work with third-party players, like MX Player and Dice Player? Or just the stock media player?
reggie14 said:
Will this automagically work with third-party players, like MX Player and Dice Player? Or just the stock media player?
Click to expand...
Click to collapse
I think this was what I was trying to ask lol. Too early in the day for this stuff
didn't work for me.
McHale said:
didn't work for me.
Click to expand...
Click to collapse
yes , like is not work or s4pro +s305......
Is this just for the nexus or will it work on other devices e.g Sony xperia z2 tablet?
---------- Post added at 11:15 PM ---------- Previous post was at 10:34 PM ----------
Gorgtech said:
I´ve created a flashable ZIP : http://d-h.st/7jg
Enjoy
Click to expand...
Click to collapse
After extracting that what do you need to do next?
Zaim2012 said:
Is this just for the nexus or will it work on other devices e.g Sony xperia z2 tablet?
---------- Post added at 11:15 PM ---------- Previous post was at 10:34 PM ----------
After extracting that what do you need to do next?
Click to expand...
Click to collapse
A flashable zip file is designed to be flashed (installed) via a custom recovery. You do not extract it... You boot into recovery mode navigate to the zip file, and select it via the recovery's GUI.
You can also use an app like flashify from the play store. :good:
I don't know if it will work on other devices, but seeing as its in the nexus 7 2013 forum, and not for example android development, I would not flash it on anything but the n7.2.
I am the writer on HKEPC, it's good to see you guys made an english translation and self-installation zip
To those found that was not working, please be reminded that the "libOmxCore.so" plays an important role in this mod.
Suggested source of extracting libOmxCore.so
S4 -> CM11 binary of any MSM8960 devices (e.g. Sony Xperia V)
S4 Pro/600 -> CM11 for Nexus 4
800 -> CM11 for Nexus 5
I had made this mod working on following devices (ALL stock ROM):
Sony Xperia V (4.1/S4 8960), with libOmxCore.so from CM10.2
ASUS new PadFone infinity (4.2/Snapdragon 800 8974), with libOmxCore.so from Nexus 5 (Factory 4.4.2 image)
Sony Xperia Z (4.2/S4 Pro 8064), with libOmxCore.so from Nexus 4 (Factory 4.4.2 image)
------------------
*FOR NEXUS 7 2013*
As Nexus 7 2013 comes with AOSP KitKat, DON'T use the libOmxCore.so from Nexus 5! You may need to check if the libOmxCore.so contains strings such as "OMX.qcom.video.decoder.vc1" and "OMX.qcom.video.decoder.mpeg2", if the result is negative, you should use the libOmxCore.so from CM11 for Nexus 7 2013, as it is complied with full set of decoders.
anyone can update this to lollipop?
god_md5 said:
copy Nexus 5 libOmxCore.so to /system/lib/libOmxCore.so
http://storagecow.eu/index.php?dir=Xda/Nexus+5/
edit /etc/media_codecs.xml
MPEG2:
<MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports"/>
<Quirk name="defers-output-buffer-allocation"/>
</MediaCodec>
VC1/WMV:
<MediaCodec name="OMX.qcom.video.decoder.vc1" type="video/x-ms-wmv" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports"/>
<Quirk name="defers-output-buffer-allocation"/>
</MediaCodec>
複製代碼
DIVX:
<MediaCodec name="OMX.qcom.video.decoder.divx" type="video/divx" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports"/>
<Quirk name="defers-output-buffer-allocation"/>
</MediaCodec>
複製代碼
WMA:
<MediaCodec name="OMX.qcom.audio.decoder.wma" type="audio/x-ms-wma" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports"/>
<Quirk name="defers-output-buffer-allocation"/>
</MediaCodec>
http://www.hkepc.com/forum/viewthread.php?tid=2020308&highlight=
Click to expand...
Click to collapse
kennylam said:
I am the writer on HKEPC, it's good to see you guys made an english translation and self-installation zip
To those found that was not working, please be reminded that the "libOmxCore.so" plays an important role in this mod.
Suggested source of extracting libOmxCore.so
S4 -> CM11 binary of any MSM8960 devices (e.g. Sony Xperia V)
S4 Pro/600 -> CM11 for Nexus 4
800 -> CM11 for Nexus 5
I had made this mod working on following devices (ALL stock ROM):
Sony Xperia V (4.1/S4 8960), with libOmxCore.so from CM10.2
ASUS new PadFone infinity (4.2/Snapdragon 800 8974), with libOmxCore.so from Nexus 5 (Factory 4.4.2 image)
Sony Xperia Z (4.2/S4 Pro 8064), with libOmxCore.so from Nexus 4 (Factory 4.4.2 image)
------------------
*FOR NEXUS 7 2013*
As Nexus 7 2013 comes with AOSP KitKat, DON'T use the libOmxCore.so from Nexus 5! You may need to check if the libOmxCore.so contains strings such as "OMX.qcom.video.decoder.vc1" and "OMX.qcom.video.decoder.mpeg2", if the result is negative, you should use the libOmxCore.so from CM11 for Nexus 7 2013, as it is complied with full set of decoders.
Click to expand...
Click to collapse
Would this be possible on the Nexus Player? I have one and hardware decoding MPEG2 is not enabled. Thus making it not usable for using with my hdhomerun prime.
If you guys could help me to see if I can get this to work it would be greatly appreciated. Tomorrow I will be unlocking and rooting the device so I can pull any files needed. It just there is no custom recovery as of today for the NP.
Does this work on N7 2013 Marshmallow? Kodi can't play 1080i MPEG2 properly. Audio but no video.
acegolfer said:
Does this work on N7 2013 Marshmallow?
Click to expand...
Click to collapse
No, the /system/lib/libOmxCore.so in the VC1-MPEG2-WMA-hardware-decoding.zip by @Gorgtech dates back to Nov, 2013, which would correspond to JB.
MMB29Q contains /system/lib/libOmxCore.so dated Jan, 2016, and its seems to contain all necessary codecs for mpeg2, wma, vc1, divx, etc. along with mpeg4 etc.
As /system/etc/media_codecs.xml contains descriptor for OMX.qcom.video.decoder.mpeg2 decoder, an N7II with MMB29Q should evaluate MPEG2 appropriately.
Strange thing is that, though /system/lib/libOmxCore.so dated Jan, 2016, seems to contain decoders for wma, vc1 and divx (1, 3.11., 4), these are not listed in the /system/etc/media_codecs.xml.
Actually, only avc (and avc.secure), mpeg2, mpeg4 and h263 are listed.
So, probably adding following statements in this file is still reasonable:
Code:
- <MediaCodec name="OMX.qcom.video.decoder.vc1" type="video/x-ms-wmv">
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Quirk name="defers-output-buffer-allocation" />
</MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.divx" type="video/divx">
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Quirk name="defers-output-buffer-allocation" />
</MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.divx311" type="video/divx">
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Quirk name="defers-output-buffer-allocation" />
</MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.divx4" type="video/divx">
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Quirk name="defers-output-buffer-allocation" />
</MediaCodec>
- <MediaCodec name="OMX.qcom.audio.decoder.wma" type="audio/x-ms-wma">
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Quirk name="defers-output-buffer-allocation" />
</MediaCodec>
Can not quickly check the effect, as I'm still using KK KTU84P.
But there is IMHO a simplier way, - to use MX Player or BSPlayer instead of stock player.
Aerobatic said:
But there is IMHO a simplier way, - to use MX Player or BSPlayer instead of stock player.
Click to expand...
Click to collapse
1080i plays okay in BSPlayer, which implies N7 2013 M can handle it. But I'm using Kodi for all media including live TV. Will your trick make it work?
acegolfer said:
1080i plays okay in BSPlayer, which implies N7 2013 M can handle it. But I'm using Kodi for all media including live TV. Will your trick make it work?
Click to expand...
Click to collapse
Cannot judge, because do not use MM. Still suppose that "no", as stock codec library and its' formal description for HW MPEG2 decoding are implemented, probably poorly. Someone earlier in this thread suggested to try to get /system/lib/libOmxCore.so from cm13, as it is supposed to be optimized. Won't sign under this suggestion as havn't checked it. And, btw, this is not my trick, I just saw your question and tried to clarify the reason for the answer, which was "NO".
hi guys
could you help me to put the banner in my app.
I also followed the guides but I still can not insert
You might even see me lines of code please
thanks
what problem are you getting????
Atleast tell the problem or provide the code where you are facing problem.
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
GRYMALA said:
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
Click to expand...
Click to collapse
Nice answer! Thanks for this.
I just got done building my app in A.S. I ran the clean gradle and no errors came back. The app installs on my Moto X fine, it's listed in Settings/Apps and says the 5MB size but never shows on any of the home screens nor the main applications list among other icons.
Has Anyone seen this before?
Android Studio: v0.61 (Win7) SDK tools: v22.6.4 SDK build-tools 19.1 Google Play services Rev 17
thank you
Ryan
xmattoxx said:
I just got done building my app in A.S. I ran the clean gradle and no errors came back. The app installs on my Moto X fine, it's listed in Settings/Apps and says the 5MB size but never shows on any of the home screens nor the main applications list among other icons.
Has Anyone seen this before?
Android Studio: v0.61 (Win7) SDK tools: v22.6.4 SDK build-tools 19.1 Google Play services Rev 17
thank you
Ryan
Click to expand...
Click to collapse
Here's my androidmanifest file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.thirtyfate.flashlight"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-feature android:name="android.hardware.camera.flash" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name="com.thirtyfate.flashlight.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
</manifest>
Hi, I have Galaxy S5 klte and Resurrection Remix 5.8.3 (latest version) installed but the microphone does not work correctly. I can record but when I listen to the recording the sound ist very quiet and unclear. How can I fix this problem? Thanks for help!
With my Phone on 6.0.0 at android 8.1.0 is exactly the same.
find mixer_paths.xml in /system/etc/ and modify the "Recording scenario" values to your needs
jizzy001 said:
find mixer_paths.xml in /system/etc/ and modify the "Recording scenario" values to your needs
Click to expand...
Click to collapse
Any examples?
fparri said:
Any examples?
Click to expand...
Click to collapse
The file can be located in /system/etc or /system/vendor/etc (in my case RR 6.0.0 - G900F)
open up the file and edit the values by your needs after editing save it,
set the permissions to -rw-r--r-- (644) and reboot your device
this is my modified version of the original file (just the microphone part)
the values are normaly aroud 85-93...and that is pretty low
Down below the bold values are the ones that should be modified
Code:
<!-- ================================================================ -->
<!-- Recording Scenario -->
<path name="rec-main-mic">
<path name="main-mic" />
<ctl name="DEC2 Volume" value="[B]115[/B]" />
</path>
<path name="rec-sub-mic">
<path name="sub-mic" />
<ctl name="DEC4 Volume" value="[B]110[/B]" />
</path>
<path name="rec-headset-mic">
<path name="ear-mic" />
<ctl name="ADC2 Volume" value="14" />
<ctl name="DEC5 Volume" value="[B]92[/B]" />
</path>
<path name="rec-stereo-mic">
<ctl name="Main Mic Delay" value="4" />
<path name="sub-main-mic" />
<ctl name="DEC2 Volume" value="[B]110[/B]" />
<ctl name="DEC4 Volume" value="[B]110[/B]" />
</path>
<path name="rec-high-gain-main-mic">
<path name="main-mic" />
<ctl name="DEC2 Volume" value="[B]68[/B]" />
</path>
<path name="rec-high-gain-sub-mic">
<path name="sub-mic" />
<ctl name="DEC4 Volume" value="[B]68[/B]" />
</path>
<path name="rec-high-gain-headset-mic">
<path name="ear-mic" />
<ctl name="ADC2 Volume" value="14" />
<ctl name="DEC5 Volume" value="[B]84[/B]" />
</path>
<path name="rec-high-gain-stereo-mic">
<path name="sub-3rd-mic" />
<ctl name="DEC2 Volume" value="[B]72[/B]" />
<ctl name="DEC4 Volume" value="[B]72[/B]" />
</path>
<path name="rec-NS-mic-interview">
<ctl name="ES705 TX1 Enable" value="1" />
<path name="main-sub-mic" />
<ctl name="DEC2 Volume" value="[B]110[/B]" />
<ctl name="DEC4 Volume" value="[B]110[/B]" />
<ctl name="ES705-AP Tx Channels" value="One" />
<ctl name="Internal Route Config" value="7" />
</path>
<path name="rec-NS-mic-conversation">
<ctl name="ES705 TX1 Enable" value="1" />
<path name="main-sub-mic" />
<ctl name="DEC2 Volume" value="[B]112[/B]" />
<ctl name="DEC4 Volume" value="[B]112[/B]" />
<ctl name="ES705-AP Tx Channels" value="One" />
<ctl name="Internal Route Config" value="8" />
</path>
<path name="rec-NS-mic-conference">
<path name="main-sub-mic" />
<ctl name="DEC2 Volume" value="[B]110[/B]" />
<ctl name="DEC4 Volume" value="[B]110[/B]" />
</path>
<!-- end of Recording Scenario -->
<!-- ================================================================ -->
Thanks a lot! I've bookmarked your reply. I'm going to try that tonight at home
fparri said:
Thanks a lot! I've bookmarked your reply. I'm going to try that tonight at home
Click to expand...
Click to collapse
Report if it works
I have the same problem in s5 G900H but i cant find recording scenario in it. Would u plz help me
---------- Post added at 11:54 PM ---------- Previous post was at 11:30 PM ----------
swppy said:
I have the same problem in s5 G900H but i cant find recording scenario in it. Would u plz help me
Click to expand...
Click to collapse
@jizzy001
jizzy001 said:
The file can be located in /system/etc or /system/vendor/etc (in my case RR 6.0.0 - G900F)
open up the file and edit the values by your needs after editing save it,
set the permissions to -rw-r--r-- (644) and reboot your device
this is my modified version of the original file (just the microphone part)
the values are normaly aroud 85-93...and that is pretty low
Down below the bold values are the ones that should be modified
Click to expand...
Click to collapse
I've got the same problem on an Galaxy S5 (SM-G900W8 ) with crDroid. I think both ROMs come from Lineage OS and although I haven't tried it I'll bet Lineage 15.1 has the same problem.
I'd like to give it a try, but I can't seem to modify the file. I mixer_paths.xml in /system/vendor/etc, but when I try to edit it I get a message that it's a read only file system.
Permissions on the directories look OK:
/system 755
/system/vendor/ 755
/system/vendor/etc 755
I also tried to create a file with "touch" in /system/vendor/etc and that failed-confirming the whole directory can not be written. Can someone please tell me what I'm doing wrong.
rootkitty said:
I've got the same problem on an Galaxy S5 (SM-G900W8 ) with crDroid. I think both ROMs come from Lineage OS and although I haven't tried it I'll bet Lineage 15.1 has the same problem.
I'd like to give it a try, but I can't seem to modify the file. I mixer_paths.xml in /system/vendor/etc, but when I try to edit it I get a message that it's a read only file system.
Permissions on the directories look OK:
/system 755
/system/vendor/ 755
/system/vendor/etc 755
I also tried to create a file with "touch" in /system/vendor/etc and that failed-confirming the whole directory can not be written. Can someone please tell me what I'm doing wrong.
Click to expand...
Click to collapse
Just mount the system partition R/W find some tutorial or app how to mount it
swppy said:
I have the same problem in s5 G900H but i cant find recording scenario in it. Would u plz help me
---------- Post added at 11:54 PM ---------- Previous post was at 11:30 PM ----------
@jizzy001
Click to expand...
Click to collapse
Can you send me the whole file or paste iz somewhere?
jizzy001 said:
Just mount the system partition R/W find some tutorial or app how to mount it
Can you send me the whole file or paste iz somewhere?
Click to expand...
Click to collapse
Im not able to snd it through this way would you give ur email address ???
swppy said:
Im not able to snd it through this way would you give ur email address ???
Click to expand...
Click to collapse
[email protected]
Sent from my SM-G900F using Tapatalk
jizzy001 said:
[email protected]
Click to expand...
Click to collapse
Plz check ur email bruh
I want to give some more power to usb and bluetooth headphones. I've read that I can do it by editing mixer.paths file, but I couldn't find tutorial matching to my file. Can someone help me, by editing my file or give me own files (edited and original). I have le pro 3 x722 with paranoid 7.3.1 (nougat)
ctl name="RX1 Digital Volume" value="99" />. org. 84
<ctl name="RX2 Digital Volume" value="99" />
<ctl name="ANC HPHL Enable Switch" value="1" />
<ctl name="ANC HPHR Enable Switch" value="1" />
<ctl name="HPHL Volume" value="35" /> org. 20
<ctl name="HPHR Volume" value="35" />
This is my config, and its work. I changed All 3 paths with "headphones" in name