[android-porting] Prevent my apk from installing on other devices

2010-07-22 Thread NoraBora
My company A has made an app and I don't want the app to be installed on B's device. So I tried to add a library & permission files like vendor/sample/ frameworks/PlatformLibrary and the app refers the library. It succeeded. the app can't be installed on B's device. because AndroidManifest.xml i

[android-porting] Can I use AudioResamplerCubic, AudioResamplerSinc?

2010-07-20 Thread NoraBora
I found that AudioMixer can choose resampler between AudioResamplerOrder1, AudioResamplerCubic, AudioResamplerSinc by property. but when I changed to AudioResamplerSinc the audio quality is not as good as I expected.(I used some sound-specific measures.) Are 'AudioResamplerCubic, AudioResampler

[android-porting] RockPlayerBase supports avi, mkv. How is that possible?

2010-06-21 Thread NoraBora
How is it possible that an app supports the media format OpenCORE doesn't? Does it mean the app uses its own media framework? or somehow register parser node to OpenCORE? Is it possible and encouraging? -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.

[android-porting] MediaPlayer's invoke() & OpenCORE's PlayerExtensionCommand

2010-06-11 Thread NoraBora
I thought MediaPlayer's invoke() is for using OpenCORE's PlayerExtensionCommand. but when I actually used invoke(), I got an error E/MediaPlayer( 1263): invoke failed: wrong state 10 I found that invoke() is supposed to be called between MediaPlayer.setDataSource() and prepare() which is quit

[android-porting] CPM Plugins don't have permission to write external storage?

2010-05-31 Thread NoraBora
Some CPM plugins have to write drm information on external storage(nand, sdcard). I added WRITE_EXTERNAL_STORAGE permission in app's AndroidManifest.xml but didn't work. because opencore is used by MediaPlayer process. <- MediaPlayerService <- mediaserver and mediaserver doesn't have 'sdcard_rw'

[android-porting] DRM & RTC control

2010-04-14 Thread NoraBora
Hello. I have a question about DRM in android. If a encrypted file has time limit to play, the time should be RTC- based. but I found that Settings-Time resets RTC as well, which means the time-limit is no use. I don't think google developers overlooked this issue because opencore already has dr

[android-porting] Number of metadata keys doesn't match between OpenCORE & MediaMetadataRetriever.java

2010-03-24 Thread NoraBora
There is a METADATA_KEY_WRITER in frameworks/base/include/media/mediametadataretriever.h frameworks/base/media/java/android/media/MediaMetadataRetriever.java but it is not considered in external/opencore/android/metadatadriver.cpp external/opencore/android/metadatadriver.h. I found this bug whe

[android-porting] Using Settings.System inside MediaPlayer

2010-03-04 Thread NoraBora
I've added some attributes about audio sound in Settings.System. I thought I could edit MediaPlayer.java so MediaPlayer can see the attributes. but I realized that's not possible...because MediaPlayer doesn't know about context resolver. Is there any workaround about this? -- unsubscribe: andr

[android-porting] Re: same property in PRODUCT_PACKAGE_OVERLAYS and system.prop

2010-02-21 Thread NoraBora
My mistake. I mean not PRODUCT_PACKAGE_OVERLAYS. I mean PRODUCT_PROPERTY_OVERRIDES. Any help here? On Feb 3, 6:24 pm, NoraBora wrote: > in vendor/xxx/system.prop >     ro.sf.lcd_density = 160 > > in vendor/xxx/xxx.mk >     PRODUCT_PACKAGE_OVERLAYS += ro.sf.lcd_density = 240 &g

[android-porting] same property in PRODUCT_PACKAGE_OVERLAYS and system.prop

2010-02-03 Thread NoraBora
in vendor/xxx/system.prop ro.sf.lcd_density = 160 in vendor/xxx/xxx.mk PRODUCT_PACKAGE_OVERLAYS += ro.sf.lcd_density = 240 after I build on the device, > cat /system/build.prop ... ro.sf.lcd_density = 160 ... # # ADDITIONAL_BUILD_PROPERTIES # ... ro.sf.lcd_density

[android-porting] Re: Where to register the CPM Plug-in .

