Android Stuck on boot after flashing the kernel I built (Waiting for service ‘media.audio_policy’ on ‘/dev/binder’… in logcat)

I have built the Kernel for my Samsung Android device. But after flashing it and booting the device it gets stuck on the Samsung Logo.

Device : SM-M015G
Kernel was obtained from Samsung Opensource
Android 10 (Since the kernel version is meant for Android 10)

When observing logcat the following message are being output for ever in a loop. (Sometimes with other logcat messages too)

06-11 22:36:45.844  1326  1692 I chatty  : uid=1000(system) AudioService identical 4 lines
06-11 22:36:45.944  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:45.976   803   803 W ServiceManagement: Waited one second for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
06-11 22:36:45.976   803   803 I ServiceManagement: getService: Trying again for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0...
06-11 22:36:46.044  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:46.245  1326  1692 I chatty  : uid=1000(system) AudioService identical 2 lines
06-11 22:36:46.345  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:46.346  1774  1774 D audio_hw_utils: audio_extn_utils_open_snd_mixer: retry, retry_num 10
06-11 22:36:46.445  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:46.746  1326  1692 I chatty  : uid=1000(system) AudioService identical 3 lines
06-11 22:36:46.846  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:46.947  1326  1692 W ServiceManager: Service media.audio_policy didn't start. Returning NULL
06-11 22:36:46.947  1326  1692 W AudioSystem: AudioPolicyService not published, waiting...
06-11 22:36:46.976   803   803 W ServiceManagement: Waited one second for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
06-11 22:36:46.977   803   803 I ServiceManagement: getService: Trying again for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0...
06-11 22:36:47.346  1774  1774 D audio_hw_utils: audio_extn_utils_open_snd_mixer: retry, retry_num 11
06-11 22:36:47.447  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...

Does anybody have any ideas to fix this?
Thanks.

Calculating the expected height of a randomly built binary search tree

I need to calculate the expected height of a randomly built binary search tree, BST, with 4 different keys: $x < y < z < w$

According to Catalan numbers, there are 14 possible trees, 8 with height 3 and 6 with height 2. So let $X$ be a random discrete variable that holds the tree height, $P{X=2}=frac{6}{14}=frac{3}{7}$ and $P{X=3}=frac{8}{14}=frac{4}{7}$ hence $E[X]=2cdot frac{3}{7} + 3cdotfrac{4}{7} = frac{18}{7}approx 2.571$

But then I thought, not all the trees in Catalan numbers has the same probability of occurring as there are 24 ways to order the keys, so instead I get $P{X=2}=frac{16}{24}=frac{2}{3}$ and $P{X=3}=frac{8}{24}=frac{1}{3}$ and $E[X]=2cdot frac{2}{3} + 3cdotfrac{1}{3} = frac{4}{3} + 1 = frac{7}{3} approx 2.333$

I’m not sure which way is the correct way to calculate the probability of the possible values for $X$

If the Lightning Network is so great, why is it “level 2”, not stable and not built into Bitcoin Core?

I’ve been very frustrated for a long time in regards to not being able to get straight answers from anyone. Basically, Lightning Network, as it’s described, seems to solve all the problems with Bitcoin. I’m unable to accept payments due to the insane fees, but would be able to if Lightning Network were supported.

But it’s not supported. At least not in Bitcoin Core, which is the only Bitcoin client/wallet/node I consider “serious”. Which means I cannot use it.

Why is not the “real” Bitcoin project working on its own “layer 2”, as a core feature of Bitcoin, instead of relying on this perpetual alpha-stage, never-goes-anywhere, separate Lightning Network thing?

Do the people who develop for Bitcoin really not understand that the average person has never heard of Lightning Network and is never going to learn about or use it? That even hardcore Bitcoin fanatics like myself find it utterly impossible to start using it? That the massive fees make it impossible to make any kind of non-huge payments over the Bitcoin network in its current state?

Whatever the real reason is, I find it maddening beyond words. It’s almost as if the “core team” (yes, such a thing does exist, no matter how much we like to think of Bitcoin as “fully decentralized”) have entirely dropped any incentive to improve Bitcoin at all. This “Taproot” update has been promoted massively and forever, yet doesn’t seem to do anything differently whatsoever in practice.

