yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Q9Nap:
Ok, I did completely fresh virtualbox installs of both Ubuntu 14.04.5 and 16.04.3.

I then installed the minimal android build environment as outlined in the official android documentation, along with the three dependencies listed in the readme.md.

With Ubuntu 14.04.5, recovery patching works, but system patching still throws the "segmentation fault" error.

With Ubuntu 16.04.3, recovery patching still throws "unknown patch file format error", but system patching works :confused:

Let me know if you need any further info :)

I'll just have to keep both versions of Ubuntu installed for now, or buy a mac :p
[Android Software/Hacking General [Developers Only]] tony8077616:
Let have a Telegram Group
[Android Software/Hacking General [Developers Only]] erfanoabdi:
Create one

I'll join ;)
[Android Software/Hacking General [Developers Only]] DerEineDa:
I also have the previously mentioned issue that the process "BlockImageUpdate" just hangs with 100% CPU usage. My system has 8 cores and 32 GB of RAM, so RAM is surely not the issue.

It always stops at the same step:

...
patching 6 blocks to 6
writing 3 blocks of new data
patching 571 blocks to 556
patching 168 blocks to 213
moving 10 blocks
moving 6 blocks
writing 4 blocks of new data
moving 12 blocks
patching 46 blocks to 46
patching 4 blocks to 2
writing 63 blocks of new data
patching 3 blocks to 3
writing 9 blocks of new data
patching 1242 blocks to 1413
patching 6 blocks to 6

There it hangs forever and eats CPU cycles.

---------- Post added at 02:50 AM ---------- Previous post was at 02:29 AM ----------

I've looked at the source on github, and I thought that the commit with the message "Fix new data transfer infinite looping with transfer size >2GB" may fix this issue. So I've built the current code by myself, but unfortunately the issue persists.
[Android Software/Hacking General [Developers Only]] Q9Nap:
So I finally found a fully working solution:

Use ApplyPatch and imgdiff compiled on Ubuntu 14.04;

Use BlockImageUpdate, BlockImageVerify, and scriptpatcher.sh compiled on Ubuntu 16.04;

On Ubuntu 16.04+.

Here's a link to my binaries that are fully working on Ubuntu 16.04:

https://mega.nz/#!TRIjkZAB!c12pNem1FHfQMwAoMlY8-R4iw4Dnr_eG_xtcUWQGHbI
[Android Software/Hacking General [Developers Only]] tcpcd:
thanks bro
[Android Software/Hacking General [Developers Only]] Akrobs:
Extract

Hi, how to extract system.patch.dat from OTA update using IMG Patch Tools?

Thanks!
[Android Software/Hacking General [Developers Only]] nik1967:
Android 7.0

Smartphone Bluboo S3

Ubuntu 18.04

performing verification
cache dir: cache
blockimg version is 4
maximum stash entries 60
creating stash cache/537ed49fb5f6c32dc3d205d78b6084fe54f70cd3/
failed to verify blocks (expected f58bb0b31c579b06427d48e21a94ce67de60ace0, read a4431174fdceaeba437fb1947848ac0d0f0e4125)
partition has unexpected contents
failed to read blocks for move
failed to execute command [move f58bb0b31c579b06427d48e21a94ce67de60ace0 2,350509,350765 256 2,457631,457887]
deleting stash 537ed49fb5f6c32dc3d205d78b6084fe54f70cd3
Done with error code : -1

What am I doing wrong?
[Android Software/Hacking General [Developers Only]] celoxocis:
[MENTION=6298645]erfanoabdi[/MENTION]

when i run the scriptpatcher i get the following error.

