Giter VIP home page Giter VIP logo

Comments (5)

cernekee avatar cernekee commented on July 19, 2024

The issue I saw on the early 'L' builds is that the non-PIE curl binary is rejected by the new linker version:

https://code.google.com/p/android-developer-preview/issues/detail?id=888

Current plan is to bundle the run_pie binary in a future release.

from ics-openconnect.

widewing avatar widewing commented on July 19, 2024

Actually the PIE issue is another issue. I replaced it with pie enabled curl and yes it works on l preview. But this not work anymore after I upgrade 5.0.0 release.
I tested it with a simple script: just echo a test string into sdcard, nothing happened.

from ics-openconnect.

cernekee avatar cernekee commented on July 19, 2024

Actually the PIE issue is another issue. I replaced it with pie enabled curl and yes it works on l preview.

I have added a workaround for this. Could you try this apk (or build the -next branch)?

https://dl.dropboxusercontent.com/u/169702767/openconnect/openconnect-1.10-beta1.apk

But this not work anymore after I upgrade 5.0.0 release.

FWIW I tested the above apk on 5.0 (Hammerhead LRX210), on ICS 4.0 in the emulator (ARM), and on a Nexus 7 (2012) running 4.2.2. I think the curl problem has been resolved, at least.

I tested it with a simple script: just echo a test string into sdcard, nothing happened.

Apps might need to go through a special API to write to /sdcard on newer Android versions, or your access may be confined to a specific directory. I haven't actually used this but it is documented here.

A more reliable test case might involve writing to /data/data/app.openconnect/files. I've also had some success in the past killing the app, then using strace -o /data/local/tmp/log -fF -p PID (as root) to attach to zygote and watch what happens when the app starts. The downside is that this produces a lot of data and slows everything down. You'll want to search for the execve() calls to see what happens when your script runs.

from ics-openconnect.

widewing avatar widewing commented on July 19, 2024

This build works like a charm! I must have got something wrong with my tests

from ics-openconnect.

cernekee avatar cernekee commented on July 19, 2024

Thanks for the feedback. I'll make a new release soon.

I replaced it with pie enabled curl

One thing that occurred to me is that you would need to build the new curl into a fresh APK (and sign it with your own key), because AssetExtractor will try to overwrite any local copies under /data/data/app.openconnect if the CRC doesn't match the bundled version.

Or you could just use a different name like curl-pie, and call it using that name from your script...

from ics-openconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.