I don’t get it. What is the problem? Why does the community just “hand-wave” away this critical problem of massive fees (and waiting) and tell us to use some separate thing which might as well be yet another garbagecoin? I consider Lightning Network to be just the same as Bitcoin Cash. I want nothing to do with it. It’s not stable, it’s not ready, it’s not supported, and it’s not sensible to rely on some “add-on” for core functionality.

Can somebody please explain this once and for all, in a sensible manner? I feel like the time is running out and life’s slipping away but no progress is made whatsoever. It’s just a bunch of nonsensical fluff and buzzwords, day after day, but the core problems are never fixed or even (seemingly) cared about by anyone.

reference request – Is a register machine built out of automata of some sort?

I am looking at register machines like the Random Access Machine. Wikipedia says:

Random-access machine (RAM) – a counter machine with indirect addressing and, usually, an augmented instruction set. Instructions are in the finite state machine in the manner of the Harvard architecture.

Does this mean the instructions are somehow encoded as a finite automaton? Or how exactly is a register machine implemented (theoretically and practically, at a high level). Where do automata fit into the picture?

I am wondering because I realize automata are pretty limited in what they can do, and once you need to “parse” something but have access to an entire database of information at each step of the parse, and then the result of parsing is a complicated object graph, you are no longer dealing with automata (as far as I can tell). Automata are basically recognizers returning a yes or no answer, with very little access to “data” to make their transition decisions. But I like the idea of “state machine”, where it transitions around state to state.

So I’m wondering what a so-called “state machine” with access to a large database to figure out how to make each transition might be called, and if this is what a register machine could/would be.

My understanding is that a complex register machine is closer to something like x86, where you have instructions and data. But it seems that you might somehow be able to encode these instructions as a state machine somehow. Is this true? What am I missing from this picture? Is a register machine compiled down to automata of some sort, or otherwise built out of automata, or if not, how is it different from automata?

Is there a way to rename the built in speaker name? (Mac Mini M1)

Is there a way to rename the built in speaker name? (Mac Mini M1) – Ask Different

audio – Is there a way to completely disable the built in microphone on a Logitech webcam?

audio – Is there a way to completely disable the built in microphone on a Logitech webcam? – Ask Different

Security of apps built on Telegram api?

I am using a telegram api based app named “TurboTel Pro”. I am happy with its different look and settings but I am concerned about the data it would take of me.

Can someone tell me what data does these api based apps take? I read in FAQ of “iMe” (a telegram api based app) that they don’t collect or they are not able to collect or see data from telegram servers but they also connect to third party servers to run some of their services.

Are they saying right? How much can I believe in them? What about third party service providers used in app? Is my data safe from third parties?

I also read that after verson 5.0 of telegram bots, api based app developers can connect their app to other servers also. Am I gonna loose some of my data in hands of other new-non-trusted companies?

2 million dofollow SEO backlinks will be built to boost your Google ranking. for $8

2 million dofollow SEO backlinks will be built to boost your Google ranking.

Thanks for visiting my gig!

Most people do not offer you thousands of low-quality links. This will help your business for a month, but after that Google is going to penalize you. This means less traffic and less money.

As I have access to very high authority websites, I can make dofollow backlinks to your website, which will result in higher rankings for your website and more organic traffic!

Key Features:

  • Updates from Google suggest 2021.
  • Backlinks on High DA PA pages
  • 80% dofollow & 20% nofollow backlinks
  • Natural MIX – High PA/DA
  • 97% of respondents saw their ranking improve.
  • 100% Satisfied or 100% refund
  • 24/7 super quality customer support
  • Unlimited Url’s and Keywords
  • Delivery Always On Time

WHY CHOOSE ME?

  • Fast delivery
  • 100% Refund policy
  • 100% buyer satisfaction
  • I have a lot of experience with SEO.
  • 24/7 Customer Support.
  • The working report in Excel format

Note: If You have any questions feel free to contact me.

Thanks

.

virtualization – Can computers built in minecraft be used to hijack hosts?

As people build more powerful computers in minecraft which can then run programs, is there a way to use those computers to run programs that hijack the host in some way?

Possible contest example would be to use a computer built in minecraft to create a network connection from that computer to a specified target.

There’s a lot between inside the game and the target, but in principle is a computer inside a gameworld not much different than a virtual machine and its relationship to its host?

Will this become exploitable and worth considering?

java – Maven project using EclipseLink for persistence runs on IDE, but fails when running from a built jar

I’m working on a maven project using eclipselink 2.7.8 for persistence. When I run it on my IDE (Netbeans 12.0) it works perfectly well, but when I attempt to run it from a built jar it doesn’t.

