Related
This Avatar.apk is for those who have upgraded to Froyo with an unofficial build that doesn't include a working Avatar app, but desire a working Avatar.apk that launches the DRM protected copy of the movie included with the phone.
Some caveats/disclaimers: I don't own a Vibrant; I have an i9000 Galaxy S and a Nexus One. I don't plan on providing much support for this, but it shouldn't need it. All the usual "I am not responsible for damage to your phone" disclaimers apply; if you don't know how to use adb and don't have root, go find out how in the appropriate FAQs.
Back story: My friend owns a Vibrant and hated it (slow/laggy). I thought upgrading it to a Froyo build would make him happy, so I did with Team Whiskey's Onyx version (very slick, better than the best ROM I have on i9000 IMHO). He was disappointed that the Avatar shortcut/app on the desktop disappeared, so I pulled the apk from a 2.1 build and pushed it to the phone, but it didn't work.
A little investigation showed that the apk file has an xml resource that is hard-coded to look for the encrypted/drm copy of the movie in the path "/sdcard/sd/movie/AVATAR.dcf", but the Froyo builds mount the external card as "/sdcard/external_sd/" so the app doesn't work.
All I did here was edit the xml file to the correct path, repacked the apk, signed it, pushed it to the phone with adb to /system/app. The apk was then available to add as a desktop shortcut again, and it opens the movie as expected.
The file won't install like a regular apk (at least it wouldn't for me), it must be pushed to /system/app to work - use this command:
adb push <your path>/Avatar.apk /system/app
You could also probably download the apk and copy it over to /system/app with Root Explorer or any other file manager that lets you write to /system/app.
I have only tested this with Team Whiskey's Onyx build and by pushing via adb. I can't test any other ROM since I don't own a Vibrant.
I know a lot of people consider the Avatar.apk to be bloatware and ask how to remove it, but I see a lot of people asking for it back because it's convenient and a great show-off feature on the phone for non-Galaxy S owners.
Additional disclaimers: I did quite a bit of searching here on XDA for an apk that took this approach and didn't find one. If it's already out there, I apologize for this post and can link to it. All I found was an apk that requires you to have a non-encrypted mp4 copy of the movie. I also found a lot of bad information about you could use the original 2.1 version if you just de-odexed it and other stuff like that. Again, this will ONLY work on a 2.2 Froyo ROM because of the change in mounting path of the external sdcard.
credit/thanks to Brut.all for his apktool and to jessetbenton for his Mac-friendly android auto signing applet.
Edit: I only modded the English language part of the apk, it may not work properly if you're using a different language.
Here's the apk, enjoy:
Wow, that first post is a lot of words for such a simple posted apk! LOL. I just wanted to make sure to cover all the bases for any criticisms I might be getting.
Thanks dude, I kept trying to install the old avatar.apk, and when I tried opening avatar, it kept giving me "file not found"
Oh, btw works on Eugene's Macnut R12
You could also just make a folder named "sd" on the sd card, and move the Movie folder there. Works just fine for me.
pablizzo said:
You could also just make a folder named "sd" on the sd card, and move the Movie folder there. Works just fine for me.
Click to expand...
Click to collapse
Yes, but then you lose that 1gb of space on your internal sdcard.
I'd have gone for a symlink approach instead, but the internal card is plain old FAT32 and doesn't support them.
Or just use the stock froyo Avatar.apk? Lol. Worked for me...
distortedloop said:
Yes, but then you lose that 1gb of space on your internal sdcard.
I'd have gone for a symlink approach instead, but the internal card is plain old FAT32 and doesn't support them.
Click to expand...
Click to collapse
1 out of ~13gb is fine with me
rk0 said:
Or just use the stock froyo Avatar.apk? Lol. Worked for me...
Click to expand...
Click to collapse
Ah, that's good. Where'd you get it? I thought there wasn't a Vibrant specific Froyo yet - all I see on samfirmware.com are 2.1 builds. Like I said, I'm not a Vibrant owner, so don't really keep up with its developments.
Thanks for posting that.
pablizzo said:
1 out of ~13gb is fine with me
Click to expand...
Click to collapse
Yeah, to each his own.
My internal 16gb on the i9000 is almost full (nandroid backups, media, etc), and I have an external 16gb that's more than half full. I prefer to keep large media files on the external, obviously YMMV.
Glad you had a solution that works for you.
Nice thanks
Been looking all over this...thanks
Sent from my XDA app cuz I'm stalking your mom....
distortedloop said:
Ah, that's good. Where'd you get it? I thought there wasn't a Vibrant specific Froyo yet - all I see on samfirmware.com are 2.1 builds. Like I said, I'm not a Vibrant owner, so don't really keep up with its developments.
Thanks for posting that.
Click to expand...
Click to collapse
Deodexed JK2 Rom.
rk0 said:
Deodexed JK2 Rom.
Click to expand...
Click to collapse
Thanks for the response.
I wish someone had answered any one of the dozens of posts I read where people were complaining or asking about this with that info. Would have saved me the trouble here.
Actually, it worked out well for me anyways. I have a couple of apps with the same problem where I really want to force them to use the external card instead of the internal. Now I've learned an approach I can use to "fix" or mod those apps. I wish app developers would let you specify a preferred working directory - hard coded paths aren't usually a good idea in my opinion.
At any rate, based on the number of views of the thread, and over 140 downloads between my version and yours, seems like a lot of people didn't know about this, and we've given them a working solution. That's a good thing in my opinion.
can u make this work from terminal?
Please help me to get Avatar working !
Iam on Darky's 10.2 ROM(GB 2.3.4), bullet kernel & KB5 modem.
and the movie is at the same folder structure since, my phone came stock.
I tried:
1.) I cleared drm content and drm protected content & restarted my phone two times- then downloaded the app from http://forum.xda-developers.com/showthread.php?t=774078 but it won't install.
2.) I used the Android customisation suite from http://forum.xda-developers.com/showthread.php?t=894794 and created a zip with just the avatar.apk , cleaned dalvik cache, and the installed the zip from CWM, still the application just clicked, but no response/error message whatsoever.
3.) I downloaded a terminal emulator & tried to push the apk from this thread and I get adb:not found.
Please guide me, what needs to be done, as I haven't seen the movie [email protected]!
Great work I know this has been a huge issue for many many people ...I no longer have avatar on my phone but I sure missed the launcher at one time back when I first flashed my phone
Shortbus-Driver said:
Great work I know this has been a huge issue for many many people ...I no longer have avatar on my phone but I sure missed the launcher at one time back when I first flashed my phone
Click to expand...
Click to collapse
Buddy, I haven't been able to get it working, thru any of these methods!
I guess, I might have been doing something wrong in ADB Push. But I even tried with a Root File Explorer and replacing the Default Application that i had flashed using zip generated by Android Customization Tool(ACS) , with one provided in the two links(one of them, gives application not installed,probably the bigger in size one, and so installed the other one, thereby replacing the default that I talked above). but for no good.
Avatar, still doesn't work. Please help, guys!!
Quick question for the other developers for this device: Has anyone had issues with any of the stock apps when extracted to /data/app during the initial flash, instead of /system/app?
Curious to see what (out of the safely removable apps) require being in /system/app on this device. I would test this out myself, but I'm still cranking out AROMA code and do not have a proper working/bootable system, at the moment.
TIA
It all depends on ur updater scripts and also what u coded it to extract if ur code is bad u will have issues of course
Hit the thanks button if i helped
R0M CHEF said:
It all depends on ur updater scripts and also what u coded it to extract if ur code is bad u will have issues of course
Hit the thanks button if i helped
Click to expand...
Click to collapse
Yeah, I'm pretty adept with updater-script commands and how to extract files/dirs to different places within the filesystem of a ROM. What I meant was: has anyone had any issues with any of the stock apps running from /data/app? Or if it has even been attempted, yet. I know that there where a couple on the OG Evo that refused to run anywhere except /system/app. I remember Talk.apk being such an app, as it would not even show up in the App Drawer if it was in /data/app. Some others would FC constantly (like HTC_IME.apk).
If u have any kore questions just pm me with any others i can work with ya
Hit the thanks button if i helped
Hi all,
I am having issues with copy and paste on my stock ROM. According to Clipper, nothing goes into the clipboard when I cut/copy text. I've tried this in S Memo, Gmail, Chrome, Messaging and Whatsapp, so it should be a system issue. Is anyone else having similar problems? Mine is running PDA: I9305ZHALI8. Any help would be much appreciated, thanks in advance!
Not mine. I've tried copying text from webpage to search bar, and even copied some text from Gmail to Whatsapp.
But...does I9305ZHALI8 exist? Mine is ZHALI7.
Where's your S III LTE brought from? Mine is HK.
Edit: Seen the upgrade. I decide not to upgrade first.
Fix
I hade the same problem, but i found a salution.
First open upp any root explorer app.
data and look for the folder named clipboard.
delite that folder and boot your phone in to recovery mode.
then you fix permissions.
hoped i helped
ansonscleung: I just upgraded today hoping that the update would fix this copy paste issue, but unfortunately it does not. I was on I9305ZHALI7 for almost two weeks.
Curwer: Thanks for your fix! I was hoping I wouldn't have to root but if I may have to do so if it really gets on my nerves...
sry I dont know any other way to fix this, maybe factory reset will but i´m not 100% on that :/
Curwer said:
I hade the same problem, but i found a salution.
First open upp any root explorer app.
data and look for the folder named clipboard.
delite that folder and boot your phone in to recovery mode.
then you fix permissions.
hoped i helped
Click to expand...
Click to collapse
It definitely worked, I love you
vyper91 said:
It definitely worked, I love you
Click to expand...
Click to collapse
OP. This is the dev section. Please put your questions in to the appropriate forum Q & A next time. it helps make the moderators jobs less tiresome and makes teh dev section less cluttered
Ok you I9305 guys really have to stop posting non dev stuff in the dev forum...
Thread moved to general
Somewhere along the line either my brother or I made a mistake, and when going to storage/sdcard0 there is a folder external_sd (in italics in most file explorers) which links directly to storage/external_SD. The problem is, while I've cleaned out storage/sdcard0 by moving as many apps as possible with Link2SD, having that directory there makes the phone think sdcard0 is full. Any help would be greatly appreciated. Thanks!
No one? I'm sure there's some simple busybox command in console mode that will unbind the directory. I only have 250MB on sdcard0 (the internal MMC storage partition) but I can't even update my apps because when I try I get "insufficient storage available" & it's all because the friggin external_sd is linked in that folder. Right now using a diskinfo app, it says sdcard0 is 128% full because the size of the external_sd linked folder. Any help would be GREATLY appreciated!!! The limited storage available is the main reason I spent the time rooting, to be able to use link2sd to move my apps. I hope someone can help soon.
Don't know of this will work butt I was getting a full sd0 card s while back then I moved all of my backup files to external. All pictures, music, etc as well. Good luck !
Sent from my LG-P769(20F) using the xda-developers app. If I helped you please hit the "thanks" button.
Are you running a swap script?
Sent from my LG-P769 using xda app-developers app
kuma82 said:
Are you running a swap script?
Click to expand...
Click to collapse
Here's the thing, after I rooted the thing, my brother-in-law and I swapped phones for a week (his GS3 for my L9) because I wanted to try out his phone. And he said he tried some tweaks, but said he put everything back before we swapped back. He told me in an email the other day when I told him about this issue that he tried How to exchange memories but said it didn't work for him. So when you ask if I'm running a swap script, could that be what your talking about.
I'll never swap a rooted phone with a friend again! Especially when I can't figure out where he/she screwed it up. But I was thinking about getting a Galaxy S3 or S4, so I wanted to check out his phone. Thanks so much for the reply though.
...oh, and Nathan, all of my files are on the external. And because the external_sd has a folder inside sdcard0, that's why sdcard0 is reading 122% full, even though there's only 200MB of files actually on sdcard0, everything else that the phone reads is from the linked folder.
wintermute010 said:
So when you ask if I'm running a swap script, could that be what your talking about.
Click to expand...
Click to collapse
There ale few ways to swap storage/external_SD, check /system/etc/init.d/ folder for script, depending on android version script will have different name, 97ext2sd was working on ICS, for JB you have to dig the forum. Ussually deleting the script reverts changes, when you find the proper script there should be information how to switch back.
Reward offer...
No init.d folder, I can use an app called "init.d toggle" to make init.d folder (and place system/bin/sysinit file - modify system/etc/install-recovery.sh), but there wasn't a script there creating the directory bind.
At this point I haven't been able to update or install any apps/games in a couple of weeks because I don't want to delete the info I have on external_SD. So, I'm willing to transfer $10 by PayPal to anyone who will help me fix this problem. I'm sure it's something simple, I just need someone with more knowledge of linux and busybox, etc.
Please...is anyone out there willing to help out with a few moments of your time if there's 10 bucks in it?? :fingers-crossed: :laugh: :highfive:
I would really appreciate it...Thanks so much and take care all.
Sd0 is your internal sd card. Look you might as well just flash a ROM
Sent from my LG-P769(20F) using the xda-developers app. If I helped you please hit the "thanks" button.
Hi, XDA Dev. Why when I Install some apk, says Application Not Installed?
Give me a how to
Bcoz ur phone is not compitanle with that app.... Wrong section... Reported...
Sent from my A210 using XDA Premium HD app
Sometimes we can use them by copying apk to data folder. Just copy the apk file to "/data/app folder and sey the permission. And reboot.
Sent from my GT-I9300 using Tapatalk
Hi very_lie, need specifics, what method are you using- ADB? Are you rooted? What app- is it compatible with your device, app store(play/aptoide) will tell you yea or nay. Assuming you are rooted, use a good file manager, go into settings of the file manager, give it root permissions, and change mount system folders to writable, they will be read only originally. Find out where the app needs to go. For example, earlier today, I replaced talkback app because the version that came with custom ROM force closed. Google came out with an update recently that works for me. In file explorer, went to /system/app to find out what its called- talkback.apk. Downloaded v. 3.5 from aptoide(be careful), renamed it talkback.apk. go to /system/app, deleted older talkback.apk, go to data/dalvic cache and delete system @ app @ talkback.apk @ classes.dex Took renamed apk, copied it(from sd), just long press on the file and options come up, select copy. Navigated to /system/app and paste it there. Reset permissions, again long press hit permissions, will probably at rw-rw-rw, change to rw-r--r-- read write, read, read. Reboot. Upon reboot, may say android is upgrading-all is good-dalvic cache is building. Now with certain apps you will want to delete its data- in /data/data. For this app didn't need to. Also some apps can't be put in /system/app. On my phone HTC Evo 3d, ones like facebook, Twitter, translate and other google app can. Ones like Skype n dropbox cannot- they forced closed and can cause others to misbehave. So open up your app n see if it works. Go back into file manager, /data/data and make sure your app's permissions are rwxr-xr-x. Hope this helps, follow this same format when putting"forcing" app on data partition- /data/app
Sent from above using Xparent Blue Tapatalk 2
I revived the topic after so much time to thank the contribution that helped me to reinstall a service that I uninstalled by mistake in my Note8.
Thank you very much!
Regards
It's easy done wit "adb install <app.package.name>"
Do it without a PC...
Regards
gatul said:
Do it without a PC...
Regards
Click to expand...
Click to collapse
I've got a old version of APK editor pro , that I can use . Version 1.00 to bypass any install errors .. don't ask me how to get it though. Regards :angel:
Of course I could also have flash stock firmware again but I needed a simple solution to use the media I had available at that moment, only two Note 8 (mine and my wife's to extract the apk) and little 3g signal (when I had) to find a solution.
I appreciate the recommendations after having solved the problem but the object of my post was to thank for the help, the rest are anecdotes.
Regards
fil3s said:
I've got a old version of APK editor pro , that I can use . Version 1.00 to bypass any install errors .. don't ask me how to get it though. Regards
Click to expand...
Click to collapse
How to get it?