Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TWRP not working correctly #43

Open
lurepheonix opened this issue Jul 10, 2014 · 0 comments
Open

TWRP not working correctly #43

lurepheonix opened this issue Jul 10, 2014 · 0 comments

Comments

@lurepheonix
Copy link

If we dont tick off the marker "Wipe cache" in the app before rebooting to recovery, our TWRPS don`t install zips.
However, with commands rewritten for Open Recovery Script it works.
This was changed in ListFilesActivity.java:
os.writeBytes("rm -f /cache/recovery/command\n");

.............................

                            } else {
                                if (selectedOpts[0]) {
                                    os.writeBytes("echo '--wipe_data' >> /cache/recovery/command\n");
                                }
                                if (selectedOpts[1]) {
                                    os.writeBytes("echo '--wipe_cache' >> /cache/recovery/command\n");
                                }

                                os.writeBytes("echo '--update_package=/" + Utils.getRcvrySdPath() + "/OTA-Updater/download/" + name + "' >> /cache/recovery/command\n");
                            }

To this:
os.writeBytes("rm -f /cache/recovery/openrecoveryscript\n");

.........

                            } else {
                                if (selectedOpts[0]) {
                                    os.writeBytes("echo 'wipe data' >> /cache/recovery/openrecoveryscript\n");
                                }

                                os.writeBytes("echo 'install /" + Utils.getRcvrySdPath() + "/OTA-Updater/download/" + name + "' >> /cache/recovery/openrecoveryscript\n");

                                if (selectedOpts[1]) {
                                    os.writeBytes("echo 'wipe cache' >> /cache/recovery/openrecoveryscript\n");
                                    os.writeBytes("echo 'wipe dalvik' >> /cache/recovery/openrecoveryscript\n");
                                }

I also added "wipe dalvik" option.
The reason must be somewhere inside the TWRP recovery, since CWM works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant