Installing AOSP apps on the evo - EVO 4G Q&A, Help & Troubleshooting

Hi everybody,
This is a total n00b question, but I was hoping someone could point me in the right direction. I want to install some of the AOSP apps onto my rooted Evo. So I downloaded eclair from google and built it it. Then I copied the Gallery.apk onto my SDK card and tried to install it. It goes through the motions, even as far as telling me which permissions that the app needs to run (Storage, etc).
Then it says, "Application not installed." with a done button.
I probably simply can't do what I'm trying to do, but if you can point in the right direction, I'd love to have a hand. I can't find log files or anything that would be useful.
-Ted

I'm not sure about AOSP apps, but here's what you do to add HTC apps back into roms:
1. Get something like Root Explorer so you can easily write to /system/
2. Copy your apk to /system/app/
3. Change it's permissions to match those of other apk's in the folder
4. Reboot phone
(And this should have gone in Q&A, but it's all good )

K I'm also confused about this but the HTC app part. If I wanted the stock clock widget can I make them work with launcher pro?
Also kind of confused about what exactly asop is in laments terms
Sent from my PC36100 using XDA App

I posted something along these lines in Q&A. Of course the problem with Q&A is there aren't nearly as many people around, but I did eventually get somewhat of an answer.
I was trying to take the apks from bugless beast and install the AOSP dialer, calendar, calculator, browser, and messaging apps into another ROM. I love bugless beast, but ironically it has some pretty bad bugs, hopefully we will see some updates.
At any rate, I eventually got some assistance on installing from adb, you may want to just look at the thread, but the short explination is to run
Code:
adb remount
and then you can do an adb shell command to get onto the phone (or use "adb shell <on-phone command>") to run
Code:
install <apk name> /system/app
This will be a very easy way to bugger things up, as I have found out from trying to get the contacts/dialer app running. I would love to hear what all I need to do to get the contacts/dialer/phone portion running as it is in bugless beast.
http://forum.xda-developers.com/showthread.php?t=715635

Thanks for this. It didn't error or anything, but it didn't work either. The app isn't available.

tedroden said:
Thanks for this. It didn't error or anything, but it didn't work either. The app isn't available.
Click to expand...
Click to collapse
So you did the remount, and then either ran adb shell install <apk> /system/app or ran "adb shell" which entered the phone, and then tried "install <apk> /system/app ???
There were no error messages, and then did you reboot?
If you did all of that, what apk were you trying to install?

I really want the calendar app. I tried doing something like this to install the calendar on the emulator. It didn't work there either. It acted like it worked, but all I got was a calendar app that would launch then fail immediately.

nlowhor said:
I really want the calendar app. I tried doing something like this to install the calendar on the emulator. It didn't work there either. It acted like it worked, but all I got was a calendar app that would launch then fail immediately.
Click to expand...
Click to collapse
You probably need the calendar provider apk. I'm using the apks from bugless beast, other ones may have problems I'm not having.

did the remount, and then ... ran "adb shell" which entered the phone, and then tried "install <apk> /system/app ???
There were no error messages, and then did you reboot?
If you did all of that, what apk were you trying to install?
Click to expand...
Click to collapse
Yep, I did all of that. Trying to install Gallery.apk
From what I recall about install, it just copies the file with the proper permissions, it's not doing anything super fancy. I can manually verify that the apk is in the /system/app folder, so technically, 'install' worked. It's just not showing up as an app that I can use.

laydros said:
You probably need the calendar provider apk. I'm using the apks from bugless beast, other ones may have problems I'm not having.
Click to expand...
Click to collapse
I have them both and put that into the same folder. Didn't seem to be good enough to make the emulator happy.

Related

Removing Apps and Audio files

Hello devs.. i am trying to use adb while im in the clockwork recovery screen to remove some apps and some unwanted audio files. Everything is ok as far as being rooted and getting a number sign and the adb commands. The issue im having is that i cannot cd to the app folder. I can cd to the system folder and sdcard folders with no problem. But when i cd into the system, and then i use the list command "ls" to show me what im working wit it says app. But when i try " cd /system/app or cd /app " it says directory doesnot exist. Is there something im doing wrong here? I have installed, removed, pushed and pulled many apps using abd perfectly and i am not a noob.. but it seems like its a whole new ball game when it comes to the slide.. the super user tasks managers no longer work, a dev named roman told me they no longer work and i would have to use adb in clockwork recovery mode to execute any changes to the phones files. But im stuck at this point. Any suggestions? Also i have tried to remove the files directly with a command like " adb rm /system/app/Gallery3D.apk or rm /system/app/Gallery3D.apk" with no results. Is there a way using adb to delete the contents of an entire directory without deleting the directory itself? Thanks in advance devs
bbbblack said:
Hello devs.. i am trying to use adb while im in the clockwork recovery screen to remove some apps and some unwanted audio files. Everything is ok as far as being rooted and getting a number sign and the adb commands. The issue im having is that i cannot cd to the app folder. I can cd to the system folder and sdcard folders with no problem. But when i cd into the system, and then i use the list command "ls" to show me what im working wit it says app. But when i try " cd /system/app or cd /app " it says directory doesnot exist. Is there something im doing wrong here? I have installed, removed, pushed and pulled many apps using abd perfectly and i am not a noob.. but it seems like its a whole new ball game when it comes to the slide.. the super user tasks managers no longer work, a dev named roman told me they no longer work and i would have to use adb in clockwork recovery mode to execute any changes to the phones files. But im stuck at this point. Any suggestions? Also i have tried to remove the files directly with a command like " adb rm /system/app/Gallery3D.apk or rm /system/app/Gallery3D.apk" with no results. Is there a way using adb to delete the contents of an entire directory without deleting the directory itself? Thanks in advance devs
Click to expand...
Click to collapse
You probably forgot to mount /system. You can do so via the CWM Recovery partitions menu.
ohhhhhh...ok thanks alot.. i did miss that.
bbbblack said:
ohhhhhh...ok thanks alot.. i did miss that.
Click to expand...
Click to collapse
Better way of doing it is using 7zip and removing/addin files that way,than flashin that rom,its cleaner and faster.
lviv73 said:
Better way of doing it is using 7zip and removing/addin files that way,than flashin that rom,its cleaner and faster.
Click to expand...
Click to collapse
Not sure I agree, but to each their own.
This is kind of a cross post from the Apps forum, but I am getting no response there. CM6 uses a different music app than the stock HTC player, and the stock player works with the included headphones that have the control buttons. Which ROM can I steal the HTC player from and push back to my phone?
fermunky said:
This is kind of a cross post from the Apps forum, but I am getting no response there. CM6 uses a different music app than the stock HTC player, and the stock player works with the included headphones that have the control buttons. Which ROM can I steal the HTC player from and push back to my phone?
Click to expand...
Click to collapse
You could try to push the HTCMusic app from the OTA update. But I think it might be odexed so you might run into a problem. I haven't checked it out yet
Sent from my SuperFast Slide using XDA App
fermunky said:
This is kind of a cross post from the Apps forum, but I am getting no response there. CM6 uses a different music app than the stock HTC player, and the stock player works with the included headphones that have the control buttons. Which ROM can I steal the HTC player from and push back to my phone?
Click to expand...
Click to collapse
I doubt this will work with CM6 but it is worth a try. It says its for 2.1 and I havent tried it but I thought I would throw it out as a idea. http://forum.xda-developers.com/showthread.php?t=679707
lstevens86 said:
You could try to push the HTCMusic app from the OTA update. But I think it might be odexed so you might run into a problem. I haven't checked it out yet
Sent from my SuperFast Slide using XDA App
Click to expand...
Click to collapse
Yeah, I tried pushing the HtcMusic.apk/.odex files to the /system/app folder with no luck (I do not know what being odex'ed means to being able to do this). Any other thoughts?
HebrewToYou said:
You probably forgot to mount /system. You can do so via the CWM Recovery partitions menu.
Click to expand...
Click to collapse
Do you think it's best to do it from clockwork recovery? What I have been doing is just doing a delete from inside the rom with win rar before installing.
You can use Android Commander which also works for the slide. You just need to be in recovery with both your system and cache mounted so it will make changes otherwise it'll look like it did on the computer but actually when you restart the program you find it did nothing. lol Don't forget to open the program with Administrator Rights. I think the program makes things much easier.
http://forum.xda-developers.com/showthread.php?t=597098
thanks the commander worked perfectly! any reason why apps that i push dont show up in the phones app list when i boot up again?

[Q] ADB Install : Where does it install apk?

If I install an apk from adb : adb install apkname.apk where is the location that it sends the apk? Where does it install.
I've tried /data/app but not there.
pls advice.
P.S. I'm trying to pull apks from certain ROMs that I like and push to the ROM that I choose. please advice if there is something I should keep in mind as well!
Typically it would be installed in /data/app /data/app-private or /system/app
Sent from my T-Mobile G2 using XDA App
You're right
The confusion was that I pull an apk from system that's named a certain way and after i do adb install it changes name.
That's the reason for not being able to find it under the same name.
if someone has more experience maybe they can explain
p.s. Is there a way to do a WILD SEARCH FROM SHELL through adb? ex:
Code:
find *car*
Be careful with what apps you pull, you might need more then just the apk
Or some apps will lock you out of the market *hint* T-Mobile is one step ahead of the game
Or simply, some apps are not compatible with the phone, yet
Mikey1022 said:
Be careful with what apps you pull, you might need more then just the apk
Or some apps will lock you out of the market *hint* T-Mobile is one step ahead of the game
Or simply, some apps are not compatible with the phone, yet
Click to expand...
Click to collapse
that's something new that i need to consider
what's the risk of using apps that will lock me out of the market. Need to understand that a little better so don't run into it.

[Q] Unable to reinstall some apps

I've searched for this and no luck... I'm using Myn's Warm 2.2 RLS4 and trying to reinstall some of the removed .apks that are in the optional folder, and others that I have moved myself using Root Explorer. Some of them I could just click and they would install via the app installer with no problem. However, I'm getting an "application not installed" message for some.
I've tried installing from the folder (with success for some apk's) and also tried moving the files back to the original location system/app and installing from there. (I've also had this work in one instance). In addition, I've tried rebooting and wipes of dalvik in between attempts.
An example: I moved HTCTwitter to the sd card and the app (Peep) was gone as expected. Next I tried reinstalling to test whether or not it would work and got the dreaded "app not installed" message. After that I tried just moving file back to the original location using root explorer and a restart. The file moved to the correct location, but no sign of the app. I tried installing from within system/app and same "app not installed".
This is not isolated to this ROM for me. Had same issue with AVA Froyo. Any help would be appreciated.
Thanks
Are the one's that you are having trouble with "System Apps"?
It seems like it's mostly the apps that came pre-installed like Peep in the example and I remember the issue with Teeter as well. I recall having an issue with twitter, when I moved it thinking it was the peep app and could not reinstall that app. However, I went to the mkt and the twitter app install with no problem.
So, yes. It seems like systems apps.
Try setting your permissions mask to match an installed app. While you're at it check ownership and chown to match.
Oh yeah I'm sure you're first uninstalling, then installing a new.
kperry1911 said:
I've searched for this and no luck... I'm using Myn's Warm 2.2 RLS4 and trying to reinstall some of the removed .apks that are in the optional folder, and others that I have moved myself using Root Explorer. Some of them I could just click and they would install via the app installer with no problem. However, I'm getting an "application not installed" message for some.
I've tried installing from the folder (with success for some apk's) and also tried moving the files back to the original location system/app and installing from there. (I've also had this work in one instance). In addition, I've tried rebooting and wipes of dalvik in between attempts.
An example: I moved HTCTwitter to the sd card and the app (Peep) was gone as expected. Next I tried reinstalling to test whether or not it would work and got the dreaded "app not installed" message. After that I tried just moving file back to the original location using root explorer and a restart. The file moved to the correct location, but no sign of the app. I tried installing from within system/app and same "app not installed".
This is not isolated to this ROM for me. Had same issue with AVA Froyo. Any help would be appreciated.
Thanks
Click to expand...
Click to collapse
Try using adb what you need to do is place your apk in your androidsdk tools folder, open cmd, cd to your androidsdk/tools folders, and push the apk to there location wanted. Example pushing gmail would be as follows.
Code:
Adb remount
Adb push gmail.apk system/app
An reboot
Sent from my unrEVOked using xda app
Thanks. Going to give adb a try. I saw that suggestion somewhere else too. It seems like just copying to system/app places the file there, but doesn't have the same effect as adb push.
Also, I did try matching permissions when I was having issues with teeter trying to use root explorer. The strange thing is that I was able to do this a few months ago with the same apk, if I recall correctly, by just installing from Astro file mgr.
Thanks for the help guys.
-kp
Iirc the only time I ever got that message was when froyo apps2sd lost its links and I filled my phone memory with apps.
What's your memory?
Sent with Super-Sonic Vision using XDA app.

[Q] Fresh EVO 3.5 FM Radio

Hello all! I rooted my EVO last month, and am running the Fresh EVO 3.5 ROM. The developer removed many of the OEM "apps" including the FM radio. (I use quotes, because things like the FM radio aren't just apps... it's part of the functionality of the phone, and without it, you're removing a capability of the phone.)
In order to get it back, I tried installing from the SD card where he stored all the removed apps, which the developer himself says wouldn't work. No surprise, it didn't work. "Application not installed"
I moved it to system/app and tried to install, whence I'm again told "Application not installed."
Downloaded the .apk (found by searching some forums), moved it into system/app and tried installing it with the same result ("Application not installed").
Tried using "AppInstaller" on the .apk, same result.
I'm frustrated that this ROM, while great in every other respect, has killed some of the functionality of my phone. If someone could help me get the FM radio back, I'd greatly appreciate it. Thank you!
Try flashing this file from your recovery the same way you installed the Fresh ROM. It will install the HTC FM Radio app in your system/app. Without a zip file like this you would normally need to use an application like Root Explorer.
http://dl.dropbox.com/u/3000044/FM_Radio-FreshEvo-3.5.0.1-02142011.zip
P.S. Even though this is the app section its more for developing and modifying apps. In the future you should post basic questions like this in the Q&A section.
Thanks for the help and advice.
Your .zip did install the FM radio and widget files to the system/app folder, but they still will not install. I get the same message as I did before.
Also, I have Root Explorer - that's how I moved the .apk to the system/app folder in my original attempt.
I posted a tweaked apk in flipz's thread a few month's back that should install for you, by flashing from recovery. You can give it a shot as well.
http://forum.xda-developers.com/showpost.php?p=9989719&postcount=7252
here you go, just flash
I guess I am not sure what issue you are having. I am running Fresh with out FM radio installed. I was able to use root explorer to move the file to system/app, then set the permissions, and reboot and once I was back into the launcher I was able to use the HTC radio app which was not there before. After doing that I restored my backup to before having the radio app installed and tried again using the zip file I supplied, rebooted, and I was able to use the app.
^ And for some reason, I was not able to do the same. The file was in system/app, but it would not install.
Toxin715 - Worked beautifully! Thank you!
Out of curiosity, do you have anything similar for the radio widget? I get the "Application not installed" error with that, as well... it's not as big of a deal, though.
Mathman85 said:
The file was in system/app, but it would not install.
Click to expand...
Click to collapse
If you have moved the apk to /system/app on your phone you do not need to install it, just reboot.
Mathman85 said:
^ And for some reason, I was not able to do the same. The file was in system/app, but it would not install.
Toxin715 - Worked beautifully! Thank you!
Out of curiosity, do you have anything similar for the radio widget? I get the "Application not installed" error with that, as well... it's not as big of a deal, though.
Click to expand...
Click to collapse
No problem, glad to help. Um you also need the widget?
Toxin715 said:
No problem, glad to help. Um you also need the widget?
Click to expand...
Click to collapse
Lol, that's my zip...
brandenk said:
If you have moved the apk to /system/app on your phone you do not need to install it, just reboot.
Click to expand...
Click to collapse
If that had been the case, I would've never bothered trying to install it, because "FM Radio" would've shown up in my apps and I'd have been happy to post that the issue was resolved. After rebooting when I had moved it to system/app with Root Explorer, it was not in my apps list, so I tried to install it (to no avail). Even after flashing the .zip you posted (after which I had to reboot to get out of recovery), it was in system/app, but not in my apps list; when I clicked on it in Root Explorer, I was given the "Application not installed" error. Even after flashing the .zip that Toxin715 and JsChiSurf posted, it was in system/app, but not in my apps list - the difference here was that when I went into Root Explorer and clicked on it, it let me install it, so now that issue is resolved.
Similarly, the widget is in system/app, but I assure you that I am not able to use the widget (I was going to post screen shots, but since I'm a n00b, the forum won't let me).
Toxin715 - Yes, if you could provide insight (or a .zip) for the widget, I'd be extremely grateful.
JsChiSurf - Thank you! I now see that it's your .zip, I just happened to try it directly from what Toxin715 had posted, so I didn't realize it at the time. Out of curiosity, what made your .zip any different from the others that I've tried and had no success with?
And open question to all who are reading - why would the app not show in my apps list if it is installed in system/app? Could something have gone wrong during the install of my ROM that perhaps a re-flash might correct?
Here's what I did to get it to work (using Root Explorer):
1) Copied HTCFMRadio.apk from fresh-removed-apks folder on my SD card
2) Navigated to system/app folder and clicked on "Mount R/W" button to make folder writable.
3) Pasted HTCFMRadio.app file in the system/app folder
4) Modified the permissions to match the other apps (rw-r--r--)
5) Rebooted the phone
That worked perfectly for me. I didn't modify the permissions at first and wasn't able to view the app in my app drawer. After I modified the permissions and rebooted, the app showed up as installed and worked perfectly.

