[GUIDE]Witopia OpenVPN SSL for Rooted Android 2.2+ - Android Software/Hacking General [Developers Only]

Witopia OpenVPN SSL for CM7
Rooted Android versions 2.2.1-2.3.4
By: Z3n
(tested on HD2 CM7 and Nexus S CM7)
(Probably works for any build you can install the needed packages on too)
I asked the tech guys at witopia about using its service with android, and they didnt have a way, so i found out for myself,
This probably works for all OpenVPN SSL connections too, not just Witopia.
enjoy
-Windows only till i can insert links -
-Mac guide for finding your files and certs can be found at Witopia's wiki page-
-=#REQUIRES ROOT#=-
Required Packages – Busybox, OpenVPN installer, OpenVPN Settings
Both can be found in the android marketplace.
Install Busybox (if you haven't already)
Run installer first, and install openVPN binaries to all listed places.
ON PC
Install Witopia client on your PC, Then navigate to:
C:/programfiles/personalvpn/config
Copy the configuration files and certificates to a new folder called “openvpn” on your desktop.
For each location you plan on using, you need to modify the .ovpn file relevant for it, and also rename the file to a .conf extension.
First, in the .ovpn file, change these:
“nobind” to “bind”
(allows VPN to stay connected while screen is off, I tested this on CM7 for HD2 and also on Nexus S, so it may not need to be changed depending on the build you use. If this setting is left, when the screen is off, the VPN will not be “binded” to your cellular network, breaking your VPN connection everytime you turn off the screen.)
Remove “show-net-up” at the bottom
(this breaks the VPN connection as the phone cannot process this {its for the windows/Mac GUI for VPN})
Save each .ovpn to .conf (save as… ; file type = all types ; save with .conf extension)
ON PHONE
Copy the whole openVPN folder from your desktop onto your SDcard, so the path looks like /sdcard/openvpn (openvpn all lowercase.)
Run OpenVPN settings and turn on OpenVPN. It will load your certificate, key, and .conf files for use.
If nothing shows up, make sure your folder path matches /sdcard/openvpn.
one thing is, if you set the "bind" string, your battery will drain a bit faster, since its constantly connected, even with the screen off.
To save battery life, leave this as "nobind" and you will have to go to OpenVPN settings, disconnect, and reconnect to your desired location.
Enjoy your encrypted connection

Thank you mate, this is just what I needed.
Now WiTopia SSL is working perfectly on my SGS2 running nightly CM7 10201011 nightly-89 rooted with CF-root.
btw, I left my setting on "nobind" in the config file and it stays connected after waking the screen. All else is as you suggested.
Cheers

Related

Run a website on your Android Phone

*edit- For some reason, this thread got posted in Android Software and Hacking general instead of Android apps and games :-|
Hey everyone, its me again.
I have recently been using an app called Paw Server for Android. Though it may seem stupid, this app can really come in handy. The app itself is a utility for managing messages, contacts ect.. But what many people do not realise is that you can host your own website on it, wherever you go. Though this will only work over wifi, you can optionally do some port forwarding to make the site accessible over the internet.
To put a custom website on the server, do the following
1. Install PAW Server for android.
2. Mout your phone's SD-Card On your computer
3. This step has two options:
A Website:
Put your website files in /paw/html/ and make sure the index.html is in this directory. (If you need help creating a site, please visit http://cyanstatic.com)
A File explorer:
If creating a website is too much of a hassle, you can just put some files that you would like to access from your browser in /paw/html/. I Put a couple of songs and videos in the folder and had no trouble streaming the files to my browser.
4. Now open PAW and press the 'Start" Button.
Congratulations!
Your website/chosen files should now be accessible from your browser
i use swiftp, does pretty much that, though it is dedicates to do so, so i think it's a bit more comfortable
This is a great tool
Will give it a shot
doenis said:
i use swiftp, does pretty much that, though it is dedicates to do so, so i think it's a bit more comfortable
Click to expand...
Click to collapse
Really? So can swiftp run a web server or just file services?
Wow amazing!
Sent from my HTC Vision using XDA App
I used PAW Server to host a WIKI on my Nexus One
I used PAW Server to host a WIKI on my Nexus One....
And it almost worked!
tiddlywiki (google it, I'm new and can't do links) is a one page wiki written in, I can't really tell because the tiddlywiki page doesn't do much about talking about how it works.
But PAW serves the pages, and some of the read/browse functions seem to work -- but I was unable to figure out how to edit a page -- and that could just be my fault.
And installing the wiki was pretty easy. I downloaded the zip file to my pc, moved it into my dropbox directory, unpacked it into a directory called wiki, and then on my phone, I synced drop box, and I moved the wiki directory into the paws/html directory. And it served up the page just fine.
But I couldn't edit it.
Why does it ask for permissions to everything? ie Camera, Vibrate, etc....
This maybe unintentional with the manifest, but it looks awfully rogue when programs look for permission to things they don't use.
Very cool thanks for the share! Tough it doesn't make much sense serving via mobile, but i might give it a shot and see if I can use some DNS servers too, starting with dyndns.org
Check out Wifi Remote Access for Windows Mobile: You can do the same thing, but it also comes with a whole range of other stuff.
To edit it, you just need to go into program file, and add a folder inside public (I think) with all your website files. Then change Wifi Remote Access's default.html to redirect you there,instead of to /fs/
mik101 said:
Why does it ask for permissions to everything? ie Camera, Vibrate, etc....
This maybe unintentional with the manifest, but it looks awfully rogue when programs look for permission to things they don't use.
Click to expand...
Click to collapse
This is because it comes with a site on it for managing your phone, like take pictures from the browser and send sms.
With the server it is also possible to develop web applications that use the Android API.
That's also a reason (apart from the web interface mentioned by GlobaL_TroTTer) why there are so many permission requested.
Great find! This is going to be very beneficial to me if I ever misplace my phone around the house or at school. It also has several features that are invaluable IMHO.
Great App - but not working on Verizon network
PAW Server is a real gem... it works great in a LAN/WiFi environment.
Unfortunately, it appears that Verizon Wireless doesn't route ANY traffic that is not initiated by the phone/user.
So thi nice little personal web server is unreachable over the air.
Same for Telnet, FTP, etc.
If anyone has a working app (on a Verizon network) - reachable FROM the net - please let me know!!
Android Port Forward?
GlobaL_TroTTer said:
*Though this will only work over wifi, you can optionally do some port forwarding to make the site accessible over the internet.
Click to expand...
Click to collapse
I'm trying to access the server without connecting through wifi. Is this even possible?
Thanks
I've played around with PAW Server. I like the PHP Plugin. I created an offline UPC scanner web app (for retail inventory) in PHP/JS/WebSQL which synched with a remote server. It eventually turned into a Phonegap app.
Directory Permissions
Does anyone have a link to some documentation regarding "Directory Protection" part of PAW?
It mentioned that granting permissions to certain folders must follow the following format
relative-directory:auth-type:realm:users
with a sample of
/test:basic:Test Real:user
But I don't know what auth-types are available. I'd like to grant a certain folder read permissions to everybody.
I just have to say that setting up my own website with PAW was super easy (10 easy steps):
1) Install PAW and start up server: google PAW android
2) Find external IP: google "what's my IP"
3) Go to router (192.168.0.1 or 192.168.1.1 ) and enable port forwarding to your android for the port you used.
4) Set up PHP: Use browser to hit server(192.168.1.?), sign in, go to add-ons, setup PHP, transfer unzipped folder to /sdcard/paw/html/app/plugins/ and restart PAW server
5) create file (mypage.php) with contents(<html><head></head><body><?php echo '<p>Hello World again</p>'; ?> </body></html>) and place it in /sdcard/paw/html/app/
6) Navigate to [myexternalIP]:[myport]/app/mypage.php (note requires login) Unless you changed the port number it defaults to 8080
7) Register for a free domain: no-ip.com
8) Modify host to have "Port 80 Redirect" to the port you configured (typically 8080)
9) Fix permissions on certain folders so joe blow can hit my server <---- How to do this part????
10) Profit!

