Issue 1571: backuptool.sh exits every time due it can't find a line in buil.prop
Status:  Invalid
Owner: ----
Closed:  Sep 2012
Reported by fram...@gmail.com, Sep 19, 2012
Affected Version:
2.12 for i9000, probably also other versions

What steps will reproduce the problem?
1.Just flash again the rom

What is the expected output? What do you see instead?
Scripts in /system/addon.d should be executed during rom updates, this doesn't happen. The most evident consequence is that flashing again the rom you lose google apps but there are also other scripts that use this function.

Please provide any additional information below.
from: /system/bin/backupapps.sh

 8. export V=PARANOIDANDROID
[...]
37. # Proceed only if /system is the expected major version
38. check_prereq() {
39. if ( ! grep -q "^ro.pa.version=$V.*" /tmp/build.prop ); then
40.   echo "Not backing up files from incompatible version."
41.   umount_system
42.   exit 127
43. fi
44. }

from /system/build.prop

51. ro.pa.version=2.12

-------------------------------------

backupapps.sh searches for this string in build.prop "ro.pa.version=PARANOIDANDROID.<something>", since it can't find it exit every time (making the whole script useless)
Sep 19, 2012
#1 sop@google.com
Not relevant to Gerrit Code Review.
Status: Invalid