yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] amaddux:
Had it working

I had it working perfectly, until the latest update. For the last update, I unrooted my device using the 7.1 universal app, installed the OTA update, then re-rooted the device.

Afterwards, Junos no longer attempts to get root access. Anyone else have luck getting it to work on the latest update?
[Eee Pad Transformer Android Development] chrispazz:
Just opened a new thread about Junos Pulse....I did not read this one but I am in the same situation: no root permission and no VPN working.
[Eee Pad Transformer Android Development] bit_bucket:
I have been sucessfull in geting Junos Pulse working with this tun.o module. Here is what I did.

1) Went to full stock and updated TF to 3.2.1

2) Rooted with the easy root directions for Windows

3) When done I updated CWM to the latest version

4) Checked that I had root

5) Installed the tun.o module per the directions earlier in this thread.

NOTE: Before installing the module, I chowned it to 644: chown 644 /system/lib/modules/tun.ko and then did an insmod to load the driver.

6) Installed Junos Pulse. I WAS prompted to allow it to ask for root. I believe this is because I had not previously done this with a rooted TF.

7) ...

8) Profit

The takeaway here is if you want to be prompted again, You should restore your entire system to stock, including the system partition, and then root.

To test things out I wiped the TF using Privacy so the unit stayed rooted and tried this all again, and was NOT prompted to allow Junos to get root. Neverthless it still works fine. I think it only needs root to install some ancilary libs to work with tun.ko.

So when a future upgrade comes out I will return to bone stock, not just recovery and boot but also system and then apply the update, root, install tun.ko and then go about my business. I'll probably script as much as I can though.

YMMV. Good luck.
[Eee Pad Transformer Android Development] amaddux:
This all makes me wonder how the app knows its the first time its running in order to install those libraries or whatever setup it is doing. If I could figure that out, I could hopefully make it think is running for the first time again. So far I've deleted the apps data directory, un-installed it, erased any part of it I could find. But so far, it doesn't attempt to gain root after the upgrade. But if your right, it must be putting something somewhere that it uses to determine the fact its already done the setup it needs.
[Eee Pad Transformer Android Development] chrispazz:
Yesterday I installed a full 3.2 from Modaco (Hr9) and Junos Pulse is working out of the box without asking me root permission (I restored from a backup).

You have been able to use it with a 3.2.1 rom.

I am asking myself why it is not working with ROMs like Prime 2.0.2 or latest Revolver that have TUN module.

WIth lsmod I can see the module correclty loaded in memory.

Junos start correctly but if I execute a route command I cannot see the correct IP and route set up. Also tun0 is not seen has a network device.

I can try to install again one of that "full" ROM and then only try to substitute the TUN.ko module.

ty
[Eee Pad Transformer Android Development] amaddux:
@bit_bucket: Any chance you could see if libSslVpnEngine.so was copied to your system partition somewhere? I see this file in /data/data/net.juniper.junos.pulse.android/lib and I'm wondering if part of the setup that occurs when it gets root the first time is copying this file somewhere.

It also occurs to me, that since its not attempting to get root to do the setup steps, it must store whatever file being used to determine the setup has been done somewhere that does not require root access.

UPDATE: An update for Junos Pulse appeared in the market for me today. Installing that update allowed Junos to ask for root and set itself up again. I wish I knew what it reset, so I could reset it for future OTA updates. Anyway, if your still having issues, try downloading the update from the market.
[Eee Pad Transformer Android Development] siapi:
Looks like the latest update for Junos is working on Revolver 3.5.2.
[Eee Pad Transformer Android Development] bit_bucket:
Sorry for my delay in responding. Yes I do have this file in place. As noted the latest version of Junos Pulse does fix the issue with it not asking for root on the latest ROM version. I can report that this works great with rooted 3.2.1 with tun.ko loaded into the kernel. Here's hoping that ICS stock kernel has tun.ko compiled in by default.
[Eee Pad Transformer Android Development] cmosvirii:
connection issue

Ok. First off let me start by saying im running a custom rom (prime 2.0.2) but I dont believe this issue to be a rom specific issue. I get connected to the VPN using VPNC but it disconnects fairly quickly. Just enough time to open an RDP window and login. Has anyone else experienced this issue? Ive tried multiple roms all with the same result.

I have my samsung vibrant that has cm7 and I run vpnc without issue on that device.

Open to any suggestions.

