Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save_drawable() not working properly #62

Open
Sahil-pixel opened this issue May 20, 2024 · 2 comments
Open

save_drawable() not working properly #62

Sahil-pixel opened this issue May 20, 2024 · 2 comments

Comments

@Sahil-pixel
Copy link
Contributor

i was saving drawable image to device's folder
some image save but for some app stopped working showing no python error .
i have get some error by
adb logcat *:E | grep 'packagename'

Unknown bits set in runtime_flags: 0x40000000
05-19 22:45:01.478 9112 9112 E .hiddensettings: Invalid ID 0x00000000.
05-19 22:45:01.513 9112 9112 E .hiddensettings: ofbOpen failed with error=No such file or directory
05-19 22:45:01.513 9112 9112 E .hiddensettings: sysOpen failed with error=No such file or directory
05-19 22:45:01.513 9112 9112 E .hiddensettings: sharedImFd failed with error=Permission denied
05-19 22:45:04.527 9112 9169 F .hiddensettings: java_vm_ext.cc:591] JNI DETECTED ERROR IN APPLICATION: can't call int android.graphics.drawable.BitmapDrawable.getIntrinsicHeight() on instance of android.graphics.drawable.VectorDrawable
[22:47]
please see some error is this from permission . but i have give all permission
[22:48]
] JNI DETECTED ERROR IN APPLICATION: can't call int android.graphics.drawable.BitmapDrawable.getIntrinsicHeight() on instance of android.graphics.drawable.VectorDrawable

if platform=='android':
            packages=all_packages()
            j=0
            path_app=package_info('org.test.myapp')["dataDir"]
            print("*",path_app)

            for i in packages:
                print(i)
                _p=package_info(i)

                lpakages.append(i)
                lbl=_p['loadLabel']
                dp=p["loadIcon"]
                dp_path=save_drawable(dp, path_app+'/', str(j))
                #print("---",)
                ldpes.append(dp_path)
                lnames.append(lbl)
                lnoactivities.append('{} Activities'.format(len(_p['activities'])))
                j+=1

Testing done in Android 13

@kengoon
Copy link
Member

kengoon commented May 28, 2024

@Sahil-pixel I will have to test this first. I may not be quick to response because I'm quite busy

@kengoon kengoon closed this as completed May 28, 2024
@kengoon kengoon reopened this May 28, 2024
@Sahil-pixel
Copy link
Contributor Author

Ok. But please check it . When you have free time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants