domingo, 4 de enero de 2015

ijoy stone 4GB root and adb with ubuntu

I used chinese version iRoot2_2.0.6_141122_1811_1000_r.apk
and it intalled chinese root (com.mgyun.superuser in /system/app/irootsu.apk), but I installed superuser from koush using fdroid and it replaced it ok

adb shell does not work, despite setting usb debugging in config and tablet says "USB debugging enabled" when plugged

Some tests

adb shell
error: device not found

adb devices
List of devices attached


lsusb
Bus 002 Device 014: ID 2207:0010  

dmesg output when plugged

[ 7911.216166] usb 2-1: new high-speed USB device number 16 using ehci-pci
[ 7911.350384] usb 2-1: New USB device found, idVendor=2207, idProduct=0010
[ 7911.350396] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 7911.350403] usb 2-1: Product: Tablet Stone
[ 7911.350410] usb 2-1: Manufacturer: i-Joy
[ 7911.350415] usb 2-1: SerialNumber: D902013112900035A
[ 7911.352183] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 7911.352403] scsi16 : usb-storage 2-1:1.0
[ 7912.353713] scsi 16:0:0:0: Direct-Access     i-Joy                          PQ: 0 ANSI: 2
[ 7912.354288] scsi 16:0:0:1: Direct-Access     i-Joy                          PQ: 0 ANSI: 2
[ 7912.356480] sd 16:0:0:0: Attached scsi generic sg2 type 0
[ 7912.356918] sd 16:0:0:1: Attached scsi generic sg3 type 0
[ 7912.364920] sd 16:0:0:0: [sdb] Attached SCSI removable disk
[ 7912.365533] sd 16:0:0:1: [sdc] Attached SCSI removable disk


Editing "/etc/udev/rules.d/99-android.rules, adding this and restarting does not solve it

SUBSYSTEM=="usb", ATTRS{idVendor}=="2207", ATTRS{idProduct}=="0010", MODE="0666"

sudo /etc/init.d/udev restart

Nothing new adding 0x2207 in .android/adb_usb.ini

But after all this, I decided to reboot ubuntu ... and then it worked





lunes, 29 de diciembre de 2014

M-HORSE N9000W

Edit: look here http://sesionesfrikis.blogspot.com.es/2015/02/n9000w-malware-finally-found.html

I received this new phone, and everything seems ok
Rooted with RoomMaster SU v2.0.8
http://www.mgyun.com/romastersu

After that, I made titanium backup from previous phone: Whatsapp, Telegram...
and everything ok

With titanium backup app I removed unwanted apps: Facebook Msn, yahoo, ...
Du Speed Booster, APUS Launcher, PlayApp


I see "Cooee launcher S4" and I am not sure if it is malware

