mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Merge branch 'allow-proxies' into 'master'
Allow proxies See merge request videostreaming/grayjay!9
This commit is contained in:
commit
a74dda12df
3 changed files with 20 additions and 3 deletions
|
@ -42,7 +42,7 @@ class RemoteObject {
|
|||
return remoteCall(me.__id, methodName, Array.from(arguments));
|
||||
}
|
||||
catch(ex) {
|
||||
if(ex.indexOf("[400]") > 0 && ex.indexOf("does not exist") > 0 && ex.indexOf(me.__id) > 0) {
|
||||
if(ex.indexOf && ex.indexOf("[400]") > 0 && ex.indexOf("does not exist") > 0 && ex.indexOf(me.__id) > 0) {
|
||||
deletePackage(me.__id);
|
||||
}
|
||||
else throw ex;
|
||||
|
@ -61,7 +61,7 @@ class RemoteObject {
|
|||
return remoteProp(me.__id, propName);
|
||||
}
|
||||
catch(ex) {
|
||||
if(ex.indexOf("[400]") > 0 && ex.indexOf("does not exist") > 0 && ex.indexOf(me.__id) > 0) {
|
||||
if(ex.indexOf && ex.indexOf("[400]") > 0 && ex.indexOf("does not exist") > 0 && ex.indexOf(me.__id) > 0) {
|
||||
deletePackage(me.__id);
|
||||
}
|
||||
else throw ex;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
||||
|
||||
<application>
|
||||
<application android:networkSecurityConfig="@xml/network_security_config">
|
||||
<receiver android:name=".receivers.InstallReceiver" />
|
||||
|
||||
<activity android:name=".activities.MainActivity">
|
||||
|
|
17
app/src/unstable/res/xml/network_security_config.xml
Normal file
17
app/src/unstable/res/xml/network_security_config.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<debug-overrides>
|
||||
<trust-anchors>
|
||||
<!-- Trust user added CAs while debuggable only -->
|
||||
<certificates src="user" />
|
||||
<certificates src="system" />
|
||||
</trust-anchors>
|
||||
</debug-overrides>
|
||||
|
||||
<base-config cleartextTrafficPermitted="true">
|
||||
<trust-anchors>
|
||||
<certificates src="system" />
|
||||
<certificates src="user" />
|
||||
</trust-anchors>
|
||||
</base-config>
|
||||
</network-security-config>
|
Loading…
Add table
Reference in a new issue