How to make a downloaded app system app? - GT540 Optimus General

Does anyone know? I need it because I'm building custom ROM.

Download a cm7 and extract it out of it.
Joost

despotovski01 said:
Does anyone know? I need it because I'm building custom ROM.
Click to expand...
Click to collapse
you need to copy it to system/app/ and add permissions
maybe you'll need to insert some lib files if app is crashing

****UPDATE****
I've discovered how to install apps as system apps
Click here for tutorial

Related

Is it possible to move/install any .apk to /system/app

sorry for the double post
Curious..........when we install .apks do they alreadly know where to install its self. some apks i can completely move to the /system/app/ and others go straight to /data/app where most apks go and cannot be moved without FCing
IS there a way to force all data that i want to system/app/
just wanted to know if this is possible...would be sweet
TIA
As far as I know if you install them manually you can install them wherever you want. System or data.
While rom building I've put non-standard apps into the system/app folder with no problem.
If you put them in the system/app folder you might need to make sure the permissions are set right.
bp328i said:
If you put them in the system/app folder you might need to make sure the permissions are set right.
Click to expand...
Click to collapse
Well here is my situation.........
i want to use the HTC_IME_lo.apk mod found here http://forum.xda-developers.com/showthread.php?t=624416
then I would like to Remove the stock HTC_IME.apk im sure everyone does this...
then i cook
bake and
flash but it doesnt install
how do i edit the permissions or maybe there is another solution ???????
TIA fellow chefs
DS36 said:
Well here is my situation.........
i want to use the HTC_IME_lo.apk mod found here http://forum.xda-developers.com/showthread.php?t=624416
then I would like to Remove the stock HTC_IME.apk im sure everyone does this...
then i cook
bake and
flash but it doesnt install
how do i edit the permissions or maybe there is another solution ???????
TIA fellow chefs
Click to expand...
Click to collapse
I'm probably out of my league here, but I would guess that you should be able to add in the new keyboard (to the SYSTEM folder), select the new keyboard as your default keyboard (using an SMS app or something), then once it's selected you're good to go. You may be able to even delete the old one at that point without any errors?
However, you mentioned cooking and baking so this is what's over my head. Sorry if this doesn't help you.
Also, like that other dude said... "other" apps like the ones installed from the Market usually go in DATA. I noticed that when some ROMs have Maps installed in SYSTEM and you go to update it, it will install the newer version in DATA. I remember seeing in the logcat during boot that the phone detects both versions and just ignores the older version in the SYSTEM folder.
DS36 said:
Well here is my situation.........
i want to use the HTC_IME_lo.apk mod found here http://forum.xda-developers.com/showthread.php?t=624416
then I would like to Remove the stock HTC_IME.apk im sure everyone does this...
then i cook
bake and
flash but it doesnt install
how do i edit the permissions or maybe there is another solution ???????
TIA fellow chefs
Click to expand...
Click to collapse
I have used that exact keyboard on ROMs in the past. I did a straight install from the SD card using a file explorer, Astro to be exact.
Maybe I'm missing what you are trying to accomplish, but that's how I installed it. I'm not up on the cooking and baking, but maybe it's different if you are trying to add it to the ROM prior to flashing?
To remove the standard HTC_IME.apk, I would install the new one first then go into adb shell and remove it that route.
The only way I know how to change permissions is by using the Root Explorer app. If you have that you mount r/w and navigate to the apk you wanna change. Then you long press it and go to permissions. It looks like all the ones in /system/app are "User: Read, Write; Group: Read; Others: Read". Hope this helped!
zwade01 said:
The only way I know how to change permissions is by using the Root Explorer app. If you have that you mount r/w and navigate to the apk you wanna change. Then you long press it and go to permissions. It looks like all the ones in /system/app are "User: Read, Write; Group: Read; Others: Read". Hope this helped!
Click to expand...
Click to collapse
Great info guys but actually im trying to build a Rom from scratch in the Rom Kitchen.......
when i flash the Rom to my Phone i want the keyboard i want and not the stock one built in at all....i actually remove it while in the kitchen....
so basically if you were to flash this rom to you phone the stock is gone and the custom will be there.....
P.S. I already know about removing the htc ime_mod via ADB after i flash but i want it gone before
TIA everyone great info
ANYBODY ??????

[Q] Swype on CM7

