Tuesday, November 17, 2020

LG Magna H502f Hard Reset Mode

LG Magna lg-H502f Hard reset: 

- Hold down Volume Down + POWER button 
- Release only POWER button when LG Logo appears 
- Press once POWER button while still holding Volume down


fastboot

# boot into fast boot mode
adb reboot boot loader

# get flashing ability status
fastboot flashing get_unlock_ability

fastboot oem unlock
fastboot flash unlock


Tuesday, October 23, 2018

Flashing Android Device With Heimdall

Here I'll explain how to flash image files to an android device using Mac Os X console. This should apply to linux console too. (in this case a GT-I8190 whith a broken screen)

First download and install heimdall:

http://wiki.cyanogenmod.org/w/Install_and_compile_Heimdall

Get into download mode (Odin Mode)

VOLUME_DOWN+MENU+POWER -> VOLUME_UP

Connect USB cable and check if your device is detected:

$heimdall detect --usb-log-level error
Device detected

Change log level to debug if you need more info

Then download the pit information:

heimdall print-pit > print-pit

From now on you only need to find the partition names and flash your images with that name:

for example first find the name of recovery.img partition

$ grep -B1 recovery.img print-pit
Partition Name: Kernel2
Flash Filename: recovery.img

then flash recovery img (here i choose not to reboot because I will flash more than one image then reboot)

heimdall flash --no-reboot --Kernel2 recovery.img

Sunday, December 28, 2014

ChuangZhuo RPI TFT LCD V2.1


/etc/modules:

fbtft_device rotate=270 name=itdb28 gpios=reset:15,dc:3,wr:2,cs:7,db00:17,db01:18,db02:27,db03:22,db04:23,db05:24,db06:25,db07:4


Product Page:
http://www.dx.com/p/chuangzhuo-rpi-tft-lcd-adapter-plate-2-4-tft-lcd-screen-touch-sensor-module-for-raspberry-pi-285311

Saturday, December 27, 2014

Raspistill Instant Capture

If you run raspistill each time you want to take a shot, it does not work fast enough. In order to get instant shots it is much more useful to use the "signal mode".

In signal mode, raspistill waits for a SIGUSR1 signal from another process. You can invoke it like this:

raspistill -t 0 -s -o /tmp/shot.jpg

-s signal mode
-o output file
-t 0 disable default 5s timeout

and then when ready, send the signal to take a shot:

pkill -SIGUSR1 raspistill

or

pkill -10 raspistill

that's it.

* If you don't specify -t 0 parameter and disable default 5s timeout, raspistill will quit after 2 or 3 shots (actually will quit after spending total 5 seconds).

Sunday, October 26, 2014

Android Full Backup/Restore w/o Root


  • adb backup -apk -shared -all -f  BACKUP-apk-shared-all.ab
  • adb restore BACKUP-apk-shared-all.ab

Monday, September 29, 2014

Android Command Line Package Manager PM


  • The list of installed packages
# pm list packages
package:com.andrew.apollo
package:org.servalproject
package:com.google.android.ears
package:com.android.voicedialer
package:com.android.defcontainer
package:de.schaeuffelhut.android.openvpn
package:de.carknue.gmon2

  • Uninstall package
# pm uninstall org.servalproject