[Q] Note 2 Gallery/Lockscreen wallpaper help

Had the bright idea to delete the stock gallery app while clearing bloatware. Unbeknownst to me, that was needed to set the lock screen wallpaper to anything other than the stock wallpapers. I use quickpic instead. Now I can't set a picture as the lock screen background (I can change wallpaper).
I've tried reinstalling the gallery, but when choosing to set the paper from the home screen, the gallery option does not show up. Is there a way to again associate the gallery, or an alternative app to do so?
SilveradoZ71 said:
Had the bright idea to delete the stock gallery app while clearing bloatware. Unbeknownst to me, that was needed to set the lock screen wallpaper to anything other than the stock wallpapers. I use quickpic instead. Now I can't set a picture as the lock screen background (I can change wallpaper).
I've tried reinstalling the gallery, but when choosing to set the paper from the home screen, the gallery option does not show up. Is there a way to again associate the gallery, or an alternative app to do so?
Click to expand...
Click to collapse
I'm no expert, but have you restored gallery back to /system/app or did you just click on .apk and chose to install it? Because if you installed it, it went to /data/app - maybe that's the reason it does not function as it supposed to?
And second, try to run it as an app - see if it starts in first place, maybe there's something else missing. Perhaps you deleted odex file as well, and because of this it does not start?
Just did a little experiment - restored apk and odex files back to /system/app - and option to change wallpaper appeared again. No reboot needed.
Move gallery apk to system/app and set the permissions to rw-r-r aand reboot.
akp.ajinkya said:
Move gallery apk to system/app and set the permissions to rw-r-r aand reboot.
Click to expand...
Click to collapse
I believe you both are right, as I just installed like normal. Noob issue though, when I go to copy and paste the apk into system/app, I get a permission denied message. I'm rooted of course and granted es file explorer su privileges, so I'm not sure why. Any suggestions?
Thanks for the help
SilveradoZ71 said:
I believe you both are right, as I just installed like normal. Noob issue though, when I go to copy and paste the apk into system/app, I get a permission denied message. I'm rooted of course and granted es file explorer su privileges, so I'm not sure why. Any suggestions?
Thanks for the help
Click to expand...
Click to collapse
You need to remount /system as read-write, just like you did before removing apps (if you removed them manually). Go to your terminal emulator or use ./adb shell get superuser (by typing "su") and type: mount -o rw,remount /system
After that you can move files to*/system. Just don't forget to reboot or remount /system as read-only when done.
Root explorer allows pasting and permissions changing. I'm not sure I'm using the right apk. I had a nexus one that installed and worked (though not able to change lock screen). I uninstalled it, and installed 2 different versions of the Samsung app. It never gets recognized on the reboot like the nexus one did. I assume I'm using the wrong one. Any link to an official one? I am on 4.1.2 stock.
Thanks again
SilveradoZ71 said:
Root explorer allows pasting and permissions changing. I'm not sure I'm using the right apk. I had a nexus one that installed and worked (though not able to change lock screen). I uninstalled it, and installed 2 different versions of the Samsung app. It never gets recognized on the reboot like the nexus one did. I assume I'm using the wrong one. Any link to an official one? I am on 4.1.2 stock.
Thanks again
Click to expand...
Click to collapse
I'm using 4.1.2 stock, so here are files from my /system/app:
http://ge.tt/11an8Gz
Sha256sum:
9f1a440e1aefb1bed74c0c8b0cdd0e462d24d70cad3da7063034db5f905f2d52 SecGallery2_Galaxy.apk
cf96394bcce1c1b07915265b953074d79960f530b4872770597f6cd4349ffd0e SecGallery2_Galaxy.odex
Good luck, and let me know if this helps.
P.S. Next time you clean you ROM, just move files to some location (for example your PC) Comes in handy later, I know that from my own painful experience
Userius said:
I'm using 4.1.2 stock, so here are files from my /system/app:
Sha256sum:
9f1a440e1aefb1bed74c0c8b0cdd0e462d24d70cad3da7063034db5f905f2d52 SecGallery2_Galaxy.apk
cf96394bcce1c1b07915265b953074d79960f530b4872770597f6cd4349ffd0e SecGallery2_Galaxy.odex
Good luck, and let me know if this helps.
P.S. Next time you clean you ROM, just move files to some location (for example your PC) Comes in handy later, I know that from my own painful experience
Click to expand...
Click to collapse
Any specific way to install it all back? I put everything back in system/app and rebooted. Nothing changed, it's not installed, and Android didn't "Update Apps" on the reboot. I try to install it with package installer like any other app and that fails. I've tried your odex and mine (which was never deleted).
That's great advice!

Categories

Resources