I installed Nova Launcher, and Security Lock Screen, but I want to be sure if I can remove this launcher without side effects: in my previous phone there were some situations where previous launcher was started ...
After several days, I see some apps installed automatically... MALWARE!!!
Some of them (I think some of the removed also, like Du Speed Booster or something similar, about battery http://forums.androidcentral.com/general-help-how/365217-random-apps-keep-installing-themselves.html )
ShareIt: cc.taosha.toolbox.shareit (/data/app/cc.taosha.toolbox.shareit-1.apk)
Baidu Browser: com.baidu.browser.inter (/data/app/com.baidu.browser.inter-1.apk)

Avast detects shareit as a trojan, and Kinguser (com.kingroot.kinguser) as potentially unwanted.

There are two possibilities for me: Cooee Launcher S4" or may be king root
I see /system/app/cooee_note3_20131218.apk
Googling it some people suggest to do a factory reset... but it won't work, as it comes by default...
http://answers.informer.com/variations/663134/how-to-uninstall-cooee-launcher-s4/

http://www.techsupportquestions.com/2411/uninstall-launcher-malware-internal-storage-android-phone

 ¿but wich one? CooeLauncher is a system app, and removal seems to be dangerous (after nova install, I can make a backup with Titanium backup, and there is a /system/app mover app in Fdroid, but by making it user app instead system may not work). In the other hand, kinguser is started initially (it can be seen with SD Maid), and so it could make it.
I am going to remove kingroot, and after that check for some time. Kingroot can be installed again with romastersu if I need it...

One of unwanted apps is in chinese, as Romastersu ...
https://play.google.com/store/apps/details?id=cc.taosha.toolbox.shareit

The others
https://play.google.com/store/apps/details?id=com.baidu.browser.inter


One of the worst things: these unwanted apps are not only installed but also downloaded? at any time, I think that consuming bandwidth and bytes... but I am not able to identify anything in android traffic usage, as apps are small.

Update: after one day without kinguser, no more unwanted apps. I decided to install iRoot (iRoot2_2.0.6_141122_1811_1000_r.apk) which also install kinguser, and with app remover I noticed that

root@android:/storage/sdcard0/mgyun/root/app # ls
co.mc.tools.batterybooster_1_542038_ad65a2f81e50808a9aec27affde98caa.apk
com.beagleboys.nfceveryday_4_522889_337d05b29a5e8a160825133213ede2ba.apk
com.beardcocoon.castcountdown.android_6_522890_9a9577e294a10e628320e77888a9d6bb.apk
com.btakoss.flashlightcompass_2_523078_d6299309474702d11f36cdbb24578a0d.apk
com.salyangoz.automessage_6_471851_6d32d80f002752c9ad71ceb96d14dcfe.apk

So chinese root tool includes apks ... and maybe the apks are not downloaded, but installed when kinguser, which starts automaticaly with phone, decides so.
These apk are asociated with the main menu

I made another test, and installed RomasterSu_2.0.9_141226_1816_1000_r.apk (I deleted 2.0.8 version), and it did not put apks in the same folder.
I installed again iRoot2_2.0.6_141122_1811_1000_r.apk and I noticed the same folder is initially empty, so maybe it downloads it later, and it install them ... I can confirm the apps are installed without any prompt / user confirmation.

I should try to change kinguser by another su utility like superSU, but it seems not to be trivial: downloading from google play it does not install properly, it says su binary has to be udpated and it is unable to update it, so superSU finally does not work.



sábado, 22 de noviembre de 2014

Aswering calls from upper half screen operative...

I have ordered a new phone, but in the meanwhile, I need to answer calls

https://play.google.com/store/apps/details?id=com.sch.answergesturefree

... reducing thresold (negative) value, and drawing just a horizontal line in the upper part of the screen, I can answer calls.

To end calls, I have configured power button in android

miércoles, 19 de noviembre de 2014

Recovering files from android with broken and unresponsive screen

Mi "new phone" (August) is broken: my daughter was playing with it and it felt to the floor, and screen is broken.
It charges, usb works, buttons are working, but I am unable to even unlock screen, so I am unable un activate it as usb storage.

I have adb access, so I need to recover just files from internal memory; contacts and calendar are in gmail, so the info to extract are just some photos. 


Instead of using adb pull / adb push for each file, ... searching I found this

http://qtadb.wordpress.com/download/


After that, I discovered that:
Unlock movements:

input swipe 100 700 600 300

Entering PIN:
input tap 300 500 is "5"
input tap 300 600 is "0"
input tap 100 500 is "4"
input tap 400 600 is "enter"

input keyevent 4 is "return"
input keyevent 82 is "menu"
http://developer.android.com/reference/android/view/KeyEvent.html


With that I have been able to remove screen lock configuration...

sábado, 18 de octubre de 2014

.org and .es domains info. Cancelling .org domain in 1and1

Some time ago I bought two domains, .es and .org and I associated them to a Google Site.
In the beginnig the price was just 5€ each one, but after several years I realized I am not using at all .org domain, and, more important, .org domain "exposes" to all people personal data (email, phone number, even postal address!!...)

http://whois.domaintools.com/
Example for my .org domain (... replace personal data!)
Registrant ID:...
Registrant Name:...
Registrant Organization:
Registrant Street: ...
Registrant City:..
Registrant State/Province:...
Registrant Postal Code:...
Registrant Country:ES
Registrant Phone:+34.6...
Registrant Phone Ext:
Registrant Fax:
Registrant Fax Ext:
Registrant Email:...


With .es domain this info is not so detailed, because it appears 1and1.
% NOTE: The registry for this domain name does not publish ownership
%       records (whois records) in the standard format.  This data
%       represents the most likely status of the domain based on
%       information provided by the Internet's domain name servers (DNS).

domain: xxxx.es
status: taken
nameserver: ns63.1and1.es
nameserver: ns64.1and1.es

% For more information, please visit http://www.nic.es/


www.nic.es redirects... Looking in
http://www.dominios.es/dominios/es/busca-tu-dominio
And there, info is just mail and name, but no phone number and postal address
https://www.nic.es/sgnd/dominio/publicDetalleDominio.action

DATOS DEL TITULAR
Nombre del Dominio xxx.es
Estado Activado
Identificador ...
Titular ...
Fecha de Alta 16-10-2012
Fecha de Caducidad 16-10-2015
Agente Registrador 1&1 INTERNET
PERSONA DE CONTACTO ADMINISTRATIVO
  wedge
Identificador 60D5D7-ESNIC-F5
Nombre ...
Email ...
 
PERSONA DE CONTACTO TECNICO
wedge
Identificador 2A7DD0-ESNIC-F5
Nombre Hostmaster ONEANDONE
Email hostmaster@1and1.es
 

SERVIDORES DNS
Nombre Servidor IP
ns63.1and1.es 217.160.82.170
ns64.1and1.es 217.160.83.170

So I decedid to cancel .org domain.

I didn't see any option about cancel in control panel, https://clientes.1and1.es/
Googling, I finally found this
http://www.joomlaempresa.es/es/tutoriales/trucos-para-webmaster/125-como-dar-de-baja-un-dominio-en-1and1.html

Login in https://contrato.1and1.es/ I was able to cancell .org keeping .es domain at the same time. I fixed the ending date as the date where end my contract for that domain: meanwhile I am going to redirect  .org domain redirecting to a page where I inform that I am no longer using .org domain (right now I was redirecting both to the same Google site)

jueves, 9 de octubre de 2014

Removing old kernels in ubuntu

A very simple one:
Each time kernel is updated I realize there is some disk wasted with previous versions: I do not have grub menu, but I imagine it will contain a lot of them.

Looking for some info
https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels
It is easy to do it manually

But ¿how to do it automatically?
http://ubuntuforums.org/showthread.php?t=1961409
It seems some script on boot will do the job, but I think I will do it manually :-)