This is the stack trace when I use the jar

Exception in thread "main" Local Exception Stack:
Exception (EclipseLink-30005) (Eclipse Persistence Services - 2.7.8.v20201217-ecdf3c32c4): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: jdk.internal.loader.ClassLoaders$AppClassLoader@2cdf8d8a
Internal Exception: javax.persistence.PersistenceException: Exception (EclipseLink-28018) (Eclipse Persistence Services - 2.7.8.v20201217-ecdf3c32c4): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit (MyPersistenceUnit) failed.
Internal Exception: java.lang.NullPointerException
        at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:129)
        at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactoryImpl(PersistenceProvider.java:118)
        at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:191)
        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:80)
        ...
Caused by: javax.persistence.PersistenceException: Exception (EclipseLink-28018) (Eclipse Persistence Services - 2.7.8.v20201217-ecdf3c32c4): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit (MyPersistenceUnit) failed.
Internal Exception: java.lang.NullPointerException
        at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:2109)
        at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:2085)
        at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(JPAInitializer.java:104)
        at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactoryImpl(PersistenceProvider.java:107)
        ... 15 more
Caused by: Exception (EclipseLink-28018) (Eclipse Persistence Services - 2.7.8.v20201217-ecdf3c32c4): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit (MyPersistenceUnit) failed.
Internal Exception: java.lang.NullPointerException
        at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:233)
        ... 19 more
Caused by: java.lang.NullPointerException
        at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.hasEntity(MetadataProject.java:1441)
        at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.isOneToMany(MetadataAnnotatedElement.java:693)
        at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.buildAccessor(ClassAccessor.java:609)
        at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.addAccessorFields(ClassAccessor.java:438)
        at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.addAccessors(ClassAccessor.java:410)
        at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.preProcess(ClassAccessor.java:1225)
        at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EmbeddableAccessor.preProcess(EmbeddableAccessor.java:304)
        at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processStage1(MetadataProject.java:1851)
        at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:579)
        at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:629)
        at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:2006)
        ... 17 more

My persistence.xml:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
      <persistence-unit name="MyPersistenceUnit" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        ...
        <exclude-unlisted-classes>false</exclude-unlisted-classes>
        <properties>
            <property name="javax.persistence.jdbc.url" value="jdbc:h2:./bd/MyPersistenceUnit"/>
            <property name="javax.persistence.jdbc.user" value=""/>
            <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
            <property name="javax.persistence.jdbc.password" value=""/>
            <property name="javax.persistence.schema-generation.database.action" value="create"/>
        </properties>
    </persistence-unit>
</persistence>

My pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    
    <modelVersion>4.0.0</modelVersion>
    <groupId>xxxx.xxxxx</groupId>
    <artifactId>Service</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    
    <properties>      
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
    </properties>
    
    <dependencies>
        <dependency>
            <groupId>org.eclipse.persistence</groupId>
            <artifactId>eclipselink</artifactId>
            <version>2.7.8</version>
        </dependency>
        
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <version>1.4.194</version>
        </dependency>

        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <version>5.7.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>5.7.0</version>
            <scope>test</scope>
        </dependency>

        <dependency>          
            <groupId>org.fusesource.jansi</groupId>
            <artifactId>jansi</artifactId>
            <version>2.3.2</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
            <type>jar</type>
        </dependency>        
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>example</id>
                        <configuration>
                            <archive>
                                <manifest>
                                    <mainClass>xxxx.xxxxx.service.demonstration.MainDemo</mainClass>
                                </manifest>
                            </archive>
                            <descriptorRefs>
                                <descriptorRef>jar-with-dependencies</descriptorRef>
                            </descriptorRefs>
                            <appendAssemblyId>false</appendAssemblyId>
                        </configuration>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>

</project>

I suspect that it’s something to do with how maven is building the jar, since it works fine on the IDE. I have tried to utilize different eclipselink versions too, but that didn’t seem to help (I started this project using 2.5.2 but updated after I had problems due to incompatibilities with some Java 8 features)

DreamProxies - Cheapest USA Elite Private Proxies 100 Cheapest USA Private Proxies Buy 200 Cheap USA Private Proxies 400 Best Private Proxies Cheap 1000 USA Private Proxies 2000 USA Private Proxies 5000 Cheap USA Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Proxyti.com Buy Quality Private Proxies