Saturday, May 14, 2022

Genymotion install apk error - An error occured while deploying the file | Failed to extract native libraries, res=-113

If you are trying to deploy an android application on Genymotion Android Emulator and you are getting following error, this solution is for you.

An error occurred while deploying the file.
This probably means that the app contains ARM native code and your Genymotion device cannot run ARM instructions. You should either build your native code to x86 or install an ARM translation tool in your device.

1. First start Genymotion virtual Android Device and connect your Genymotion Android Device to adb. Follow this link

2. Once it is connected to adb, run command

adb shell getprop | grep ro.product.cpu.abi

3.  It shows the list of architecture supported by the device.


 If your app has similar architecture, you can install the app on the device.

4. Now how can you find the architecture of the app? 

An apk is a compressed file, you can extract the content and open the lib directory. Here it lists the architecture as a folder supported by apk.

 


5. Now this apk has armeabi-v7a architecture which is not aupported by the device by default but Genymotion provides ARM translation packages as patch to install such apps on the device.

6. To install ARM Translation package, open link

https://github.com/m9rco/Genymotion_ARM_Translation/tree/master/package

and download the package according to your android version of virtual device. Now drag and drop the apk in the device. Once this ARM translation package is installed successfully, turn off the device and reboot again.

If your device is not getting started, turn off the Genymotion software completely, kill all the processes related to it and VBox and start again.

7.  Now once the device is started successfully, check the supported architecture by the device using same command.


You will see, now the device can install apps with existing architecture i.e. x86 as well as apks with armeabi and armeabi-v7a architecture too.

8. If you are still getting same error

adb: failed to install h.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

Your app architecture might be arm64 / arm64-v8a

Currently Genymotion Desktop do not support applications for aarch64/arm64, even with ARM translation tools.

However, they offer Genymotion Device (PaaS) Android 8.0 (Oreo), 9.0 (Pie), 10 and 11 images which run on an ARM64 virtual machine at AWS and Oracle Cloud Infrastructure (only Android 8.0).

Sunday, May 8, 2022

icici bank app iMobile Pay UPI error - Mobile number and profile id doesn't belong to same user

If you are trying to perform UPI transactions using icici bank app iMobile Pay and it does not allow to transfer money using UPI and you get following error

 Mobile number and profile id does not belong to same user

This is the solution for you.

Solution : 1

1. Close the app. Update iMobile Pay from Google Play Store.

Open settings of your mobile and clear only cache of the app iMobile Pay.

2. Now Open the app again and visit option UPI. It should solve the issue.

You can try restarting your mobile too.

If you still get same error by touching any option of UPI like 'Send', 'Pay to Contact', 'Transaction History', 'Collect', 'Scan any QR' etc, Follow solution 2.

Solution : 2

1. Make sure your registered mobile number is active and you are able to send and receive sms.

2. Close the app iMobile Pay. Open settings and clear all data of  the app iMobile Pay App.

3. Open the app iMobile App. Re register yourself on the app by selecting sim of your registered mobile no. (if dual sim).

4. Select your account number from drop down and confirm code of alphabets written at back side of your debit card.

5. Once you are registered successfully, Visit Section BHIM UPI in your app and try to open option 'Send','Pay to Contact', 'Transaction History', 'Collect', 'Scan any QR' etc

Now you should be able to transfer money using UPI

You can try restarting your mobile too.

If you are still facing same issue, write an email to customer care of icici on customer.care@icicibank.com or call them on their customer support number.

.



Thursday, May 5, 2022

Telegram Export Group Members more than 10000

FloodWaitError - A wait of 30 seconds is required / Telegram Export Group Members more than 10000

aggressive=True attribute was used to export group members more than 10 K.

This attribute was used in the following line of code of Telegram export group members python script.

all_participants = client.get_participants(target_group, aggressive=True)
But recently telethon has started giving FloodWait error with this attribute.
If we remove it, or make it false, we can download members but less than 10k.

all_participants = client.get_participants(target_group, aggressive=False)

But Removing the attribute or making it false can export members of a group which has less than 10K members but it gives following error for the groups which have more than 10k members.

TypeError: 'ChannelParticipants' object is not subscriptable
github page of this issue suggests a solution for the error. Upgrade your Telethon package to 1.24.0 using following command.

python3 -m pip install --upgrade https://github.com/LonamiWebs/Telethon/archive/master.zip
but after upgrading telethon some users have started getting this new error.
Traceback (most recent call last):
  File "t1_exportgroup.py", line 1, in <module>
    from telethon.sync import TelegramClient
  File "/home/pavi/virtualenvs/telegram/lib/python3.8/site-packages/telethon/__init__.py", line 4, in <module>
    from ._misc import utils as _  # depends on helpers and _tl
  File "/home/pavi/virtualenvs/telegram/lib/python3.8/site-packages/telethon/_misc/utils.py", line 23, in <module>
    from . import markdown, html
  File "/home/pavi/virtualenvs/telegram/lib/python3.8/site-packages/telethon/_misc/markdown.py", line 8, in <module>
    import markdown_it
ModuleNotFoundError: No module named 'markdown_it'
A solution was also provided for the error. Install following packages.

pip install markdown-it-py~=1.1.0
pip install pyaes~=1.6.1
pip install rsa~=4.7.2
After applying this solution above error is gone but another error is here.
Traceback (most recent call last):
  File "t1_exportgroup.py", line 1, in <module>
    from telethon.sync import TelegramClient
ModuleNotFoundError: No module named 'telethon.sync'

Telethon 2 has removed sync module. If your export script is showing this error, you need to change the script according to the changes suggested in this version 2 migration guide.