Reg : Install custom Settings.apk

2,043 views
Skip to first unread message

ramkumar pinninti

unread,
Aug 29, 2011, 7:25:45 AM8/29/11
to android-platform
Hi,
I want to develop a custom Settings.apk with some changes.I downloaded
Android source(Froyo) by following instaructions on Android open
source page (http://source.android.com/source/index.html).For testing
purpose i build the entire source and take the Settings.apk .I
installed it on emulator it woks fine.But when i install on
device,after reboot the Settings application is not visible.I checke
using ADB whether it is system/app or not,it is in system/app
but not visible.

I tested on LGP350 device

I build source using commands

$cd <Source_Directory>
$ build/envsetup.sh
$lunch 1
$make

My installation steps are
1)Rooted the phone using GingerBreak
2)Take backup of Setting.apk,Settings.odex
3)Remove Setting.apk,Settings.odex from system/app
4)Copied my custom Settings.apk to System/app(i have no
Settings.odex )
5)Reboot the device

My command sequence is :-
C:\Users\ramkumar\.android\avd\android_simulator.a vd>adb shell
$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
# chmod 777 system/app
# exit
$ exit
C:\Users\ramkumar\.android\avd\android_simulator.a vd>adb push
Settings.apk system/app
C:\Users\ramkumar\.android\avd\android_simulator.a vd>adb reboot

After reboot there is no Settings app on my device

FrankG

unread,
Aug 31, 2011, 10:55:10 AM8/31/11
to android-platform
The settings app is signed with the platform
key from the particular vendor.
( look in the Android.mk )

Without this step your settings app is -- from the device point of
view -- a broken one !

Hope this helps.

Frank


On 29 Aug., 13:25, ramkumar pinninti <ramkumar.pinni...@gmail.com>
wrote:

ramkumar pinninti

unread,
Sep 1, 2011, 1:31:31 PM9/1/11
to android-platform
Thanks for the information.I have 100 mobiles and i need to replace my
Settings.apk in all those mobiles.So how can i get platform key for
each device?
Thanks and Regards
P.Ramkumar

Chris Stratton

unread,
Sep 1, 2011, 2:59:28 PM9/1/11
to android-...@googlegroups.com
On Thursday, September 1, 2011 1:31:31 PM UTC-4, ramkumar pinninti wrote:
Thanks for the information.I have 100 mobiles and i need to replace my
Settings.apk in all those mobiles.So how can i get platform key for
each device?

You can't, unless the platform creator is willing to give it to you.

You could potentially make up your own, create an image with all the packages signed with your key, and install that instead.

Fortunately, the platform key is the same for all devices using the same build - it does not vary like a serial number.  So if your devices are the same, you only have to create one update.zip (or whatever mechanism) and apply it to all of them.

 

Pratik Prajapati

unread,
Sep 1, 2011, 4:18:05 PM9/1/11
to android-...@googlegroups.com
I have similar kind of thing need todo. I have generated the platform key but how to apply it to the build?



 

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/m3o_LmMw6OQJ.

To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.



--
Kind Regards,
Pratik Prajapati



ramkumar pinninti

unread,
Sep 2, 2011, 12:12:45 AM9/2/11
to android-...@googlegroups.com
Ok,Thanks for the valuble information.Do we need to replace entire O.S in the mobiles ?
Reply all
Reply to author
Forward
0 new messages