Android: import function and clear script patch