Android 12 suppport for configurable policy - audio

As details provided in below link , I have tried to make global configuration to make it configurable so that it can enable configurable audio policy to check for vendor specific .xml
https://source.android.com/docs/core/audio/implement-policy
But still when I check for dumpsys of media.audio_flinger , Hw module shows only default speaker related information.
Can someone help me to have configurable Audio Policy
Tried to set global configuration as configurable as below
<audioPolicyConfiguration>
    <globalConfiguration engine_library="configurable" />
...
</audioPolicyConfiguration>
But did not worked

Related

ExtensionInstallForcelist keep blocking a local Extension

i am trying to force the installation of a local extension trough registry, once i configure the registry files chrome show me the Words [BLOCKED] (see screenshot).
i made a Reg file to configure this and in some computers is working well but other ones are blocking it.
i have changed some Ids and hide some information for sercurity.
i have configured this three policies to install it:
ExtensionInstallForcelist - "ikgllpfbenaieoppkxxxhokonmnnhjcl;file:///C:/CRX/updates.xml"
ExtensionInstallSources - "file///C:/CRX/*"
ExtensionInstallWhitelist - "ikgllpfbenaieoppkxxxhokonmnnhjcl"
i have tried the next but it still not working:
- i have validated the Id's in all the policies a lot of times and are equal, and remember that it is working on some computers but others not.
BlockExternalExtensions - Disabled
EnableOnlineRevocationChecks - Disabled
ExtensionAllowedTypes - all types allowed
ExtensionInstallBlacklist - "*" (to only allow the whitelisted extensions).
Even modify manually those through the Gpedit.msc
this is the screenshot of the error:
enter image description here
this is the updates.xml
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='ikgllpfbenaieoppkxxxhokonmnnhjcl'>
<updatecheck codebase='file:///C:/CRX/XXXXXXX.crx' version='11.0' />
</app>
</gupdate>
Your computer must join domain or managed by mdm in order to make the policy work.
You can add some fake registry to make win10 think your computer is managed by mdm.
Fake mdm guide: https://hitco.at/blog/apply-edge-policies-for-non-domain-joined-devices/
Only the first script (MDM-FakeEnrollment-Win10.reg) is needed to make the policy work.

Titanium: How to set referer when loading WebView

I currently use this
mywebview.setUrl(the_url);
to load a URL.
Can I, instead, load it in such as way as to include a referer in the http header?
EDIT: The reason for this is that the linked-to website should be able to see where the traffic is coming from even if the URL is loaded into a different webview than the one that contained the link. (I use multiple WebViews to create a tab UI.)
Edit:
The xcode equivalent seems to be this, although I'm not sure if this is also loading it into a new webview: Specifying HTTP referer in embedded UIWebView
It appears defining custom headers for WebViews is not available yet. You can watch ticket TIMOB-17467 to view updates.
It appears you will need a native module.
A quick check for iOS..
Safari Dialog module doesn't support headers (class limitation).
WKWebview module doesn't support headers (appears to be possible).
Perhaps you could extend these.
Android appears to be easier to implement, (but still not available in Titanium SDK), via extraHeaders: Read more: https://stackoverflow.com/a/5342527
I've looked at the Android Webview header (php getallheaders()) and there is x-requested-with: com.app.id
So in you page you could check for that value and know at least that it was visited by the app with the bundle identifier. Otherwise you could attach a get parameter to the url ?mobile and count this.
I'm trying to add a patch to the Android SDK and add a setHeader() method. The loadUrl() call is at:
https://github.com/appcelerator/titanium_mobile/blob/bc85170157d3bebc5de1d61a9fe6e34bce84a8c9/android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiUIWebView.java#L462
If you change it according to #tzmartin
extraHeaders.put("Referer", "http://www.referer.tld/login.html");
getWebView().loadUrl(finalUrl, extraHeaders);
then it already works but its hard coded.

How to lock Hybris to Initialize System on Production Environment

