Hey Everyone,
I recently downloaded and installed "PHP for Android." I created a .php file that utilizes an SSL connection with port 2195. When I tried running it, I get the following error message:
HTML:
Error:14094410:SSL routines:func(148):reason(1040) in /mnt/sdcard/sl4a/scripts/lot.php on line 19
Warning: stream_socket_client(): Failed to enable crypto in /mnt/sdcard/sl4a/scripts/lot.php on line 19
Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /mnt/sdcard/sl4a/scripts/lot.php on line 19
This is my line 19:
"$apns = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext);"
I researched what "reason(1040)" means, and supposedly it means that the port is closed. But what firewall is blocking it? The same exact script works when I execute it from my computer from the same wifi connection. Could it be a firewall inside the Android OS?
Any input will be greatly appreciated!!
Thanks!
Does anyone know?
Hey,
We also got that error with the iPhone Push service, and it was due to the certificate not being set correctly (actually the certificate file didn't exist).
I hope this solves your problem if you haven't solved it by now.
Regards,
Chris
Hello guys! I am beginner in the art of programming, but I must do it to finish my master's degree project. My advisor suggested I use an Android tablet to connect him via USB with a PIC microcontroller. I intend to use the language C or C + + to program the PIC firmware and C + + to make a graphical environment to program for the tablet. Can I do a program with graphical interface in C + + and compile it on the tablet (I have a Samsung Galaxy Tab 2 7.0)? And what are the libraries needed for this? I'd like any suggestions!
Can we install U_Desktop DEBs on U_Touch by forcing the architecture via terminal ?
Hi every one,
Currently, I am integrating peripheral for our company's device. This device is developed base on MSM8974AC platform. I have built linux driver and native HAL for that peripheral, these code are worked on Android 4.4.4 KK but when I reuse them on Android 5.0.2, I got a problem as follows:
- Linux driver has created device file at /dev/sfh7776.
- I have set permission 777 in init.rc file and check permission by command "ls -l /dev/sfh7776" then I got mesage "crwxrwxrwx"
- Native HAL open this device file by function ret = open("/dev/sfh7776",O_RDWR); but ret = -1, it means can not open this dev file.
Any one help me resolve this problem? Thank you very much.
can i put kali on my device??
if so, how?
@AlfredoAAA, The answer is NO . This is the matter of particularity , even If you did meet all of the requirements I would explain later . I am using the sequel of this Popular continuation of Backtrack 5 R3 on my Multi-Boot system for penetration testing and still got problem with my medium custom made bulid ( specially GPU for all injection and compiling \/ coding/scanning/etc etc,,,) Now imagine how on earth this Debian development based going to work on your even most powerful Nexus/Galaxy Note ,,,,,,
Requirements :
- At least 7 GB free on your internal SD card
- Kali Linux custom ARM image dedicated for your device infrastructure >>
Kali Linux has ARM repositories integrated with the mainline distribution so tools for ARM will be updated in conjunction with the rest of the distribution. Kali is currently available for the following ARM devices :
rk3306 mk/ss808
Raspberry Pi
ODROID U2/X2
Samsung Chromebook
EfikaMX
Beaglebone Black
CuBox
Galaxy Note 10.1
- Custom made recovery image for your device form the developer site
- Custom kernel patched for injection in case of wireless assessments for example.
This is quite off topic though , but I am going to share some practical method for medium to powerful devices such as Nexus line ( might be [email protected] related section though,, didn't check it) , which does not require physical installation of Canonical production line.
With the help of the attached app ( released by the same company ) , you can get your Dual boot inside your Android phone ( i,e: Nexus 7/5/,,,,,) .
We’ll need to use the Linux distribution Ubuntu to get this to work, however you won’t need to install it.
Requirements : 3 GB of free space on your device , as it needs this much to actually download and run the OS.
Instructions :
1. Create a live Disc >> Ubuntu website;download the latest desktop OS ( comes with ISO file ); Create your USB stick boot able device with the help of UNetbootin or any device you do prefer though.
2. Boot into Ubuntu >> you know the drill >> Boot your PC with USB attached; Bios choose to boot from your stick USB > After selecting , choose Try Ubuntu. It will boot into it straight from USB without installing anything literally.
3. Put the attached file into Home Folder in the File system . Open up Terminal ( assuming you have rudimentary knowledge of command line in Linux )
Type :
Code:
$ chmod +x dualboot.sh
4. We need to install Correct ADB and dependencies over company's portal through our terminal, which is included in one piece of software.
Type:
Code:
$ sudo apt-get install phablet-tools
and choose "Y" in following scene
5.Connect your Device to your PC; USB Debugging enabled through your settings>Developer. In the terminal from earlier session,
Type to install the app:
Code:
$ ./dualboot.sh
Device will be rebooted couple of times i guess upon completion
6. Ignore anything about loosing root and just press the power button once to reboot.
Once you are back into Android , open your brand new Ubuntu Dual Boot app.
7. Now we need a super fast internet and lots of patient to get through 3GB download .
From within the app, press the greyed out 'Choose which channel to install' to bring up the options. Check 'bootstrap' and scroll down to 'utopic' so you get the recommended
version of the OS. Press install.
8. During installation you'll have to grant SU permission and after a while you will be done. Press 'Reboot to Ubuntu' ( grayed out option) and your device will be booted into Ubuntu Touch OS. ( again ignore any Android identifiers while booting ).
9. Now lets Return to Android : ( Tip :Using Power button to turn it off and on again will allow you to always boot back into Android) and with the reboot button on the app you can get back into OS Touch . please pay attention in this method your Android OS will not be wiped in the process.
As usual , I am not responsible for any kind of device meltdown, possible Bricking ,, etc etc ,, All credits goes to Ubuntu developer team.