Coder Social home page Coder Social logo

amo13 / anarchy-droid Goto Github PK

View Code? Open in Web Editor NEW
106.0 5.0 15.0 781 KB

One-Click Android Rom Installation Assistant

Home Page: https://anarchy-droid.com

License: GNU General Public License v3.0

Go 99.75% Shell 0.25%
android lineageos twrp installer degoogle privacy adb

anarchy-droid's People

Contributors

amo13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

anarchy-droid's Issues

ROM addition

I maintain a privacy and security hardened ROM called DivestOS since 2014.
https://divestos.org/

I'm happy to help with adding support for it in your tool as installation is a major painpoint I find users have.
Available OTA ZIPs can be queried like so:

https://divestos.org/updater.php?base=LineageOS&device=$DEVICE-CODENAME

However due to featuring verified boot support there are also avb_key.pkmd and fastboot update compatible packages that are required for initial install on AVB devices.

If willing I'm happy to make a dedicated/stable API. Just let me know what data is needed and in what format.

log flood

Anarchy-Droid 2021/11/25 15:51:32 Arrived at TWRP booting step
Anarchy-Droid 2021/11/25 15:51:32 Trying to boot/flash TWRP...
Anarchy-Droid 2021/11/25 15:51:39 Device connection update: unauthorized
Anarchy-Droid 2021/11/25 15:51:39 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:41 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:42 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:43 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:44 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:44 12 seconds timeout was hit.
Anarchy-Droid 2021/11/25 15:51:44 Trying to download and launch a driver installer...
Anarchy-Droid 2021/11/25 15:51:45 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:46 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:47 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:48 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:49 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:50 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:51 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:53 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:54 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:55 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:56 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:56 User clicked Cancel
Anarchy-Droid 2021/11/25 15:51:57 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:57 Skipped device state request to bootloader because the user cancelled flashing
Anarchy-Droid 2021/11/25 15:51:58 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:58 Skipped device state request to bootloader because the user cancelled flashing
Anarchy-Droid 2021/11/25 15:51:59 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:51:59 Skipped device state request to bootloader because the user cancelled flashing
Anarchy-Droid 2021/11/25 15:52:00 User clicked Cancel
Anarchy-Droid 2021/11/25 15:52:00 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:52:00 Skipped device state request to bootloader because the user cancelled flashing
Anarchy-Droid 2021/11/25 15:52:01 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:52:01 Skipped device state request to bootloader because the user cancelled flashing
Anarchy-Droid 2021/11/25 15:52:03 Device state requested: bootloader
Anarchy-Droid 2021/11/25 15:52:03 Skipped device state request to bootloader because the user cancelled flashing

Selecting (and flashing) OpenGapps not working

The OpenGapps dropdown selection list is always empty.

And:

get.OpenGappsLatestAvailableFileName does not return the same file name as get.OpenGapps Gapps file name mismatch
in: flash.go in downloadFiles.func5 at line 754

Weird ADB state query responses

StdOUT:
StdERR:adb server version (31) doesn't match this client (41); killing...

error: unknown host service

could not read ok from ADB Server

* failed to start daemon

error: cannot connect to daemon


 unknown adb state
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 126, in State
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/device.go", line 94, in (*Device).GetState
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 43, in (*Device).doObservation
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 31, in (*Device).startObserver

On windows

Windows: Get rid of the terminal window in the background

Currently the app is not started as a GUI app but as a command line app. This is the standard for binaries built with go build. Therefore, a terminal is attached to the launched app.
Alternatively, we can launch the app as a GUI application without attached terminal. This is the standard for apps packaged with fyne package. Additionally, the packaged app gets displayed with its application icon. This way would be ideal.

Unfortunately, if we launch the app as a GUI app without terminal attached, terminal windows pop up every second on top of the app window even stealing focus. This is because the app needs to call binaries periodically in the background (adb, fastboot and heimdall) and evalutate what they return. An ideal solution would find a way to make the calls to the binaries without making a terminals pop up.

Installing Lineage OS on Galaxy A52

Hey there

I have a Samsung Galaxy A52 device and I've come across a well maintained unofficial Lineage OS release on XDA forums.
When using Anarchy-Droid (Fedora Linux), it's just stuck on "Trying to Recognize the Device'.
I've heard stuff about needing something called Odin to install custom ROMs on Samsung devices and stuff. I have no idea about how or what any of this is, therefore I might be the target audience of Anarchy-Droid.

