Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Paste
P15
Libre BusTO Android Crash Analyzer
Active
Public
Actions
Authored by
valerio.bozzolan
on Feb 15 2021, 21:24.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Libre BusTO
Subscribers
None
<?php
# Android Crash Dump exporter for Phabricator
# Copyright (C) 2021 Valerio Bozzolan
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
/**
* Quick and dirty Android Crash Dump analyzer
*
* https://gitpull.it/P15
*/
// base of your Phabricator
define
(
'BASE_URI'
,
'https://gitpull.it/maniphest/task/edit/form/3/?'
);
// received data
$data_raw
=
$_POST
[
'data'
]
??
null
;
$data_clean_text
=
null
;
$task_args
=
null
;
if
(
$data_raw
)
{
$data
=
@
json_decode
(
$data_raw
);
if
(
$data
)
{
$data_raw
=
json_encode
(
$data
,
JSON_PRETTY_PRINT
);
// some useful informations
$data_clean
=
[
'version code'
=>
$data
->
APP_VERSION_CODE
??
null
,
'version name'
=>
$data
->
APP_VERSION_NAME
??
null
,
'android version'
=>
$data
->
ANDROID_VERSION
??
null
,
'phone'
=>
$data
->
PHONE_MODEL
??
null
,
'brand'
=>
$data
->
BRAND
??
null
,
'stack'
=>
$data
->
STACK_TRACE
??
null
,
];
// build an human phrase
$data_clean_parts
=
[];
foreach
(
$data_clean
as
$k
=>
$v
)
{
$data_clean_parts
[]
=
"$k:
\n
$v"
;
}
$data_clean_text
=
implode
(
"
\n\n
"
,
$data_clean_parts
);
// build query string
$task_args
=
[
'title'
=>
"Fix crash when..."
,
'description'
=>
implode
(
"
\n
"
,
[
"Dear Developers,"
,
"Please triage this crash:"
,
''
,
'```'
,
''
,
$data_clean_text
,
"
\n
"
,
'```'
,
''
,
''
,
"Thank you! :)"
,
''
,
''
,
"> Generated with https://lab.reyboz.it/libre-busto/crash-report/ (P15)"
,
]
),
];
}
else
{
$data_raw
=
'invalid'
;
}
}
?>
<html>
<head>
<title>Libre BusTO - crash report dump</title>
</head>
<body>
<h1>Libre BusTO - crash report dump</h1>
<form method="post">
<?php
if
(
$data_clean_text
):
?>
<p>Info:</p>
<textarea readonly>
<?
=
htmlentities
(
$data_clean_text
)
?>
</textarea>
<?php
if
(
$task_args
):
?>
<br />
<a href="
<?
=
htmlspecialchars
(
BASE_URI
.
http_build_query
(
$task_args
)
)
?>
" target="_blank">Create Task</a>
<?php
endif
?>
</p>
<?php
endif
?>
<p>Paste here your JSON crash report:</p>
<p><textarea name="data">
<?
=
htmlentities
(
$data_raw
)
?>
</textarea></p>
<p><button type="submit">OK</button></p>
</form>
<hr />
<p><a href="https://gitpull.it/tag/libre_busto/">Workboard</a></p>
<hr />
<p><a href="https://gitpull.it/P15" target="_blank">Source code and license</a></p>
</body>
</html>
Event Timeline
valerio.bozzolan
created this paste.
Feb 15 2021, 21:24
2021-02-15 21:24:12 (UTC+1)
valerio.bozzolan
edited the content of this paste.
(Show Details)
valerio.bozzolan
edited the content of this paste.
(Show Details)
Feb 15 2021, 21:28
2021-02-15 21:28:16 (UTC+1)
valerio.bozzolan
edited the content of this paste.
(Show Details)
valerio.bozzolan
mentioned this in
T645: Simplify extraction of JSON debug data received via mail
.
valerio.bozzolan
mentioned this in
T820: Fix NullPointerException caused by FloatingActionButton.show() in ResultListFragment.java:214 on version 1.14.1
.
Apr 27 2021, 21:54
2021-04-27 21:54:17 (UTC+2)
valerio.bozzolan
mentioned this in
T826: Fix crash caused by RemoteServiceException
.
May 16 2021, 10:04
2021-05-16 10:04:34 (UTC+2)
valerio.bozzolan
edited the content of this paste.
(Show Details)
May 17 2021, 11:13
2021-05-17 11:13:57 (UTC+2)
valerio.bozzolan
mentioned this in
T827: Fix crash caused by NullPointerException in FloatingActionButton
.
May 17 2021, 11:19
2021-05-17 11:19:22 (UTC+2)
valerio.bozzolan
mentioned this in
T852: Fix NULL pointer in ActivityMap on Android 10 caused by File.getAbsolutePath() in version 1.14.1
.
Jun 17 2021, 07:04
2021-06-17 07:04:45 (UTC+2)
valerio.bozzolan
mentioned this in
T853: Fix "Can not perform this action after onSaveInstanceState" on Android 10 (ActivityMain.java:678) on version 1.14.1
.
valerio.bozzolan
mentioned this in
T889: Revoking location permission at system setting crashes app on version 1.14
.
Jul 6 2021, 09:08
2021-07-06 09:08:51 (UTC+2)
valerio.bozzolan
mentioned this in
T890: Fix crash caused by IllegalStateException: FragmentManager has been destroyed (AsyncDataDownload.java:212)
.
Jul 8 2021, 21:45
2021-07-08 21:45:37 (UTC+2)
valerio.bozzolan
mentioned this in
T895: Fix crash: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag on version 1.15.3
.
Jul 20 2021, 09:57
2021-07-20 09:57:01 (UTC+2)
valerio.bozzolan
mentioned this in
T933: Fix NULL pointer in ActivityPrincipal.java:375 on version 1.15.4 on Android 6
.
Aug 25 2021, 10:56
2021-08-25 10:56:42 (UTC+2)
valerio.bozzolan
mentioned this in
T937: Fix NULL pointer on ArrivalsFragment.showArrivalsSources(ArrivalsFragment.java:281) version 1.14.1
.
Sep 10 2021, 12:28
2021-09-10 12:28:44 (UTC+2)
valerio.bozzolan
mentioned this in
T941: Fix crash with "Fragment already added" in version 1.15.4 on Android 10
.
Sep 15 2021, 17:43
2021-09-15 17:43:50 (UTC+2)
valerio.bozzolan
mentioned this in
T942: Fix crash caused by IllegalStateException on MainScreenFragment.java:503 version 1.15.4 on Android 11
.
Sep 18 2021, 10:30
2021-09-18 10:30:44 (UTC+2)
valerio.bozzolan
mentioned this in
T993: Fix crash on ActivityPrincipal.java:375 version 1.15.4
.
Oct 31 2021, 12:11
2021-10-31 12:11:54 (UTC+1)
valerio.bozzolan
mentioned this in
T1045: Fix crash "Fragment already added" when re-opening the app in some circumstances in app version 1.16.2
.
Jan 30 2022, 16:26
2022-01-30 16:26:57 (UTC+1)
valerio.bozzolan
mentioned this in
T1054: Fix crash caused by method 'int java.util.List.size()' on a null object reference on 1.16.2
.
Feb 9 2022, 03:24
2022-02-09 03:24:03 (UTC+1)
valerio.bozzolan
mentioned this in
T1060: Fix crash on startup: "Couldn't create icon" on Android 4.4.2 app version 1.16.2
.
Feb 14 2022, 12:16
2022-02-14 12:16:27 (UTC+1)
valerio.bozzolan
mentioned this in
T1061: Fix crash caused by Cursor.getColumnIndex on a null object affecting Android 12 on version 1.16.2
.
Feb 14 2022, 14:06
2022-02-14 14:06:36 (UTC+1)
valerio.bozzolan
mentioned this in
T1062: Fix NULL pointer in FragmentHelper.java:218 caused by Fetcher$Result.ordinal() on version 1.16.2
.
Feb 16 2022, 11:01
2022-02-16 11:01:02 (UTC+1)
valerio.bozzolan
mentioned this in
T1063: Fix NULL pointer in UserDB.java:253 caused by Cursor.getColumnIndex() in version 1.16.2
.
Feb 16 2022, 11:10
2022-02-16 11:10:46 (UTC+1)
valerio.bozzolan
mentioned this in
T1064: Fix crash caused by "provider doesn't exist: gps" in ActivityThread.java:3630 on version 1.16.2
.
Feb 21 2022, 16:20
2022-02-21 16:20:41 (UTC+1)
valerio.bozzolan
mentioned this in
T1066: Fix crash caused by NULL pointer - Cursor.getCount() in NearbyStopsFragment.java:334 - on version 1.15.4
.
Feb 24 2022, 09:24
2022-02-24 09:24:39 (UTC+1)
valerio.bozzolan
mentioned this in
T1077: Fix crash caused by "Fragment already adde" on version 1.16.3
.
Mar 31 2022, 13:09
2022-03-31 13:09:00 (UTC+2)
valerio.bozzolan
mentioned this in
T1080: Fix crash caused by "Couldn't create icon: StatusBarIcon" on version 1.16.3
.
Apr 21 2022, 21:24
2022-04-21 21:24:24 (UTC+2)
Log In to Comment