miércoles, 1 de octubre de 2014

error: malformed file, press any key to continue. Ubuntu solution

Just getting this message on boot and looking for info
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1311247
Reading comments, this one is interesting
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1311247/comments/25
There are serveral links to workarounds, like this one
https://forum.manjaro.org/index.php?topic=10354.msg103451#msg103451but some people say no workaround work for them, and it appears to be a real solution
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1311247/comments/80
So, the more logical things to do are:
1- to wait for a grub2 update
2- look for a grub2 update compiled package
3- compile and install a grub2 update

The error is not critical, so it seems #3 is too much. 

Just looking for the grub2 version installed, there wasn't installed? (I do not use grub menu, I have just ubuntu installed, so it may be not necessary)
dpkg -l grub or grub2
So I try
sudo apt-get install grub2
And it install it!

Se instalarán los siguientes paquetes NUEVOS:
  grub2
...

Preparing to unpack .../grub2_2.02~beta2-9ubuntu1_amd64.deb ...
Unpacking grub2 (2.02~beta2-9ubuntu1) ...

After that I try
dpkg -l grub*
and it shows
||/ Nombre                          Versión              Arquitectura         Descripción
+++-===============================-====================-====================-====================================================================
un  grub                            <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
ii  grub-common                     2.02~beta2-9ubuntu1  amd64                GRand Unified Bootloader (common files)
un  grub-coreboot                   <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-doc                        <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-efi                        <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-efi-amd64                  <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-efi-ia32                   <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-efi-ia64                   <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-emu                        <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
ii  grub-gfxpayload-lists           0.6                  amd64                GRUB gfxpayload blacklist
un  grub-ieee1275                   <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-legacy                     <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-legacy-doc                 <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-linuxbios                  <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
ii  grub-pc                         2.02~beta2-9ubuntu1  amd64                GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin                     2.02~beta2-9ubuntu1  amd64                GRand Unified Bootloader, version 2 (PC/BIOS binaries)
un  grub-xen                        <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
un  grub-yeeloong                   <ninguna>            <ninguna>            (no hay ninguna descripción disponible)
ii  grub2                           2.02~beta2-9ubuntu1  amd64                GRand Unified Bootloader, version 2 (dummy package)
ii  grub2-common                    2.02~beta2-9ubuntu1  amd64                GRand Unified Bootloader (common files for version 2)

So I see the package used is grub-pc (and I uninstall grub2 package)

Looking for #1 and #2, in new ubuntu version 14.10 utopic unicorn
https://launchpad.net/ubuntu/utopic/+package/grub-pc
there are .deb packages, but I am not sure if fix is included.
https://launchpad.net/ubuntu/utopic/+source/grub2/2.02~beta2-14
So I will wait for ubuntu 14.10, and after that, I will try again if I have time.