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

Open source license in Android BSP

I moved the thread to the Rooting forum for the moment. If it doesn't get traction here I'll move it to the device forum and tag it root. Let me know which Moto model it is.

I know there are some rom devs that work on Moto that can probably help if they see the thread.
 
Upvote 0
I assume that you are building this ROM from the AOSP source code?

https://android.googlesource.com/pl...android/settings/SettingsLicenseActivity.java

Code:
    private static final String DEFAULT_LICENSE_PATH = "/system/etc/NOTICE.html.gz";
    private static final String PROPERTY_LICENSE_PATH = "ro.config.license_path";

So the location of the license file is /system/etc/NOTICE.html.gz by default, but it can be overridden by the ro.config.license_path property.
 
Upvote 0
Thank you. Actually we can not add our content in the same file. this file was generated by the script. But, I add my file with my own name. And I checked also, the file present as well as my requirement. But, what is the main problem is when I click this Open source License UI i unable to view it. I got following error when click UI "Failed to find viewer" in terminal. And in UI "There is a problem loading the licenses".

I want to know, is there any default configuration to disable/enable web view ?


https://android.googlesource.com/pl...android/settings/SettingsLicenseActivity.java

try {
startActivity(intent);
finish();
} catch (ActivityNotFoundException e) {
Log.e(TAG, "Failed to find viewer", e);
showErrorAndFinish();
}
}
private void showErrorAndFinish() {
Toast.makeText(this, R.string.settings_license_activity_unavailable, Toast.LENGTH_LONG)
.show();
finish();
}
 
Upvote 0
Hi,

If anyone tell me, I want to add the license description.

There are two license is there for each package.

Licensed under the Apache License, Version 2.0 (the "License");

GNU General Public License version 2.0

I done this by using some reference. But, I want to cross check.

If anyone knows please provide the ideas.




Thanks & Regards,
VInothS.
 
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