Thanks!!!
[Eee Pad Transformer Android Development] bit_bucket:
I have been hearing from others that the newest Junos Pulse client auto loads the tunneling kernel module. I am going to test this when I get home.
[Eee Pad Transformer Android Development] amaddux:
Yes I see this on my stock transformer. I dont need to load it manually,Juno's seems to load it for me.
[Eee Pad Transformer Android Development] Lokks:
Newbie here, I got junos installed ...what do I do next?
[Eee Pad Transformer Android Development] bit_bucket:
You need to make sure you have the tun.ko module in /system/lib/modules. tun.ko is available in threads on this site, and best way to push it out there is with adb. There are a few tutorials on this site on pushing files with adb. Of course to be able to play here your device needs to be rooted. No root=no tun.ko=no L3 VPN Connection.
[Eee Pad Transformer Android Development] tsachi:
I've been having problems getting the download. Was it taken down intentionally, or is it just a host/bandwidth problem? Is there any mirror available for this?
[Eee Pad Transformer Android Development] frdurso:
Worked perfectly here with OpenVPN....

Thanks!
[Eee Pad Transformer Android Development] QzyneC:
Hello. My hardware is Asus TF101G. I have root, VPN and VPN Connection Setting. After installing TUN.KO supposedly works, but every now and then shows conected (flashes in the lower right corner). Just like to connect and disconnect. How do I check what is happening? TUN.KO by insmod installs. Please help.
[Eee Pad Transformer Android Development] frdurso:
It happens when you have a wrong configuration in your .conf file, the best way to debug this is running openvpn thought terminal, type:

su (to become root)

insmod /system/lib/modules/tun.ko

openvpn --config /complete/path/to/your/conf/file

it will exit with errors, then you wil be able to see what erros and fix them...
[Eee Pad Transformer Android Development] waldofr:
Hi,

I got the same issue of connect loop, each time I flashed a new Prime version, and in my case nothing to do with config.

Running openvpn manually results in the same loop, ending with connection reset message !

As far as I remember there's a problem with ifconfig and route, I had to make some symbolic links with busybox in /system/xbin/bb/.... and perhaps push another tun.ko module (rather than Prime's embedded tun.ko module).

I found all this in a solution posted somewhere about tun.ko for the Galaxy S.

Sorry for the fuzzy information, I recently upgraded to Prime 2.1.1, got the connect loop again, but didn't have time yet to fix it.

I'll send links and scripts this week end as soon as I fix it (if no solution given in between).
[Eee Pad Transformer Android Development] waldofr:
Well I'm still in connection reset/connect loop,

but I got rid of route/ifconfig problem using a static linked openvpn apk found there on github (can't post links so google for openvpn github static)

As far as i understand the std version does not support busybox...
[Eee Pad Transformer Android Development] chrischdi:
The Download Page is down.

Has anyone a mirror?

Greetz
[Eee Pad Transformer Android Development] bit_bucket:
I haven't found any mirrors for his site so in desperation I cross compiled the tun module against a semi recent Transformer kernel from build epad-8.6.5.7. It's not 8.6.5.19 as I could not locate that kernel source on Asus's ftp site, but it is a lot more recent than the kernel the original tun.ko modules the OP has and is based on Android 3.2.1.

I have been running this for a little bit and it seems to work just fine with Junos Pulse. YMMV. For Junos Pulse I started with a rooted device and did the following

1) tar xvf tun.tar

2) adb remount

3) adb push tun.ko /system/lib/modules

4) adb shell chmod 644 /system/lib/modules/tun.ko

Junos Pulse auto loads the tun.ko module when needed and unloads when not. If you need to manually load it, just do an insmod and an lsmod to check it.

Enjoy. Hope this helps.
[Eee Pad Transformer Android Development] gimuccopteltd:
Download website still down any mirror please!
[Eee Pad Transformer Android Development] chrischdi:
Your tun.ko is working great!

Thanks.
[Eee Pad Transformer Android Development] nEUTRon666:
Anything new, related to the ICS release? This tun.ko isn't working anymore..
[Eee Pad Transformer Android Development] jtrosky:
+1 - Don't want to upgrade to ICS until I ccan get tun capabilities (for my Cisco VPN)....

Thanks!
[Eee Pad Transformer Android Development] slinker1:
cisco vpn working fine here with just vpnc widget apparently tun is baked in.
[Eee Pad Transformer Android Development] sciacca75:
baked in ics?
[Eee Pad Transformer Android Development] chrischdi:
Yes it is!
[Eee Pad Transformer Android Development] jtrosky:
I can now confirm! I was able to use VPNC Wideget to connect to our Cisco VPN without issues.

