Posts

Showing posts with the label android

Issue with USB, Android does it not recognized and explorer freezes

Image
I have this issue with my Xiaomi A1 with Android Oreo If you try access to your USB OTG and when you plug it and click OK on this pop-up window: Maybe your app will freeze and you couldn't access to your USB, like that I tried with es explorer non-pro version and it got this info (the app freeze also): To solve it, just choose Cancel instead of OK when you insert your USB. Wait until the USB starts to blink (around 25 seconds) and try to access to it again. Enjoy it!

How to fix Android when developer options are not available for this user

Image
I have an Android One with Oreo version and suddenly my Android rebooted and after that it started to behave strangely: 1) Notification section doesn't work. I can't see notifications from my apps and the arrow and the screw icon to settings access don't work. 2) As I can't access to the notification area, I can't enable Use USB to Transfer Files to access to my phone memory. 3) I can't access to developer mode (I before active it with a lot of taps over Build number). Clicking on developer options just shows developer options are not available to this user. 4) I can't update or install the apps on google play. They freeze on Download pending... message 5) Home and Switch buttons don't work. They light up and vibrate when I tap them but they do nothing. This issue is apparently related to a deconfiguration of user accounts. To fix it, you need re-setup the users. As you can't access to the user manager (you are in guest mode ...

How to run Helium Desktop on Linux

If you want backup your Android apps, the best application to do it is Helium. To run it, you need execute an application on your Desktop wget http://download.clockworkmod.com/carbon/carbon-linux.tgz tar xzvf carbon-linux.tgz  cd linux ./run.sh .    You will see this error:                                error: device not found adb server is out of date. killing... README adb run.sh daemon started successfully README adb run.sh error: device not found Or this: /data/app/com.koushikdutta.backup-1/base.apk CLASSPATH=/data/app/com.koushikdutta.backup-1/base.apk app_process /system/bin com.koushikdutta.shellproxy.ShellRunner2  & exit hammerhead:/ $ ^[[24;80R If you see, the bash script has an issue. To solve it, execute the following lines on your terminal: pkg=$(adb shell pm path com.koushikdutta.backup)  pkg=$(echo $pkg | cut -d : -f 2 | sed s/\\r//g) ech...

How to capture Android traffic throught Wireshark

An option is connect wireshark from your pc to your android throught ssh. You can use sshdroid to enable ssh on your Android. On your computer use the following commands: mkfifo /tmp/remote wireshark -k -i /tmp/remote & ssh root@android_ip "tcpdump -s 0 -U -n -w - not port 22" > /tmp/remote Now you could see you Android traffic Enjoy it!

How to login in Spotify throught Facebook

Image
A common issue is when you get this following alert: A facebook error has occurred. Please try again To fix it, you need to enable an alternative password for thirds applications in your facebook security configuration, like follows: Browse to facebook.com, Settings (top right corner) > Security (left hand menu) > App Passwords. There, generate a password for "spotify". Use this password (and your email address to login in facebook) to login to Spotify on your mobile app. Enjoy it!

How to execute Python scripts in Android

Image
First, you need to install QPython in your Android. To access to your Android console, you can use SSHDroid  (remote access) or Terminal Emulator  (local access). Python for Android depends from a lot bash scripts. You need use all of them to run it. Now, you need add to your PATH (configurable in init.environ.rc), python executable. Other option is create symbolic links of your apps to /system/bin, as follow: su mount -o rw,remount /system cd /system/bin ln -s /data/data/org.qpython.qpy/files/bin/end.sh  ln -s /data/data/org.qpython.qpy/files/bin/python-android5 ln -s /data/data/org.qpython.qpy/files/bin/init.sh ln -s /data/data/org.qpython.qpy/files/bin/qpython-android5.sh python Now you can run python on your console :) To execute a python script without calls to python, you must write on the first line of your script this line: #!/system/bin/python To execute the script, give it execution permission throught the console: chmod +x $NAME.py ...

Use a remote wireshark interface to sniff your smartphone traffic with tcpdump and ssh

If you want sniff your data throught your mobile device, a good option is redirect it to your pc and view it using wireshark (you can see your traffic in real time). To do this, you need download previosly a tcpdump compiled for ARM or to our arquitecture. Now these are the following steps to mount your device on the pc: adb root adb remount remount of system failed: Permission denied remount failed This is a common error. To solve it, you need run the instructions as super user: adb shell su -c mount -o rw,remount /system adb push tcpdumpt /system/xbin/ Now we need to give execution permission to tcpdump: adb shell su -c chmod 777 /system/xbin/tcpdump In Android, you can download SSHDroid to install a ssh server with port 2222 as default. Later we transfer the output to wireshark: ssh root@${ip} -p 2222 tcpdump -U -s0 -w - 'not port 2222' | wireshark -k -i - tcpdump: Can't open netlink socket 13:Permission denied Remember, give permission with su...

Run Android Studio 2.2 Preview 1 in Ubuntu

Image
If you want to run the last version of Android Studio, you need download it from: wget  https://dl.google.com/dl/android/studio/ide-zips/2.2.0.0/android-studio-ide-145.2878421-linux.zip unzip android-studio-ide-145.2878421-linux.zip cd android-studio/bin/ ./studio.sh The following error will appear: ./studio.sh: 137: ./studio.sh: declare: not found ./studio.sh: 141: ./studio.sh: Syntax error: "(" unexpected (expecting "fi") To fix it, you need replace the first line of studio.sh by #!/bin/bash Now you can create and icon in your Desktop to execute this application. Create a file calls Studio.desktop in your desktop and put the following lines: [Desktop Entry] Type=Application Icon=/home/user/android-studio/bin/studio.png Name=AndroidStudio Comment="Start AndroidStudio" Exec=/home/user/android-studio/bin/studio.sh Terminal=false Categories=Controller; GenericName[en_US]= Name[en_US]=AndroidStudio Enjoy it!

Failure [INSTALL_FAILED_DEXOPT] on Android Studio

Image
If you want run your app within the android studio emulator, maybe you will see this message: Installation failed since the device possibly has stale dexed jars that don't match the current version (dexopt error). In order to proceed, you have to uninstall the existing application. WARNING: Uninstalling will remove the application data! Do you want to uninstall the existing application? Don't worry, you can fix it. Go to Android Virtual Device Manager and click on Wipe Data.

Install Android Studio on Ubuntu 15.10 64 bits

Image
First, just in case, we going to install this libraries: sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 Now, we need to download the last version from google wget  https://dl.google.com/dl/android/studio/ide-zips/1.5.1.0/android-studio-ide-141.2456560-linux.zip unzip -e android-studio-ide-141.2456560-linux.zip cd android-studio/bin ./studio.sh At the beginning we can see an alert: "IBus prior to 1.5.11 may cause input problem. See IDEA-78860 for details." to fix it, you can go to: System Settings ­> Language Support Now, change IBus to none Now restart you system. Run again studio.sh. If you see a warning like this: " WARN - dea.updater.SdkComponentSource - Couldn't find existing SDK" or the setup fails with this message: "ignoring unknown package filter 'platform-tools'", means that you don't have android SDK installed. To install it, do as follows: wget https://dl.google.com/...