Re: Error Implementing ACRA / ACRA-INSTALLATION (Permission denied)

148 views
Skip to first unread message
Message has been deleted

William Ferguson

unread,
Jan 4, 2013, 6:28:54 PM1/4/13
to acra-d...@googlegroups.com
As the log message says "Application files directory does not exist! The application may not be installed correctly. Please try reinstalling.".
I'd try uninstalling and then reinstalling the app.

William

On Saturday, January 5, 2013 1:53:27 AM UTC+10, Josue Hernandez wrote:

Hi.. I have a question with Implementing ACRA.. I try implementing acra in my android app but when run the app shows me this message error.

LogCat:
E/ACRA (13090): ACRA caught a IllegalStateException exception for com.divux.android.educatablet.timetable. Building report.
D/ACRA (13090): Retrieve application default SharedPreferences.
I/NotificationService( 580): enqueueToast pkg=com.divux.android.educatablet.timetable callback=android.app.ITransientNotification$Stub$Proxy@40848ec0 duration=1
D/NotificationService( 580): Show pkg=com.divux.android.educatablet.timetable callback=android.app.ITransientNotification$Stub$Proxy@40848ec0
V/WindowManager( 580): Resizing window Window{4088a9d0 Toast paused=false} to Rect(136, 663 - 464, 728)
V/WindowManager( 580): Reporting new frame to Window{4088a9d0 Toast paused=false}: Rect(136, 663 - 464, 728)
V/WindowManager( 580): finishDrawingLocked: Surface(name=Toast, identity=226)
I/WindowManager( 580): SURFACE 4088a9d0: SHOW (performShowLocked) / Toast
I/ACRA (13090): READ_LOGS granted! ACRA can include LogCat and DropBox data.
D/ACRA (13090): Retrieving logcat output...
D/dalvikvm(13090): GC_CONCURRENT freed 485K, 49% free 3301K/6407K, external 1461K/1961K, paused 3ms+16ms
D/ACRA (13090): Retrieving logcat output...
D/ACRA (13090): Retrieving logcat output...
D/dalvikvm(13090): GC_CONCURRENT freed 757K, 52% free 3258K/6663K, external 1461K/1961K, paused 2ms+2ms
W/ApplicationContext(13090): Unable to create files directory
E/ACRA (13090): Error while retrieving crash data
E/ACRA (13090): java.lang.RuntimeException: java.io.FileNotFoundException: /ACRA-INSTALLATION (Permission denied)
E/ACRA (13090): at org.acra.util.Installation.id(Installation.java:38)
E/ACRA (13090): at org.acra.ErrorReporter.retrieveCrashData(ErrorReporter.java:464)
E/ACRA (13090): at org.acra.ErrorReporter.handleException(ErrorReporter.java:722)
E/ACRA (13090): at org.acra.ErrorReporter.handleException(ErrorReporter.java:773)
E/ACRA (13090): at org.acra.ErrorReporter.uncaughtException(ErrorReporter.java:622)
E/ACRA (13090): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
E/ACRA (13090): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
E/ACRA (13090): at dalvik.system.NativeStart.main(Native Method)
E/ACRA (13090): Caused by: java.io.FileNotFoundException: /ACRA-INSTALLATION (Permission denied)
E/ACRA (13090): at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
E/ACRA (13090): at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
E/ACRA (13090): at java.io.FileOutputStream.(FileOutputStream.java:94)
E/ACRA (13090): at java.io.FileOutputStream.(FileOutputStream.java:66)
E/ACRA (13090): at org.acra.util.Installation.writeInstallationFile(Installation.java:56)
E/ACRA (13090): at org.acra.util.Installation.id(Installation.java:35)
E/ACRA (13090): ... 7 more
D/ACRA (13090): Writing crash report file.
W/ApplicationContext(13090): Unable to create files directory
E/ACRA (13090): An error occured while writing the report file...
E/ACRA (13090): java.lang.NullPointerException
E/ACRA (13090): at android.app.ContextImpl.openFileOutput(ContextImpl.java:417)
E/ACRA (13090): at android.content.ContextWrapper.openFileOutput(ContextWrapper.java:158)
E/ACRA (13090): at org.acra.ErrorReporter.saveCrashReportFile(ErrorReporter.java:889)
E/ACRA (13090): at org.acra.ErrorReporter.handleException(ErrorReporter.java:740)
E/ACRA (13090): at org.acra.ErrorReporter.handleException(ErrorReporter.java:773)
E/ACRA (13090): at org.acra.ErrorReporter.uncaughtException(ErrorReporter.java:622)
E/ACRA (13090): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
E/ACRA (13090): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
E/ACRA (13090): at dalvik.system.NativeStart.main(Native Method)
D/ACRA (13090): Mark all pending reports as approved.
W/ApplicationContext(13090): Unable to create files directory
W/ACRA (13090): Application files directory does not exist! The application may not be installed correctly. Please try reinstalling.
V/ACRA (13090): About to start ReportSenderWorker from #handleException
D/ACRA (13090): Add user comment to null
D/ACRA (13090): #checkAndSendReports - start
W/ApplicationContext(13090): Unable to create files directory
W/ACRA (13090): Application files directory does not exist! The application may not be installed correctly. Please try reinstalling.
D/ACRA (13090): #checkAndSendReports - finish
D/dalvikvm( 656): GC_EXPLICIT freed 13K, 51% free 2802K/5703K, external 2763K/3415K, paused 23ms

