applications – Target sdk version changed to 29, but not working in android 10 and 9

After decompiling with apk tool, I changed targetsdk version to 29(and minsdk version to 19), and build and signed it again.
This is apktool.yml file:

isFrameworkApk: false
packageInfo:
  forcedPackageId: '127'
  renameManifestPackage: null
sdkInfo:
  minSdkVersion: '19'
  targetSdkVersion: '29'
sharedLibrary: false
sparseResources: true
unknownFiles: {}
usesFramework:
  ids:
  - 1
  tag: null
version: 2.4.1
versionInfo:
  versionCode: '1'
  versionName: '1' 

and this is AndroidManifest file:

<?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="air.id181apeke">
    <application android:hardwareAccelerated="false" android:icon="@drawable/icon" android:label="....">
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:label="Oxford - Starter" android:launchMode="singleTask" android:name=".AppEntry" android:screenOrientation="user" android:theme="@style/Theme.NoShadow" android:windowSoftInputMode="adjustResize|stateHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            <meta-data android:name="autoOrients" android:value="true"/>
            <meta-data android:name="fullScreen" android:value="true"/>
            <meta-data android:name="uniqueappversionid" android:value="9de9b08c-60fa-4ecc-86ea-983d2105693d"/>
            <meta-data android:name="containsVideo" android:value="false"/>
        </activity>
    </application>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
    <uses-feature android:name="android.hardware.camera" android:required="true"/>
    <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="true"/>
</manifest> 

After installing, it says: … app keeps stopping!

What’s wrong here buddies?
Should I add something or some files?

Cheers

url rewriting – Dynamic URL with rewrite rule not working

I’m trying to update my link from this: https://dev.brunchwork.com/next-event/?eb_event_id=106098978902
To this: https://dev.brunchwork.com/next-event/(guest_name_here)/(event_id_here)

Following this discussion, I was able to come up with this code:

In my functions.php:

/*rewrite rule*/
function custom_rewrite_rule() {
    add_rewrite_rule('^next-event/((^/)*)/((^/)*)/?','index.php?page_id=69&guest_name=$matches(1)&event_id=$matches(2)','top');
}

add_action('init', 'custom_rewrite_rule', 10, 0);


add_filter('query_vars', 'add_query_vars');
function add_query_vars($aVars) {
    $aVars() = "guest_name";
    $aVars() = "event_id";
    return $aVars;
}
/*end rewrite rule*/

In my next-event page:

/*
Template Name: Single Event Template (updated)
*/

get_header();

global $wp_query;

$guest_name = $wp_query->query_vars('guest_name');
$test_eb_event_id = $wp_query->query_vars('event_id');

echo $guest_name;
echo $test_eb_event_id;

When I try to test the URL, the rewrite is not working. I also clicked the save button in the permalinks page to apply the changes.

So when I enter: https://dev.brunchwork.com/index.php?page_id=69&guest_name=test&event_id=123

I get https://dev.brunchwork.com/next-event/?guest_name=test&event_id=123

Any help is highly appreciated. Thank you very much!

How to force SELinux to permissive even when setenforce 0 is not working and kernel was 100% permissive when flashed?

