• 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

Dear Androidforums,

I am working on Android 7. I want to add the Open source license in Android BSP. If anyone experience in this please let me know.

Please provide the path for place this file and file format.









Thanks & Regards,
VinothS.
 
I have the BSP (Android 7). We configured for our board and not moto I am showing this one for demo. Please give the path to do place this license file in bsp and configuration. Later application team take to UI. Thank you.
 
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.
 
Thank you for your reply. I done but, i unable to view the content. I got following error when click UI "Failed to find viewer" in terminal. And I install the browser for web view. But, I got the same problem.
 
Did you review the rest of the SettingsLicenseActivity.java file? It seems to indicate that it hands off to HTMLViewer instead of WebView since it handles the compressed *.gz format.
 
Honestly, this is about where my expertise drops off. I'm not a developer, I'm just good at searching for things. :D

Maybe try extracting the original NOTICE.html.gz, add/change whatever you need, and then re-compress it with gzip?
 
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();
}
 
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.
 
Back
Top Bottom