baku-toolkit/lib/src/main/java/io/v/baku/toolkit/debug/DebugUtils.java
/**
     * Clears all data for this app. This will force the application to close. It would be nice to
     * be able to schedule a restart as well, but clearing app data clears any scheduled intents.
     * <p>
     * When debugging Vanadium applications, this is often useful to clear the app blessings cache
     * and Syncbase data.
     */
Clears all data for this app. This will force the application to close. It would be nice to
be able to schedule a restart as well, but clearing app data clears any scheduled intents.

When debugging Vanadium applications, this is often useful to clear the app blessings cache
and Syncbase data.
Clears all data for this app . This will force the application to close . It would be nice to be able to schedule a restart as well but clearing app data clears any scheduled intents . When debugging Vanadium applications this is often useful to clear the app blessings cache and Syncbase data .
public static void clearAppData(final Context context) {
        try {
            Runtime.getRuntime().exec("pm clear " + context.getPackageName());
        } catch (final IOException e) {
            if (context instanceof VAndroidContextTrait) {
                ((VAndroidContextTrait) context)
                        .getErrorReporter()
                        .onError(R.string.err_app_clear, e);
            } else {
                log.error("Unable to clear app data", e);
            }
        }
    }
public static void clearAppData ( final Context context ) { try { Runtime . getRuntime ( ) . exec ( "pm clear " + context . getPackageName ( ) ) ; } catch ( final IOException e ) { if ( context instanceof VAndroidContextTrait ) { ( ( VAndroidContextTrait ) context ) . getErrorReporter ( ) . onError ( R . string . err_app_clear , e ) ; } else { log . error ( "Unable to clear app data" , e ) ; } } }
Clears all data for this app.
Clears all data for this app .