Can someone help me please?

Thanks a lot for your works,
Regards

Motorola: unable to parse unlock data

Error during retrieval of unlock data: unable to parse unlock data
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/unlockscreen.go", line 65, in motorolaUnlockScreen.func1.1

codename: lake
model: moto g(7) plus

also

codename: potter
model: moto g(5) plus

Add license

I'd like to contribute a couple of patches to this project. Is it possible for you to add some sort of software license, so that the legality of me using your code and you using the code of contributors isn't questionable? Many thanks!

MacOS: Make auto-updates work instead of prompting the user to update by themselves

On MacOS, auto-updates fail because the application .app package is read-only. Therefore, the binary residing in a subfolder cannot be overwritten.

Another thing that could be improved for Mac users is the location of the folder containing the log, the downloaded binaries and the downloaded roms, TWRP images, and other zips for flashing. Currently, on MacOS, it is simply put into the user's Downloads folder. A better approach would be to create and use a folder relative to the location of the .app application package, just like on Windows and Linux. This has been discussed here and the described workaround has been chosen until a better solution can be found.

Won't run if matomo is not reachable

ERROR: Error submitting the report: Get "https://stats.anarchy-droid.com/piwik.php?idsite=3&rec=1&send_image=0&_id=9q7n4hMfmTvyUGCz&new_visit=1&ua=(Linux) Firefox/1.2.6&_cvar={\"1\":[\"Version\",\"1.2.6\"],\"2\":[\"Build\",\"2022-05-04\"],\"3\":[\"Device Model\",\"\"],\"4\":[\"Device Codename\",\"\"]}&e_c=&url=https://app/progress/Setup App": dial tcp 93.233.142.122:443: connect: no route to host
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x92d144]

goroutine 22 [running]:
github.com/amo13/anarchy-droid/logger.Report(0x0?)
	/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go:72 +0xa64
created by main.main.func2
	/home/runner/work/Anarchy-Droid/Anarchy-Droid/main_unix.go:106 +0xaa

Unable to Open on M1 Mac

I use an M1 MacBook Air
It shows the error 'This Application can't be opened'
I've run it from the Downloads folder and by dragging it to Applications too.

Add information about the source and build date of roms

Hello again,

I would find it very useful if some information about the sources could be present together with the "date" of the rom.

It looks like that roms from the archive are hand picked - right? Would be great to get a indication how old (or up to date) the roms are.

Also how could be more roms/devices be added? By opening a issues here?

Greetings

[linux] sudo password prompt causing "unknown adb state"