./scriptpatcher.sh: 23: ./scriptpatcher.sh: [[: not found

with the output containing only

#!/bin/sh
mkdir tmp
[Android Software/Hacking General [Developers Only]] Q9Nap:
More than likely, you are trying to patch a sparse system image, or you haven't removed the proprietary Moto header and footer from an unsparsed image.

If your system image is in sparsechunks, sparseconverter outputs an unsparsed image from sparsechunks, but the header and footer still have to be removed before patching.

If your system image is a single image, simg2img outputs an unsparsed image, but the header and footer still have to be removed before patching.

Use 7zip or similar archiving utility to extract contents of an OTA.

Scriptpatcher must be in your PATH; if it doesn't work from ~/bin, place it directly in your working directory.

Also make sure that it can be run as a program;

Either right click on it and check the box allowing running as program, or from the command line, chmod a+x /path/to/scriptpatcher.sh.
[Android Software/Hacking General [Developers Only]] celoxocis:
that's exactly how I run it and it returns the above output.
[Android Software/Hacking General [Developers Only]] Q9Nap:
Ah didn't pay attention to the error; your setup is missing the "[[" binary, which apparently the script calls.
[Android Software/Hacking General [Developers Only]] celoxocis:
where's the [[ binary included?
[Android Software/Hacking General [Developers Only]] erfanoabdi:
Sorry my xda notifications are totally spammy i just saw your post

Use bash

In my script change first line to use bash instead of sh

Bu anyway it's very broken and probably can't give you full commands
[Android Software/Hacking General [Developers Only]] Q9Nap:
I successfully compiled imgpatchtools for arm32, on device, using UserLAnd chroot :)

Everything is working, except patching the system image, due to the file being too large (2.50GB).

Upon researching the "value too large for defined data type" error, I found that there is a 2GB file size limit for 32 bit systems.

There is apparently a way to circumvent this issue by enabling large file support in the source code; more info here:

http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Value-too-large-for-defined-data-type

I'm wondering if it is possible to enable large file support in imgpatchtools source code?

If so, would this be done in the makefile?

It would be awesome to be able to do the full patching process on device!

Here is my current armhf compiled archive:

https://drive.google.com/file/d/1Yo6HbsFbd1UnVdP1XRV3dagFkrVT7SK3/view?usp=drivesdk
[Android Software/Hacking General [Developers Only]] DoctorStrange96:
Could anyone give me help on how to remove the proprietary Moto header and footer from their system images?
[Android Software/Hacking General [Developers Only]] Q9Nap:
See step 3 of this post:

https://xdaforums.com/showpost.php?p=76829643&postcount=4
[Android Software/Hacking General [Developers Only]] DoctorStrange96:
Thanks! I'll be checking it out right now.
[Android Software/Hacking General [Developers Only]] geiti94:
can sbdiff be added in the tool? since samsung use now sbdiff on newest otas

https://github.com/dherrendoerfer/sparsefileutils
[Android Software/Hacking General [Developers Only]] xuw:
isnt it correct that full updates (not incremental updates) only contain system.img ?

can you still extract it with your tool? =)
[Android Software/Hacking General [Developers Only]] Q9Nap:
Full updates, with the "xml.zip"extension, contain system image sparsechunks, which have to be first decompressed with SparseConverter, which can be found here:

https://xdaforums.com/showthread.php?t=2749797

Once you have the raw image from the sparsechunks, you then have to remove the Moto header and footer.

See this tutorial for more info:

https://xdaforums.com/g5-plus/how-to/guide-creating-twrp-flashbale-stock-roms-t3804776
[Android Software/Hacking General [Developers Only]] Vaughnn:
Will this work on vendor partition as well?
[Android Software/Hacking General [Developers Only]] xuw:
Yeah, wondering the same..
[Android Software/Hacking General [Developers Only]] el_Comandante:
Errors compiling source under cygwin64 to build windows executable

Hello,

i try to compile, using make, the source from GitHub under cgywin64 to build a windows executable.

While compiling i get errors on bspatch.cpp:

$ make

for dir in applypatch android-base edify minzip otafault blockimg; do \

cd $dir && make && cd ../; \

done

make[1]: Verzeichnis „/home/Neuer Benutzer/work/applypatch“ wird betreten

g++ -o bspatch.o -ffunction-sections -O3 -std=c++11 -c bspatch.cpp -I. -Iinclude/ -I../include/ -I/usr/local/include/ -I../

bspatch.cpp:67:21: Fehler: »u_char« wurde in diesem Gültigkeitsbereich nicht definiert

static off_t offtin(u_char *buf)

^~~~~~

bspatch.cpp:67:21: Anmerkung: empfohlene Alternative: »putchar«

static off_t offtin(u_char *buf)

^~~~~~

putchar

bspatch.cpp:67:29: Fehler: »buf« wurde in diesem Gültigkeitsbereich nicht definiert

static off_t offtin(u_char *buf)

^~~

bspatch.cpp: In Funktion »int ApplyBSDiffPatchMem(const unsigned char*, ssize_t, const Value*, ssize_t, std::vector<unsigned char>*)«:

bspatch.cpp:140:31: Fehler: »offtin« kann nicht als Funktion verwendet werden