[Guide] Stream PSX games over WIFI from PC to FPSE [Experimental]

Hi
I am after people to follow this guide and test this out.
I currently have only got a cheap old Wireless B access point so my performance is less then satisfactory but would like others with a better wireless connection to test.
The tutorial is broken into 3 parts.
1) Install CIFS modules (easy 1 click gscript available)
2) Map network share on PC
3) Configure CIFS manager (easy gui application from market)
1) Install CIFS Module (thanks to Neildk)
Goto THIS THREAD and download the Gscript package (or use adb method) following the instructions on there
2) Share the folder on your PC containing the games
Making Note Of::
Games still have to be compatable with FPse
Larger games might struggle (we are still testing)
Use google if you dont know how to share network folders
Either share the folder using public permissions or ensure you have set a username and password for your account.
3) Connect to network share using CIFS Manager
Install CIFS manager from market
Open CIFS manager and grant SU
Open CIFS manager and press Menu -> Add new share
Under Server place your PC's IP address /Sharepath E.g. the folder shared was psxnet and your IP is 10.1.1.1 Place 10.1.1.1/psxnet in the server field
in the Mount point field place : /sdcard/psxnet
under username if using PUBlIC sharing you can use guest. If connecting a share that needs auth then type in your username (that has permission to access this folder)
Skip the password field if using PUBLIC network sharing otherwise type in the password for the username above
CLICK SAVE SHARE
[*]Press Menu -> Settings and place a tickbox in "Load Via insmod"
Now load up FPse and navigate to the folder "psxnet" on your sdcard and launch a ROM
Please report your results...
PLEASE NOTE: Running the gscript to enable the CIFS module may be needed after a reboot, you can create a widget for the script on your desktop
I reserve this post to confirm games working
Confirmed working Smooth by me on 11mbit Wireless B connection:
Metal Gear X
Please also test Compress VS Uncompressed ISO's
No one trying this?
Sent from my R800i using XDA Premium App
Could this work outside of a home network through a VPN connection to home (assuming upload speeds at home are fast enough)?
ace518 said:
Could this work outside of a home network through a VPN connection to home (assuming upload speeds at home are fast enough)?
Click to expand...
Click to collapse
in theory if you used openvpn/pptp to connect then you could use cifs/smb to mount the share over the vpn... but really ive only found one game to be smoooooth over 11mbit wifi... really wanted some other people to test it with faster wifi access... if it was worth it id upgrade my wifi, I mainly play at home.... when away i play gameloft stuff...
I'll give it a try eventually. Right now I've been more concerned at looking into how to get this beast rooted. Verizon version and root have some issues. I have wireless N setup at home, and a Fios setup with 35 Mb up, so i'll test home and over vpn.
whats the point of this?
AriStar said:
whats the point of this?
Click to expand...
Click to collapse
Since the provided SD card is a bit small, it makes sense to try and stream some of the most space-intensive content such as PSX ISO images from your computer to the device. And even if it wasn't an issue, it's just cool that you can do it