2009-12-19 Thread NoraBora
/ pv_cpm_developers_guide.pdf and oma1 plugin. oma1 passthru plugin is a dummy plugin and a good reference. I made my cpm plugin like oma1 passthru plugin. On Dec 15, 1:34 am, KeepGoing wrote: > Hi NoraBora: > > As I know there is DRM implement in frameworks\base\media\libdrm >

Re: [android-porting] Re: Acquire license for DRM contents.

2009-11-01 Thread NoraBora
te > need to be change ? > > I think either Ravi or NoraBora are right persons for this querry. > > > Regards, > Raghu.M > > > > > > > On Oct 31, 7:44 pm, Atish wrote: > > Hiii All, > > > > i am trying to work with CPM plugin for playing o

[android-porting] Re: Where to register the CPM Plug-in .

2009-10-28 Thread NoraBora
,0x8b,0x08,0x00,0x20,0x0c,0x9a,0x66) all you need to add is (0x8c988150,0x9b1b,0x11dd,0xad,0x8b,0x08,0x00,0x20,0x0c,0x9a,0x66),"libmycpmplugin.so". 2009/10/28 Malapati Raghavendra > Hi NoraBora, > > thank u for your valuable reply, your explanation is so good. > I have one more doub

[android-porting] Re: Where to register the CPM Plug-in .

2009-10-26 Thread NoraBora
If your opencore version is 2.04 or later, it supports loadable cpm plugin module. (I suggest 2.05, because 2.04 has some bugs about cpm plugins.) To see oma1 passthru sample plugin, check opencore / pvmi / content_policy_manager / plugins / oma1<- cpm plugin opencore / modules / cpm_oma1_pass

[android-porting] Re: DRM rights consumption in Android

2009-10-15 Thread NoraBora
Is this what you want? > what do u say??isn't there any way to move the usage complete code to > any other state?? > if you call UsageComplete() in START state, MediaPlayer.start->pause->start->pause will cause consumption many times..I think. > On Oct 15, 2:2

[android-porting] Re: DRM rights consumption in Android

2009-10-15 Thread NoraBora
es from pause to start it should at least call AuthorizeUsuage > and UsuageComplete.. > > what do u say?? > > On Oct 15, 12:28 pm, NoraBora wrote: > > I tested what you said. > > MediaPlayer.start() ... wait...play complete..MediaPlayer.start() > > In the second start(), none o

[android-porting] Re: DRM rights consumption in Android

2009-10-15 Thread NoraBora
art state. > PvPlayerEngine->Resume->ParserNode->Start. > So AuthorizeUsage() won't be called. > > As all the cpm calls are enqued in Init of Parser node only if u > change media file or call Reset from App then only cpm commands will > be invoked. > > Please guide me

[android-porting] Re: DRM rights consumption in Android

2009-10-14 Thread NoraBora
music player doesnot call Reset.That means it > can play DRM files with no constratint > > So where should i put that UsuageComplete code so that every case is > considered?? > > On Oct 14, 6:44 am, NoraBora wrote: > > DoReset() is invoked by MediaPlayer.reset(); > >

[android-porting] Re: DRM rights consumption in Android

2009-10-13 Thread NoraBora
DoReset() is invoked by MediaPlayer.reset(); 2009/10/13 Atish > > Hi All, > I m trying to run CPM plugin thru opencore for playing DRM contents in > Android. > > I was succesfule in registrering and checking the rights for DRM > content thru CPM plugin. > > But consuming rights is not working be

[android-porting] OpenCORE 2.04 bug in OMA1 passthru CPM plugin test

2009-09-21 Thread NoraBora
To understand how the cpm plugin works in OpenCORE 2.04, I tried to play a mp3 with oma1 passthru cpm plugin. but it never worked and I found out why. 1. error in oma1 passthru source code in opencore/pvmi/content_policy_manager/plugins/oma1/passthru/src/ pvmf_cpmplugin_passthru_oma1.cpp PVMFCPMP

[android-porting] OpenCORE build error in Ubuntu 9.04

2009-09-21 Thread NoraBora
When I build OpenCORE latest release (CORE/7.508.1.1 OpenCORE/2.05) in Ubuntu 9.04, I got a few errors. The errors are all same "format not a string literal and no format arguments" /home/norabora/oc_latest/opencore/engines/player/test/src/ test_pv_player_engine.cpp:2146: error: fo