ctrl_len = offtin(header+8);

^

bspatch.cpp:141:32: Fehler: »offtin« kann nicht als Funktion verwendet werden

data_len = offtin(header+16);

^

bspatch.cpp:142:32: Fehler: »offtin« kann nicht als Funktion verwendet werden

new_size = offtin(header+24);

^

bspatch.cpp:194:29: Fehler: »offtin« kann nicht als Funktion verwendet werden

ctrl[0] = offtin(buf);

^

bspatch.cpp:195:31: Fehler: »offtin« kann nicht als Funktion verwendet werden

ctrl[1] = offtin(buf+8);

^

bspatch.cpp:196:32: Fehler: »offtin« kann nicht als Funktion verwendet werden

ctrl[2] = offtin(buf+16);

^

make[1]: *** [Makefile:28: bspatch.o] Fehler 1

make[1]: Verzeichnis „/home/Neuer Benutzer/work/applypatch“ wird verlassen

/bin/sh: Zeile 1: cd: android-base: No such file or directory

/bin/sh: Zeile 1: cd: edify: No such file or directory

/bin/sh: Zeile 1: cd: minzip: No such file or directory

/bin/sh: Zeile 1: cd: otafault: No such file or directory

/bin/sh: Zeile 1: cd: blockimg: No such file or directory

make: *** [Makefile:31: sub] Fehler 1

Okay, the supplied compiler output is in german language.

The first two errors are that "u_char" and "buf" are dot defined in this valid area.

The other errors are that "offtin" can not be used as a function.

Same errors using Cygwin32.

Coding in win32asm is okay for me, but c or c++ ist unknown terrain.

Any idea to remove the errors while compiling?

Maybe i'll get more errors on other files while compiling?

Thank you
[Android Software/Hacking General [Developers Only]] CTH-EVO:
Hi. I see this thread isn't very active anymore. Is this still a viable solution?

Thanks! :-)
[Android Software/Hacking General [Developers Only]] tids2k:
best to ask the OP in his telegram channel :p
[Android Software/Hacking General [Developers Only]] MousikMstfa:
hi, thanks a lot for this project ...

i try to used this tools, but i have stuck on the terminal

i was trying to solve this problem by research, but still stuck
[Android Software/Hacking General [Developers Only]] Ronnie McNutt:
This works with android 14 ota files thanks
[Android Software/Hacking General [Developers Only]] Ronnie McNutt:
When i patch system ota files it works without a problem but when i try to patch product images it gets stuck on ''creating stash'' how can i fix this?

./BlockImageUpdate product.img product.transfer.list produ

ct.new.dat product.patch.dat

performing update

creating cache dir cache

cache dir: cache

blockimg version is 4

maximum stash entries 0

creating stash cache/ade5cdfa3bfaa1c8a6fd82faf68a37825aaeb59d/
[Android Head-Units] marc.knuckle:
I have posted questions about getting the unit on another forum but thought I'd post my experience, findings and also any questions raised to both help others and maybe get answers and help.

I went with the Erisin Es5060pb. Its the best spec I could find. Runs full android 6.0. Octa core processor. 2gb ram. 32gb storage.

Overall it went in much easier than i thought, simply plugging into the standard connector. We wired the included ext mic and routed it close to my head in the drivers seat. Routed the gps antenna close to the windscreen. I also connected the rear usb and put through a hole in the glove box which I connected the separately bought 3g dongle (might eventually just use wifi tethering from my phone) and that works well.

The amount of things it does are fantastic. Dvds, cds, usb thumb drives for both music and videos, and the same for micro sd. Google maps work ok, see below, as does youtube.

Issues -

1) The radio sounded terrible at first and needed a lot of tweeking in the equilizer app. Much better now (still not great though) but oddly is a little better with music played from files. I can't find an app that actually uses the FM antenna to see if it's better. It is also odd that any app's equilizer such as Pi Music player effects only that app and the radio is only affected by the inbuilt equilizer.

2)The fader thinks I'm in left hand drive so doesn't sound right if changed to only driver. Also when moved to only rear speakers it also still plays in the front centre, only turning off the front sides

3)When playing audio /video while accessing Internet via either wifi or data, (such as a YouTube video) there is low volume interference in the background. After a while this stopped but was annoying.

