[Q] What is the easiest way to replace a app in rom - myTouch 3G Slide Q&A, Help & Troubleshooting

I want to replace a few apps, and want to know the easiest way. Would unzipping the rom, replacing the apk file for the app in the system/app folder, and rezipping work, before i flash the rom? root phone by the way..i am slowly working my way up to cooking my own roms, but havent gotten far yet, due to time constraints, so for now, i just want to take a few apps out, and add a few before i flash...

If you are dabbing into the kitchen the best way is to set up a working rom of the rom you plan on flashing and then making all your edits. After you are all done with that, just repackage the rom and flash.
Sent from my T-Mobile myTouch 3G Slide using XDA App

Jus take the apks out of rom and adb push them into the rom you are using or you can do adb install as well

Related

[Q] Swype after CM

I am trying to help a friend out here with this one. I am trying to put swype back on my buddies slide and I am running into major problems. First off, I want to say I was able to do this on my G2 without any problems.
Ok, I have the libSwypeCore.so file and the Swype.apk file. When I try to push the libswype core file I get an out of memory error. I get another error when I try to install the apk, but I just can't remember it now.... too tired.
Has anyone who has been successful with this point me in the right direction?
rraxda said:
I am trying to help a friend out here with this one. I am trying to put swype back on my buddies slide and I am running into major problems. First off, I want to say I was able to do this on my G2 without any problems.
Ok, I have the libSwypeCore.so file and the Swype.apk file. When I try to push the libswype core file I get an out of memory error. I get another error when I try to install the apk, but I just can't remember it now.... too tired.
Has anyone who has been successful with this point me in the right direction?
Click to expand...
Click to collapse
Are you pushing the .so file and the .apk file while the phone is in recovery? That's the only way we can do push and install stuff using adb on the slide without special overlays and whatnot, because we are still s-on. You can't modify /system while the phone is out of recovery. If you are doing this while in recovery and you're still getting an error, I don't know what to tell you. I doubt that it's actually out of memory, so maybe a more experienced person on the matter can further troubleshoot. Sorry that's all I could offer
Sent from my T-Mobile myTouch 3G Slide using XDA App
Wow, I did not know that. Thanks for the info. When I get his phone back I will try to push while in recovery. Makes sense now.
Push the so and install the apk just like I would do with the G2 right?
Sent from my HTC Vision using XDA App
rraxda said:
I am trying to help a friend out here with this one. I am trying to put swype back on my buddies slide and I am running into major problems. First off, I want to say I was able to do this on my G2 without any problems.
Ok, I have the libSwypeCore.so file and the Swype.apk file. When I try to push the libswype core file I get an out of memory error. I get another error when I try to install the apk, but I just can't remember it now.... too tired.
Has anyone who has been successful with this point me in the right direction?
Click to expand...
Click to collapse
Check your private messages.
Sent from my HTC Espresso running CM6.
This is odd. On the slide you don't need the .so file. Just the swype.apk and it works. Did they change things? I'm using the 195 nightly so I'm using froyo.
With the newer swype betas it isn't required.
Sent from my HTC Espresso running CM6.
What versions can I run on the newest Cyanogen Mod? I tried some of the newer ones and kept getting force close. Im currently using 1.60.36.8214.
ImHuge07 said:
What versions can I run on the newest Cyanogen Mod? I tried some of the newer ones and kept getting force close. Im currently using 1.60.36.8214.
Click to expand...
Click to collapse
I'm on version 2.15.56.14870 and it works fine but its also the latest beta
Sent from my T-Mobile myTouch 3G Slide using XDA App
I am having the same problem.
I just upgraded my old slide to cm6.1 so I can give it to my dad.
I tried what we do on the g2 (putting the swype libSwypeCore.so in /system/lib/ and then installing the apk but I get errors)
How or what do I need to do to go about restoring swype on my slide?
As mentioned, are you pushing the files when in Recovery,? If not, you have to be in Recovery to push files to anything in /system.
fermunky said:
As mentioned, are you pushing the files when in Recovery,? If not, you have to be in Recovery to push files to anything in /system.
Click to expand...
Click to collapse
Yes I pushed them in recovery and i verified the lib is in /system/lib
When I try and do the adb install swype.apk I get a dex error (probably cause the swype.apk is from a odexed rom and cm6 isn't)
nevermind, I fixed it. Swype works now.
nikol4s said:
Check your private messages.
Sent from my HTC Espresso running CM6.
Click to expand...
Click to collapse
If it was a solution you PM'd him, it would be nice to publicly post it so that others could benefit from your solution, I don't know why you felt a need for secrecy.
ratchetrizzo said:
Yes I pushed them in recovery and i verified the lib is in /system/lib
When I try and do the adb install swype.apk I get a dex error (probably cause the swype.apk is from a odexed rom and cm6 isn't)
nevermind, I fixed it. Swype works now.
Click to expand...
Click to collapse
How did you end up fixing it? I'm sure others would love to know, and also, I was about to say, if it is an odexed APK it can't run without it'd .odex file, so you would have to use the ROM kitchen to de-odex the apk to use it with a deodexed rom. How did you end up fixing it anyway, if it wasn't by deodexing it?
I got the Swype_1.60.36.8214_HVGA.apk (which is the one that works on the slide in cm6.1).
I had to manually make room on /system for the libSwypeCore.so file though since /system was full (I moved Youtube.apk and a couple other non essential .apks to /data/app) then I opened the apk in 7zip, extracted the .so file, manually put it in /system/lib and THEN installed the .apk and swype worked just fine.
Anyway, it works now and my 70 year old father is happy with his first android experience (a white mytouch slide running cm6.1 @844mhz)
Well if you every have issues with it installing when you flash the rom or if you do it with adb I made a zip to do it. It's handy if you don't have computer around with adb installed (like me - damn work computer). I'll remove the actual Swype.apk so I don't get any lashings from the mods.
This might help next time you some one tries to install swype since it gets picky sometimes. Also, Swype 1.6* is HUGE (12MB), you may want to open the apk and take out a lot of the files since it's multi language and I'm sure most of us only use one, maybe two languages.
KCRic said:
Well if you every have issues with it installing when you flash the rom or if you do it with adb I made a zip to do it. It's handy if you don't have computer around with adb installed (like me - damn work computer). I'll remove the actual Swype.apk so I don't get any lashings from the mods.
This might help next time you some one tries to install swype since it gets picky sometimes. Also, Swype 1.6* is HUGE (12MB), you may want to open the apk and take out a lot of the files since it's multi language and I'm sure most of us only use one, maybe two languages.
Click to expand...
Click to collapse
Do you think it would work with the Swype.HVGA.2.15.56.14870-English_only.apk?
Or is it just something I should try for myself?
SefEXE said:
Do you think it would work with the Swype.HVGA.2.15.56.14870-English_only.apk?
Or is it just something I should try for myself?
Click to expand...
Click to collapse
Yeah it will work as long as the phone will accept the apk, some swype versions are not well liked by our phone. You'll need to drag and drop your swype apk into the system-app folder then install.
Just use an archive explorer like winrar or 7zip to open (without extracting) the zip. Find your swype file, then drag and drop it into the app folder (inside the system folder). You can use adb to install it but I just flash it in clockwork.
ratchetrizzo said:
I got the Swype_1.60.36.8214_HVGA.apk (which is the one that works on the slide in cm6.1).
I had to manually make room on /system for the libSwypeCore.so file though since /system was full (I moved Youtube.apk and a couple other non essential .apks to /data/app) then I opened the apk in 7zip, extracted the .so file, manually put it in /system/lib and THEN installed the .apk and swype worked just fine.
Anyway, it works now and my 70 year old father is happy with his first android experience (a white mytouch slide running cm6.1 @844mhz)
Click to expand...
Click to collapse
I'm thinking the reason you couldn't push the file via adb was because you never mounted the system while in clockwork recovery.
Sent from my HTC "Iced Glacier" using XDA App
TrueBlue_Drew said:
I'm thinking the reason you couldn't push the file via adb was because you never mounted the system while in clockwork recovery.
Sent from my HTC "Iced Glacier" using XDA App
Click to expand...
Click to collapse
That could be. I forget to do that sometimes
Sent from my T-Mobile myTouch 3G Slide
All right, now I've got a problem.
I tried flashing the zip that KCRic and I must have downloaded a bum Swype, or one that just doesn't work... But now when I start my phone, it force closes right off the bat, and from there I can't remove it by going into Manage Applications. Everything there is greyed out.(Except Move to SD card, which doesn't work anyways)
Is there some other way I can get rid of it? Maybe thru ADB... Or an easier way? Haha.
SefEXE said:
All right, now I've got a problem.
I tried flashing the zip that KCRic and I must have downloaded a bum Swype, or one that just doesn't work... But now when I start my phone, it force closes right off the bat, and from there I can't remove it by going into Manage Applications. Everything there is greyed out.(Except Move to SD card, which doesn't work anyways)
Is there some other way I can get rid of it? Maybe thru ADB... Or an easier way? Haha.
Click to expand...
Click to collapse
Yeah the phone is s-on, meaning /system is read only. You have to reboot into clockwork recovery, go to partitions, mount /system, then in command prompt, type adb shell, then rm /system/app/apkname.apk, whatever the name of swype is obviously replacing apkname.

Adding APKs

Is there any way to unzip a ROM, and add the APKs for the apps that I want? Like for instance, a ROM may not come with Google voice, so I wanna add that in and make it like a system app. Is this possible, or do I have to just download it, along with the rest of the apps I want?
Sent from my rooted MIUI Dinc2
I'm not quite sure but there's a program that is supposed to zip the rom into a .zip and do the opposite so I don't see why you cannot unzip a rom, add the apk's u want and then rezip and flash. I would be careful though these developers put alot of work into these roms so who knows you could accidentaly remove something crucial to the system, look into the Android software developement area, there's alot of information on how to make roms and such. I tried learning what I needed to to make a rom but got lost about 3 hours into reading lol. In the main forum area under android developement/hacking should be a noob corner somewhere
What's the point of doing what you're asking anyway? Just to have all your apps installed as you install the rom?
Sent from my Incredible 2 using Tapatalk
yeah, so then I don't have to go find them. Lol more of a vanity thing. I'm not worried about taking stuff out, just adding to.
Sent from my rooted MIUI Dinc2
You don't have to unzip the ROM if you have winrar or 7zip right click on the ROM open as archive find system/app put the apk files in that folder close the ROM zip out and then do as you normally would to flash the ROM it will instal what you add
You can adb pull the .apk files you want them add to the zip it isn't suggested to unzip sometimes it corrupts the zip file
Sent from my VS910 4G using xda premium
That's a good suggestion. Can't you also just do a batch backup with titanium and then do a batch restore once you flash your new rom?
Sent from my Incredible 2 using Tapatalk
Yeah, but then there's the long process of letting the apps install and all that... its just a pain. I mean, I don't mind doing it, I was just asking if it'd be easier to do that
Sent from my rooted MIUI Dinc2
I used to do this in the past to remove and install Apks before flashing a new rom. Kind of personalize it for what I wanted and what I use. I haven't been doing this lately though. I just do a batch restore with Titanium backup now. It's pretty quick, and has worked well.

[Q] [FOR DEVS] Cooking ROM mods directly into ROMs? [SOLVED]

I'm looking to get some assistance with a Sense ROM development question. I am a big fan of ca1ne's Sense 1.0 ROM modifications, mainly:
Quick Settings Notification: http://forum.xda-developers.com/showthread.php?t=1266626
-and-
Advanced Power Menu: http://forum.xda-developers.com/showthread.php?t=1314428
I've been working on a Sense 1.0 (stock) -based ROM and am trying to incorporate these mods directly into the build. So far I have only attempted the Quick Settings mod, but since I have not been successful, I have not moved forward yet with the other. Whenever I try to add the Quick Settings mod into the ROM, I lose the statusbar all together. I know that other devs have incorporated quick settings mods into their ROMs (Swagged Out comes to mind, IIRC), so I know that it is possible, but I have been unsuccessful.
Could anyone who has done this give me an idea of what I might be doing wrong? I've tried everything I can think of, from adding the SystemUI.apk directly to the ROM, pre-cook, to building a ROM from a NANDroid backup with the mod already installed. Each way it is the same result: no status bar. Same thing that happens if you don't allow the ROM to boot once before flashing the update.zip.
Kinda stumped! Thanks!
Perhaps this should be posted in the Development forum? Yes? No?
*bump*
I suggest pm'ing a dev about your question so you can get a direct response from them. Plus, they might be able to help you further into the development of your ROM. Just a suggestion
Sent from my PC36100 using xda premium
Not sure what your issue is. What is your starting base? A ruu or a compiled ota?
Here is a collection of EVO mods. click here
All of these came from my Rom, EVO classic. You should be able to cook any mod into a Rom. When testing, you need to perform fill wipes.
Also, are you using dsixda's kitchen to build zip?
Are you certain the apk you're testing works?
Do you know how to use apktool?
Which operating system do you work on?
These are just some general questions and troubleshooting technique.
Sent from my PC36100 using Tapatalk
tommytomatoe said:
Not sure what your issue is. What is your starting base? A ruu or a compiled ota?
Here is a collection of EVO mods. click here
All of these came from my Rom, EVO classic. You should be able to cook any mod into a Rom. When testing, you need to perform fill wipes.
Also, are you using dsixda's kitchen to build zip?
Are you certain the apk you're testing works?
Do you know how to use apktool?
Which operating system do you work on?
These are just some general questions and troubleshooting technique.
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
I tried a couple different starting bases. First I tried a RUU for 4.53.651.1 as pc36img.zip. Second a nandroid dump of 4.54.651 unrooted/modded installed via RUU and OTA on fresh SD card. Lastly, figuring I was messing up the base somehow, I used NinjaWolf's Rooted Stock 4.53.651.1.
I have been performing 3x cache, 3x dalvik and 1x userdata/factory reset wipes from recovery prior to each flash. Thing is that the rom that i end up with before trying to implement ca1ne's quick settings mod all flash properly and load perfectly. No issues at all. It's only after I try to combine the quick settings mod into any zip to flash that the issue arises. That being said, whenever I flash the mod over the custom rom, it works flawlessly. Just can't figure out how to get it cooked into the flashable zip.
Yes, I am using dsixda's kitchen for compiling the zips. I am still pretty new making roms, so I've not dived too far into the commands behind the scripts contained within.
To be honest, I've only used apktool a couple times. Mainly to decompile the stock SystemUI.apk and the one in ca1ne's zip, to diff. I would not say that I am fluent in it's use, by any means.
My primary machine is a Linux Mint Debian Edition box, with a Windows 7 Ultimate partition that I use for gaming and any time I need Windows (revonutionary.io, for example). Secondary is MacBook Pro (work machine), running 10.6, setup with dsixda's kitchen as per the tutorial. I work in IT/IS, so I am more than comfortable with each OS, I just prefer Linux/UNIX. I am also not a stranger to various programming and shell scripting languages, but I am not a master developer.
Hope that explains a bit more. Thanks, tommytomatoe, for your time. I really appreciate it! Also, I will take a look at your mods collection as soon as I get to my rig.
If you're using the ruu or pc36img you ate playing with odex. Ca1ne's uploaded systemui is deodex. That could explain the lack.of status bar.
Sent from my PC36100 using Tapatalk
tommytomatoe said:
If you're using the ruu or pc36img you ate playing with odex. Ca1ne's uploaded systemui is deodex. That could explain the lack.of status bar.
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
Yeah, I saw that was one of the requirements, but I always deodex /system/framework and /system/app on my personal builds so that the .apks can be modded or themed, should I desire to do so. When using the RUU and pc36img, I let it boot, do the OTA updates, then sync a test google account and update apps through the market. After that is done, I boot into recovery (after flashing it back with fastboot... thank you HTC) and do a nandroid backup to use as a pure stock base. Once I have the system.img and boot.img I take it to the kitchen to root, deodex, etc..
I am wondering, though, why the effect is the same if you extract the SystemUI.apk manually and drop it into the ROM as it does if you immediatly flash the quick settings zip directly after a fresh rom flash, without allowing the rom to boot up completely first. I can see a minor coorelation, but if I can figure out whatever dependancy I am missing, then I know I should be able to get it to work.
grayn0de said:
Yeah, I saw that was one of the requirements, but I always deodex /system/framework and /system/app on my personal builds so that the .apks can be modded or themed, should I desire to do so. When using the RUU and pc36img, I let it boot, do the OTA updates, then sync a test google account and update apps through the market. After that is done, I boot into recovery (after flashing it back with fastboot... thank you HTC) and do a nandroid backup to use as a pure stock base. Once I have the system.img and boot.img I take it to the kitchen to root, deodex, etc..
I am wondering, though, why the effect is the same if you extract the SystemUI.apk manually and drop it into the ROM as it does if you immediatly flash the quick settings zip directly after a fresh rom flash, without allowing the rom to boot up completely first. I can see a minor coorelation, but if I can figure out whatever dependancy I am missing, then I know I should be able to get it to work.
Click to expand...
Click to collapse
Why use the nandroid images? Just use the pc36img.zip
If the file itself gives you that issue then I would recommend duplicating that mod on your own systemui. There are always traces of signature and permissions issues using a different file than your own, unless you know how to disable signature verification.
I don't ever recommend creating roms from nandroid image. Just stick with the pc36img
Lastly. And I truly wish this rumor was never created. Odex can be themed, modded, and customized just like deodex
Sent from my PC36100 using Tapatalk
Not clear on how exactly to apply the OTA patches to the pc36img without going the route I have been taking. Although, I really don't think there was much to this latest OTA security update that actually benefits the user anyway, so I might just stick with the 4.53 base for now. At least until I figure out this quick settings stuff.
I'll decompile the two apks and diff them to see if I can duplicate the mod, as you suggest.
You know I kinda thought that it was odd that people said that, as there have been themes since early ADP1 days. Guess I figured it was just something to chalk up to changes across OS versions. So is deodex just easier to theme/mod, since the dex file is recompiled into the apk? One less piece, so to speak?
Look here.
http://forum.xda-developers.com/showthread.php?t=1320660
Pull those files from the 4.54 ota. Use the pc36img from latest available, 4.53. In kitchen, select the pc36img.zip as your working rom. Then apply the changes as laid out in the thread I linked you. Hope that helps.
Sent from my PC36100 using Tapatalk
Seems simple enough. Thank you!.
I found this while looking for something else and gave it a shot hoping that it would, on the off chance work, but no love:
http://forum.xda-developers.com/showthread.php?t=1290753
I'm still digging into the original and modded SystemUI.apk files to see what I need to do to duplicate the quick settings. Also, I've been checking out your android-utility. Awesome work, man!
I figured it out the issue.
I decompiled both the original and modded apk files, then used DiffMerge to diff the project folders for the apks. This brought up a list of files that had been modified, one of which was:
res/drawable-hdpi/statusbar_background_transparent.9.png
After merging changes in all of the .smali files, this file was the only one that remained to be modified but, since it is a binary png, I could not do so. The first time I tried to reconstruct the mod, I simply copied the modded .png file into the proper spot of my SystemUI.apk, then recompiled with original META-INF, signed it and dropped it into the ROM's working folder. Failure...
Second time around, I simply omitted the .png and tested. Worked perfectly!
tommytomatoe: Thanks a ton for all of your insight and advice (in this thread and others). It has really helped me out. Now that this little hurdle has been leaped, I can continue on with the ROM revisions!

How can I make apk with its corresponding odex file?

Good Day to all,
Just want to ask how can i make an apk to odex file?
I just want to try in the CM7 Lewa ROM,
I have this file, (see attached) that i need to make it work on my phone with Lewa ROM. I tried pasting it to the /system/app but it doesn't work and i havent seen it in the app drawer.
Hope, someone may help me or make an odex file for this apk,
Thanks
What application is it?
If pushing it to System doesn't work, odexing it won't. Leave it on the data partition and try to see if it works. Some apps refuse to work from the system partition. Or you may not have set the file permissions properly.
You can try using Link2SD to push to system or to data. It does a better job than doing it manually.
First install it using a file browser (Don't copy to the system or data partition). See if it works. Use link2sd to push to system. Restart and try to see if it works.
You can worry about odexing it after getting it to work from system.
it cannot be installed, it will just say "Application not installed"
The application is a SIM Toolkit, its an app for my telco operator, which i can do mobile banking, balance inquiry, money transfer, etc..
In some ROM it is automatically available after flashing the ROM, I just encountered the problem with this Lewa ROM, and since its a good ROM for me, i just want to make the SIM Toolkit works also.
From which ROM did you get the Stk.apk?
its already in my phone ever since i got the phone from the operator.
And every ROM i flashed it's still included automatically whenever i used the operator's SIM card.
as i remember i pull out the stk.apk on one of the ROMs of M1ndhax8r when i used it.
The apk comes with the ROM. The one you have would be from sense so it wouldn't work too well on non-sense ROMS like cm9 and cm7. Try directly installing this one. It's from CM7. It should work.
AceRoom said:
The apk comes with the ROM. The one you have would be from sense so it wouldn't work too well on non-sense ROMS like cm9 and cm7. Try directly installing this one. It's from CM7. It should work.
Click to expand...
Click to collapse
Wow, thanks for this its working now on Lewa ROM,
it is still "application not installed", but when i put it in the system/data then change permissions then reboot it works.
TYVM
Glad it worked!
Sent from my Wildfire S A510e using XDA

[Q]How to "edit" downloaded ROM

Hello,
first of all, i do not want offense any of authors who created all those great custom ROMs out there. Im just interested in one thing. After i downloaded and used for a while some custom ROM from forums, ive downloaded some other apps from market and i want to use them instead of those which are on original ROM. Is there any way to remove those parts of that ROM and put as default the new ones and create my own zip (for backup and comfort reasons)? So, some customizing of already custom ROM is my target
Aikimaniac said:
Hello,
first of all, i do not want offense any of authors who created all those great custom ROMs out there. Im just interested in one thing. After i downloaded and used for a while some custom ROM from forums, ive downloaded some other apps from market and i want to use them instead of those which are on original ROM. Is there any way to remove those parts of that ROM and put as default the new ones and create my own zip (for backup and comfort reasons)? So, some customizing of already custom ROM is my target
Click to expand...
Click to collapse
If you've already installed the ROM, then titanium backup is your friend. You can uninstall any preinstalled apps that you don't want.
If you want to edit before flashing, unzip the ROM, delete any apps that you do not want and then zip it back and flash.
Sent from my HTC Desire using xda app-developers app
So when i unzip it i can delete. Can i add apps i want to have included as well? The point is, friend of me (you wont believe but yes, hes more lame than me in this area) asked me if he can get the exact ROM with same apps as i have, so i told him that maybe i can create own ROM to share it to him..
dvsk69 said:
If you've already installed the ROM, then titanium backup is your friend. You can uninstall any preinstalled apps that you don't want.
If you want to edit before flashing, unzip the ROM, delete any apps that you do not want and then zip it back and flash.
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
If you have the apk files, yes. You need to zip align it though.
Sent from my HTC Desire using xda app-developers app
You don't have to unzip. Just use something like 7zip, double click the Rom.zip, don't extract. Then add/remove apps from system/app by dragging/ deleting apk files. You can delete other unnecessary things like ringtones and languages in the other system folders. Just don't touch system critical files.
Then close 7zip to update, no need to unzip and re zip and align etc
Some apps don't work in system, don't know why. Also need to check that the extracted system size will fit into your hboot system, otherwise it won't boot.
When meeting around with roms like this, especially important you nandroid backup before flashing if you don't already!
Never unzip to remove apps or anything else for that matter, if you unzip it, and then zip the unpacked directory you wont be able to flash it.
Just open the .zip file and delete whatever you want directly from it.
You can try total commander from market, if you would like to do that directly on your phone.
Sent from my HTC Desire using xda app-developers app

Categories

Resources