Posts

Showing posts with the label android

Wireless printing from Android phone

Setup printer to connect to wifi ap, and note the printer's ip address Install Moria print service : https://play.google.com/store/apps/details?id=org.mopria.printplugin Add new printer using ip address Test printing a pdf file, choose moria print service Set printer plugin service app's setting to Battery - Unrestricted (required if having issue, page not printed fully) Dont skip step 3) even if your printer already in list Step 2) you can also install HP Print Service plugin              

How to disable miui wallpaper on lock screen

Enable Developer Options Enable USB debugging in Developer Options Plug USB cable from laptop to your phone > adb shell  Allow and trust new connection from laptop > adb shell pm disable-user com.miui.android.fashiongallery Package com.miui.android.fashiongallery new state: disabled-user Set manually wallpaper to Home and Lock screen Reboot your phone  Tips: without laptop, you can use usb c to usb c cable and connect using ADB OTG

Checklist for backup and restore Android

Before migrating your data to new phone or before your phone being repaired, you've to make sure all data backed up Back up: Enable Android Auto Backup to backup apps to cloud and force backup using (on new android you can Backup to drive from Settings): adb shell bmgr backupnow --all Backup apps manually using Helium by ClockworkMod (clear cache first to make backup smaller) If Helium is not working use this script to backup Force Sync Contacts to google from Settings - Accounts SMS Messages (SMS Backup and Restore by carbonite/synctech) Whatsapp history (click Backup Now manually, and optionally backup to cloud) Backup all files from internal storage ( copy using adb pull -a /sdcard )  Remove your external sdcard before factory reset! Not all app can be backed up, read app documentation to backup and restore, such as Google Authenticator, Bitcoin, SMS Messages Restoring: Factory reset (remove your external sdcard first!) When asked, choose install from b...

OTA checklist nexus 4 Kitkat

Download stock recovery image Return your recovery to stock recovery, use: fastboot flash recovery RECOVERY.IMG Download 4.4 OTA image from: http://forum.xda-developers.com/showthread.php?t=2145848 Go to recovery, use: adb reboot recovery Press volume UP + POWER quickly Choose apply update from ADB In your laptop, use: adb sideload OTA.zip If you get permission denied: sudo ./adb kill-server sudo ./adb devices Reboot Other tips from Android authority (To fix power button menu and some button not showing):  adb shell am start -n com.google.android.setupwizard/.SetupWizardTestActivity

adb backup and adb restore

So I want to root my Nexus 4. Do full backup using adb, root it, and restore it... but failed. And my data almost gone :( Before doing this, you must enable Developer mode, Enable USB debugging, install ADB on your laptop. To backup: adb backup -f backup.ab -apk -shared -all -nosystem #add -nosystem for unrooted device or will hang Then root your device: #please find tutorial elsewhere Reboot your phone, say no to all question, enable USB debugging again Reboot your phone, add all google accounts, install all purchased app. Before restoring, enable Airplane mode, Stop all possible task from Settings - Apps - Running Open other console to monitor restore progress, run adb logcat Now restoring, adb restore backup.ab #unlock phone and click Restore #wait until no other progress (watch on other console) #reboot, Ctrl-C and try to repeat restore until restored normally #restoring shared data will take long time UPDATE: Use my script to backup all apps to separate...

Cara maksa move to sd card (android)

Install android SDK dulu khad@onyx:~$ adb devices List of devices attached CB5A1HAB4A    device    (device harus kedetek) khad@onyx:~$ adb shell shell@android:/ $ pm set-install-location 2 shell@android:/ $ exit Lalu masuk ke menu  android, Settings - Apps - On SD Card Aplikasi yg tadinya tidak bisa dipindahkan, sekarang bisa Move to SD card Note: Semakin sedikit sisa free space, akan semakin lemot android saat write data http://www.bongizmo.com/blog/speed-up-android-phone-free-up-internal-storage/ http://www.bongizmo.com/blog/moving-all-android-apps-to-sdcard-apps2sd-froyo/

Transfer files MTP using ubuntu (honeycomb android)

Tablet using honeycomb such as Samsung Galaxy Tab, Motorola Xoom Using aafm (beta) https://github.com/sole/aafm Rule for udev: SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct} =="685e", MODE="0666", OWNER="khad" # service udev restart forum: http://forum.xda-developers.com/showthread.php?t=1077377 Using ddms: http://forum.xda-developers.com/showpost.php?p=16623845&postcount=27

Ganti DNS di android

Biar browsing di android nggak lemot, ganti DNS-nya pake aplikasi ini: 1.1.1.1 https://play.google.com/store/apps/details?id=com.cloudflare.onedotonedotonedotone Cara lain (android harus rooted): Contoh: biar bisa buka reddit.com di android Android harus sudah di root Cari dan catat beberapa IP Address ( IN A ) website yg dituju: https://dnsquery.org/dnsquery (Tambahkan www. di query jika perlu) Colokkan handphone ke laptop, pastikan USB debugging ON Dari terminal, masuk ke shell android: # sudo su # adb kill-server # adb shell * daemon not running. starting it now on port 5037 * * daemon started successfully * shell@hammerhead:/ $ Dari dalam shell android: $ su (grant root permission) # mount -o remount,rw /system # echo IP_ADDRESS NAMA_WEBSITE www.NAMA_WEBSITE m.NAMAWEBSITE >> /system/etc/hosts misalnya: echo 198.41.208.143 reddit.com www.reddit.com m.reddit.com >> /system/etc/hosts Reboot android  Buka browser dan bisa browsing ke website tersebut ...

Getting android unique id

Secure.getString(getContentResolver(), Secure.ANDROID_ID); Ref: http://strazzere.com/blog/?p=113

Viewpic

I have to add 20 more lines to avoid non responsive loading, because crawling all files in sdcard. This is one of my android app: http://www.appbrain.com/app/viewpic/com.landak.viewpic Sniplet of source code: