Android: Difference between revisions

From Yggenyk
Jump to navigation Jump to search
No edit summary
 
(110 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:English pages]]
{{Android}}
[[Category:Mobiltelefoni]]
[[Category:Software development]]
<google>ENGELSK</google>
<google>ENGELSK</google>
====Troubleshooting====
=====USB Driver problems=====
If the USB driver fails to load when the phone is in bootloader mode, install PdaNet for Android, and it's USB driver.<br>
* [http://www.junefabrics.com/ PdaNet for Android]
You can uninstall PdaNet after the USB drivers are installed, and the USB drivers will still work.<br>
The usb drivers is installed in ''C:\Program Files\PdaNet for Android\usbwin'' or ''C:\Program Files (x86)\PdaNet for Android\usbwin''.<br>
To verify that the driver is working, set your phone in bootloader mode, and use the '''fastboot devices''' command, it should show the list of attached devices if the driver is working.<br>
=====When phone won't see OTA update or when manual update fails=====
Do the following
# Manage apps - ALL - Google Services Framework
#* Press Force stop
#* Clear Data
# Reboot phone
# System settings - About phone - System updates
#* Press Check now
# The phone should now show update to x.x.x is available
=====How to boot into recovery mode=====
# Power off your phone
# While the phone is off, press and hold Volume Up + Volume Down + Power
# Use the volume button to scroll through the menu options and press power to select "Recovery Mode"
# Once the Recovery Mode screen has come up (green android with red warning sign), press  Power + Volume Up to bring up the menu
=====Microsoft Exchange troubleshooting=====
# Dial *#*#36245#*#* (36245 spells "EMAIL")
# Select "Enable extra debug logging" and "Enable exchange sd card logging"
This will start a log in the /sdcard/ root folder and the log will tell you if your phone is connecting with your exchange host.
====Nexus S - Firmware download====
* [http://www.randomphantasmagoria.com/firmware/nexus-s/i9023/ Nexus S Firmware – I9023]
====FAQ====
====FAQ====
* [http://en.wikipedia.org/wiki/Android_(operating_system) Android - Wikipedia]
* [http://en.wikipedia.org/wiki/Android_(operating_system) Android - Wikipedia]
* [http://android-dls.com/wiki/index.php?title=Android_FAQ Android FAQ]
* [http://android-dls.com/wiki/index.php?title=Android_FAQ Android FAQ]
* [http://www.addictivetips.com/mobile/android-partitions-explained-boot-system-recovery-data-cache-misc/ Android Partitions Explained: boot, system, recovery, data, cache & misc]
* [http://www.modaco.com/topic/349541-faq-rooting-for-beginners-updated-26-02-12/ Rooting for beginners]
* [http://www.howtogeek.com/howto/43135/how-to-change-the-default-application-for-android-tasks/ How to Change the Default Application for Android Tasks]


====Rooting====
====Rooting====
If you have Gingerbread 2.3.1 you can use this method first without loosing data:
If you have Gingerbread 2.3.1 you can use this method first without loosing data:
* [http://forum.xda-developers.com/showthread.php?t=931865 Root Nexus S without loosing data - Only 2.3.1]
* [http://forum.xda-developers.com/showthread.php?t=931865 Root Nexus S without loosing data - Only 2.3.1]
If you are running x64 Windows and the USB driver fails to load when the phone is in bootloader mode, install PdaNet for Android, and it's USB driver.<br>
 
* [http://www.junefabrics.com/ PdaNet for Android]
Then you can install Titanium Backup, and back up your system.<br>
Then you can install Titanium Backup, and back up your system.<br>
* [http://matrixrewriter.com/android/index.html Titanium Backup]
* [http://matrixrewriter.com/android/index.html Titanium Backup]
Line 31: Line 64:
* [https://bexton.net/2011/09/24/root-access-for-nexus-one-on-android-2-3-6-grk39f-superboot/ 24 Sep 11 Root Access for Nexus One on Android 2.3.6 (GRK39F) / Superboot] - Don't do it, it doesn't work
* [https://bexton.net/2011/09/24/root-access-for-nexus-one-on-android-2-3-6-grk39f-superboot/ 24 Sep 11 Root Access for Nexus One on Android 2.3.6 (GRK39F) / Superboot] - Don't do it, it doesn't work


=====How to root manually=====
====Android manual updating====
* [http://android-dls.com/wiki/index.php?title=Fastboot Fastboot]
 
* [http://wiki.cyanogenmod.com/wiki/Fastboot Fastboot and partition layout]
=====Complete Factory Images=====
* [https://developers.google.com/android/nexus/images Factory Images for Nexus Devices - Google]


# First get a backup of your existing boot image.
=====How to find the locations of the update files=====
#: You can download ClockWorkMod from here:
You enable USB debugging on your phone (Settings | Applications), then download aLogCat from the market. When you get the OTA, check aLogCat and filter on ".cli" (without the quotes) and you'll find the link there.
#:* [http://www.koushikdutta.com/2010/02/clockwork-recovery-image.html ROM Manager and Clockwork Recovery Image]
#:And boot your phone with fastboot and the ClockworkMod image on a PC.
#:'''fastboot-windows.exe boot recovery-clockwork-3.0.0.5-crespo.img'''
# Boot your phone to Android again, and copy the ClockworkMod backup to your PC.
# Locate boot.img in the backup
# Follow this guide:
#:* [http://android.modaco.com/topic/344834-guide-how-to-create-your-own-superbootimg/ Guide - How to create your own superboot.img Or how to root your phone :)]


* [https://play.google.com/store/apps/details?id=org.jtb.alogcat&hl=en aLogcat (free) - logcat - Google Play]


======Additional information======
=====List of different Nexus S models=====
* [http://androidsu.com/ AndroidSU.com - The Superuser app for Android's homepage]
{| class="wikitable"
* [http://www.androidenea.com/2009/06/android-boot-process-from-power-on.html The Android boot process from power on]
|-
* [http://www.clockworkmod.com/ ClockworkMod Homepage]
! Model number !! Notable differences
* [https://market.android.com/details?id=com.koushikdutta.rommanager.license&referrer=app.net,1,EjgxfDEzMTA2NzA4NjB8dXVGTUppSDR4OUdCU1NDaXFSMzlDeEpmUVlJS3pzQnlENnJhUE5wQ0s2axojY29tLmtvdXNoaWtkdXR0YS5yb21tYW5hZ2VyLmxpY2Vuc2VQp-SC05Im;3YGmzps5BOj5R-kT47YpWr3-wR4 ClockworkMod Android Market]
|-
| GT-I9020 or GT-I9020T || 900 / 1700 / 2100&nbsp;MHz UMTS, Super AMOLED
|-
| GT-I9020A || 850 / 1900 / 2100&nbsp;MHz UMTS, Super AMOLED
|-
| GT-I9023 || 900 / 1700 / 2100&nbsp;MHz UMTS, Super Clear LCD
|-
| SPH-D720 || CDMA2000, 4G WiMAX, Super AMOLED
|-
| SHW-M200 || 900 / 1700 / 2100&nbsp;MHz UMTS, Super AMOLED
|}
 
Read more here: [http://en.wikipedia.org/wiki/Nexus_S Nexus S - Wikipedia]
and here: [http://forum.xda-developers.com/wiki/Samsung_Google_Nexus_S#Nexus_S_Variants Nexus S Variants - XDA]


====Android manual updating====
=====Known locations for Nexus S GT-I9020T updates=====
* [http://mobile.downloadatoz.com/tutorial/1764,guide-manually-update-google-nexus-one-nexus-s-to-android-2-3-3-gingerbread.html Guide - Manually Update Google Nexus One & Nexus S to Android 2.3.3 Gingerbread]
* [http://mobile.downloadatoz.com/tutorial/1764,guide-manually-update-google-nexus-one-nexus-s-to-android-2-3-3-gingerbread.html Guide - Manually Update Google Nexus One & Nexus S to Android 2.3.3 Gingerbread]
* [http://android.clients.google.com/packages/ota/google_crespo/98f3836cef9e.signed-soju-GRI40-from-GRH78C.98f3836c.zip Android update from 2.3.2 to 2.3.3 (GRH78C to GRI40)]  
* [http://android.clients.google.com/packages/ota/google_crespo/98f3836cef9e.signed-soju-GRI40-from-GRH78C.98f3836c.zip Android update from 2.3.2 to 2.3.3 (GRH78C to GRI40)]  
Line 58: Line 99:
* [http://www.androidpolice.com/2011/05/04/dont-wait-for-the-ota-update-your-nexus-s-to-android-2-3-4-manually-gri40-grj22/ Update from 2.3.3 to 2.3.4 (GRI40 or GRI54 to GRJ22)]
* [http://www.androidpolice.com/2011/05/04/dont-wait-for-the-ota-update-your-nexus-s-to-android-2-3-4-manually-gri40-grj22/ Update from 2.3.3 to 2.3.4 (GRI40 or GRI54 to GRJ22)]
* [http://android.clients.google.com/packages/ota/google_crespo/da8206299fe6.signed-soju-ota-121341.da820629.zip Full GRJ22 ROM update]
* [http://android.clients.google.com/packages/ota/google_crespo/da8206299fe6.signed-soju-ota-121341.da820629.zip Full GRJ22 ROM update]
* [http://android.clients.google.com/packages/ota/google_crespo/9ZGgDXDi.zip Update From IMM76D to JRO03E (Jelly Bean)]
=====Other Nexus S Variants OTA Update links=====
* [http://forum.xda-developers.com/archive/index.php/t-1063664.html Links for all Nexus S OTA Updates for All Variants]
* [http://forum.xda-developers.com/archive/index.php/t-1063664.html Links for all Nexus S OTA Updates for All Variants]


Line 132: Line 176:
* [http://grepcode.com/search?query=android&n= Browse Android sourcecode here]
* [http://grepcode.com/search?query=android&n= Browse Android sourcecode here]


====Disassembling====
====Decompiling / Reverse engineering Android Apps====
It is a tool for reengineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications.
[[Guide to decompiling Android App to source code]]
* [http://code.google.com/p/android-apktool/ android-apktool Tool for reengineering Android apk files]
 
 
Use dex2jar to translate .dex to .jar file then use JD-GUI to open the .jar file and view the .class files in the project.
* [http://code.google.com/p/dex2jar/ dex2jar - Translates dex to jar file]
JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields.
* [http://java.decompiler.free.fr/?q=jdgui Java Decompiler JD-GUI]
 
 
* [http://blogmal.42.org/rev-eng/patching-android-apps.story patching-android-apps]
* [http://code.google.com/p/smali/ smali backsmali]


====Obfuscating====
====Obfuscating====
Line 150: Line 183:


==Outlook and Exchange sync==
==Outlook and Exchange sync==
====Exchange Server====
* [http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/da//help/hc/pdfs/mobile/ExchangeAndAndroid2.2and2.3-003.pdf Microsoft Exchange Information Services and Security Policies Supported by Android 2.2 and 2.3]
* [http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/da//help/hc/pdfs/mobile/ExchangeAndAndroid2.2and2.3-003.pdf Microsoft Exchange Information Services and Security Policies Supported by Android 2.2 and 2.3]
* [http://www.techrepublic.com/blog/smartphones/set-up-an-exchange-account-on-your-android-phone/1581 Set up an Exchange account on your Android phone]
* [http://www.techrepublic.com/blog/smartphones/set-up-an-exchange-account-on-your-android-phone/1581 Set up an Exchange account on your Android phone]
====Outlook.com====
* [http://www.makeuseof.com/tag/how-to-access-hotmail-and-outlook-com-on-your-android-device/ How To Access Hotmail And Outlook.com On Your Android Device useing Android’s built in email app]
NB: Outlook.com's mail server is ''snt-m.hotmail.com''
Read more about [[Outlook.com]] and troubleshooting [http://www.yggenyk.dk/wiki/Outlook.com here].


==Apps for android==
==Apps for android==
Line 301: Line 339:
==Android C native development==
==Android C native development==
* [http://www.pocketmagic.net/?p=682 Android C native development – take full control!]
* [http://www.pocketmagic.net/?p=682 Android C native development – take full control!]
==Mercurial SCM - Source Control Management==
* [http://en.wikipedia.org/wiki/Mercurial Mercurila - Wikipedia]
* [http://hginit.com/ Hg Init: a Mercurial tutorial]
* [http://www.turnkeylinux.org/revision-control Turnkey - Revision Control Appliance - All-in-one code repository]
=====mercurial.selenic.com=====
* [http://mercurial.selenic.com/ Mercurial source control]
* [http://mercurial.selenic.com/wiki/Tutorial Tutorial]
* [http://mercurial.selenic.com/wiki/UnderstandingMercurial Understanding Mercurial]
* [http://mercurial.selenic.com/wiki/Subrepository Subrepository]
The convert extension converts repositories from other SCMs (or even Mercurial itself) into Mercurial repositories.
* [http://mercurial.selenic.com/wiki/ConvertExtension Convert extension]
=====Eclipse and Mercurial=====
* [http://marketplace.eclipse.org/content/mercurialeclipse-was-hgeclipse MercurialEclipse (was: HgEclipse)]
* [http://www.javaforge.com/project/HGE MercurialEclipse - JavaForge]
* [http://ekkescorner.wordpress.com/2010/02/16/dvcs-part-2-initialize-and-import-from-local-repositories-egit-hgeclipse/ DVCS part 2: initialize and import from local Repositories (EGit – HgEclipse)]
=====Visual Studio and Mercurial=====
* [http://visualhg.codeplex.com/ VisualHG]


==Other stuff==
==Other stuff==

Latest revision as of 12:56, 7 December 2016

<google>ENGELSK</google>

Troubleshooting

USB Driver problems

If the USB driver fails to load when the phone is in bootloader mode, install PdaNet for Android, and it's USB driver.

You can uninstall PdaNet after the USB drivers are installed, and the USB drivers will still work.
The usb drivers is installed in C:\Program Files\PdaNet for Android\usbwin or C:\Program Files (x86)\PdaNet for Android\usbwin.
To verify that the driver is working, set your phone in bootloader mode, and use the fastboot devices command, it should show the list of attached devices if the driver is working.

When phone won't see OTA update or when manual update fails

Do the following

  1. Manage apps - ALL - Google Services Framework
    • Press Force stop
    • Clear Data
  2. Reboot phone
  3. System settings - About phone - System updates
    • Press Check now
  4. The phone should now show update to x.x.x is available
How to boot into recovery mode
  1. Power off your phone
  2. While the phone is off, press and hold Volume Up + Volume Down + Power
  3. Use the volume button to scroll through the menu options and press power to select "Recovery Mode"
  4. Once the Recovery Mode screen has come up (green android with red warning sign), press Power + Volume Up to bring up the menu
Microsoft Exchange troubleshooting
  1. Dial *#*#36245#*#* (36245 spells "EMAIL")
  2. Select "Enable extra debug logging" and "Enable exchange sd card logging"

This will start a log in the /sdcard/ root folder and the log will tell you if your phone is connecting with your exchange host.

Nexus S - Firmware download

FAQ

Rooting

If you have Gingerbread 2.3.1 you can use this method first without loosing data:

Then you can install Titanium Backup, and back up your system.

After backing everything up, unlock the phone, this will wipe all applications, data and the SD card.

Upgrade to 2.3.3 (this will unroot the phone again).
Use one of the two methods (the last is the easy one):


Regain root access after upgrading Nexus S from 2.3.4 to 2.3.6

Android manual updating

Complete Factory Images
How to find the locations of the update files

You enable USB debugging on your phone (Settings | Applications), then download aLogCat from the market. When you get the OTA, check aLogCat and filter on ".cli" (without the quotes) and you'll find the link there.

List of different Nexus S models
Model number Notable differences
GT-I9020 or GT-I9020T 900 / 1700 / 2100 MHz UMTS, Super AMOLED
GT-I9020A 850 / 1900 / 2100 MHz UMTS, Super AMOLED
GT-I9023 900 / 1700 / 2100 MHz UMTS, Super Clear LCD
SPH-D720 CDMA2000, 4G WiMAX, Super AMOLED
SHW-M200 900 / 1700 / 2100 MHz UMTS, Super AMOLED

Read more here: Nexus S - Wikipedia and here: Nexus S Variants - XDA

Known locations for Nexus S GT-I9020T updates
Other Nexus S Variants OTA Update links

fastboot boot recovery-clockwork-3.0.0.5-passion.img

Google Nexus S

Will the GPS chip be Broadcom BCM4751 as in Samsungs Galaxy S?

Using Nexus S from US in DK

What's inside

Samsung Galaxy 2

Update SDK

  1. cd to your 'android-sdk-windows' folder
  2. From the command-line you can also directly trigger an update by executing: ' tools\android.bat update sdk'
  3. Start eclipse
  4. Select 'Help - Check for updates'

Add Android device for developing

You have to select browse when adding driver and point to your 'android-sdk-windows'

Emulator commands

Start emulator

emulator -avd <MyDevice>

Show emulators running

adb devices

Install program (-s <devicename> not nessesary if only one is running)

adb -s <devicename> install <program.apk>

Gui design

Sound

Activities

Boot order

Android web sites

Android source

Decompiling / Reverse engineering Android Apps

Guide to decompiling Android App to source code

Obfuscating

Outlook and Exchange sync

Exchange Server

Outlook.com

NB: Outlook.com's mail server is snt-m.hotmail.com Read more about Outlook.com and troubleshooting here.

Apps for android

Set Locale

Custom Locale allows you to modify the Locale of your Android device to anything you like.

Notifications

Display custom notification icons/dots on the screen. It was developed for the Samsung Galaxy S which lacks a physical dedicated LED.

Navigation

Smart car navigation software for mobile phones. Taking a stroll with pedestrian navigation.

Voice

Mono on Android

Bluetooth

Notes:

Nokia CK-7W will ecco on callees side if phones bluetooth Class of Device (COD) is set to Smartphone. On Windows CE it is set in HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\Sys\COD

0x5A020C = smart phone  0x52020C = normal cell phone
  1. I tried altering the CoD parameters in the /system/etc/bluetooth/main.conf file, but it seems that this file isn't even being used (or at least the CoD isn't) and is simply a default.
  1. I tried installing hciconfig and changing the CoD that way, but hciconfig is unable to find any bluetooth devices.

...at least not on Samsung

Bluetooth redirect discussions
Route Navigation audio to radio

Debugging

Reverse engineering

Exchange ActiveSync and other sync

Java implementation of the Exchange Web Services (EWS) API. This API gives developers programmatic access to Exchange Server 2007 SP1 and above.

DirectPush

Axis2

ksoap2

/EWS/Services.wsdl

NTLM and java


¨

Text To Speech TTS

The SpeechSynthesis class provides a high-level api to create and play synthesized speech. This class is used internally to talk to a native TTS library that implements the interface defined in frameworks/base/include/tts/TtsEngine.h

eSpeak is a compact open source software speech synthesizer for English and other languages, for Linux and Windows.

Google I/O

2011
2010

Eclipse

Eclipse

Eclipse and UML

Green UML

Fantastic simple UML tool, thet can create UML diagrams from code!

Manual installation of plugins (dropins folder)

If you’re using Plugins where no Software Site is available, then you can use the Dropins folder in your Eclipse installation directory.

To do this put the plugin into Eclipse "dropins" folder and restart Eclipse. Eclipse should detect the new plugin and install it for you.

To create UML diagram from code right click in Package Explorer in Eclipse and select Green UML in the context menu.

Eclipse UML2 Tools

UML2 Tools SDK* UML with Eclipse Tutorial

Galileo - http://download.eclipse.org/releases/galileo

Install the following plugin: UML2 Tools SDK

Android C native development

Other stuff

External GPS

Other android sites

Accessories

Bags

Bluetooth Car Kits

Don't use Nokia CK-7W, if it is used with a smartphone the callee will hear echo.

Car Holders

Desktop Dock

Reviews

Android Phone Reviews

Samsung GPS problems

Android applications

<google>ENGELSK</google>

id=siteTree