Thanks!
[Eee Pad Transformer Android Development] rajkumard:
Yes! It works

I can confirm it works with VPNC Widget in ICS. Even on my Sensation with ICS.
[Eee Pad Transformer Android Development] nEUTRon666:
Well...but Junos is NOT working :(
[Eee Pad Transformer Android Development] dipje:
looking at the kernel config from the stock ICS kernel (v9.2.1.11) the TUN module is _included_ in the kernel, so no special module needed anymore.
[Eee Pad Transformer Android Development] Entropyst:
But I'm not able to create a connection with cifsmanager, so no video streaming on local lan :\
[Eee Pad Transformer Android Development] dipje:
cifsmanager has to do with the cifs module, not with tun.

CIFS = support for Windows File Sharing

TUN = tunneling for VPN
[Eee Pad Transformer Android Development] jtrosky:
Dude - you do NOT need cifsmanager to stream videos over the LAN! Download and install ES File Manager (free) - one of it's hundred capabilities allows you to stream over the LAN....
[Eee Pad Transformer Android Development] dgcruzing:
+ 1 on this.. Working on my wireless ASUS RT-N56U USB LAN share
[Eee Pad Transformer Android Development] nEUTRon666:
So anyone got Junos working with it ?
[Eee Pad Transformer Android Development] skywayex1403:
I am having a similar issue with Pulse and my Xoom running ICS. I can get pulse to connect to the VPN server but I am unable to ping anything. Pulse also shows 0 bytes sent/received under the status. Any ideas?
[Eee Pad Transformer Android Development] nEUTRon666:
Same here..i believe, if support is in the kernel now, we need a Pulse update, so pulse uses the built-in kernel driver. But maybe there's another solution ?!
[Eee Pad Transformer Android Development] rjvdhoek:
I have the same problem on my TF with Revolver4 r1.3.1. The connection is fine, but no datatransport.
[Eee Pad Transformer Android Development] dgcruzing:
I think this is an old Tun.ko if you are using it..

as it doesn't look like it has been cross complied for some time..

Here is a list of Tun's and a tun-repository thanks to the boys over at DroidVPN.

http://droidvpn.com/tun-repository.php

Their installer

https://market.android.com/details?id=com.aed.tun.installer

Forum for Droidvpn...

http://www.pinoyden.com.ph/index.php?topic=157777.0
[Eee Pad Transformer Android Development] jtrosky:
Isn't TUN now build into ICS? Why would this even be needed at all for ICS?
[Eee Pad Transformer Android Development] dipje:
We already have all the modules needed for cifs and tun is built-in.

I'm pretty pretty sure Pulse has an ICS issue.

Until someone comes with proof of a running and working Pulse on ANY ics device, I'd say you need to bug the developer that there not ICS compatible.
[Eee Pad Transformer Android Development] nEUTRon666:
The new pulse client update is out. Works flawlessly again on Transformer, not even needing root to have full L3 VPN Access. This really rocks!
[Eee Pad Transformer Android Development] rjvdhoek:
Is it working on HC or ICS on your TF? Which rom are you using?
[Eee Pad Transformer Android Development] amaddux:
It works with ICS only without root...because Google added support to ICS. Thanks Juniper and Google for getting this right.
[Eee Pad Transformer Android Development] nEUTRon666:
Correct, ICS ...it worked on HC also, but using an external tun.ko driver. In ICS everything is built into the kernel and you don't need root anymore, so one step further in using android as business devices. I'm using a stock rooted ROM btw...
[Eee Pad Transformer Android Development] rjvdhoek:
I was on Transformer rom ICS 4.03 version 1.3.1, and Junos did not work on my VPN network. Today I reverted to rooted stock .17 and everything works fine. So there must be some incompatibility in GnuFabios ROM.
[Eee Pad Transformer Android Development] IPvFletch:
Woah what's all this "Junos Pulse" talk all of the sudden...??.. :D

FYI, Junos Pulse is being "adapted" right now to support the new VPN APIs found in Android 4.x. This will enable you to support the VPN natively on any Android 4.x device, regardless of rooting. No need for putting the tun.ko on the SDCard or anything like that, Android 4.x has the necessary APIs all in there already.

It looks like SOME of you have got it "working" for the most part, using the legacy app/model, whereby you manually get "tun.ko" to load (insmod or else let Junos Pulse find/load it), and some of you are having luck. That has been my experience too with this legacy method, and it is obviously not that portable to every device.

Edit: Junos Pulse 3.2 is released in the Google Play app store. It will get your L3 VPN on any Android 4.x device, no root or any tweaking needed, you don't even need the tun.ko anymore.. Download it here or from your phone: https://play.google.com/store/apps/details?id=net.juniper.junos.pulse.android&hl=en

Oh, and I must say, it is QUITE REFRESHING, to see local forum guys using our app!! :D
[Xoom Android Development] sangreal06:
I've been slowly working on fixing a number of issues with apktool which will hopefully help some of you guys out with your theming/etc. As a first release, this is unlikely to be perfect and I have not really tested this latest build so please post any issues you have.

This is based on apktool 1.3.2 since that is the version with the source released (thanks Brut.all) which means there are some issues that weren't present in apktool 1.3.1. I'm far from an expert in reverse engineering and I haven't worked on any OSS projects before so this is really only meant to be a holdover until Brut.all picks the project back up. I believe he is waiting for the honeycomb source, but don't quote me on that. The name for this release is a bit of a misnomer since most of the issues were introduced with the Gingerbread SDK.

Anyways, onto the issues (hopefully) resolved:

- X-Large screen support (thanks fboldog)

- Multiple substitution strings

- Multiple substitution plurals

- Escape character issues introduced in apktool 1.3.2

This is meant for people already familiar with using apktool. See the apktool site for installation instructions

Update 5/13 - v1.1

-Renamed

-Fixed empty string error

-Included aapt from 3.1 sdk
[Xoom Android Development] jim_panse:
This is great. Thank you!
[Xoom Android Development] Bazar617:
Awesome! Not sure version I've been using, bignadad hooked me up a while ago for honeycomb. I'll be testing this one tomorrow when I get back to my comp.great work Sangreal!
[Xoom Android Development] sangreal06:
I've worked with bignadad on testing some earlier builds so it could be that. I also know bigrushdog has been working on his own fixes so it could be that too :). Not sure about the status on that front

If it is the one I sent bignadad you should definitely upgrade to this one, as I've fixed a number of issues
[Xoom Android Development] Bazar617:
I definitely will upgrade... the one I have works great for decompiling, couldn't use a recomiled apk tho. I'll report back tomorrow with how it works for me.

Xooming with Tapatalk
[Xoom Android Development] Bazar617:
Getting verrrry near 100%. Decompiled perfectly (it was weird typing honeytool instead of apktool in cmd lol), compiled fine, I can now see the /xml folders in the recompiled apk, but still can't see the /values folders. One step closer tho.

I say that because there's some .xml's in the Values folders I want to edit and have to recompile. If theres anything I can do to help let me know (I'm not much of a programmer tho)

Thanks again!
[Xoom Android Development] sangreal06:
the /values folder gets compiled into resources.arsc so you won't see it in the recompiled apk

As for the name, that would probably drive me nuts. I keep it as apktool locally, I just renamed it for distribution due to license :)

That does remind me though -- it should work with tools like APK Manager if you rename the jar to apktool.jar and replace the one that comes with the tool.
[Xoom Android Development] bigrushdog:
Sweet. The last build you shot me was real smooth. I'm gonna try this one out today. I've been sidetracked with a few other projects, so I haven't had much opportunity to focus here. Besides more and more HC source keeps dropping all the time. Soon we will have a solid smali which opens countless doors. Awesome job bro!
[Xoom Android Development] Bazar617:
I was not aware of that. I'd say it's right at 100% then! But being in this business, you're probably thinking there's always room for improvement, I know I do lol.

So in theory I'd be able to edit something in the Values folder and use the .arsc file in the flashed apk and it'd show those changes? Just weary of taking steps no one else has (or is that how you did the UAstring mod?)
[Xoom Android Development] sangreal06:
Yes, that is the theory. I did not use this tool though. I used fboldog's tool and manually fixed all of the compilation errors.

jim_panse was able to get it working using this tool though. See his thread here: http://xdaforums.com/showthread.php?t=1064818
[Xoom Android Development] Bazar617:
Didn't think of renaming the .jar, understandable about the licenses tho.

Looks like I've got a bit of trial and error in my path, thanks for the heads up! And thanks for the work on all this, we all appreciate it!
[Xoom Android Development] willverduzco:
Wonderful work here!
[Xoom Android Development] nbeebe24:
Thank you very much for that
[Xoom Android Development] nbeebe24:
I have a problem, I edited the Stat_Sys_batt XML, recompiled, and pushed the framework back to my xoom but all it does is boot loop. Any suggestions?
[Xoom Android Development] sangreal06:
That is probably a signature issue. Try copying the compiled xml into your original framework-res.apk and push that.
[Xoom Android Development] nbeebe24:
I tried that. The battery completely disappears when I do that. When I recompile the apk the first step says 'W: Could not find sources' could that be the issue?
[Xoom Android Development] Bazar617:
What are you editing?

I just did a little bit in the framework, thanks for the heads up Sangreal!

*Shutting Down
[Xoom Android Development] nbeebe24:
I'm editing the battery and charging animations. I'm trying to add the honeycomb looking circle battery with 1 percent increments
[Xoom Android Development] Bazar617:
I tried this a while ago and it didn't bootloop, it just didn't display the battery (I tried doing tenths just to test, because they have it set up to do like 15, 28, 43, 57, etc, don't know what they were smoking then...)

Are you in drawable/stat_sys_battery.xml? I'm not sure if editing just that file will enable it to work in values other than the ones in there (ie, going to your 1% increments), because I'm pretty sure it's being told to only look for those battery increments and those images.
[Xoom Android Development] Bazar617:
And Sangreal, not sure if this is completely ready for APKmanager yet. If you edit in the Values/ folder, when compiling you have to delete the specific edited xmls + .arsc files mid way thru, which it doesn't show you in the keep folder.

however, I was able to make xml edits inside the Values/ folder in APKtool using CMD, compiled correctly (after a few tries of wanting to add an apostrophe, I think now needs to be \' ), and just copied the resources.arsc file in to my themed framework or systemui and Viola! I think I tried using the "unsigned" version straight out of being compiled and the Xoom definitely doesn't like it.
[Xoom Android Development] nbeebe24:
I got it to work on my nexus s by adding the values into the stat_sys_battery.XML and the android.XML in the XML folder. I just want to get this to work because I don't want to have to dl a widget just to see accurate percentages
[Xoom Android Development] Bazar617:
Found where their ID'd... Don't ask me what to do tho lol, cuz i have no clue if it's as easy as assigning some random id# to it or if you gotta do more than that. It may be more along the lines of romming than theming

<public type="drawable" name="stat_sys_battery_0" id="0x0108049c" />
<public type="drawable" name="stat_sys_battery_100" id="0x0108049e" />
<public type="drawable" name="stat_sys_battery_15" id="0x0108049f" />
<public type="drawable" name="stat_sys_battery_28" id="0x010804a1" />
<public type="drawable" name="stat_sys_battery_43" id="0x010804a3" />
<public type="drawable" name="stat_sys_battery_57" id="0x010804a4" />
<public type="drawable" name="stat_sys_battery_71" id="0x010804a6" />
<public type="drawable" name="stat_sys_battery_85" id="0x010804a8" />
<public type="drawable" name="stat_sys_battery_charge_anim0" id="0x010804aa" />
<public type="drawable" name="stat_sys_battery_charge_anim100" id="0x010804ac" />
<public type="drawable" name="stat_sys_battery_charge_anim15" id="0x010804ad" />
<public type="drawable" name="stat_sys_battery_charge_anim28" id="0x010804af" />
<public type="drawable" name="stat_sys_battery_charge_anim43" id="0x010804b2" />
<public type="drawable" name="stat_sys_battery_charge_anim57" id="0x010804b4" />
<public type="drawable" name="stat_sys_battery_charge_anim71" id="0x010804b5" />
<public type="drawable" name="stat_sys_battery_charge_anim85" id="0x010804b6" />
<public type="drawable" name="stat_sys_battery_unknown" id="0x010804b7" />

lines 4470 - 4486 in framework-res.apk/res/values/public.xml
[Xoom Android Development] sangreal06:
I've never used APK Manager so I don't really know. I just figured it might work since it is mostly an apktool wrapper.

As for the battery thing, I'll try and look into it after work. 'W: Could not find sources' doesn't matter. The sources are in framework.odex

Nobody puts baby in a corner
[Xoom Android Development] nbeebe24:
Thanks for that extra info. Unfortunately I have no idea what to do with that either. Its difficult to try to figure this stuff out but I will persist until I get it working. I don't get why manufacturers don't add batteries with percentages from the begininning... oh well
[Xoom Android Development] sangreal06:
Can you post your modified apk, or detail the changes you're trying to make?