This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Android 2.3.4 on AM3517 - non Phone device

Other Parts Discussed in Thread: AM3517

Hi all,

We try to remove Phone apps and Services as Location Manager,Vibrator,Telephony Registry from Gingerbread 2.3.4 because our device within AM3517 have only 256MB of RAM and is not a phone device.

Applying the instruction found on this link:

Android_gingerbread_memory_analysis_for_non-phone_device

changes seem to work exept for the following:

1) The Phone icon (the bottom shortcut icon on default home screen) is still present.

     How can I remove it or replace with other icons ?

2) Every time we try to execute an Apps (just click on it icons) we got the following message

"The application Android keyboard (process com.android.inputmethod.latin) has stopped unexspectedly. Please try again"

at the same time we saw on logcat:

I/ActivityManager( 1120): Start proc com.android.inputmethod.latin for service com.android.inputmethod.latin/.LatinIME: pid=6937 uid=10021 gids={}
E/ActivityThread( 6937): Failed to find provider info for user_dictionary
E/ActivityThread( 6937): Failed to find provider info for com.android.contacts
W/dalvikvm( 6937): threadid=9: thread exiting with uncaught exception (group=0x4016e560)
E/AndroidRuntime( 6937): FATAL EXCEPTION: AsyncTask #1
E/AndroidRuntime( 6937): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime( 6937):        at android.os.AsyncTask$3.done(AsyncTask.java:200)
E/AndroidRuntime( 6937):        at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
E/AndroidRuntime( 6937):        at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
E/AndroidRuntime( 6937):        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
E/AndroidRuntime( 6937):        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
E/AndroidRuntime( 6937):        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
E/AndroidRuntime( 6937):        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
E/AndroidRuntime( 6937):        at java.lang.Thread.run(Thread.java:1019)
E/AndroidRuntime( 6937): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 6937):        at com.android.inputmethod.latin.UserDictionary.addWords(UserDictionary.java:124)
E/AndroidRuntime( 6937):        at com.android.inputmethod.latin.UserDictionary.loadDictionaryAsync(UserDictionary.java:71)
E/AndroidRuntime( 6937):        at com.android.inputmethod.latin.ExpandableDictionary$LoadDictionaryTask.doInBackground(ExpandableDictionary.java:498)
E/AndroidRuntime( 6937):        at com.android.inputmethod.latin.ExpandableDictionary$LoadDictionaryTask.doInBackground(ExpandableDictionary.java:495)
E/AndroidRuntime( 6937):        at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/AndroidRuntime( 6937):        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
E/AndroidRuntime( 6937):        ... 4 more
D/dalvikvm( 6937): GC_CONCURRENT freed 490K, 51% free 2904K/5831K, external 1020K/1038K, paused 3ms+25ms
D/dalvikvm( 6937): GC_EXTERNAL_ALLOC freed 9K, 51% free 2894K/5831K, external 1020K/1038K, paused 158ms

How can we fix it ?

Attached here our generic.mk and core.mk used

0385.generic.txt
4532.core.txt

Thanks in advance for your answer.

regards,
Paolo.

  • Paolo Pellegatti said:

    1) The Phone icon (the bottom shortcut icon on default home screen) is still present.

         How can I remove it or replace with other icons ?

    The phone icon is from the Launcher app. You need to  update the Launcher app to remove this.

    You can refer to the Laucher app which is built as part of the rowboperf test suite. Here we replace the phone shortcut with the rowboperf app shortcut.

    http://gitorious.org/rowboat/rowboperf/trees/rowboat-gingerbread/Launcher2

  • Hi,

    Thank you for your reply, you have solved my first question.

    As you suggested I checked the differences between the two Laucher2 source project. This is the differences:

    a. new file hotseat_rowboperf.xml in  Launcher2/res/drawable/  replacing  hotseat_phone.xml

    b. new 3 icons (.png format) hotseat_rowboperf_*.png in Launcher2/res/drawable-mdpi

    c. one file changed arrays.xml on Launcher2/res/values/  to launch the new app

    d. one file changed launcher.xml on Launcher2/res/layout-land/ and also on Launcher2/res/layout-port/  that references the new file hotseat_rowboperf.xml

    Applying the changes to my Launcher2, I replaced the phone icon with Settings icon, but when I click on Settings icon I got an error message "Application is not installed on your phone".

    This is my hotseat_settings.xml used to replace hotseat_phone.xml file

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <string-array name="hotseats" translatable="false">
            <item>intent:#Intent;action=android.intent.action.MAIN;component=com.ti.android.apps.launcher/.Settings;end</item>
            <item>*BROWSER*</item>
        </string-array>
        <array name="hotseat_icons" translatable="false">
            <item>@drawable/hotseat_settings</item>
            <item>@drawable/hotseat_browser</item>
        </array>
    </resources>

    Please, can you suggest what should I use on hotseat_settings.xml to be able to execute Settings app when I click on the hotseat icon ?

    Thank you.

    regards,

    Paolo.

  • Hi Paolo,

    Regarding issue#2, all application should not fail to launch. Only application which needs information from contact db might fail.
    In this case either you can remove unwanted application or enable contact in build

    BR,

    satish

  • Hi Satish,

    I confirm you that all apps doesn't fail to launch and execute, but every time I click on an icon app to launch it the error message is shown and the keyboard is not more available.

    To solve the problem I just add "UserDictionaryProvider" to  <rowboat-android>/build/target/product/core.mk file.

    Without it the annoying error message continues to appear on the screen and the keyboard doesn't work.

    Regarding issue #1, did you know how can I change the .xml file to launch the Settings app when I click on the hotseat icon ? My changes doesn't work.

    Thank you.

    Paolo.

  • Hi Paolo,

    I am suspecting an error in below line

    <item>intent:#Intent;action=android.intent.action.MAIN;component=com.ti.android.apps.launcher/.Settings;end</item>

    it should be

    <item>intent:#Intent;action=android.intent.action.MAIN;component=com.android.settings/.Settings;end</item>

    One can test manually starting application application from command line using

    am start -a <action> -n <component>/<intent>
    am start -a android.intent.action.MAIN -n package/class_fullname
    e.g.
    am start -a android.intent.action.MAIN -n com.android.settings/.Settings

     

    BR,

    Satish

  • Hi Satish,

    many thanks !!

    Your suggestion completly solve my issue#2.

    I take the opportunity to ask one more question.

    3. Sometimes i got this message from serial console:

    "init: sys_prop: mis-match msg size recieved: -1 expected: 128"

    I try to investigate on the source code and/or searching on google but I had no luck.

    I think the message starts from "system/core/init/property_service.c" function handle_property_set_fd() when the statement if(r != sizeof(prop_msg)) is true

    Can I have a problem on init file or I just forgot to apply some patches ?

    kind regards,

    Paolo

  • Paolo Pellegatti said:

    3. Sometimes i got this message from serial console:

    "init: sys_prop: mis-match msg size recieved: -1 expected: 128"

    I try to investigate on the source code and/or searching on google but I had no luck.

    I think the message starts from "system/core/init/property_service.c" function handle_property_set_fd() when the statement if(r != sizeof(prop_msg)) is true

    Can I have a problem on init file or I just forgot to apply some patches ?

    We get this sometimes with ICS on ext4 filesystem. So far, we have not seen any issues due to this error.

  • Hi Vishveshwar,

    thanks for your fast reply.


    Best regards,

    Paolo.