Giter Club home page Giter Club logo

Comments (11)

zhouziyang avatar zhouziyang commented on August 26, 2024 1

you just need vendor_redroid. I'm still refactoring repos, and move device configs to device/redroid and leave module definition under vendor/redroid across all versions.

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024 1

seems permission issue (use root user to build before?).

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024 1

FYI

diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java
index ed03f519..43505179 100644
--- a/core/java/android/net/ConnectivityManager.java
+++ b/core/java/android/net/ConnectivityManager.java
@@ -1200,6 +1200,7 @@ public class ConnectivityManager {
     @Nullable
     public NetworkInfo getNetworkInfo(int networkType) {
         try {
+            if (networkType == ConnectivityManager.TYPE_WIFI) networkType = ConnectivityManager.TYPE_ETHERNET;
             return mService.getNetworkInfo(networkType);
         } catch (RemoteException e) {
             throw e.rethrowFromSystemServer();

from redroid-doc.

sickcodes avatar sickcodes commented on August 26, 2024

Any suggestions on this for redroid/redroid-10-wifi?

wildcard(/home/user/user/target/product/redroid_x86_64/clean_steps.mk) was changed, regenerating...
[W][2021-05-06T18:05:43+0000][103571] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2021-05-06T18:05:43+0000][103571] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
[W][2021-05-06T18:05:45+0000][105221] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2021-05-06T18:05:45+0000][105221] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
FAILED: ninja: '/home/user/user/target/product/redroid_x86_64/obj/STATIC_LIBRARIES/lib_driver_cmd_simulated_intermediates/export_includes', needed by '/home/user/user/target/product/redroid_x86_64/obj/EXECUTABLES/hostapd_nohidl_intermediates/import_includes', missing and no known rule to make it
FAILED: [W][2021-05-06T18:05:45+0000][105239] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2021-05-06T18:05:45+0000][105239] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
18:05:46 ninja failed with: exit status 1

#### failed to build some targets (10 seconds) ####

from redroid-doc.

sickcodes avatar sickcodes commented on August 26, 2024

Yes I did use root, didn't think it would be a problem. I'll try as a subuser.

from redroid-doc.

Dinibewerbig avatar Dinibewerbig commented on August 26, 2024

Somebody got the Wifi working at this stage?

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024

@Dinibewerbig already got a POC working on redroid-10. all you need is mac80211_hwsim kernel module, and it;s same as android emulator.

from redroid-doc.

pini-gh avatar pini-gh commented on August 26, 2024

Hi,
I didn't find the image redroid-10-wifi. Was it removed?
I'd like to run an app (Sonos S1) which insists on having wifi and localization enabled on the device, even when they're of no use.

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024

I remove this branch in several repos since build broken.
It's feasible to emulator WiFi in redroid based on mac80211_hwsim kernel module. But still recommend to use Android Emulator based solutions if full emulated WiFi needed.

As a workaround, can mock WiFi NetworkInfo with Ethernet NetworkInfo; And App will think it's WiFi connected.

from redroid-doc.

pini-gh avatar pini-gh commented on August 26, 2024

As a workaround, can mock WiFi NetworkInfo with Ethernet NetworkInfo; And App will think it's WiFi connected.

Thanks for the hint. Unfortunately I don't know the codebase enough. Would you mind adding a few more details?

from redroid-doc.

pini-gh avatar pini-gh commented on August 26, 2024

This line is already present in the source code. So I guess it has no effect on my use case, unfortunately.

from redroid-doc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.