I tried to test pre-installed application with robotium on emulator.
For this work I need to resign the pre-installed application with
the same certificate signing of my testing project.
Then I follow some steps below:

1. Log in as root: adb root

2. Remount: adb remount

3. adb pull /system/app/X.apk (Replace X with the name of the application)

4. Resign X.apk <http://code.google.com/p/robotium/wiki/RobotiumForAPKFiles> so
that it has the same certificate signing as the test project

5. adb pull /data/system/packages.xml

6. Open packages.xml and remove:

<package name="com.X">

.....

</package>

7. Push packages.xml back to device: adb push packages.xml /data/system

8. Restart your device

9. Push the resigned X.apk back to the device: adb push X.apk /system/app

I completed 7 steps above and when I was in step 8,I type adb reboot in the
command line,but it didn't affect.

I skiped step 8 and executed step 9 .It succeeded.However,it pointed out
"application of X is not installed on your phone".

so where is the problem or I have to use a real pyhone?

thanks,

qing

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to