unknown state:
StdOUT:
StdERR:[sudo] password amo: error: no devices/emulators found

 unknown adb state

  File "/home/amo/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
    sentry.CaptureException(fmt.Errorf(message + " " + err.Error()))
  File "/home/amo/Anarchy-Droid/logger/logger.go", line 150, in LogError
    sentry.WithScope(func(scope *sentry.Scope) {
  File "/home/amo/Anarchy-Droid/device/adb/adb.go", line 124, in State
    logger.LogError("unknown state:\nStdOUT:" + stdout + "\nStdERR:" + stderr + "\n", fmt.Errorf("unknown adb state"))
  File "/home/amo/Anarchy-Droid/device/device.go", line 92, in (*Device).GetState
    adb_state := adb.State()
  File "/home/amo/Anarchy-Droid/device/observer.go", line 43, in (*Device).doObservation
    new_state := d.GetState()
  File "/home/amo/Anarchy-Droid/device/observer.go", line 31, in (*Device).startObserver
    new_state = d.doObservation(last_state)

in adb.State()

(and: Unknown ADB error: [sudo] password for amo: in adb.unavailable())


*errors.errorString: Unknown ADB error: [sudo] password for amo: 
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 77, in unavailable
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 186, in IsBooting
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 113, in State
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/device.go", line 94, in (*Device).GetState
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 43, in (*Device).doObservation
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 31, in (*Device).startObserver

OpenGapps won't work with Android 12?

*errors.errorString: Unable to format 12.0 to OpenGapps android version format: Unknown android version: 12.0
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/settingstab.go", line 258, in selectOpenGappsVersion
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/settingstab.go", line 58, in registerRomChoice
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/settingstab.go", line 179, in userRomSelected
...
(4 additional frame(s) were not displayed)

launching UniversalAdbDriverSetup fails

Arrived at TWRP booting step
Trying to boot/flash TWRP...
Device state requested: bootloader
Dropped line from ADB getprop: [persist.sys.boot.reason.history]: [cold,powerkey,76798595
Dropped line from ADB getprop: cold,powerkey,75151172
Dropped line from ADB getprop: bootloader,74744147]
Device connection update: disconnected
12 seconds timeout was hit.
Trying to download and launch a driver installer...
UniversalAdbDriverSetup stdout:
Cannot open log file for writing: open log/Anarchy-Droid.log: Das System kann den angegebenen Pfad nicht finden.
ERROR: UniversalAdbDriverSetup stderr: Der Befehl "Powershell" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

Anarchy-Droid crashes when Galaxy Nexus is detected and looking for roms

Current version 1.2.1 is the latest
Device connection update: android
Reloading available roms...
Finished looking for LineageOS
Finished looking for LineageOSMicroG
Finished looking for e-OS
Finished looking for AospExtended
Finished looking for OpenGapps
Finished looking for CopyPartitions
Finished looking for Carbonrom
Finished looking for DivestOS
ERROR: Error retrieving latest available item from DivestOS: DivestOS gave an unexpected JSON response
ERROR: Error opening https://archive.free-droid.com/maguro : Not Found
panic: runtime error: index out of range [-1]

goroutine 166 [running]:
github.com/amo13/anarchy-droid/get.ArchiveLatestAvailableFileNamesMap({0xc0005faf00, 0x6})
	/home/runner/work/Anarchy-Droid/Anarchy-Droid/get/archive.go:297 +0x35b
github.com/amo13/anarchy-droid/get.ArchiveLatestAvailableHrefMap({0xc0005faf00, 0x6})
	/home/runner/work/Anarchy-Droid/Anarchy-Droid/get/archive.go:45 +0x7a
github.com/amo13/anarchy-droid/get.(*Available).Populate.func10()
	/home/runner/work/Anarchy-Droid/Anarchy-Droid/get/availables.go:224 +0x69
created by github.com/amo13/anarchy-droid/get.(*Available).Populate
	/home/runner/work/Anarchy-Droid/Anarchy-Droid/get/availables.go:221 +0x4d

trying to recognizethe device...

i am using linux(arch)... i downloaded exicutable file, factory reset the phone and did as said; in phone(develper option and all) and connect my phone(redmi 4A) but its stuck in this screen, if you know what went wrong please reply...

Incorrectly recognizes the codename of enchilada

The codename of the OnePlus 6 is "enchilada". Anarchy-Droid incorrectly recognizes this as "oneplus6", I think this might be because the model number of my device gets recognized as "ONEPLUS A6003", while in codenames.yml it is listed as "a6003", Although I don't know anything about how this works other than what I read in the "I want to help" section.
image

Add support for HTC One S (ville)

As for adding roms and devices, it depends on what you have in mind.

For adding a rom zip file to the archive, dropping a link in here with a few words (which device, rom stability, maybe experience with it) would be enough.

Device: HTC One S
Codename: ville

Most recent stable rom I'm aware of is located here: lineage-14.1-20200523-UNOFFICIAL-ville.zip (author posted the link here)

unknown adb state: unknown

dropped 300 times by only 1 user

*errors.errorString: Cannot determine ADB connection state unknown adb state: unknown
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/device.go", line 112, in (*Device).GetState
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 43, in (*Device).doObservation
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 31, in (*Device).startObserver
*errors.errorString: unknown state:
StdOUT:
StdERR: unknown adb state
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 124, in State
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/device.go", line 92, in (*Device).GetState
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 43, in (*Device).doObservation
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/observer.go", line 31, in (*Device).startObserver

panic: runtime error: invalid memory address or nil pointer dereference

i am getting this error when try to run Anarchy-Droid_linux_amd64 in kali linnux .

Setup Anarchy-Droid 1.4.2
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0xa60625]

goroutine 27 [running]:
github.com/amo13/anarchy-droid/logger.Report(0x0?)
/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go:90 +0x9e5
created by main.main.func2
/home/runner/work/Anarchy-Droid/Anarchy-Droid/main_unix.go:106 +0xaa

Commands fail because of printf

*errors.errorString: ADB command shell getprop gave an unexpected error: stdout: [dalvik.vm.appimageformat]: [lz4]
[dalvik.vm.dex2oat-Xms]: [64m]
[dalvik.vm.dex2oat-Xmx]: [512m]
[dalvik.vm.heapgrowthlimit]: [192m]
[dalvik.vm.heapmaxfree]: [8m]
[dalvik.vm.heapminfree]: [512k]
[dalvik.vm.heapsize]: [512m]
[dalvik.vm.heapstartsize]: [16m]
[dalvik.vm.heaptargetutilization]: [0.75]
[dalvik.vm.image-dex2oat-Xms]: [64m]
[dalvik.vm.image-dex2oat-Xmx]: [64m]
[dalvik.vm.image-dex2oat-filter]: [verify-at-runtime]
[dalvik.vm.isa.arm.features]: [default]
[dalvik.vm.isa.arm.variant]: [cortex-a9]
[dalvik.vm.lockprof.threshold]: [500]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[dalvik.vm.usejit]: [true]
[dalvik.vm.usejitprofiles]: [true]
[debug.atrace.tags.enableflags]: [0]
[debug.hwui.render_dirty_regions]: [false]
[init.svc.adbd]: [running]
[init.svc.recovery]: [running]
[init.svc.set_permissive]: [stopped]
[init.svc.ueventd]: [running]
[keyguard.no_require_sim]: [true]
[media.sf.extractor-plugin]: [libffmpeg_extractor.so]
[media.sf.omx-plugin]: [libffmpeg_omx.so]
[mtp.crash_check]: [0]
[net.bt.name]: [Android]
[net.change]: [net.bt.name]
[persist.sys.dalvik.vm.lib.2]: [libart.so]
[persist.sys.dun.override]: [0]
[persist.sys.usb.config]: [adb]
[pm.dexopt.ab-ota]: [speed-profile]
[pm.dexopt.bg-dexopt]: [speed-profile]
[pm.dexopt.boot]: [verify-at-runtime]
[pm.dexopt.core-app]: [speed]
[pm.dexopt.first-boot]: [verify-at-runtime]
[pm.dexopt.forced-dexopt]: [speed]
[pm.dexopt.install]: [interpret-only]
[pm.dexopt.nsys-library]: [speed]
[pm.dexopt.shared-apk]: [speed]
[rild.libpath]: [/system/lib/libsec-ril.so]
[ro.allow.mock.location]: [1]
[ro.baseband]: [unknown]
[ro.board.platform]: [exynos4]
[ro.boot.boot_salescode]: []
[ro.boot.bootloader]: [N5100XXDNL5]
[ro.boot.debug_level]: [0x4f4c]
[ro.boot.emmc_checksum]: [3]
[ro.boot.hardware]: [smdk4x12]
[ro.boot.odin_download]: [1]
[ro.boot.sec_atd.tty]: [/dev/ttySAC2]
[ro.boot.selinux]: [enforcing]
[ro.boot.serialno]: [32040e9201f51157]
[ro.boot.warranty_bit]: [1]
[ro.bootimage.build.date.utc]: [1646419320]
[ro.bootimage.build.date]: [Fri Mar 4 18:42:00 UTC 2022]
[ro.bootloader]: [N5100XXDNL5]
[ro.bootmode]: [unknown]
[ro.bq.gpu_to_cpu_unsupported]: [1]
[ro.build.characteristics]: [tablet]
[ro.build.date.utc]: [1646419320]
[ro.build.date]: [Fri Mar  4 18:42:00 UTC 2022]
[ro.build.description]: [kona3gxx-user 4.4.4 KTU84P N5100ZTCNL6 release-keys]
[ro.build.display.id]: [lineage_n5100-eng 7.1.2 NJH47F 7e997fe152 test-keys]
[ro.build.fingerprint]: [samsung/kona3gxx/kona3g:4.4.4/KTU84P/N5100ZTCNL6:user/release-keys]
[ro.build.flavor]: [lineage_n5100-eng]
[ro.build.host]: [d79d4e64ea58]
[ro.build.id]: [NJH47F]
[ro.build.product]: [GT-N5100]
[ro.build.selinux]: [1]
[ro.build.tags]: [test-keys]
[ro.build.type]: [eng]
[ro.build.user]: []
[ro.build.version.all_codenames]: [REL]
[ro.build.version.base_os]: []
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [7e997fe152]
[ro.build.version.preview_sdk]: [0]
[ro.build.version.release]: [7.1.2]
[ro.build.version.sdk]: [25]
[ro.build.version.security_patch]: [2021-06-05]
[ro.carrier]: [unknown]
[ro.cm.build.version.plat.rev]: [0]
[ro.cm.build.version.plat.sdk]: [7]
[ro.cm.build.version]: [14.1]
[ro.cm.device]: [n5100]
[ro.cm.display.version]: [14.1-20220304-UNOFFICIAL-n5100]
[ro.cm.hardware.cabc]: [/sys/class/mdnie/mdnie/cabc]
[ro.cm.releasetype]: [UNOFFICIAL]
[ro.cm.version]: [14.1-20220304-UNOFFICIAL-n5100]
[ro.cmlegal.url]: [https://lineageos.org/legal]
[ro.com.google.clientidbase]: [android-google]
[ro.config.alarm_alert]: [Hassium.ogg]
[ro.config.notification_sound]: [Argon.ogg]
[ro.config.ringtone]: [Orion.ogg]
[ro.dalvik.vm.native.bridge]: [0]
[ro.debuggable]: [1]
[ro.device.cache_dir]: [/data/cache]
[ro.egl.destroy_after_detach]: [true]
[ro.hardware]: [smdk4x12]
[ro.hdcp2.rx]: [tz]
[ro.kernel.android.checkjni]: [1]
[ro.lcd_min_brightness]: [20]
[ro.modversion]: [14.1-20220304-UNOFFICIAL-n5100]
[ro.opengles.version]: [131072]
[ro.product.board]: [smdk4x12]
[ro.product.brand]: [samsung]
[ro.product.cpu.abi2]: [armeabi]
[ro.product.cpu.abi]: [armeabi-v7a]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: []
[ro.product.cpu.abilist]: [armeabi-v7a,armeabi]
[ro.product.device]: [GT-N5100]
[ro.product.locale]: [en-US]
[ro.product.manufacturer]: [samsung]
[ro.product.model]: [GT-N5100]
[ro.product.name]: [GT-N5100]
[ro.recovery_id]: [0x84f795cc5a28293d81cf68dde8d9e5d8a57adba4000000000000000000000000]
[ro.revision]: [0]
[ro.secure]: [0]
[ro.serialno]: [32040e9201f51157]
[ro.sf.hwrotation]: [270]
[ro.sf.lcd_density]: [213]
[ro.storage_manager.enabled]: [true]
[ro.telephony.ril_class]: [SamsungExynos4RIL]
[ro.twrp.boot]: [1]
[ro.twrp.sar]: [true]
[ro.twrp.version]: [3.6.1_9-0]
[ro.wifi.channels]: []
[ro.zygote.disable_gl_preload]: [1]
[ro.zygote]: [zygote32]
[service.adb.root]: [1]
[sys.usb.config]: [mtp,adb]
[sys.usb.ffs.mtp.ready]: [0]
[twrp.action_complete]: [0]
[twrp.crash_counter]: [0]
[wifi.interface]: [wlan0]
[wifi.supplicant_scan_interval]: [15]
; stderr: /bin/sh: 1: printf: missing format character

  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 156, in LogError.func1
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/logger/logger.go", line 150, in LogError
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 63, in Cmd
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 237, in GetPropMap
  File "/home/runner/work/Anarchy-Droid/Anarchy-Droid/device/adb/adb.go", line 316, in SerialNumber
...
(4 additional frame(s) were not displayed)

Sudo error on linux

Sudo bug error.

Bug: sudo password prompt instead of command output. Killing adb server and retrying kill-server.

officail binaries only

Trying to install on a Samsung Note 9 (SM-N960F).
After download i get "Bootloader unlocked successfully" however on the phone screen there is a message "only official released binaries are allowed to be flashed" so I ma not sure if the process was successful or not.
The instruction states "VOL Down + HOME + Pwr until phone screen goes black then switch to VOL UP", these instruction are incorrect for my phone, on my phone there is no HOME button, and to reboot from download mode you need to hold vol down + pwr, to go into download mode you need to hold hold down + bixby, i tried rebooting into download mode after the "successful" message but it just remains at the download mode screen, nothing happens.

(I dont have the "OEM Unlock" option in the developer options)

any help really appreciated.
thanks

Weird responses to adb state query

Collecting them here for reference. Maybe that can help address some adb-related issues.


On linux with gta4lwifi (SM-T500) in adb.State()

unknown state:
StdOUT:
StdERR:adb server version (39) doesn't match this client (41); killing...
* daemon started successfully
error: no devices/emulators found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.