User Tools

Site Tools


docs:tips_n_tricks:android:index.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docs:tips_n_tricks:android:index.html [12.12.2018 13:53 CET] – [Install LineageOS 14.1] peterdocs:tips_n_tricks:android:index.html [13.08.2022 17:07 CEST] (current) – [Conversations / adb] peter
Line 1: Line 1:
 ====== Android ====== ====== Android ======
 {{tag>Android USB}} {{tag>Android USB}}
-Android{{entry>Android}}USB{{entry>USB}}+{{entry>Android}} 
 +{{entry>USB}}
 ===== HTC Desire Z ===== ===== HTC Desire Z =====
 {{tag>"HTC Desire Z"}} {{tag>"HTC Desire Z"}}
Line 196: Line 197:
   - Select "Install from APK"   - Select "Install from APK"
   - Enter filename of apk   - Enter filename of apk
-  - Choose destination ''/system/piv-app/''+  - Choose destination ''/system/priv-app/''
   - Reboot Phone   - Reboot Phone
 +
 ==== Install LineageOS 14.1 ==== ==== Install LineageOS 14.1 ====
-//Installing the LineageOS 14.1 update.zip on Android 7.2.1 //Nougat// following the simple((i.e. TWRP -> Install from ZIP)) update process did not work for me.//(+//Installing the LineageOS 14.1 update.zip on Android 7.2.1 //Nougat// following the simple((i.e. TWRP -> Install from ZIP)) update process did not work for me.//
  
 Install everything (but System) from Cyanogen 13.1.2 via fastboot first: Install everything (but System) from Cyanogen 13.1.2 via fastboot first:
Line 209: Line 211:
   su -   su -
   for file in boot.img cache.img recovery.img userdata.img ; do fastboot flash "${file%.img}" "$file" ; sleep 1 ; done   for file in boot.img cache.img recovery.img userdata.img ; do fastboot flash "${file%.img}" "$file" ; sleep 1 ; done
-  exit # finish su 
      
 Depending where you came from (i.e. what has been the previous OS Revision on the phone) you might want to flash further firmware: Depending where you came from (i.e. what has been the previous OS Revision on the phone) you might want to flash further firmware:
  
-  su - 
   ./flash-radio.sh   ./flash-radio.sh
-  exit # finish su 
  
-Then reboot the //Swift// into fastboot+Then reboot the //Swift// into the new fastboot
 + 
 +  fastboot reboot-bootloader
  
 In fastboot, boot TWRP: In fastboot, boot TWRP:
  
   fastboot boot twrp-3.2.3-0-crackling.img   fastboot boot twrp-3.2.3-0-crackling.img
 +  exit # finish su
 +
 +In TWRP select "Advanced", then "ADB Sideload".
 +
 +You might want to tick "Wipe Dalvik Cache" and "Wipe Cache" to avoid problems due to cache inconsistency. Then start the sideload mode by doing the "Swipe to Start Sideload"
  
-In TWRP select "Extendet ... //something//", then "Sideload" +Then install Lineage from PC((Might finish with "(~47%)    * failed to read command: Success" on the PC while everything is reported OK in TWRP))
-Then install Lineage from PC+
   adb sideload lineage-14.1-20180905-nightly-crackling-signed.zip   adb sideload lineage-14.1-20180905-nightly-crackling-signed.zip
  
 In TWRP select "Reboot System" In TWRP select "Reboot System"
  
-After reboot, wait for the installation process to finish.+After reboot, wait for the installation process to finish. (If you think, its stuck - keep waiting provided the animated LineageOS Logo is still running) 
 + 
 +If you want to have //root// for apps, you need to install [[https://download.lineageos.org/extras|addonsu-14.1-arm64-signed.zip]] 
 + 
 +If you want to use //f-droid// with privilege extension, you need to install [[https://f-droid.org/de/packages/org.fdroid.fdroid.privileged.ota/|org.fdroid.fdroid.privileged.ota_2070.zip]]((ZIP herunterladen)) 
 + 
 +==== Install LineageOS 16.0 over Android 7.1.2 ==== 
 +//Haven't done it exactly this way - but in the end, it should be the same// 
 +  - Unlock phone 
 +  - Install TWRP 3.2.3-0 
 +  - Flash emmc_appsboot.mbn from cm-13.1.2-ZNH2KAS3LG-crackling-signed-fastboot-84f0d5200b.zip to aboot\\ ''unzip cm-13.1.2-ZNH2KAS3LG-crackling-signed-fastboot-84f0d5200b.zip emmc_appsboot.mbn''\\ ''fastboot flash aboot emmc_appsboot.mbn'' 
 +  - Boot into recovery (i.e. TWRP) 
 +  - Wipe all data partitions (Well ... archive all needed data before ...) 
 +  - Reformat /system with ext4 
 +  - Format data 
 +  - Reboot
  
 =====  ===== =====  =====
Line 242: Line 262:
   * https://stackoverflow.com/questions/19496907/set-date-time-using-adb-shell   * https://stackoverflow.com/questions/19496907/set-date-time-using-adb-shell
   * https://github.com/nelenkov/cryptfs-password-manager/issues/20   * https://github.com/nelenkov/cryptfs-password-manager/issues/20
 +===== Conversations / adb =====
 +How to remove lines from //conversation//s (1.23.4) history:
 +
 +<code bash>
 +cd /scratch/peter/Anja/MotoG
 +mkdir adb-backup
 +cd adb-backup
 +adb devices -l
 +adb backup -f eu.siacs.conversations.ab -apk -obb eu.siacs.conversations
 +cp -vip eu.siacs.conversations.ab eu.siacs.conversations.ab.save
 +java -jar ~/Downloads/Android/abe-all.jar unpack eu.siacs.conversations.ab eu.siacs.conversations.tar
 +cd /tmp
 +mkdir unpack 
 +cd unpack/
 +tar -xvkpf /scratch/peter/Anja/MotoG/adb-backup/eu.siacs.conversations.tar 
 +sqlitebrowser apps/eu.siacs.conversations/db/history # remove lines from table "messages"
 +tar -tf /scratch/peter/Anja/MotoG/adb-backup/eu.siacs.conversations.tar | grep -v 'apps/eu.siacs.conversations/db/history-journal' > files.list
 +tar -cvf eu.siacs.conversations-modified.tar -T files.list
 +java -jar ~/Downloads/Android/abe-all.jar pack eu.siacs.conversations-modified.tar eu.siacs.conversations.ab
 +adb restore eu.siacs.conversations.ab
 +
 +</code>
 +
 +//References://
  
 +  * https://stackoverflow.com/questions/18533567/how-to-extract-or-unpack-an-ab-file-android-backup-file
 +  * https://github.com/nelenkov/android-backup-extractor
  
 +{{tag>Android eu.siacs.conversations XMPP Jabber Java adb}}
 +{{entry>Android}}
 +{{entry>eu.siacs.conversations}}
 +{{entry>XMPP}}
 +{{entry>Jabber}}
 +{{entry>Java}}
 +{{entry>adb}}
docs/tips_n_tricks/android/index.html.1544619188.txt.gz · Last modified: 12.12.2018 13:53 CET by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki