• 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
Jul 15, 2015
4
1
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 ?
 
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: 35
Upvote 0
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: 41
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