[Q] Upgrading ROM apps (apk and odex files?) - Android Software/Hacking General [Developers Only]

Hi,
I have a HTC Desire with Android 2.2. For the moment I do not want a custom ROM and leave the stock ROM (because I trust more in stability).
On the other hand, the apps such as Flash, Google Maps, StreetView, Google Search, YouTube, Speach Search, AppStore (now Google Play) are too old and when I upgrade them via Google Play, the go to User Data where they draw all of the memory.
I rooted my phone (unrevoked3), created a backup via Nandroid and used adb to remove unwanted apps such as Facebook, Twitter, ... . Now I want upgrade the above mentioned apps. Therefore I upgraded each of them, backuped up the apk to SD card and removed the upgrade again.
Now I would remove e.g. Maps.apk and Maps.odex via adb from /system/apps. However, how do I place the upgraded apk (com.google.android.apps.maps-1.apk) in the /system/apps? How do I create the odex file? I would prefer to have apk+odex instead of apk-only.
Unfortunately I always find information on how to de-odex apps (i.e. merge apk+odex) but I do not know why this should be interesting. Instead, the information on how to create odex out of apk would be much more interesting.
Am I the only person who likes to upgrade built-in apps?
dy/dx

Related

any way to grab settings, notes, etc. from apps?

So, I just recently rooted and installed cyanogenmod 7 on my htc droid incredible. I know that I had to wipe and delete everything in order to install everything. I tried backing up my apps with an app called backupeverything. Well, besides not being able to find it on the market (I was able to find an apk online and install it), every time I try to restore the apps, it doesn't work. I know the apps I need, the issue I'm running into is: is there any way I can recover settings, notes (like from springpad, notepad, etc.) from my phone?
Just go into /data/data and copy the apps folder using a file explorer then put it on sdcard and then on computer and from there you can apply that data into roms by default or do whatever

[Q] Safe-to-remove apps

