yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] AlexBurnout77:
Viber sucks

---------- Post added at 10:41 PM ---------- Previous post was at 10:41 PM ----------

I don't think so
[Android Q&A, Help & Troubleshooting] ifti_a:
I stopped using Viber, its not very good, it logs you out/deletes messages, if you restore data after a clean flash which is crazy. You have a backup why not let us keep it
[Android Q&A, Help & Troubleshooting] treysis:
Yes, there is. But for this you should have made a backup of the .thumbnails-folder, which is in the same location as your "Viber Images" folder (probably sdcard/viber/media/). You can only backup this folder with ADB (or some file manager on the phone). It does not show if you browse your phone from the computer with explorer (no matter if Linux, Windows, or Mac, android doesn't transfer .-files over MTP).

If you haven't made a backup, there's still the hard way to do it: the viber_messages database is just an SQLite database. It stores the filename of the photo ("extra_uri") and the corresponding filename of the thumbnail ("body"). You could now go and create thumbnails for all your images, and name them according to the database entry. If you're used to programming, it shouldn't be to difficult to have this done automatically.
[Android Q&A, Help & Troubleshooting] isovitis33:
Hello to everyone..

I could use some help. I have a samsung note 4 and I tried to backup my viber messages using the Backuptrans

Android Viber Transfer program (http://www.backuptrans.com/android-viber-transfer.html)

The problem is that for some unknown reason my phone can't communicate with the program. It is invisible to the program although I have clicked the usb debugging.

Any ideas what I could do to fix it?
[Android Q&A, Help & Troubleshooting] MisterVolum:
every other method described in this thread failed for me, but this one is pure GOLD !!! For whole two days i was trying to somehow restore Viber messages from a Nandroid backup, and got no luck untill i found your tutorial. Thanks a million for letting us know about this method. :good:
[Android Q&A, Help & Troubleshooting] danire01:
I do it like you sad but I have constantly crashes. When I copy those files, group and owner is automaticly changed to the one of the com.viber.voip folder. Any idea?

Thanks
[Android Q&A, Help & Troubleshooting] lialialia:
iPhone to Android?

Sorry for reviving an old thread! :( I just really want to keep my messages from my old iPhone. I have a new Samsung S7 with a new number (so new viber, yay?) So I have a lot of messages on my old Viber, and I was wondering if there's a way to move all of those messages to my S7 and new viber account before I deactivate it. I have read about the Backuptrans Android Viber app, but I wanna make sure I'm not missing out any other workarounds before I shell out cash for this program. Ideas? Thanks in advance! :)
[Android Q&A, Help & Troubleshooting] vdanh:
Anyome please help.

I did copy the viber_messages to data/data/com.viber.voip/databases folder. But viber keep stopping when I open it. I did change the permission of the file to -rw-rw.

It worked for me before, just 1 week before. But now, it's not work. Did viber fix this in the newest version?

I also tried on ver 5.x.x but it still stop/crash when replace the viber_messages

Please help.
[Android Q&A, Help & Troubleshooting] dracula8275:
Hi all, after few weeks will change my phone number. Is there a chance to keep my viber messages from the old number? May be with the new backup function of viber? Restore them?

Thank you in advance for your help

Hi all, problem resolved with the copy of the old files from data. After signing in with the new number must close viber, copy the old message history on viber file and all it's ok
[Android Q&A, Help & Troubleshooting] folefole:
I try this and got message "viber is close" or...

But try this use older version of viber (in my case Viber 6.1.0.2369) than copy "viber_messages" (in my case I not copy viber_messages_journal) than just backup messages thru settings viber backup on google drive. After that update Viber and again update if it is everthing ok... If your viber close just delete "viber_messages" and start again

https://viber-free-calls-and-messages.en.uptodown.com/android/old
[Android Q&A, Help & Troubleshooting] dtdpul:
please advice if any way to activate viber (on new phone, new reset system...), but don't allow it to send join viber alert message to phone listed viber friend, because it is very annoyed other people?

Thank you!
[Android Q&A, Help & Troubleshooting] Apoelara1:
Hello,

I found the .thumbnails-folder in my backup. (I have copied it from my internal storage to my PC). When I open it I can see all images that they were on my chats. I have copied it to the rom but the images are not still missing. I'm just getting empty photo.

All conversations are OK using my Titanium backup restore.

Any help for the images?
[Android Q&A, Help & Troubleshooting] treysis:
Apoelara1: Hm, it's been some time that I did this. Did you copy the .thumbnails-folder to the correct location on your new phone? Does it start with a . ? And which photos are empty? When you scroll through your chats or when you tap a photo to open it?
[Android Q&A, Help & Troubleshooting] Apoelara1:
I have copied the .thumbnails in my internal storage. sdcard0/viber/media. The images are empty both when I go through my chats and when I tap a photo to open it.

When I tap to open it says file not found. It's like viber not looking at the correct location.

Note that for new chats received the images are displayed and are located in the same location with the old ones (sdcard0/viber/media/Viber Images).
[Android Q&A, Help & Troubleshooting] treysis:
Do the photos received in new chat have the same file and filename format? If yes, then I don't know. Something must have gone wrong when copying over the database. Which is weird though, because apparently you can see old chats. Hm...
[Android Q&A, Help & Troubleshooting] Apoelara1:
Yes they are saved in the same location and have the same name format.

It looks like viber cannot find which image should bring.

Is there a procedure to restore viber? Shall I uninstall it and download it from play and activate it first and then restore only data from titanium
[Android Q&A, Help & Troubleshooting] treysis:
Hm, I just saw that Viber now has a backup function (it didn't have that back in January). So I guess you restored using the built-in backup function? I don't know if that also backs up your pictures. You would need to download the database to your computer and check with SQLiteBrowser if it still contains the links to your image files. Do you have rooted your phone?
[Android Q&A, Help & Troubleshooting] Apoelara1:
Yes the phone is rooted with custom rom installed.

The backup/restore was done using Titanium backup.

When I say It looks like viber cannot find which image should bring I was trying to describe your words "... if it still contains the links to your image files..."

How can I check this? If links are not there how can I create them?
[Android Q&A, Help & Troubleshooting] Apoelara1:
Anybody to help me link my viber images to my chats?

Thanks a lot.
[Android Q&A, Help & Troubleshooting] Hus Dah:
Lost my Chats

Hello

Two days ago, Viber updated itself only to present me with the activation request message. I panicked and backed up Viber using Titanium Backup, and followed all of the steps mentioned in this thread, but without success. All messages are gone, and I’m repeatedly presented with either the activation request or a blank Viber inviting me to start a chat.

I pulled the “viber_messages” file from the doomed TB backup and was able to view it on my PC in MS Excel. Although horribly mangled, I can see that it contains my most recent chats, which happen to be so dear to my heart.

I would love to be able to restore those messages from the most recent backup, but I’m desperate enough to accept having them viewable in MS Excel whereby I can view the date and time of messages, sort them by contact name, etc.

I will be eternally grateful to anyone who can offer help on this request.

Thanks in advance.
[Android Q&A, Help & Troubleshooting] Apoelara1:
The TB has this /data/data...../viber messages but I cannot find where to put it in the new phone.

So, Where do you replace /data/data/com.viber.voip/databases/viber_messages? Where does it located in the phone?
[Android Q&A, Help & Troubleshooting] snebojsa:
It's located exactly like you wrote: /data/data/com.viber.voip/databases/

Your phone must be rooted to do this and you must use some file explorer, like ES file explorer, FX file explorer, Root browser...
[Android Q&A, Help & Troubleshooting] treysis:
Anbody succeeded copying the images so that they appear in the chats correctly?
[Android Q&A, Help & Troubleshooting] snebojsa:
Yes, just copy viber/media folder and after restore viber, copy back that folder, it contains pictures and videos.
[Android Q&A, Help & Troubleshooting] treysis:
I did that. But if I open a chat with images, it just shows a black image and if I try to open it it says "file not found".

Edit: I just realized that I am facing the same problem now as [MENTION=2570757]Apoelara1[/MENTION], who I tried to help 1.5 years ago...now I fully understand what is his problem. And I have no solution. :(
[Android Q&A, Help & Troubleshooting] snebojsa:
I backup/restore viber couple times in past years and never experienced such problems.

Maybe you have deleted original/source image from gallery by mistake, then it can't be opened, you will have just thumbnail preview in chat.
[Android Q&A, Help & Troubleshooting] treysis:
No, I don't even have thumbnail preview in chat. Maybe you used Titanium Backup to restore? I don't have root, so I cannot use TB.

It's really annoying. I now restored my account to a rooted phone, and after restoring had a look at the viber_messages db, to investigate. Well, this has been altered quite a bit. All links to images have been replaced by some pseudo-link, e.g. "http://viber-fake-uri.com/newmedia?dlid=a0321d34f32e4137745403f65865e542076fd238fa38b26b6a6bf4d1558aafdd&vrnt=400&fltp=jpg" where the id in this link is reflecting the correct image name (in this case: image-a0321d34f32e4137745403f65865e542076fd238fa38b26b6a6bf4d1558aafdd-V.jpg). So, obviously Viber cannot find the file. Newly received images will instead have the filename instead of this pseudo-link. So, at the moment it's impossible to restore chats with images.

Really, Viber, what BS is that backup function? What were you thinking? Why would anyone want that? Does it have anything to do with message encryption or anything? Really, this is stupid.

Now, it would be cool if Viber would in a future version convert this links back so that I can see images inline.
[Android Q&A, Help & Troubleshooting] snebojsa:
Yes, I use TB.

You need root to do it properly.
[Android Q&A, Help & Troubleshooting] glitho:
how you back up com.viber.tar.gz? Could you give me some more details step by step? And what files are restored? All files? and the audio ones?
[Android Q&A, Help & Troubleshooting] Nikos kouk:
Hello

Can tell me anyone where I found the old backup because I quit messages and after I fix new backup but I want this message ....if anyone can help me the backup is on drive but I can't founds it
[Samsung Epic 4G Touch] frigidazzi:
Does anyone have a tripod for this phone? I've looked around and many aren't big enough. I cannot seem to find anyone specifically mentioning this phone with it's extra largeness.

Thanks!
[Samsung Epic 4G Touch] frostrunner:
I would also like to know if anyone found one.

I looked a bit on ebay and amazon but didnt find any good quality ones for the right price.
[Samsung Epic 4G Touch] Shady Gambino:
Mobile Grip Mini Fold-Up Smartphone Tripod

Works with pretty much any phone up to 4.6" screen. Also, if you take off the holder and adapter, you can use it with any digital camera / camcorder with a 1/4"20 screw mounting hole.
[Samsung Epic 4G Touch] 2ndaccord:
I've been looking for one of those. Looks great and the price seems right.
[Samsung Epic 4G Touch] nerys71:
Ok THAT is freaking AWESOME!!

Ordered. enter pocketnow for 5% off (90cents off hey 90cents is 90cents)

I just REALLY hope it works with my Epic Touch INSIDE its tough case. I don't ever remove it from the case :-) (and its a pain to remove it anyway)

this is SO EXACTLY what I have been looking for!
[Thunderbolt Q&A, Help & Troubleshooting] halfcab123:
** ADMINS/MODS, if your going to delete this thread, if you dont' mind please advising me on the correct way to post this or correct place, Thanks **

******************************************************

QUESTION: How can I create a update.zip (i.e., PG05IMG.zip) for the thunderbolt and then flash it with fastboot or in bootloader.

ANSWER: Flash a rom on your phone and then using adb

adb shell dd if=/dev/block/mmcblk0p25 of=/sdcard/system.img

Make a zip folder and put in it system.img along with boot.img from the

rom zip and whatever other partitions you want, perhaps a radio

mdm9k.img and radio.img along with a recovery.img and you can

make your own little custom rom to be flashed with fastboot or as an

update, then you can either put it on the sd card as an PG05IMG.zip and do

a bootloader update (s-off only) or fastboot flash zip (zipname.zip)

for eng-hboot only... really cool.

******************************************************

******************************************************

******************************************************

******************************************************************************************************************************************************************

1. Ok I've been trying dilligently in the past to do 2 things. I want to create my own SYSTEM.img from the roms i'm making so I can create PG05IMG's instead of .zips to flash, that way i can include the radio etc., this is for learning purposes (PLEASE DO NOT SUGGEST WELL KNOWN METHODS OR SIMPLY QUESTION WHY IM DOING THIS UNLESS ITS INVOLVED IN THE SOLUTION PROCESS.)

I have tried several different methods for backing up my system.img etc., I need someone to help me with this, and I'm willing to donate to get this done.

2. Secondly, I need to figure out a way to flash roms from command line using adb while the phone is in recovery, I don't have any problem flashing roms with fastboot if someone can show me or explain how to make the system.img actually work.

Already tried this:

adb push C:\ROM.zip /data/

adb shell

recovery --update_package=DATA:ROM.zip

This would simply make the thunderbolt go to an exclamation point and do nothing.

I was however able to get this to work on the same version of recovery 5.0.2.1 on a Nexus S I9020T, but not on the Thunderbolt ADR6400L.

Simple anlysis of questions

1. How can I turn a rom.zip (system folder) into a (system.img) "fastboot flashable"

2. How can I take a rom.zip and flash it in recovery using adb

Donation negotiable, and I appreciate any time/clues/answers/suggestions, but I really need to figure this out.
[Thunderbolt Q&A, Help & Troubleshooting] AdamOutler:
Hi there,

I have a plan in the works already since the beginning of last month. I call it CASUAL. Cross-platform Adb Scripting, Unified Android Loader. Its purpose is to do exactly what you wish. This is a project I intend to begin work on next month. I've set up a repository for the work and I will begin soon. Basically, it will do exactly what you want.

Edit: I do not intend on rushing for the bounty. My goal is to do it right. If someone wishes to rush it, go ahead and collect the bounty. My goal is to provide something which will create an infrastructure contained within a single cross-platform java file. I've got most of the heavy lifting already done from my Heimdall one-click project. However, in order to complete the job, it seems that I must reformat my desktop because my IDEs are acting wonkey.
[Thunderbolt Q&A, Help & Troubleshooting] halfcab123:
Adam thanks for your response, really great to hear and the fact that your not rushing for money is great too I understand. But hey, without regard to the cross platform ADB rom flasher, can you just point me in the right direction as far as where to go to learn how to say, "make a system.img of a rom" so I can fastboot flash it..

Like so I can take a rom zip and be able to turn it into a system image that is fastboot flashable on the thunderbolt... at that point i can just manually flash the boot.img and radio and i'm good to go.

So if i can just figure out how to do that one little thing that would be huge and much appreciated... thanks so much man. I will gladly donate for an answer to this question.
[Thunderbolt Q&A, Help & Troubleshooting] AdamOutler:
Generally, to flash a ROM, you type:

adb reboot bootloader

then on your desktop you use fastboot and type

fastboot oem unlock
fastboot flash your partition your file...

I'd follow this guide to get S-OFF: http://xdaforums.com/showthread.php?t=1310014 then find your neato-bandito rom from this forum: http://xdaforums.com/forumdisplay.php?f=943 and flash it.
[Thunderbolt Q&A, Help & Troubleshooting] halfcab123:
Thanks Adam, but, I already know how to flash partitions in fastboot, but what i need to know is how to "make" partitions. as in like, take a system folder and turn it in to a system.img so i can fastboot flash system system.img

Please please need to know thanks :)
[Thunderbolt Q&A, Help & Troubleshooting] yareally:
That's not overly hard to do. There's a guide I think on the cyanogen website for how to do it. Basically you use the "dd" tool in linux.
[Thunderbolt Q&A, Help & Troubleshooting] halfcab123:
Dude please, can you walk me through it, like I said I'll donate. Or alteast give me a link to where its at, then i'll turn this post into a how to for noobs. I learn at 300,000,000 m/s^2
[Thunderbolt Q&A, Help & Troubleshooting] AdamOutler:
It looks like there's a stupidly large amount of partitions on the Thunderbolt. if you can do this:

adb shell mount

and get the partition information, I can tell you how to do a backup and restore.

it will be something like this.. this gets run once to get a temporary storage area on the /sdcard

adb shell mkdir /sdcard/mybackup

mkdir /PATH/TO/YOUR/DESKTOP/backup
adb shell dd if=/dev/block/mmcblk0p25 of=/sdcard/mybackup/system.img
adb pull /sdcard/mybackup/system.img /PATH/TO/YOUR/DESKTOP/backup/system.img

These commands do: make a new folder for working on your desktop. direct disk backup of mmcblk0p25 (SYSTEM partition). Pull the system.img to your working folder on your desktop.

If you have your image on a Linux or Mac desktop, you can mount it like this..

cd /PATH/TO/YOUR/DESKTOP/backup
mkdir MountFolder
sudo mount ./system.img ./MountFolder
#if this doesnt work, then do this
sudo mont -o loop -t ext3 ./system.img ./MountFolder

you can make changes to the system which has been mounted onto your computer. Then unmount it and push it back to your device.

to unmount and flash it back you do this:

sudo umount ./MountFolder
adb push /PATH/TO/YOUR/DESKTOP/backup/system.img /sdcard/mybackup/system.img
adb shell dd if=/sdcard/mybackup/system.img of=/dev/block/mmcblk0p25

This pushes your backup to your device, then does a direct disk write of the image file to the disk partition
[Thunderbolt Q&A, Help & Troubleshooting] yareally:
↑ last poster pretty much sums it up in detail :)
[Thunderbolt Q&A, Help & Troubleshooting] halfcab123:
This is very informative and I actually realized something that I think will definitely help me, however its kinda not really the answer to my question.. and at the same time it is kind of another solution to the question that I asked.

What I asked was how to turn the system folder from a *.zip "rom" into a system.img that was fastboot flashable

You basically told me how to make a backup of the system, modify, and flash back to my phone.... which is interesting...

Basically what I take from this, please let me know if i'm on the right track here:

If the goal is to flash a rom on an htcdev unlocked phone one would:

(assuming system.img already created from backup, flashing to another phone)

adb reboot recovery

adb shell dd if=/dev/zero of=/dev/block/mmcblk0p6 (data wipe)

adb shell mount /sdcard/

adb shell dd if=/sdcard/system.img of=/dev/block/mmcblk0p25

adb reboot bootloader

fastboot erase cache

fastboot flash boot boot.img

fastboot reboot

After trying this, I was both unable to mount sd card for some odd reason

using adb shell mount /sdcard/ and I was also unable to wipe data

at partition mmcblk0p6 with /dev/zero it just hung for 4 minutes.. does it take longer ? I ended it.

My only other option that I can think of is to downgrade the thunderbolt and run revo to get s-off and then make a PG05IMG.zip with a custom system.img and boot.img and flash it as a PG05IMG.zip in bootloader... so coming from this direction which seems to be much much easier, if I say took a PG05IMG for the MR4 (2.11.605.9) replaced the hboot with an eng-hboot, replaced the system.img and the boot.img would it work ??? I'm going to try it lol, probably going to be an epic fail.. any comments appreciated.

UPDATE: after posting this I realized that with a revolutionary s-off, the hboot is protected from being updated with an RUU, in bootloader so I would not have to worry about replacing the HBOOT, the only reason I even mentioned it was because I know that the hboot in the official MR4 RUU is the dev method supported hboot and would probably throw a security warning after flashing... etc., once again any help is great.
[Thunderbolt Q&A, Help & Troubleshooting] AdamOutler:
There is no direct 1:1 way to convert. However, you can use the update script in the Meta folder as a guide. It will have information to copy files into the system folder and applysymlinks. The commands used by recovery all have a Linux equal.

Delete = rm

Delete recursive = rm -rf

symlink = ln -s

copy = cp

These are android recovery commands which must be translated to their Linux shell equivalants.
[Thunderbolt Q&A, Help & Troubleshooting] halfcab123:
what if i just straight take the system.img and boot.img and throw them in a PG05IMG.zip and use bootloader to update, will that work ?
[Thunderbolt Q&A, Help & Troubleshooting] AdamOutler:
I don't know what a pg05img is. However, with samsung devices, we use dd'd system images to flash with Odin. Odin works sorta like fastboot. I don't know if that will help you because I generally use Samsung devices and Samsung does things differently than the rest of Android. From what I understand, fastboot flashing is similar, but I don't know if you can DD an image from a device and just fastboot flash it back onto a device. You can do this with Odin. I don't think there are provisions for flashing images in recovery directly. They DO have executables encorperated within zip files for flashing modems and bootloaders. Before trying a non-standard flashing method, you need to do some reading. It can be risky.
[Thunderbolt Q&A, Help & Troubleshooting] halfcab123:
I just made my own PG05IMG.zip and updated in bootloader and it booted into a custom rom, and this is after i erased userdata, cache, system, so i know it works, i even

fastboot oem rebootRUU

fastboot flash zip "customzip.zip"

and that worked too, so stoked man, I can't believe I finally figured it out.

As soon as you told me the mmcblk0p25 could be backed up, it clicked, funny thing is I knew that but I guess I just didn't think it was that simple.
[Atrix 4G Q&A, Help & Troubleshooting] benjat:
My Socials networking and News only show "No recent unseen updates" already try remove and readding back.. also already wipe and reflash rom.. any other suggestion to make it work?

Problem Solve by Nottach
[Atrix 4G Q&A, Help & Troubleshooting] rickwyatt:
I had this happen to me to to fix it I made a new motorola account
[Atrix 4G Q&A, Help & Troubleshooting] benjat:
hmm.. so need to reflash back then create new motorola account? or there is other way? thanks in advance
[Atrix 4G Q&A, Help & Troubleshooting] shottah:
Is it necessary to quick flash, or would a factory reset suffice and then just create a new account. Just my suggestion.