F FabioG Active Member Licensed User Longtime User Sep 3, 2017 #1 Hello to all, I need your help I must be able to call this function Code: Copy /** * Bring up the HIDL Vendor HAL and configure for AP (Access Point) mode * * @return true for success */ public boolean startVendorHalAp() { return startVendorHal(AP_MODE); } contained in WifiVendorHal.java see also https://android.googlesource.com/pl...va/com/android/server/wifi/WifiVendorHal.java but I do not know how to do it who can help me? Thank you
Hello to all, I need your help I must be able to call this function Code: Copy /** * Bring up the HIDL Vendor HAL and configure for AP (Access Point) mode * * @return true for success */ public boolean startVendorHalAp() { return startVendorHal(AP_MODE); } contained in WifiVendorHal.java see also https://android.googlesource.com/pl...va/com/android/server/wifi/WifiVendorHal.java but I do not know how to do it who can help me? Thank you
Erel B4X founder Staff member Licensed User Longtime User Sep 3, 2017 #2 It doesn't look like a public API. Where did you find it? Upvote 0
F FabioG Active Member Licensed User Longtime User Sep 3, 2017 #3 Erel said: It doesn't look like a public API. Where did you find it? Click to expand... from here https://android.googlesource.com/pl...va/com/android/server/wifi/WifiVendorHal.java my problem is the following, in previous versions of Android 8.0 I could use via root command the following "ndc softap" commands including "ndc softap fwreload AP" with Android 8.0 it has been removed and I need to do this as I believe API do you have any idea ? Thanks very mutch! Upvote 0
Erel said: It doesn't look like a public API. Where did you find it? Click to expand... from here https://android.googlesource.com/pl...va/com/android/server/wifi/WifiVendorHal.java my problem is the following, in previous versions of Android 8.0 I could use via root command the following "ndc softap" commands including "ndc softap fwreload AP" with Android 8.0 it has been removed and I need to do this as I believe API do you have any idea ? Thanks very mutch!
Erel B4X founder Staff member Licensed User Longtime User Sep 3, 2017 #4 This is not a public API so it is difficult to say whether it is possible to call it or not. You need to get a reference to the correct WifiVendorHal instance. Upvote 0
This is not a public API so it is difficult to say whether it is possible to call it or not. You need to get a reference to the correct WifiVendorHal instance.
F FabioG Active Member Licensed User Longtime User Sep 3, 2017 #5 Erel said: This is not a public API so it is difficult to say whether it is possible to call it or not. You need to get a reference to the correct WifiVendorHal instance. Click to expand... Thanks Erel I asked for help for this because I need to update my app if this is not possible is there a way to reload the WiFi firmware? I previously did this with the root command "ndc softap fwreload AP" unfortunately in Android 8 softap seems to have disappeared Thanks again Upvote 0
Erel said: This is not a public API so it is difficult to say whether it is possible to call it or not. You need to get a reference to the correct WifiVendorHal instance. Click to expand... Thanks Erel I asked for help for this because I need to update my app if this is not possible is there a way to reload the WiFi firmware? I previously did this with the root command "ndc softap fwreload AP" unfortunately in Android 8 softap seems to have disappeared Thanks again
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2017 #6 FabioG said: is there a way to reload the WiFi firmware? Click to expand... Probably no. If you find Java code that does it then we can help you port it. Upvote 0
FabioG said: is there a way to reload the WiFi firmware? Click to expand... Probably no. If you find Java code that does it then we can help you port it.
F FabioG Active Member Licensed User Longtime User Sep 4, 2017 #7 Erel said: Probably no. If you find Java code that does it then we can help you port it. Click to expand... Thanks Erel! I found this https://android.googlesource.com/pl...va/com/android/server/wifi/SoftApManager.java and https://android.googlesource.com/pl...roid/server/wifi/SoftApModeConfiguration.java placed here https://android.googlesource.com/pl....0.0_r4/service/java/com/android/server/wifi/ I do not know if these can be useful Upvote 0
Erel said: Probably no. If you find Java code that does it then we can help you port it. Click to expand... Thanks Erel! I found this https://android.googlesource.com/pl...va/com/android/server/wifi/SoftApManager.java and https://android.googlesource.com/pl...roid/server/wifi/SoftApModeConfiguration.java placed here https://android.googlesource.com/pl....0.0_r4/service/java/com/android/server/wifi/ I do not know if these can be useful
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2017 #8 I'm afraid no. These classes are not part of Android public API. Upvote 0