• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

ROMs How to make owner ROM android

DucTMc

Lurker
Hi there.
I am a student. I am trying to make owner ROM android. But I have some problems.
When I try to change android skin. Specifically, in android L and lower version, the notification row is the layout which is available by android. They called the notification template. And I added an template into framework/base/core/res/. I builted it.
In right case, The resource id must be contained in the R file. But after builted, I dont find this id in R file.
What should I do ?
 
Hello and welcome!
I've moved your thread to the ROM development forum for you. Perhaps other devs can chime in about what you are looking for because that is all French to me :p

Good luck! :D
 
May be. I think the android system resouce (include drawable, dimens, string, layout xml) is contained in framework-res.apk. But it is not important. I added some new resources into framework/base/core/res/ , after that, I want to use them to change android skin in my code. But I can not map them by id to use because their id is on in R file (specific: com.android.internal.R.java ).
As I know

In normally, when we add some resource into android project. Their id is generated automatically in R file by SDK. But in rom, it is not automatic. We have to make it

Example in my file attached. This is Notification.java - a system class is notification in android (include layout and content).(It locates in framework/base/core/java/android/app/Notification.java)
This capture is the notification templates. There is a R file in there to map resource(in framework/base/core/res). I added the resources but I can not map them.
 

Attachments

  • Capture.JPG
    Capture.JPG
    44.8 KB · Views: 82
May be. I think the android system resouce (include drawable, dimens, string, layout xml) is contained in framework-res.apk. But it is not important. I added some new resources into framework/base/core/res/ , after that, I want to use them to change android skin in my code. But I can not map them by id to use because their id is on in R file (specific: com.android.internal.R.java ).
As I know

In normally, when we add some resource into android project. Their id is generated automatically in R file by SDK. But in rom, it is not automatic. We have to make it

Example in my file attached. This is Notification.java - a system class is notification in android (include layout and content).(It locates in framework/base/core/java/android/app/Notification.java)
This capture is the notification templates. There is a R file in there to map resource(in framework/base/core/res). I added the resources but I can not map them.
 

Attachments

  • Capture.JPG
    Capture.JPG
    44.8 KB · Views: 89
Back
Top Bottom