Does anyone know how to get the stock version of swype that came on the preinstalled 2.2.1 rom onto CM7? The only reason i dont use the beta is because the theme it has is so ugly.
If you want that one. Extract the swype apk and lib file from a rom with it in it
esincho said:
If you want that one. Extract the swype apk and lib file from a rom with it in it
Click to expand...
Click to collapse
Sorry but how do you do that
Sent from my HTC Glacier using XDA App
U can download a rom like iced glacier, and you'll need root explorer. extract the the zip. The apk is in system system/ apps. The lib is in the lib folder, although i don't know the name of it. What i do is use search when in the system folder, search swype. The two will show. Then you'll have to put those on the same folders on your system
check filecrop you want wvga version
esincho said:
U can download a rom like iced glacier, and you'll need root explorer. extract the the zip. The apk is in system system/ apps. The lib is in the lib folder, although i don't know the name of it. What i do is use search when in the system folder, search swype. The two will show. Then you'll have to put those on the same folders on your system
Click to expand...
Click to collapse
Thanks man that worked for me.. was the only thing I was starting to miss using cm7.
Pulled the apk and lib from mik 4.3 rom I had downloaded and then pushed them to my phone in recovery.
THunDA said:
Thanks man that worked for me.. was the only thing I was starting to miss using cm7.
Pulled the apk and lib from mik 4.3 rom I had downloaded and then pushed them to my phone in recovery.
Click to expand...
Click to collapse
Cool. Only thing, you'll have to do it everytime u flash a rom
esincho said:
Cool. Only thing, you'll have to do it everytime u flash a rom
Click to expand...
Click to collapse
Only takes a few min's so its worth it.. I didnt even realize I was in the myTouch forum..lol goes to show it pays to search the whole forum..
esincho said:
U can download a rom like iced glacier, and you'll need root explorer. extract the the zip. The apk is in system system/ apps. The lib is in the lib folder, although i don't know the name of it. What i do is use search when in the system folder, search swype. The two will show. Then you'll have to put those on the same folders on your system
Click to expand...
Click to collapse
I was able to put everything in the right folders but when I tried to use swype it had the look of the old swype but no functionality. How so you flash it in recovery like the other guy did?
Sent from my HTC Glacier using XDA App
U can't flash it in recovery, he worded that wrong, make sure the permissions are set right
Jacezo said:
I was able to put everything in the right folders but when I tried to use swype it had the look of the old swype but no functionality. How so you flash it in recovery like the other guy did?
Click to expand...
Click to collapse
Check the post below. It's for the G2, but works for MT4G as well (just verified).
http://forum.xda-developers.com/showpost.php?p=9503569&postcount=6
As the post suggests, put your Swype files in the same folder as ADB and you should be fine. Note that you will have to go to Settings > Language & keyboard, and manually enable Swype since it's disabled by default.
is there any free "root manager" app out there i can get for this?
Thanks in advance!
Rvezz28 said:
is there any free "root manager" app out there i can get for this?
Thanks in advance!
Click to expand...
Click to collapse
I do believe you can use AndroidMate from the market.
ok, so apparently I don't know what I'm doing lol.
Sorry if this appears totally n00bish but thats what I am.
If I extract the .apk and the libswypecore.so from another Rom and place them into their respective folders on the Rom I'd like to use, (ex. placing swype.apk into the "app" folder on cm7) and then flash the Rom and start from scratch, shouldn't that work?
I actually tried it and it didn't. Am i missing something? I was hoping the answer was that obvious but it failed. Swype shows up but i get "swype package you installed is configured for another device" message and it continues to only function as a regular keyboard.
I'd prefer to avoid going through the CMD prompt on my computer again because without super detailed instructions, I really don't know how to go about doing it. So if anyone, anywhere can help me out it would be super appreciated. I checked the forums and I keep getting lost in the words.
(perhaps shouldn't have rooted my phone if I can't make it that far huh? but we all have to start somewhere I suppose)
Forgive me for making this so long winded but the more details i give up front the less back and forth messages that wing clog up forums.
-Rocky
Rvezz28 said:
is there any free "root manager" app out there i can get for this?
Thanks in advance!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=923130&highlight=root+explorer
MT4G stock apps on CM7
how can i get the stock apps like the message app on my CM7. i dont like the old version of it.

[Q] editing framework-res.apk

Hey guys I need a bit of help..... I was trying to edit the drawables on my gf 's Eris in the framework-res.apk and when I recompiled the Rom and tried to flash my changes recovery tells me that the update script couldn't be verified due to framework-res.apk and aborts the installation.... what am I doing wrong? Do I need to sign this apk or something to make it work correctly? I did this on my Droid incredible the other day with no problem. I know there was another thread on this further down in Dec but unfortunately it didn't give me the answers I need...
Sent from my ADR6300 using XDA App
elixir911911 said:
Hey guys I need a bit of help..... I was trying to edit the drawables on my gf 's Eris in the framework-res.apk and when I recompiled the Rom and tried to flash my changes recovery tells me that the update script couldn't be verified due to framework-res.apk and aborts the installation.... what am I doing wrong? Do I need to sign this apk or something to make it work correctly? I did this on my Droid incredible the other day with no problem. I know there was another thread on this further down in Dec but unfortunately it didn't give me the answers I need...
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I assume from reading your post that you updated the framework png's inside a Rom Zip package... You don't need to sign the framework, but you do have to resign the Rom Zip file. Try re-signing the rom file, that should get it working...
Macrodroid said:
I assume from reading your post that you updated the framework png's inside a Rom Zip package... You don't need to sign the framework, but you do have to resign the Rom Zip file. Try re-signing the rom file, that should get it working...
Click to expand...
Click to collapse
Any input on how to sign Rom files? I've never signed anything before
elixir911911 said:
Any input on how to sign Rom files? I've never signed anything before
Click to expand...
Click to collapse
You can sign it using gnarlycs kitchen.
Edit: another thing you could have done is just pushed your modded frameworkres to its folder and rebooted the phone.
Sent from my Incredible using Tapatalk
elixir911911 said:
Any input on how to sign Rom files? I've never signed anything before
Click to expand...
Click to collapse
find zip signer i believe its called u can use that
tazzpatriot said:
find zip signer i believe its called u can use that
Click to expand...
Click to collapse
Sterricson Zip Signer, or get SignApkTool from the market and sign it on your phone... Just make sure you use the test-keys for the rom file...
I used zip signer from the market.... is there anyway I can use this to sign apk 's like HTC messaging and HTC IME so that I can edit drawables in those apps?
Sent from my ADR6300 using XDA App
elixir911911 said:
I used zip signer from the market.... is there anyway I can use this to sign apk 's like HTC messaging and HTC IME so that I can edit drawables in those apps?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Y don't u just download the kitchen so u can do it easier and do a bunch together...I think someone said this already I forget lol I need to look haha
Well I know how to sign sips I just want to know if I can sign apps like HTC messaging so they'll install on my device.... if I unzip and rezip afile it won't install on my device... will signing it fix this?
Sent from my ADR6300 using XDA App
i could never get that **** to recompile correctly. i gave up.
I use apk manager to decompile, compile, and sign apks. Unless I'm adding pngs I'm which case I use apktool. If your just editing or replacing what already exists apk manager is the easiest way in my opinion.
Sent from my ERIS using XDA App
elixir911911 said:
Well I know how to sign sips I just want to know if I can sign apps like HTC messaging so they'll install on my device.... if I unzip and rezip afile it won't install on my device... will signing it fix this?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Those won't install...you need to push them to system/app and reboot. No need to sign them unless you resign a whole rom.zip
Conap said:
Those won't install...you need to push them to system/app and reboot. No need to sign them unless you resign a whole rom.zip
Click to expand...
Click to collapse
That's right.. thanks for adding that Conap. Also I was re-reading and just wanted to add as well that you don't want to unzip an apk to modify it and then zip it.. Use one of the other tools mentioned.. apktool or apkmanager
CondemnedSoul said:
That's right.. thanks for adding that Conap. Also I was re-reading and just wanted to add as well that you don't want to unzip an apk to modify it and then zip it.. Use one of the other tools mentioned.. apktool or apkmanager
Click to expand...
Click to collapse
Also for pc 7zip works good also. Just right click the file 7zip open archive drop your png where you want it. Close the apk and push it to system/app or where ever it came from.
If your on ubuntu just click your apk and drop your pngs. You don't even need an apk tool.
dinc¦rockin' the stock root
wildstang83 said:
Also for pc 7zip works good also. Just right click the file 7zip open archive drop your png where you want it. Close the apk and push it to system/app or where ever it came from.
If your on ubuntu just click your apk and drop your pngs. You don't even need an apk tool.
dinc¦rockin' the stock root
Click to expand...
Click to collapse
That does work as well but doing it that way you will need to optimize the .9's if you change them also. xultimate works great for that.
CondemnedSoul said:
That does work as well but doing it that way you will need to optimize the .9's if you change them also. xultimate works great for that.
Click to expand...
Click to collapse
Oh cool. I never really optimized any of them. What does that do?
dinc¦rockin' the stock root
ok big time mess up...I downloaded apk manager....I used the command prompt to adb pull Browser.apk. I put this in the modding folder and used the script.bat file to extract the apk....I edited my files annd hit re zip apk and chose the option to retain signature for system apps. Then when I adb push back it seems to work fine but when I reboot browser doesnt show up in my app list!!!!! help please!!! where did I mess up? I even tried to zip align to see if that would fix it.....If I try to use coommand prompt to adb push the original browser.apk back into place it says error read only file system.....I'm locked out! ah!
elixir911911 said:
ok big time mess up...I downloaded apk manager....I used the command prompt to adb pull Browser.apk. I put this in the modding folder and used the script.bat file to extract the apk....I edited my files annd hit re zip apk and chose the option to retain signature for system apps. Then when I adb push back it seems to work fine but when I reboot browser doesnt show up in my app list!!!!! help please!!! where did I mess up? I even tried to zip align to see if that would fix it.....If I try to use coommand prompt to adb push the original browser.apk back into place it says error read only file system.....I'm locked out! ah!
Click to expand...
Click to collapse
To push the original browser, /system needs to be mounted as r/w which can be done with the command "adb remount"
As for the problem with the modded browser not showing up, try this:
Code:
adb shell chmod 644 /system/app/Browser.apk
adb shell chown 0:0 /system/app/Browser.apk
#now reboot into recovery, wipe cache and dalvik-cache, and reboot
the string you typed for the modded browser....i type that into a normal command prompt not into apk manager correct? I tried to put my normal browser back with adb remount and it still doesnt show in my app list but if i look with a file explorer the apk is in the right place....why wont it show up?
OK i actually pushed my old browser successfully and it wouldnt show in my app list....I then followed your instructions and did adb shell chmod and chown and reboot wipe dalvik and cache and it still wouldnt show up. I really dont wanna have to flash a recovery image....
edit: If it has any importance this is actually on a droid incredible i was testing for my gf's eris. So idk if it changes anything that this is actually an inc.