Any idea... I hope we can help me.... Thanks.
Best Regards. 
Josue Hernandez

Message has been deleted

Kevin Gaudin

unread,
Jan 5, 2013, 3:31:26 PM1/5/13
to acra-d...@googlegroups.com

What's your device?

Can you send us your application class code?

Le 5 janv. 2013 21:12, "Josue Hernandez" <jgh...@gmail.com> a écrit :
Hi.. Thanks... I try but doesn't work.
any other idea...??? 

Thanks for all.


--------------
Josué H.
Tlf. +584242126557
WebSite jghg02.16mb.com
      

Message has been deleted
Message has been deleted

Kevin Gaudin

unread,
Jan 7, 2013, 9:30:21 AM1/7/13
to acra-d...@googlegroups.com
Hi,

I'm afraid there could be a bug in your device android system. It looks like your application can't create its own application folder. This is a basic android framework task... Do you have the latest firmware update for your device ?

Kevin

On Mon, Jan 7, 2013 at 3:15 PM, Josue Hernandez <jgh...@gmail.com> wrote:
Hi... 
In LogCat show that message:
Couldn't create directory for SharedPreferences file /data/data/com.divux.android.educatablet.timetable/shared_prefs/timetable_preferences.xml

Any idea, for this.
Thanks for all.


--------------
Josué H.
Tlf. +584242126557
WebSite jghg02.16mb.com
      



On Mon, Jan 7, 2013 at 9:03 AM, Josue Hernandez <jgh...@gmail.com> wrote:
Hi... 
My device is a Pandigital.
OS Version: 2.3.1

Class Code:
import org.acra.*;
import org.acra.annotation.*;

import com.divux.android.educatablet.timetable.R;

import android.app.Application;
import android.util.Log;

@ReportsCrashes(formKey = "0AkLbs9GI7e2cdDZ0eGxtcklxWVlQaHY2QWVXYXAyVHc",
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.crash)
public class CrashReport extends Application{
private static final String LOG_TAG = CrashReport.class.getName();
@Override
public void onCreate(){
super.onCreate();
Log.v(LOG_TAG,"Execute");
ACRA.init(this);
}
}


I hope we can help me.!
Thanks.
Message has been deleted

Martin Hunke

unread,
Jan 7, 2013, 9:51:23 AM1/7/13
to acra-d...@googlegroups.com
Hi,

I used to have a problem with this with my app on some devices. I am not familiar with your device so this may be a different issue. If the problem only appeared after having uninstalled the app, this could very well be the problem you face. If the permissions problem also happens on devices that you haven't installed the app before, then it is something different and you can ignore my email (you test by creating a new emulator).

My problem came down to a bug in the firmware of some devices. Android gives each app a unique user id so that only that app can write in its app-specific folder. When uninstalling an app, the faulty firmware did not erase the application folders. When the app was reinstalled, Android gave it a new user id but then the app wasn't allowed to write in its own data directory because the new ID didn't match the old one.

You can check the permissions of the app folder and check the user ID off the app itself. If they don't match, then that's your problem.

Best regards,
Martin Hunke
www.mobitobi.com
GentleAlarm

Kevin Gaudin

unread,
Jan 9, 2013, 10:15:11 AM1/9/13
to acra-d...@googlegroups.com

Martin Hunke

unread,
Jan 9, 2013, 10:24:22 AM1/9/13
to acra-d...@googlegroups.com
That's exactly the horrible issue I was describing. The problem is that you can only fix this on rooted devices. Non-rooted devices would require a firmware reset to get rid of the app directory. I am not kidding...
Reply all
Reply to author
Forward
0 new messages