Hi guys
Need some space in my phone. I wonder which apps are safe to remove?
I go to system/app and I remove:
email.apk since I only use gmail.
imetutorial.apk
wireless tether...apk since i don't use it, I use pdanet.
todaybriefingwidget.apk
There are others you can remove. Maybe someone else can chime in?
Thanks Rev.!
I do not need a bunch of apps like google maps, twitter, facebook, email etc.
I am worried if I would mess the phone up if i deleted them.
spectacle said:
Thanks Rev.!
I do not need a bunch of apps like google maps, twitter, facebook, email etc.
I am worried if I would mess the phone up if i deleted them.
Click to expand...
Click to collapse
twitter! That's another one I get rid of.
I always remove Email, Gestures, LatinIme Tuttorial, Launcher (I replacee it with Launcer Pro), MagicSmokeWallpaper, MilestoneOverclock, MotAccuWeatherWidget, MotoCarDock, MotoGAL (Corporate Directory or Calendar I forget which), MyNet, OpenRecovery, Protips, QuickOffice, Talk, VisualizationWallpapers and WorldClockWidget when ever I flash a new ROM. I would think the removal of Maps Facebook & Twitter wouldn't cause any problems either.
BTW which ROM are you running?
I am on the awesome Khal's ROM
Oh another noob question: How do I got about totally removing the apps? Remove just the apk and the dalvik cache using root explorer? Would that suffice
There are also entries in /data/data. Another option would be Titanium Backup, wipe data & then uninstall.
Thank you so much. Will try the titanium backup way
Hi removed some apps like maps, 3g hotspot etc.
But I don't see my available memory space going up.
Am I doing something wrongly? Used titanium backup pro
spectacle said:
Hi removed some apps like maps, 3g hotspot etc.
But I don't see my available memory space going up.
Am I doing something wrongly? Used titanium backup pro
Click to expand...
Click to collapse
You shouldn't expect your available memory go up much when you remove system apps. The builtin apps are on /system which is a different partition from /data (internal memory). You probably also should wipe dalvik-cache, but that also won't increase free space on recent 2.2 ROMs (khalpowers and dexter+bugfix3) because the dalvik-cache has been moved from /data to /cache. The only stuff you will gain is whatever was saved in /data/data (which won't be much if you never used those apps)
Oh that made it much clearer. Thanks Mio!
hi, how do i delete these system apps? like using a special app, or using root explorer to delete? and can i delete them (e.g. twitter/facebook) from the system and get it from the market and use apps2sd? thanks
You can use Root Explore to remove apks but you'll have to tick the mount r/w button to do so.
Why would you want to delete Facebook and Twitter, they are already in there. If you still want to, go into /system and delete the apks, REBOOT and then download from market (they will no longer be themed, but will be the generic colors). Should download into your ext folder. If using native app2sd, you can use Move2sd from the market to move onto card that way.
Good luck and make a nandroid backup before you do anything with /system or /data.
And always remember, even a broken clock is right twice a day.
eejin2 said:
hi, how do i delete these system apps? like using a special app, or using root explorer to delete? and can i delete them (e.g. twitter/facebook) from the system and get it from the market and use apps2sd? thanks
Click to expand...
Click to collapse
have you partition your sd card?
You can use several different methods. GParted, Minitool Partion Wizard (that is what I use b/c you won't loose any data unless you wipe it yourself). Just google and download them.
Make sure you set your partions in this order (#1 and biggest) Fat32, (#2 whatever size you want**anything over 1gb is usually too unstable I have found) ext 3/4, (#3 is smallest and usually 2x your RAM) swap and make sure none are labeled as Logical. All primary.
Search the App2sd (or Link2sd**They are different and have different methods of set up) thread here and it will explain how to put it into action.
App2sd http://forum.xda-developers.com/showthread.php?t=742126
Link2sd http://forum.xda-developers.com/showthread.php?t=923628
I'm going off the deep end and seeing how many apps I can delete. Right now this is all I have left in /system/app:
Code:
Music.apk
ContactsProvider.apk
CalendarProvider.apk
Calendar.apk
MessagingProvider.apk
Usb.apk
DrmProvider.apk
MediaGallery.apk
DefaultContainerService.apk
TelephonyProvider.apk
Stk.apk
Bluetooth.apk
ApplicationsProvider.apk
TaskManagerActivity.apk
Gallery3D.apk
PackageInstaller.apk
Superuser.apk
CameraMoto.apk
HTMLViewer.apk
DownloadProvider.apk
OverlayProvider.apk
AccountAndSyncSettings.apk
Settings.apk
Location.apk
Calculator.apk
VideoPlayerMoto.apk
WapPushSI.apk
ProgramMenuSystem.apk
Phone.apk
Secclkd.apk
Browser.apk
MotorolaSettingsProvider.apk
Contacts.apk
MediaProvider.apk
Mms.apk
MediaSync.apk
ProgramMenu.apk
ADWLauncher.apk
This does survive a system reset. Of course, I don't have much functionality left (google apps etc gone, no market, can't seem to get to dialer but can answer calls, etc). But I do have 94MB free RAM. lol

[Q] What about the Gapps not included in the Gapps bundle I downloaded and flashed?

Hi, I just rooted, bootstrapped and flashed CyanogenMod-7.1.0-DROID2WE-KANG (Pooka-CM4D2G-GB-20120519.zip) and Gapps (gapps-gb-20110828-signed.zip) and (gapps-gb-20110828-newtalk-signed.zip) on top (the second one for TALK with video chat, ignorantly forgetting it would be replaced with hangouts anyway).
However, it only included a couple Gapps but missed a lot like MAPS, YOUTUBE, GMAIL, VOICE SEARCH, STREETVIEW which use to be included in stock roms. I read this COMPLETELY: http://forum.xda-developers.com/showthread.php?t=1516689 and found the "copyright reason" so decided to download all apps from market but i got a somehow stupid question:
Can I make these apps I downloaded from store like ROM, STOCK apps? If its possible, does it make any difference beyond changing the Uninstall button to "Uninstall Updates"? I mean, like, performance difference?
All info is greatly appreciated. Thank you
Sure, you can move the APKs from /data to /system. There will be no difference in performance whatsoever because it's the same flash storage, just a different partition. Updates will still install to /data unless you feel like manually moving the updated APKs to /system every time an update comes out.

Titanium Backup Integrate apps not working

Hi, someone noticed that titanium backup integration into system is not working with android lollipop?? (if I remember the same for kit kat ).
I have the lastest pro version 7.0.0.2.
I can´t contact titanium track because the e-mail they provide don´t work (always failed delivery status notification).
How can I contact them?
jlmcr87 said:
Hi, someone noticed that titanium backup integration into system is not working with android lollipop?? (if I remember the same for kit kat ).
I have the lastest pro version 7.0.0.2.
I can´t contact titanium track because the e-mail they provide don´t work (always failed delivery status notification).
How can I contact them?
Click to expand...
Click to collapse
Yes. It's not working on Lollipop, because apps are not directly in /system/app anymore, but they are in directories one by one. If you want to integrate updates, just use root explorer and move from /data/app to /system/app (permissions are allready ok), clean dalvik cache with TB and reboot. That's it.
EDIT: Forgot to mention. Directories of Velvet.apk, Phonesky.apk and PrebuiltGsmCore.apk are in /system/priv-app. Don't forget to move libs also.
zagorteney said:
Yes. It's not working on Lollipop, because apps are not directly in /system/app anymore, but they are in directories one by one. If you want to integrate updates, just use root explorer and move from /data/app to /system/app (permissions are allready ok), clean dalvik cache with TB and reboot. That's it.
EDIT: Forgot to mention. Directories of Velvet.apk, Phonesky.apk and PrebuiltGsmCore.apk are in /system/priv-app. Don't forget to move libs also.
Click to expand...
Click to collapse
Thanks, but what I want is to do it automatically with titanium backup. I have paid for that, but as I say i can´t contact titanium track, it says the email doesn´t exist.
jlmcr87 said:
Thanks, but what I want is to do it automatically with titanium backup. I have paid for that, but as I say i can´t contact titanium track, it says the email doesn´t exist.
Click to expand...
Click to collapse
You can't do it automatically anymore, because off Lollipops different system handling. But you will notice, that for integrating updates things are better now. You don't need to be careful on lib files anymore. For example: some apps, like Maps, Google+, Hangouts and most important GooglePlayServices crashed on KitKat when you integrate them with TB. You have than to extract them and put the matching libs in /system/lib.
Also, as you maybe noticed yet, TB can't restote system apps anymore. From the same reason.

Updating system odexed apps from market?

Heya guys, I'm pretty sure this was asked but I cannot find the answer on XDA.
When you update a system odex app with the new market version (eg google maps, google services, etc), the odex file becomes completely useless, right? Until you factory reset your phone then they will be used again?
Because my phone includes Facebook.odex in /system and I would like to delete the 180mb odex file that seems pretty useless to me as Facebook is updated constantly anyways and I would prefer to install manually (unless there odex file is still helping out even after an update, or it's also being updated)
I often integrate the google apps updates in /system as well, so I'm not sure if this changes anything like deleting the old odex, updating the old odex, etc
Thanks guys!
Sent from my Vphone-X3 using XDA-Developers mobile app

Categories

Resources