Adding and removing apps directly from flash

24 views
Skip to first unread message

roncville

unread,
Aug 30, 2011, 8:03:40 AM8/30/11
to android-...@googlegroups.com
I need to add and delete apps, through direct manipulations of the flash card.  I'll be doing this without Android running.

I have two cases:

Case 1: Flash card has never been booted (i.e. freshly burned, Android has never run).
So far I've done this by simply copying the app (apk file) to folder system/app, or removing it from that same folder.  That's worked OK so far for me, but I'd either like reassurance that it's the right approach, or direction on the proper approach.

Case 2: Flash card where Android has already run.
I don't know if this is really a special case, but I can see where it might be, since maybe once Android runs once it somehow records the apps that are present.  So, if I need to add/delete apps differently than in case 1, I'd like to know how.

Thanks,
Ron

Dianne Hackborn

unread,
Aug 31, 2011, 12:37:32 PM8/31/11
to android-...@googlegroups.com
Is this something different than the normal system update mechanism?


--
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/-/XDTC0V6wdfkJ.
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.



--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

roncville

unread,
Sep 1, 2011, 11:40:09 AM9/1/11
to android-...@googlegroups.com
I think my need is different, but I can't be sure since I don't know the details of the 'normal system update mechanism' you refer to.  But, I assume that update mechanism is used with (or from) a running Android system.

My need is to manage apps when Android is not running.  I have a memory card upon which the Android stack, along with some apps, are installed.  I want to temporarily mount that card to a separate Linux system, and use basic Linux commands like mv, rm, cp, or whatever, to add and delete apps from the card.  Then, when I once again boot my card on my Android hardware to run Android, Android should reflect the newly modified set of apps.

For example, from the separate Linux system, is it safe to simply issue the command 'rm /system/app/Calendar.apk'?

Dianne Hackborn

unread,
Sep 1, 2011, 7:07:28 PM9/1/11
to android-...@googlegroups.com
You can modify the contents.  Exactly what will happen when the system next boots will depend on what you modify.  If you remove an app, it will delete any data associated with an app.  If you replace an app, it will either just use the new version, or wipe the old version's data if they are incompatible.

What you are doing is really no different from normal platform development where you make a new system image (or remount the system image as read/write and modify it with the system stopped) and then reboot the system.

--
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/-/dBEG3KMTC_MJ.

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.

roncville

unread,
Sep 6, 2011, 3:09:55 PM9/6/11
to android-...@googlegroups.com
OK - it  sounds like it behaves like I was hoping.

Thanks,
Ron

Reply all
Reply to author
Forward
0 new messages