I don’t know what to do, I’m using Samsung Note 3 (Exynos) – N900 with custom Resurrection Remix 5.8.5 ROM (Android 7.1.2) with it’s own permissive kernel and rooted with Magisk. Yesterday it turned to enforcing status, then SPenCommand stopped working. And when I tried to setenforce 0 in terminal, it gave me error: invalid argument. I don’t want to flash phone again, backup takes a lot of time, as well as restoring, because I have very old PC and I flashed it on friend’s laptop who is now 50 miles away and won’t come just because of this (my computer still uses USB 1.1 interface – I know it’s garbage but its working for 15 years stable. Any suggestions how to do it on phone itself, would be helpful. Please help me somebody 🙂

php – InnerBlocks with allowedBlocks not working with acf_register_block

I using the InnerBlocks tag to allow for nested blocks, within my custom block. I am trying to use the ‘allowedBlocks’ argument to restrict the blocks allowed to only specific ones. However, if I put anything inside the InnerBlocks tag, the block does not load and just spins.

I am using acf_register_block for my block registry, as what we are doing heavily ties in with ACF.
I have enabled '__experimental_jsx' => true in all the blocks I am working with.

This works

<div>
    <InnerBlocks />
</div>

This does not work

<div>
    <InnerBlocks allowedBlocks={ 'acf/orange-carousel' } />
</div>

It also doesn’t work if I pass an array instead of a string for the allowed blocks.

I am using ACF Pro Beta 5.9

Any help is appreciated!

addtocart – Add to cart functionality is not working for any product

my add to cart not working, its showing nothing in cart for 2 stores and for 1 store adding a default product everytime, doesn’t matter which product we added,
its showing this exception….

We can’t add above item to cart.Please contact administratorThe product wasn’t found. Verify the product and try again.

i have checked my code is fine, its working on local setup and dev server, just issue is on production,

i have tried with cookie lifetime increase and permission settings on directories but none worked..

can any body share any idea or solution with some details ??

apache2 – Apache BasicAuth Require valid-user not working, Require user test works

I am trying to Reverse Proxy an API and protect it with BasicAuth. I have done this successfully in the past on other servers running Apache, on this server, but with Shibboleth, and on nginx.

I have 2 users configured in my .htpasswd file: test and dmaes

This is my Apache config:

<Location /v1/>
    AuthName "Restricted Content"
    AuthType Basic
    AuthUserFile "/opt/test/.htpasswd"
    Require valid-user
    ProxyPass http://127.0.0.1:8088/v1/
</Location>

I get a 401 Unauthorized with both users

If I do this:

<Location /v1/>
    AuthName "Restricted Content"
    AuthType Basic
    AuthUserFile "/opt/test/.htpasswd"
    Require user test
    ProxyPass http://127.0.0.1:8088/v1/
</Location>

I can success fully authenticate with the test user, but (obviously) not with the dmaes user.
Since the users in the .htpasswd file will a) change and b) not be managed by me, Require user x is not really an option…

I’m using Apache 2.4.29 on Ubuntu 18.04.4

thunderbolt – External iSight Camera microphone not working

I’m using a 2003-era external iSight Camera with an Apple Cinema Display and USB-C MacBook Pro running macOS 10.15.

It’s connected via a long succession of dongles:

iSight > FireWire 400 > Apple Cinema Display > FireWire 800 > Thunderbolt 2 > Thunderbolt 3

It still works great for video, if a bit low resolution, and you can’t beat the design:

external iSight camera

However, the iSight Camera’s microphone does not appear to be working. People cannot hear me when my laptop is in clamshell mode, despite being on video via the external iSight.

In System Preferences > Sound I only see “MacBook Pro Microphone”:

Sound Input

System Information shows a FireWire iSight device, as well as an “Unknown Device”. When I unplug the FireWire cable/dongle, both devices disappear.

System Information

Why isn’t the iSight microphone working? How can I use an external iSight as an audio/video webcam in modern versions of macOS?


Related threads that seem to be experiencing the same issue:

opengl – RayCasting implementation not working with camera rotations

I’ve followed several guides for a custom implementation of a raycasting algorithm for picking objects in my opengl application.

This is my unproject function

private Vector3 unProject(Vector3 vec)
    {
        Vector4 v = new Vector4();

        Vector2 screenPos = vec.Xy;

        screenPos.X = screenPos.X / Size.Width;
        screenPos.Y = screenPos.Y / Size.Height;

        //Convert depth back to (-1:1)
        v.Xy = 2.0f * screenPos - new Vector2(1.0f);
        //Invert Y
        v.Y = -v.Y;
        v.Z = vec.Z;
        v.W = 1.0f;

        //Unproject
        v = Vector4.Transform(camera.projMatInv, v);
        v.Z = -1.0f;
        v.W = 0.0f;
        //Convert to world space
        v = Vector4.Transform(camera.lookMatInv, v);

        return v.Xyz;
    }

And to get the ray based on the screen position is:

Vector3 ray = unProject(new Vector3(screenPos.X, screenPos.Y, -1.0f));
ray = ray.Normalized();

In order to Preview the rays, I’m rendering a mesh in a calculated position:

Vector3 pos = camera.Position + 2.0f * v;

This is working perfectly when I’m not rotating the camera. When I try to pick a position on the screen, this is where the object shows up.

The problem starts when I start to add even the slightest rotation of the camera
The moment I start slightly rotating the camera the end positions of the ray vectors start to mismatch the mouse position. With larger rotations results are completely off.

I did implement a very basic rayToSphere intersection algorithm, and the results are pretty much the same. When the camera is not rotated, picking is super accurate. When I start adding camera rotations results are off.

I suspect that its something in the unproject function that I miss, but I have no clue what could go wrong.

Thanks in advance