[Noob Guide]Access Windows PC files directly from Android through Wi-Fi [UDATED:22/9]

Please read the whole guide once before trying. This will help in making the process easy as most of the parts are covered in detail.
1. Introduction:
You got a file in Windows PC and you intend to transfer it to your Android device. The most common way is that we connect the device to system via USB cable. However there are alternatives such as the Bluetooth or Wi-Fi. Bluetooth is a very slow method when compared to USB and Wi-Fi. So let us take Wi-Fi as the medium. Now let me first tell you various advantages and disadvantages regarding USB when compared with WI-Fi:
Disadvantages of USB v/s Wi-Fi
1. The phone should be near to the system = you being near the system too ---- This is avoided. All you need that the PC and device to be connected to the Wi-FI network
2. Cluttering of wires ---- Avoided
3. Drivers may have to be installed ---- No drivers needs to be installed
4. In a whole way, its not very productive ---- Oh very productive
Advantages - the only one is that files transfer speed is high ---- Yes. USB has a upper hand here. Wi-Fi transfer speed is low when compared. But the difference is just a few minutes. We can live with that
So excited to start using the Wi-Fi method? Then make sure you meet the requirements.
2. Requirements:
1. Wi-Fi router - PC should be connected to this either through LAN/ Wi-Fi
2. Install ES File Explorer in your Android device (you can try other file explorers like FX File Explorer, Solid Explorer, Astro File manager). The methodology for other apps are quite similar. I will take ES File Explorer as example as I have found it to be simple and fast.
3. Windows PC with 2000/XP/Vista/7/8 (I have not tested in Windows 8 personally)
4. Administrative access for Windows PC
3. Steps:
Step 1. Install ES File Explorer
Step 2. Find IP Address, make static IP and find system name [optional]
i. Find your IP address - to do this follow the steps as below:
a. Start -> Run (or press Windows key + R)
b. Type "ncpa.cpl" (without quotes) and press enter
c. You will see the Network Connections now
d. Identify the one which is connected to the Wi-Fi router. It will be either the LAN adapter or Wireless adapter. In my case it is the Wireless adapter.
e. Double click on the connection
f. Click on details and here note down the IPv4 Address. Also make not of IPv4 Subnet Mask, Default Gateway and DNS Server.
View attachment 1343982
ii. If you are going by IP address method then it is better yet to make the IP address as static [thank you kjplasma for the tip].
An static IP address means that your system will be having the same IP address all the time and will not be changed anytime later by the router. To set static IP address:
a. Go to Network Connections
b. Double click on the connection
c. Click on properties
d. Double click on - Internet Protocol Version 4 (TCP/IPv4) and fill up the IP address as you have noted them down above.
e. Click on OK for all dialogue boxes.
View attachment 1343983
iii. You can even make note of the system name by checking the properties of “My Computer”. To do this:
a. Go to Start - Right click on My Computer [Shortcut -> Windows + Pause/Break]
b. You can find the computer name under "Computer name, domain, and workgroup settings"
View attachment 1343984
If your going by this method then it is not necessary to note down or change the IP address. However I feel that tracking your system through IP address in ES File Explorer is much more efficient and fool proof. Either the system name or IP address its okay.
Step 3.a. Windows 2000 PC
i. Open ES File Explorer in your device
ii. On top right corner tap on "Local" - select LAN
iii. Tap on "New"
iv. Here you can either scan for your system or Click on Server
v. Here in server field type the IP address (that is IPv4 Address) or the system name
vi. Type in the Username and Password which you use to access your Windows PC
vii. Give a name under "Display as" for easy identification
viii. Tap on OK.
ix. Now you will see an laptop with globe icon. Tap on it and you will see all your files/folder of the system there.
Step 3.b. Windows XP PC:
i. Firstly you will need to enable Guest account by going to Control Panel – User Accounts – Guest Account – Click on "Turn on Guest account". This is because there is no other way I found to access the files in Windows XP in Android device with actual user name and password.
ii. Share the drives or folder you want to access [Refer the Reference Note 1 below to know how to share a folder]
iii. Open ES File Explorer in your device
iv. On top right corner tap on "Local" - select LAN
v. Tap on "New"
vi. Here you can either scan for your system or Click on Server
vii. Here in server field type the IP address (that is IPv4 Address) or the system name
viii. Type in the Username and Password which you use to access your Windows PC
ix. Give a name under "Display as" for easy identification
x. Tap on OK.
xi. Now you will see an laptop with globe icon. Tap on it and you will see all your shared files/folder of the system there.
Step 3.c. Windows Vista/7/8 PC:
i. Share the drives or folder you want to access [Refer the Reference Note 1 below to know how to share a folder]
ii. Open ES File Explorer in your device
iii. On top right corner tap on "Local" - select LAN
iv. Tap on "New"
v. Here you can either scan for your system or Click on Server
vi. Here in server field type the IP address (that is IPv4 Address) or the system name
vii. Type in the Username and Password which you use to access your Windows PC
viii. Give a name under "Display as" for easy identification
ix. Tap on OK.
x. Now you will see an laptop with globe icon. Tap on it and you will see all your shared files/folder of the system there.
Note: If you are using blank password for logging into windows then follow the steps below:
a. Run - gpedit.msc to access Group Policies
b. Navigate to Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options
c. Find -> Account: Limit local account use of blank passwords to console logon only
d. Double click on it and select "disable"
View attachment 1343985
Uploaded with ImageShack.us
4. Reference Note 1 - How to share folders:
On Windows XP:
a. Right click on the folder you want to share
b. Go to the sharing tab
c. Click the "If you understand the risk but still want to share the folder, click here"
d. Under "Network Sharing and Security" tick on "Share this folder on the network" and also on "Allow network users to change my files"
e. Click OK
View attachment 1343986
On Windows Vista/7/8:
a. Right click on the folder you want to share
b. Go to the sharing tab
c. Click on "Advanced Sharing"
d. In the next dialog box tick on "Share the folder"
e. Click on "Permissions" and tick on all the checkboxes under allow.
View attachment 1344010
5. Troubleshooting:
1 - The "Login Error"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You might get a login error at times. It happens highly when you use the computer name instead of the IP address and sometimes the error pops up even when using the IP address. You can try the below troubleshooting steps:
a. Delete the connection entry
b. Make a new entry and use the IP address this time
c. If the problem still persists, then try opening it 5-6 times repeatedly by ignoring the error.
d. If the problem still persist, then delete the connection, exit ES File Explorer completely and create a new connection again by using the IP address. This time it should work.
I feel this is a bug in the app. Hope it will be fixed in future.
Note - I was using ES File Explorer before FX File Explorer came to play store. Later after trying FX File Explorer, it had not given any error at all and hence its much more reliable. But for that you will have to pay as the app is out of beta.
2 - Wrong Username/Password even when entering the correct one
This usually happens if you put the system name instead of the IP address in the app. What you can do delete the entry and then close the app and reopen it and try a new connection with the IP address itself as this will solve the issue.
6. Useful tips:
1: You can increase the transfer speed by moving near to the router. The closer you are to the router the higher speed you gain.
2: You can even make shortcut of the folder in the network and place them on the home screen of the app. Do to that on ES File Explorer simply long press on the folder and choose "Add to server list".
7. Other Notes:
1: Please note that no internet connection is required to make this possible. Everything is done through the local network. Take out the idea from your mind that Wi-Fi is only for internet.
2: There are various other apps like KiesAir, AirDroid. But that will require you to be near the PC and access the files through a WebUI. But the guide which I have laid out here works from PC to device directly. You can sit at your living room, kitchen or bedroom or where you like within the Wi-Fi network and you are good to go.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hope you find this guide useful. Please leave feedback and do post here for queries. Thanks!
Thank you Sun90, Bala_Gamer for heads up and others who responded for making this guide even better.
PS. Too bad that FX File Explorer network module is being made as a paid add-on. This was expected as the app is not of beta. Still it an awesome file explorer. Worth buying those add-ons.
Change log:
v0.1 [21-Sep-12]
-Initial guide
v0.2 [22-Sep-12]
-Changed app from FX File Explorer to ES File Explorer
-Made the guide even more detailed
-Added more screen shots
-Added troubleshooting
-A step closer to Noob-Proof guide
nice guide dude... keep them coming
edit:
windows 2000 ? epic
this will be a very usefull guide for sure ma8, especially for people with USB connectivity issues
Good work once again:good:
bala_gamer said:
nice guide dude... keep them coming
edit:
windows 2000 ? epic
Click to expand...
Click to collapse
I got my server in office at my place with Windows 2000 actually its so insecure that it does not even need proper authentication.
Sun90 said:
this will be a very usefull guide for sure ma8, especially for people with USB connectivity issues
Good work once again:good:
Click to expand...
Click to collapse
Yup. Or even lazy to sit by the PC for people like me
Nice guide harsha......But Windows 2000...ROFL
Made the guide a bit detailed and added screenshots. Hope this helps in making it noob proof.
Hello there,
i have an PC which is connected to plasma TV for movies. Also have Laptop.
I successful connected them to personal network since the Windows 7 sharing is a bit confusing than to XP.
I had to to add "Everyone" with permissions. Also had to add permission to the folders properties (Security tab).
So now i have access to the shared folder with read/write permissions, and it's working like a charm.
Than i tried this guide and can work it out. I've added static private/unreal IP and still have internet and network access to the shared folder.
But when try to add sever it returns error "Cannot find the server".
I've tried every possible way (with and without checked anonymous box also with/without domain, display as, ip/shared folder and so on) and nothing. Than i turn off windows firewall and still nothing.. any ideas?
soadfan said:
Hello there,
i have an PC which is connected to plasma TV for movies. Also have Laptop.
I successful connected them to personal network since the Windows 7 sharing is a bit confusing than to XP.
I had to to add "Everyone" with permissions. Also had to add permission to the folders properties (Security tab).
So now i have access to the shared folder with read/write permissions, and it's working like a charm.
Than i tried this guide and can work it out. I've added static private/unreal IP and still have internet and network access to the shared folder.
But when try to add sever it returns error "Cannot find the server".
I've tried every possible way (with and without checked anonymous box also with/without domain, display as, ip/shared folder and so on) and nothing. Than i turn off windows firewall and still nothing.. any ideas?
Click to expand...
Click to collapse
Hey. Kindly read the thread u linked below. Someone else might have already had an issue like yours and for a solution in that thread. Let me know if you still not able to get it work. http://forum.xda-developers.com/showthread.php?t=1896999
Sent from my GT-I9100 using Tapatalk 2
Harsha Raj said:
Hey. Kindly read the thread u linked below. Someone else might have already had an issue like yours and for a solution in that thread. Let me know if you still not able to get it work. http://forum.xda-developers.com/showthread.php?t=1896999
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Nope, no solution atm
Both PCs running 32 bit Windows 7 Ultimate
THIS is the router.
Phone is HTC Vision, running ICS Mimicry 1.5
EDIT: Upgraded router firmware to the latest version with no effect
EDIT2: Tried to set static ip for phone, different from PCs IPs > internet disappear. Rollback to DHCP and suddenly everything start working.
Thanks for this awesome tutorial, now I can enjoy my media library on my android without having to buy expensive router and "Stream" it through DLNA.
nice guide, i've used airdroid in the past, which is fairly easy - but this seems like a more secure way to transfer files.
Hi everyone!
I used ES File Explorer with my Xperia Z3 and Windows 10 desktop PC and all worked well. My PC failed so I purchased a new laptop and now I cannot get ES File Explorer to see the new laptop. I checked the server's IP address using Windows 10 settings > Network and Internet and can see the IPv4 address and also another quad number for IPv4 Servers and have tried both.
I also checked the username and I am very sure it is the email address that I use to log on to Windows 10. I also tried the Anonymous setting but nothing works. I get the screen stating login failed, WLAN is off, SMB server is out of network scope etc.
I think Kaspersky manages my firewall but I am not experienced enough to play with those settings. I will keep searching but any advice is much appreciated!
Edit :- I found the solution here.
https://techjourney.net/cannot-conn...-network-shares-shared-folders-in-windows-10/
Ofiaich
See the full post above...
This solution worked a few times on both my Xperia Z3 mobile and Xperia Z2 Tablet, but now doesn't!
emailed the developer of ES File Explorer and awaiting a response..
ofiaich

