I’m trying to rebuild Superuser.apk from CM7 source tree. After sourcing envsetup.sh, and doing an mm in the Superuser root dir, nothing gets done, with the message “make: nothing to be done for ‘all_modules'”. I looked at Android.mk and it appears to me that (maybe) Superuser.apk is copied from prebuilts, yet the full source tree is present. Can anyone tell me how to re-build Superuser.apk?
My Goal: I want to suppress the “XXX has been granted SuperUser permissions” message.
What I Tried:
- Added $(BUILD_PACKAGE) to end of Android.mk
This did cause build activity but many errors of type “error: Error: No resource found that matches: the given name: attr ‘android:displayOptions’ “.
You need to edit the
device.mkassociated to your target platform (samsung, motorola, htc?). I work on pandaboard, then this file lies indevice/ti/panda/device.mkfor me. Then add Superuser to PRODUCT_PACKAGES:Android will catch that you need this package. Running
mmafterward inpackages/apps/Superuserwill eventually do what you want. I ran into some annotation problems on my side, but you might not face those issues…