• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.
I liked ctmods 3.75 camera icon, so I replaced stock camera app with ctmod 3.75 camera on my moms rooted prevail. I then tried to do the same on my phone but with CAMERA ICS by moblyx, but I want to activate the camera by using the button on the side of the phone, the phone doesn't recognize camera ics as my new stock camera because its official name is camera ics not camera, so I want to rename camera ics so that it works with the button.
 
Upvote 0
I'm pretty sure the camera button only works with the stock camera app. I don't think changing the name would work


Also, what does that have to do with 'building a rom'? (which you stated is your original purpose)


In the case that I'm wrong, and renaming it would work, you would need to decomplie it with apktool (or something similar) and edit androidmanifest.xml

There are plenty of guides on how to do this (just Google it)
 
  • Like
Reactions: salgadoadiel12
Upvote 0
You could rename the file in question to "camera.apk" (without quotes), connect your phone via usb, and type:
[HIGH]adb push camera.apk /system/app[/HIGH]

Note that this would replace the stock camera app for whatever ROM you're running

But is that name what it searches for when using the hardware button? Or is it the 'displayed name'?
 
Upvote 0
I think that the system will only look for a "camera" app, an app whose name is camera.

I think you mean, the camera button statically launches any app registered as intent: 'com.android.camera' rather than whatever app is set as default to service camera events

it was found easier to just set the camera app project name to com.android.camera and compile it like that.

Modifying an app post compile to do the same is a bit touchier
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones