sandbox

How can I get installed apps list in Windows Phone?

主宰稳场 提交于 2019-12-12 02:34:08
问题 I've installed an app from the Windows Phones Store called "360手机卫士", a so-called famous(or infamous) antivirus software in china, which is said to be able to check your installed apps. After using it, I found that during the scan process,it does get the list of all my apps and scanned them. So after checking on the internet I get to know usually apps can't get the list because of "sandbox". How did it passed through or how did this app made it? BTW:the download of this app. Make sure you use

Why is it dangerous to render user-generated HTML or Javascript?

时光毁灭记忆、已成空白 提交于 2019-12-11 20:05:53
问题 I don't know if this is really dangerous, but, as Google does it with its HTML and Javascript served from Google Apps Script (as explained here, they use Caja Compiler to "sanitize and sandbox HTML"). I was wondering if was there anything bad that could happen if I let users edit HTML with Jinja2 templates giving them access to some server-side variables that would be rendered sometime later. What bad can happen? Obs: I don't care if the user HTML will be ugly or if it will destroy the rest

How to append jQuery events to an iframe with sandbox?

佐手、 提交于 2019-12-11 19:21:36
问题 I have an iframe which loads local pages (proxy): I need the javascript in these pages not to be executed (I am already executing it on the server, executing it again in the client leads to double execution, therefore bad). I can achieve this by using the new "sandbox" argument. The catch is that I need to be able to add events from the main window to the iframe contents. This does not seem to work. I prepared an example using jsfiddle. <iframe id='iframe1' sandbox='allow-top-navigation allow

sand box redirection destroys sessions

ぃ、小莉子 提交于 2019-12-11 18:40:10
问题 why it happen when i redirect user to PAYPAL's sandbox (https://www.sandbox.paypal.com) from my localhost then after returning to .aspx page (successful.aspx), it losses session, e.g. SESSION["tempUser"], it works on everypage but not on Successful.aspx page, it returns null, i am working on this error for 2 weeks, but no progress, i tried different browsers, even different system, changed code a bit but nothing helped, its been 1month+ and after several posts on several forms , nothing

Audio units dynamic registration

血红的双手。 提交于 2019-12-11 16:49:41
问题 We have developed a custom audio unit and audio unit hosting application. We are trying to register the custom audio unit dynamically from the application. Below code snippet is used to register audio unit dynmaically. (this code snippet is mentioned in Apple technical note Technical Note TN2247) #include <AudioUnit/AudioComponent.h> extern AudioComponentPlugInInterface* MyExampleAUFactoryFunction(const AudioComponentDescription *inDesc); OSStatus RegisterMyExampleAudioUnit() { // fill out

Can't get simple ADsafe widget to work

♀尐吖头ヾ 提交于 2019-12-11 15:37:54
问题 I'm trying to use Douglas Crockford's ADsafe library. I thought it is supposed to restrict the JavaScript that can be used, but it seems to be letting dangerous calls through, such as eval() . Here's an example of the sandbox not restricting anything: <html> <head> <title>ADsafe Widget Template</title> </head> <body> <script src="adsafe.js"></script> <div id="WIDGET_"> <script> ADSAFE.go("WIDGET_", function (dom, lib) { "use strict"; // // ADsafe is allowing these to execute!! // window.alert

System() command not working when enabling app sandboxing

痞子三分冷 提交于 2019-12-11 14:53:08
问题 Apple now require all future apps to be sandboxed and so I followed the instructions to sandbox an app. The build succeeded but then my system(rm -rf ~/.Trash/*) command stopped working. Nothing happened. What I find confusing here is why this system command does not work with App Sandboxing/Entitlements on. Here is are my entitlement settings: Entitlements: Checked App Sandboxing: Checked And here is my current code: - (void)viewDidLoad { [self emptyTrash]; } - (void)emptyTrash { system(rm

OSX Cocoa Bad Instruction crash

大兔子大兔子 提交于 2019-12-11 13:42:56
问题 I am developing an app (for like a year) and it works fine , when it comes to submitting to App Store -> all my problems started: 1)The app store would me to make my app to run in a sandbox(Why Apple ? Why !?). It took like 2 days to understand why just toggling "ON" in capabilities doesn't make it... etc ... in the end I somehow managed to convince my app to run in sandbox. 2)now the app passing the validation fine and can be submitted to the bloody App Store However when I checked the app

InAppPurchase in Sandbox(via test user)

你离开我真会死。 提交于 2019-12-11 12:46:24
问题 To test InAppPurchase in sandbox, do i need to upload a app in Appstore? If not then how the code will relate to the dummy app i made in iTunesConnect for inAppPurchase? 回答1: As mentioned by @stack , InAppPurchase can not be tested on Simulator. You have to use device to test it. And also, you do not need to submit application for AppStore release. Please have look at this blog and visit the last section called Creating the Purchase Product and Test User in iTunes Connect . Please let me know

Mac App Sandboxing- Updating files outside the sandbox

狂风中的少年 提交于 2019-12-11 12:02:08
问题 I have an Application for the Mac that I want to publish on in the app store. I order to get it published I need to put in a sandbox. The app access Sqlite files outside the sandbox which the user selects from a openpanel. The App works fine when is performs a select but it fails on inserts and updates. I can remember reading something about some function you could call that could give you write access to files outside the sandbox but for the life I can remember what is was Can anyone