4)Due to having the 'Loud' option enabled in the inbuilt equilizer app which improved sound not just volume, it is only for music such as the radio, all other sounds are much lower. This means that if i have google maps on while playing the radio, the Google maps voice is way too low. By turning the volume up it increases but so does the radio which then gets too high.

5) due to all the messing with audio i have started to realise that i havent got a clue how to get the best out of an equilizer. i prefer the 'pop' type config of a higher setting on the middle sliders and a bit lower either side but i just cant get it right. any suggestions?

Hopefully this helps others and if anyone can help with any thoughts on the issues , I'd appreciate the help

Marc
[Android Head-Units] marc.knuckle:
anyone?
[Android Head-Units] droidmanuser:
I have a lot of problems with this device, too. I'm using the custom rom from Malaysk.

1. FM signal and sound quality are terrible. I think there is no way to optimize.

2. If I'm connecting an usb-device while music is playing, music begins to stutter for a little time until the usb-device is loaded.

3. Bluetooth streaming quality is very poor! This was the reason why I had installed spotify directly on the unit.

4. Bluetooth pairs only every second time of unit boot to my mobile phone. Sometimes you have to connect manually...

5. Wifi connections sometimes can't be established although strong signal is available.

6. By using a 3G dongle for mobile internet, the unit freezes sometimes so you have to reboot it... I think this is caused by changing the cellular power of the dongle (3G/2G, 2G needs more power)
[Android Head-Units] marc.knuckle:
Im afraid i haven't had any of those issues. My sound issue was sorted by removing the 7th speaker that should have only been used for voice like factory sat nav.
[Mogul, XV6800 ROM Development] MyCellularRepair.com:
Ok.....I've flashed a 6800 from sprint to alltel and configured everything and it all works great w/ the exception of the backlight not working. When I turn off the backlight or if it times out on it's own, it won't come back on! The only way that I can get it working again is to do a soft reset......I've tried flashing the alltel rom file again and it didn't make a difference. The backlight worked fine when it had the sprint rom. Does anyone have any ideas? Has anyone else experienced this problem? Thanks in advance.
[ZenFone 2 Q&A, Help & Troubleshooting] llamasking:
I recently bought my Zenfone 2 from Gearbest and when it came, I let it charge a bit. I eventually got it to boot with about 8% of a charge. I then left it for a while when I did something. When I came back, I found my phone to be shut down and when I tried to boot it up, it shown a low battery icon. Very weird since it was plugged into my PC the entire time.

I then started the phone once again. But when I pressed the power button, it shut down instead of sleeping.

I repeated turning it on a few times. Every time I pressed the power button to make it go to sleep, it instead shut down. Eventually, it stopped booting entirely. There is no vibration, indicator light, or screen. When I plug it in, the top half of the phone heats up significantly. I have had no luck trying to revive it.

I have tried:

Letting it charge for about an hour.

Disconnecting and reconnecting the battery.

Pushing both volume and power.

The phone is running pure stock as I only had about 30 minutes of total screen on time.
[ZenFone 2 Q&A, Help & Troubleshooting] kenbo111:
Your pc probably isn't supplying enough power. Use a dedicated wall charger.
[ZenFone 2 Q&A, Help & Troubleshooting] llamasking:
When I originally plugged into my PC, it was charging. I have also moved to the wall charger that came in the box.
[Android Q&A, Help & Troubleshooting] SJWyman:
When I click on the link for the Kindle File Utility, a gaming site or a porn site opens up. Is there another place that the Kindle Fire Utility can be found? I'm using a 1st generation Kindle Fire.
[Android Q&A, Help & Troubleshooting] cinima:
Hey.

I flashed TWRP for the Samsung G360T1 (Galaxy Core Prime) a few hours ago and when rebooting into the system, it just boots back into the recovery.

