Giter Site home page Giter Site logo

android-remote-stacktrace's People

Contributors

yangjiheng avatar

android-remote-stacktrace's Issues

server.php is kinda insecure

Hi guys, you might want to do some basic checks/cleaning on your POST vars
in the server.php file. As it stands right now, an attacker could write an
arbitrary payload to any path that the php/server process has write access
to. This is somewhat mitigated by the limited file extensions, I guess, but
it still seems like a pretty bad idea. Here's a really basic cleaning
function that could be run on the package_name and package_version fields:

function clean( $input, $max_length=255 ) {
    $input = trim($input) ;
    $input = substr($input, 0, $max_length) ;
    $input = preg_replace("/[^a-zA-Z0-9_-]/", "_", $input) ;
    return $input ;
}

More could be done, and it might be smart to protect the stacktrace field
as well, but it's a starting point. Modified file attached.

Original issue reported on code.google.com by [email protected] on 17 Jan 2010 at 7:23

Attachments:

Ask the user before stacktrace submission

It would be great to have an easy way to ask the user if she wants their
stacktrace uploaded.

One option would be to separate ExceptionHandler.register() into two calls,
with the first one reporting if crash logs should be submitted, and the
second one actually performing the submission. However, it would be even
greater to have an automatic interactive dialog window displaying the URL
and the crashlog details.

Original issue reported on code.google.com by [email protected] on 21 Jan 2010 at 11:18

Copyright notice not included in source

Would you put the copyright notice for this program along with its
licensing terms (MIT) in each source file? The older versions don't even
have any attribution in them.

Original issue reported on code.google.com by [email protected] on 20 Jul 2009 at 4:09

broken link to simple PHP script

On the project's home page, the link to the simple PHP script is broken.

Should be:

http://code.google.com/p/android-remote-stacktrace/source/browse/server/collect/
server.php

Original issue reported on code.google.com by [email protected] on 9 Jan 2010 at 9:28

AndroidManifest.xml

What steps will reproduce the problem?
1. Clone
2. Compile

AndroidManifest.xml is missing

Original issue reported on code.google.com by [email protected] on 7 Feb 2012 at 7:38

Build.VERSION.SDK_INT

It would be fine if I could see the Build.VERSION.SDK_INT value. Without this 
value I don't know with which emulator I should test my app.

Original issue reported on code.google.com by [email protected] on 19 Dec 2010 at 1:10

Sending logs via HTTPS

Apache implementation of DefaultHttpClient that is used in your library by 
default doesn't work with HTTPS protocol. It's throws "javax.net.ssl 
SSLException: Not trusted server certificate" exception. For resolving this 
problem we need to configure http client correctly or disable certificate 
checking and allow connecting to all servers. Unfortunatly, the current API of 
the library doesn't allow us to do this, because we havent acces to HttpClient.

Original issue reported on code.google.com by [email protected] on 20 Dec 2011 at 10:59

Thread throws IllegalThreadStateException

What steps will reproduce the problem?
Tough to reproduce consistently, but here's my best description:
1. Open/close the keyboard while an operation is running, perhaps while
it's already transmitting another stacktrace?

What is the expected output? What do you see instead?
The application crashes completely. Here's a stacktrace that comes back
from `adb logcat` :
D/UNHANDLED_EXCEPTION( 2719): java.lang.RuntimeException: Unable to start
activity ComponentInfo{MY_ACTIVITY_REMOVED}:
java.lang.IllegalThreadStateException: Group already destroyed
D/UNHANDLED_EXCEPTION( 2719):   at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2141)
D/UNHANDLED_EXCEPTION( 2719):   at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2157)
D/UNHANDLED_EXCEPTION( 2719):   at
android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3087)
D/UNHANDLED_EXCEPTION( 2719):   at
android.app.ActivityThread.access$1900(ActivityThread.java:112)
D/UNHANDLED_EXCEPTION( 2719):   at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1585)
D/UNHANDLED_EXCEPTION( 2719):   at
android.os.Handler.dispatchMessage(Handler.java:88)
D/UNHANDLED_EXCEPTION( 2719):   at android.os.Looper.loop(Looper.java:123)
D/UNHANDLED_EXCEPTION( 2719):   at
android.app.ActivityThread.main(ActivityThread.java:3739)
D/UNHANDLED_EXCEPTION( 2719):   at
java.lang.reflect.Method.invokeNative(Native Method)
D/UNHANDLED_EXCEPTION( 2719):   at
java.lang.reflect.Method.invoke(Method.java:515)
D/UNHANDLED_EXCEPTION( 2719):   at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
D/UNHANDLED_EXCEPTION( 2719):   at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
D/UNHANDLED_EXCEPTION( 2719):   at dalvik.system.NativeStart.main(Native Method)
D/UNHANDLED_EXCEPTION( 2719): Caused by:
java.lang.IllegalThreadStateException: Group already destroyed
D/UNHANDLED_EXCEPTION( 2719):   at java.lang.Thread.create(Thread.java:429)
D/UNHANDLED_EXCEPTION( 2719):   at java.lang.Thread.<init>(Thread.java:192)
D/UNHANDLED_EXCEPTION( 2719):   at
com.nullwire.trace.ExceptionHandler$1.<init>(ExceptionHandler.java:61)
D/UNHANDLED_EXCEPTION( 2719):   at
com.nullwire.trace.ExceptionHandler.register(ExceptionHandler.java:61)
D/UNHANDLED_EXCEPTION( 2719):   at
com.nullwire.trace.ExceptionHandler.register(ExceptionHandler.java:85)
D/UNHANDLED_EXCEPTION( 2719):   at
MY_ACTIVITY_REMOVED.onCreate(MY_ACTIVITY_JAVA_FILE:59)
D/UNHANDLED_EXCEPTION( 2719):   at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122)
D/UNHANDLED_EXCEPTION( 2719):   at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2104)
D/UNHANDLED_EXCEPTION( 2719):   ... 12 more

Original issue reported on code.google.com by evancharlton on 22 Mar 2009 at 3:57

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.