[GUIDE] File Sharing b/w Macs & Androids

Draft of Tutorial for FTP FIle sharing
TUTORIAL: FTP File Sharing for Macs & Androids
BACKGROUND INFORMATION
I find that for many Mac users, the instructions given within these forums for file sharing between their computers and their Android phones are quite sparse and oftentimes confusing. Mac users use different terminology and generally, are less comfortable with Terminal command line instructions than are PC users. That is not, by any means, intended to disparage Mac users. By anyone's standards, for instance, I would be considered a "power user" or even a techno-geek, yet even I found terms and phrases such as "flashing roms" and "RUU's" confusing! So, this little guide should help any Mac user who is trying to get files from his Mac computer to his Android phone, and visa versa.
What will most confound most Mac users, who are very much used to their devices being "plug and play", is why they can't just plug their Android phone into their computer and have the phone mount like any other drive on their desktop? The problem, of course, is that Mac OS X currently does not support Media Transfer Protocol, or MTP. So, when they plug their Android phones into their computers using a standard USB connection, their Macs cannot "see" the drives.
So, it has been suggested to many of us that we use a program, such as Android FIle Transfer, which uses a different protocol, AFT, to mount our Android phones onto our Macs. The problem is that Android File Transfer, a free download, is oftentimes unreliable and will fail to mount the phone as a drive on the computer. To make matters worse, HTC phones, such as the HTC One, by default will launch a program called, "HTC Sync Manager" which actually will keep the Android FIle Transfer program from mounting the drive.
So, what's a Mac user to do for reliable transfers of information from his Mac to his Android? For small files, such as documents, Dropbox and Google work really well, and their intuitive interface makes them a handy resource for Mac users. But the larger files, such as custom ROM's, firmware updating, and yes, those pesky "RUU's" that need to be installed directly on the Android's sd card pose a real problem.
THE SOLUTION
The Mac user will first need to install the proper "tools" onto his respective devices. On his Android, he will need to install (i.e. not "flash") a FIle Manager, such as ES File Explorer. On his computer, running some variant of Mac OS X, he will need to install an ftp client. I use and recommend a program called, "Transmit", but there are others that will work as well. The ES File Explorer program is available for download at the Google Play Store, and the Transmit app is available from the Mac App Store.
Once these tools have been installed on their respective devices, the Mac user will need to go to his System Preferences and open up the Sharing CP. Both "File Sharing" and "Remote Login" must be checked. Then he should got to Settings on his phone and then to the Developer Options within Settings and select "USB debugging".
Next, he will to make sure that both of his devices are connected to the same WiFi network. On the Mac, WiFi is enabled in the Network CP and on the phone it is enabled under "settings".
Then he will need to open up ES File Explorer on his Android and navigate to Tools. He must click on Tools and then scroll down to "Remote Manager". He will select "Remote Manager", and he should see a screen that says, "Network Status" followed by the name of his WiFi network. Underneath the blue symbol for WiFi will be the statement, "you can manage your device through your PC after you turn on the service." He should click on the button just below that statement. The button will say, "Turn On".
Okay, the setup is nearly complete! Now that the user has enabled WiFi access on his phone, an ftp address will appear just below the blue WiFi symbol with the instruction to, "input the address on your computer". The ftp address will look something like this:
XXX:XXX.X.XX:4038
Now the user will launch the application, Transmit, and select FTP from the drop down menus. A dialog box will appear that will ask for the server, user name, password, initial path, port and type of ftp that he wishes to use. Using our sample ftp address, he should fill out the box as follows:
Server: XXX:XXX.X.XX
User Name: Joe Smith's HTC One [name should match name that was assigned to the phone at setup]
Password: XXXXX [i.e. the password or numerical passcode that is used to unlock the phone at startup]
Initial Path - [leave blank]
Port: 4038 [the last 4 digits of phone's assigned ftp address, i.e. the ones that followed the colon]
FTP: - just select this first option for the type of ftp.
Then he will click the "Connect" button that is at the bottom of this window, and if the application has been configured correctly, he should see a list of all of the files and folders contained in the home directory on his Mac on the left side of the window. On the right will be all of the folders and files that reside on his phone. Now, with a simple drag and drop interface, he can drag files left to right to move files from his computer to his phone, and right to left to move files from his phone to his computer.
This simple, elegant solution to file transfers is perfect, and transfers over ftp are generally very quick. The user will even get a notification when each of his file transfers is complete.
I hope this tutorial helps. Please let me know if it has helped you as well as whether you need additional information.

View Network Traffic Android App with restricted CA list and no code

Disclaimer: I've a software developer but new to Android - I don't think is obvious though, hence my choice of place to post.
I'm trying to view the network traffic of an android app for which I'm in no way associated.
Here's what I've done:
1. Install app from google play store. Running `adb shell pm path ...` shows _multiple_ APK files have been installed.
2. Proxy network traffic through my laptop. This works but all the requests from the app are encrypted.
3. Install custom certificate authority on my android to prepare for SSL encrypt/decrypt inside laptop proxy.
4. Decrypt traffic on my laptop proxy. From laptop proxy logs I can see many requests are succeeding, including mail.google.com. However the app I'm interested in is failing SSL handshake between android and my laptop.
4. Pull all app APK files from my android to laptop.
My plan: Modify the APK files and reload them onto my android to accept my own SSL ca. I believe this can be achieved by simply modifying/adding xml files.
Problem: How do I configure android studio to load the many APK files onto my android. I can get it to install one APK file, but this doesn't work.

Categories

Resources