Use a diff utility tool to compare the file
UiHybridAppContainer_before.java and
UiHybridAppContainer_after.java files.
Open the UiHybridAppContainer.java file, which is located in
..HybridWebContainer\src\com\sybase\hwc, and apply the
changes found with the diff utility tool.
Note: Keep in mind that this change could remove bug fixes, or cause unexpected
behavior of the related new features.
Rebuild the Hybrid Web Container project to make sure there are no compilation
errors.
Replace the cordova-2.0.0.jar located in
<SMP_HOME>\UnwiredPlatform\MobileSDK22\HybridApp\API\Container\android,
with the phonegap-1.4.1.jar file, which is in the Android_PhoneGap_Downgrade.zip file.
In the HybridWebContainer project, remove the
res/xml/config.xml file and add the
plugins.xml and phonegap.xml files.
Open the UiHybridAppContainer.java file for editing and change
the import statement from import org.apache.cordova.DroidGap to
import com.phonegap.DroidGap.