[Q] SGY Sim Toolkit missing (stk.apk)

I flashed evo-x 4.2, the ROM is great but I'm missing the stk.apk (SIM toolkit).
I really need it since it is used almost everytime to check airtime balance.
Can anyone upload the stk.apk for the Galaxy Y? From the stock ROM?
I'm sure you could of searched for it but here it is - just dial the code to check balance once installed
marcussmith2626 said:
I'm sure you could of searched for it but here it is - just dial the code to check balance once installed
Click to expand...
Click to collapse
I did search for it mate, but other stk.apk from other GB phones do not work, so I'm hoping to try the stock stk.apk from SGY stock ROM.
Thanks mate!!! :highfive:
jephimax said:
I did search for it mate, but other stk.apk from other GB phones do not work, so I'm hoping to try the stock stk.apk from SGY stock ROM.
Thanks mate!!! :highfive:
Click to expand...
Click to collapse
Did you use system app installer (playstore) to install as you may get application not installed if you try to install normally
marcussmith2626 said:
Did you use system app installer (playstore) to install as you may get application not installed if you try to install normally
Click to expand...
Click to collapse
I usually just push it through /system/app, then change permissions. Is the system app installer necessary mate?
jephimax said:
I usually just push it through /system/app, then change permissions. Is the system app installer necessary mate?
Click to expand...
Click to collapse
No u can install that by both process!!
jephimax said:
I usually just push it through /system/app, then change permissions. Is the system app installer necessary mate?
Click to expand...
Click to collapse
As mentioned above you can push and change permissions too - I just use system app installer as its quicker and automates that proccess to save you changing the permissions yourself
It also comes in handy if the apk has lib files to save you extracting them and pushing them too (the stk doesnt have libs - you can just push the apk to system and change permissions and it will work)

[Q] .apk can not open

Hi All,
I am using the latest nightly on galaxy note N7000. My problem is related to .apk files. I have couple of .apk's in my sd card which i cannot install. As soon as i touch it to open for installantion, it gives me an error file cannot open. Please Help!!
First bit of "help" is that if you don't fully and completely describe your question, it isn't answerable.
Which APKs? How are you trying to install them? What do the logs ("logcat") tell you? Have you successfully installed them on other ROMs? Which ROMs? Which versions of APKs and ROMs? Are you using stock kernels? Have you tried it on a clean install of the ROM?
the built in downloads is apart of the documents app. it wont install apk files. u need to download a file manager from the app store to do so.
bulletbeef said:
the built in downloads is apart of the documents app. it wont install apk files. u need to download a file manager from the app store to do so.
Click to expand...
Click to collapse
Thank You for the quick reply. I tried to install them with using a kind of app installer and it installed.

Categories

Resources