After reading some articles, I decided to wipe and installthis ROM (Monstro's Rom v3).

That didn't work so I wiped Dalvik and Cache. Still no success.

I'm using ShinySide's TWRP recovery.
[OnePlus 5 Questions & Answers] ToonBoon:
I'm using lux to offer me some of that lo-brightness goodness but I notice that on very dim settings the lighter shades of grey are darker on left side of the screen. Should I be afraid of damaging my screen or is it all good? I'm fine with how it looks but don't want to kill a phone :D
[OnePlus 5 Questions & Answers] Uga_boy:
Mine does the same thing. But the right side is darker than the left. It's a hardware defect. Not bad enough to send it in but it is there. Once you notice you can't stop seeing it. Similar issue with the one plus 2 i had where there were darker lines across the screen. Those were horizontal, this issue with my OnePlus 5 is a vertical band on the right side of the screen.
[LineageOS Questions & Answers] joelin139:
Please, where can i get Lineage OS for Asus Zenfone 3 Zoom ZE553KL

thank you :o:angel::angel:
[LineageOS Questions & Answers] luanaro17:
Meu sonho e usar Lineage os no zenfone 3 zoom

ou apenas fazer root no 7

podia fazer tutorial down-grade
[LineageOS Questions & Answers] GBry:
There is none yet, however, I'm giving a shot at building the ROM.

Anyone that is knowledgeable enough, please help me with this.

OP, please help me also as I really want LOS and RR in ZfZ
[LineageOS Questions & Answers] HexAndBoon:
Any update on this?
[LineageOS Questions & Answers] Fennec23:
Please please please make it happen, Asus Stock Rom is **** and I don't trust them.
[LineageOS Questions & Answers] alucardromero:
Just curious where this is at.
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] shaqaruden:
Whats the difference between these devices? Is it the radios?

I would like to look into building my own custom rom for the A520W.
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] Sn0w0nS:
I would also like to know. :)
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] the_malcom:
I own the A520W and from what I understand its the Canadian variant. The radios do have a different name as well. I'm no expert on LTE bands so I don't know the exact difference.
[Asus ZenWatch 3] lexridge:
Is it possible to make the Google Assistant in AW2 actually speak from the watch speaker? It would certainly be a great thing to have especially while driving.
[Asus ZenWatch 3] Misterjunky:
re: google assistant

The only way google assistant will speak is if you

go into "accessibility" under settings and enable

text to speech, but doing that will make everything

on your screen to be spoken through the speaker.

Good luck, have a great day!
[Asus ZenWatch 3] lexridge:
Not the reply I was hoping to hear, but thank you.
[Android Q&A, Help & Troubleshooting] slim6y:
Settings stops working everytime I try to change the USB configuration to MTP so I can make the tablet discoverable on a Windows PC.

Tablet is an ex-Windows 10 tablet now Nougat 7.1 (unbootable).

I need to be able to access the tablet's drive from the PC to remove boot sectors and replace them with the Android ones.

A work around could be a boot USB, but another thing I can not seem to do either. Any other suggestions?
[G4 Q&A, Help & Troubleshooting] Foscora:
Hey guys long time lurker here !

I'm experiencing an issue with my G4 h815 currently with AICP (rev from around April) and TWRP (from around January 2017).

Since the last update of AICP I did (so back in April) everything went fine with the phone.

I did nothing weird with the phone (haven't installed an app for months, neither droped the phone or whatsoever)

It suddenly froze while I was browsing Chrome, then bootlooped 2 times, couldn't get past the "swipe to unlock" thingy.

I then decided to get into recovery mode with PWR+Volume down buttons => "do you want to erase blabla ?" => YES => "Are you sure blabla" => YES.

The "TeamWin" logo from TWRP appeared once, phone bootlooped again, and until then it just freezes after the second "YES" when I try to get to recovery mode and then bootloops again.

Obviously this crap happens when I'm far away from home (and for a long time) so I installed drivers / ADB stuff on my laptop but I can't get the phone to be recognized by win 10 in any way. ADB says : error: device '(null)' not found

I'm a bit lost right now, any thoughts / keywords that could help me getting sorted are welcome !

Many thanks in advance,

Fosco
[G4 Q&A, Help & Troubleshooting] Foscora:
Ok I managed to go a bit further ... discovered about the download mode thingy (Vol UP while plugin it to computer).

I installed LG UP, picked a KDZ file here.

I was then able to "upgrade" the phone with the stock rom : Complete success from the process perspective. It then froze on the basic LG logo. I removed the battery, entered recovery mode, reset worked, phone went back alive => "android is preparing apps, etc" but then it rebooted and froze again on LG logo.

Am I missing something ?

EDIT : Tried LG Bridge method aswell ... can't get it to go further than boot ... still freezing on the boot screen
[G4 Q&A, Help & Troubleshooting] Foscora:
Went ahead, disassembled the phone and heated the CPU ... looks like it needed it-ish.

I am still stuck on the LG logo, but atleast now I have the green android guy having his belly "moving stuff" and the blue led is glowing :laugh:

Nah seriously this is getting annoying ... IDK what to do next ... Cure it with lawnmower ?