Is there any way to lock Hybris by Initializing System accidentally on Production Environment. It is too risky if some one mistakenly click on initialize button.
We can use this setting in our local.properties on the production system to avoid the running system from being initialized accidentally from the administration page:
system.unlocking.disabled=true
Hybris highly recommend to use this setting once you have your system up and running.
As I answered here, let me tell other ways to achieve this.
Lock the system initialization using properties
To lock the system for initialization and update add the unlocking (system.unlocking.disabled=true) properties to your local.properties file and rebuild your system.
Block/Redirect URL from the web server
If you have a web server in place for admin console, You can block or redirect /hac/platform/initURL to some dummy URL(/hac/platform/NOinit) from the web server itself. Do the google for your web server configuration for the same.
Change request mapping in Hybris HAC(Not recommend):
HAC request mapping is done by defaultHacConfiguration.json file. You can change the request mapping itself.
{
"path" : "/NOinit",
"label" : "initialization",
"skipPrefix" : false
}
Refer the detailed post here

how to configure external image server path in Hybris

We are working on to move our current e-commerce system to Hybris e-commerce.
In current system, external image server is used to feed for all product images used on product list/details pages. So I am looking for ways to configure these product images path (located for external server) in Hybris. I searched Hybris wiki but couldn't find much helpful info.
So i want to know where and how to configure external image server path so that all modules which uses product images can pick the correct path and display images accordingly. If some has done this sort of things before or has an idea, kindly help me.
In PCM cockpit, if you need to display product image that is on remote server you can follow these steps (i don't know if it's the best solution but at least it works) :
Add an attribute "pcmUrl" in the Product definition (items.xml)
Add to this attribute and attribute handler : <persistence type="dynamic" attributeHandler="pcmUrlAttribute" />
Declare the bean : <bean id="pcmUrlAttribute" class="mypackage.PcmUrlAttributeHandler"/>
Define the PcmUrlAttributeHandler class that will contains the logic to retrieve the URL of the image on your remote server. The class has to implements DynamicAttributeHandler<String, ProductModel>
Now you have to customize the Product Cockpit. It's not so easy (my opinion) so I won't explain all steps here but basically you have to find out the view you want to customize and set:
<imageslot>
<property qualifier="Product.pcmUrl" />
</imageslot>
Look at example media's URL for default apparel store they are configured with :
media.apparel-de.http=http://apparel-de.local:9001
media.apparel-de.https=https://apparel-de.local:9001

IBM Connections - can't add opensocial gadget

I developed an open social gadget and am trying to display it in Connections. I can't get Connections to even try to load the xml definition file.
I get
"Unable to load widget" in the gadget area in the side column
In JS console the errors read:
(Usable to retrieve spec for gadgeturl. HTTP error 400) while loading widget
_WidgetHandleBase - gadget failed to load (gadgeturl)
Here's what I did:
1)
Enabled developer mode and restarted Connections. I used this guide as a reference, allServers attribute is set to true so I'm not using the whitelist.
http://public.dhe.ibm.com/software/dw/lotus/OS_gadget_IC4_final.pdf
2)
Configured the gadget in admin section of Connections.
Type: Open Social Gadget
Security: Trusted, Use SSO
Server Access via Proxy: All Servers
Display on the Widgets page: True
Display on the Updates page: True
Use IBM Connections specific tags: True
Opened by default: True
3) Added the gadget through the customize link
Again, the gadget url leads to an xml definition file and it is accessible via a browser. Connections never accessed the url based on server logs.
Any idea what I am missing?
Thanks,
Vilem
Based on Paul Bastide's questions I did these additional steps:
In opensocial-config.xml I set all whitelistEnabled and urlWhitelistEnabled attributes to false. Setting up just the developer tag attributes like the doc suggested wasn't enough.
Set up hosts file to allow the connections server to access the gadget url.
For clarity I am using the Greenhouse image.

Resources