AOSP and proprietary binaries - Nexus 7 Q&A, Help & Troubleshooting

Hello all,
I installed a stock AOSP rom that does not include proprietary binaries from what I can tell. I found the binaries, but I don't believe they're flashable via CWM. Does anyone know the best way I could go about including these? I have been meaning to follow the steps to checkout/compile aosp myself on the aosp site (which would include extracting the proprietary binaries, but do not have time today. Is there a way to convert them into a flashable .zip file or install via other avenue in a relatively short amount of time? If not, I'll just have to build myself when I get time.
Thanks so much!

thefunnyman said:
Hello all,
I installed a stock AOSP rom that does not include proprietary binaries from what I can tell. I found the binaries, but I don't believe they're flashable via CWM. Does anyone know the best way I could go about including these? I have been meaning to follow the steps to checkout/compile aosp myself on the aosp site (which would include extracting the proprietary binaries, but do not have time today. Is there a way to convert them into a flashable .zip file or install via other avenue in a relatively short amount of time? If not, I'll just have to build myself when I get time.
Thanks so much!
Click to expand...
Click to collapse
The easiest way will be to pull the compiled drivers from the factory images. You can use a program like beyond compare to compare the extracted factory image with the rom you are using.

mwalt2 said:
The easiest way will be to pull the compiled drivers from the factory images. You can use a program like beyond compare to compare the extracted factory image with the rom you are using.
Click to expand...
Click to collapse
Thanks so much for that. That tool doesn't appear to be able to extract data from the factory image (please correct me if I'm wrong). I tried to use yaffey to unpack the factory image and snake the binaries from there, but it's failing. What I would really like to do is contact the dev and ask them directly, but since I only have 6 (now 7) posts, i can't post in the relevant thread on the dev forum, nor PM the guy. I installed the "Pure AOSP" ROM.
Any thoughts from anyone? The only reason I'm asking any of this is because the Google Play Movies app will not stream at all and I'm assuming it's because the AOSP rom is missing the proprietary binaries, specifically the DRM module.
Thanks!

Related

[SYSTEM_DUMP] True Stock up to JH7

The last time I looked, the only dump for the Captivate on xda was a JF6 version, posted a few weeks ago, and the OP had taken out a few AT&T apps prior to doing it, making it not a true stock. This morning I decided to rip out the content out of the factoryrfs.rfs files from each of the three firmwares we have. I am planning to poke around in these a bit and try my hand at some deodexing, but I have also uploaded them for anyone else to play with them, or to restore any files they might have inadvertently deleted:
Here are the links:
JF6
JH2
JH3
JH7
rajendra82 said:
The last time I looked, the only dump for the Captivate on xda was a JF6 version, posted a few weeks ago, and the OP had taken out a few AT&T apps prior to doing it, making it not a true stock. This morning I decided to rip out the content out of the factoryrfs.rfs files from each of the three firmwares we have. I am planning to poke around in these a bit and try my hand at some deodexing, but I have also uploaded them for anyone else to play with them, or to restore any files they might have inadvertantly deleted:
Here are the links:
JF6
JH2
JH3
Click to expand...
Click to collapse
What do JF and JH stand for?
freedonkey said:
What do JF and JH stand for?
Click to expand...
Click to collapse
They relate to the month in which they were built. F means june, h is august. Both of the jh roms are test roms and unfinished, but functional and snappier than the stock jf6 rom.
Sent from my Samsung SGH-i987
Thanks for this.
Aye... Thanx for the system dumps.
Anyone seen these for the i9000?
alphadog00 said:
Anyone seen these for the i9000?
Click to expand...
Click to collapse
Easy to get the files out yourself. Extract the factoryrfs.rfs file out of the firmware tar file, boot into linux and do:
sudo mount -o loop factoryrfs.rfs <any_directory_of_your_choice>
Then copy the files from the mounted location to another, and you have the raw system dump.
Pardon my ignorance but what do these dumps do/provide? How are they different from the firmware from Samsung Firmware?
glio1337 said:
Pardon my ignorance but what do these dumps do/provide? How are they different from the firmware from Samsung Firmware?
Click to expand...
Click to collapse
The firmware from Samsung Firmware contains the applications and default configuration settings packed into a factoryrfs.rfs (which itself is then inside a .tar file). That format is suitable for Odin to flash onto the phone, but you can't access the individual files inside the .rfs. What I did was to unpack the .rfs file, so that the individual files inside are available for whatever you want to do with them. These are not suitable for flashing on the phone as a whole, but someone could take something, modify it and push it to their phone, or make a custom ROM out of it. A simple example is the circle battery indicator mod, where someone modified the framework-res.apk to show percentage, and then made a custom ROM update.zip with it. Without access to the original file, this would not have been possible. Everyone has these files on the phone in one version or another (unless they manually edit or delete them). I just wanted all versions of the files ever released or leaked.
I dont know if this is the place to ask but how we can extract particular app to be able to install it as .apk
here is what i need
http://forum.xda-developers.com/showthread.php?t=776739
zagorka said:
I dont know if this is the place to ask but how we can extract particular app to be able to install it as .apk
here is what i need
http://forum.xda-developers.com/showthread.php?t=776739
Click to expand...
Click to collapse
All the apks are inside the zip files, stored the same way they would normally reside on your phone. I am pretty sure the stock Clock widget is a touchwiz widget, and will not work on your wife's Aria. Hell it won't even work on our own phone if you switch to a different launcher.
rajendra82 said:
All the apks are inside the zip files, stored the same way they would normally reside on your phone. I am pretty sure the stock Clock widget is a touchwiz widget, and will not work on your wife's Aria. Hell it won't even work on our own phone if you switch to a different launcher.
Click to expand...
Click to collapse
I am talking about ClockPackage not SamsungWidget_CalendarClock or SamsungWidget_StockClock. It's the one in applications not the widgets.
zagorka said:
I am talking about ClockPackage not SamsungWidget_CalendarClock or SamsungWidget_StockClock. It's the one in applications not the widgets.
Click to expand...
Click to collapse
Clockpackage is in the zip files. Here is the JH3 version for you. Not sure if it'll install. When I try to push to the Android 2.1 Emulator, I get:
adb install ClockPackage.apk
1404 KB/s (0 bytes in 2921292.002s)
pkg: /data/local/tmp/ClockPackage.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
Which tells me that the package is probably dependant on TouchWiz 3.0 or some other library already installed on the phone.
rajendra82 said:
Clockpackage is in the zip files. Here is the JH3 version for you. Not sure if it'll install. When I try to push to the Android 2.1 Emulator, I get:
adb install ClockPackage.apk
1404 KB/s (0 bytes in 2921292.002s)
pkg: /data/local/tmp/ClockPackage.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
Which tells me that the package is probably dependant on TouchWiz 3.0 or some other library already installed on the phone.
Click to expand...
Click to collapse
Yes, I was able to extract the .apk and .odex files but couldnt install them.
Probably you are right it is too much trouble. I'll look for some alternative.
Thank you
I think he zipaligned the system apk's too
designgears said:
I think he zipaligned the system apk's too
Click to expand...
Click to collapse
I am very new to android, so I am not sure of the implications of this. After further investigation, there is a newer version of the bat files (Auto_Deodexer_2.3), but that version does not do any zipaligning. I added my own bat file to do this after the deodexing, but is what the older version did (zip align every apk in the app directory) bad, and why? If that is the case, which of the apk files should I not zipalign?
On a similar note, the newer bat file asks me to give a bootclasspath. When I give it the values in the init.rc, it skipped deodexing few of the apks in the app directory. When I added twframework.jar to the bootclasspath ahead of framework.jar, it skipped fewer files. I am sure that the older version was buggy, and made mistakes. What should the proper bootclasspath be to not skip deodexing the following files, and to properly deodex the others:
BluetoothOPP.apk+odex
Camera.apk.odex
FactoryTest.apk+odex
MiniDIary.apk+odex
TouchwizCalendar.apk+odex
Figured out the bootclasspath to use. OP and the JH3 file updated. If you downloaded the deodexed JH3 version yesterday, please replace it with the newer version.
What exactly does deodexing and zipaligning do? I understand it makes it faster but how so?
Sent from my SAMSUNG-SGH-I897 using XDA App
frenchtoasted said:
What exactly does deodexing and zipaligning do? I understand it makes it faster but how so?
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
All this is highly theoretical knowlege on my part, so if anyone has better information, feel free to correct me:
Deodexing:
Some of the apks and jar files on the default stock ROM have their code split between apk/odex and jar/odex pairs instead of in a single file. This is done by the developers to supposedly save space, and memory usuage, and to speed up the booting process. Unforunately having separate odex files means that replacing any part of the whole system is much harder. Deodexing the ROM puts the code from the odex files back into the apk and jar files so that every application and jar is self contained and could be replaced with an equivalent.
Zipaligning:
Zipaligning is an optimization of apk files to align all uncompressed data within them on 4-byte boundaries to reduce the memory usage. Since deodexing rebuilt the apks with the code from the odex files, they would have become unaligned. I realigned them to make them optimized again.
This is not necessarily a performance tweak at first, but once you are able to replace the slower parts of the system as a result of it, you should start to get more benefits out of it.
would it be possible to get the allshare package from the deodexed rom? will it work with any other device?

[Q] htc_cime for legend with froyo 2.2

Hi,
I live in China and got an already rooted legend from a super friendly little shop in the neighbourhood here, but it came with a horrendous goapk.com rom which severely locked down my ability to install anything from the market - instead, it tried to force me into this relatively useless Chinese goMarket thing. So, waiting patiently, I finally installed the MoDaCo custom ROM last week and everything is running sweetly.
Only now I find I actually miss a couple of the customisations the Chinese ROM had on it. In particular, the htc_cime was very useful to me because it supported handwriting input - the Google Pinyin IME is less useful to Chinese noobs like me who can't read the sound of the characters and need to input the handwriting.
I have had a http://forum.xda-developers.com/showthread.php?p=7276627 rummage around these threads and found lots of htc_cime packages, none of which work on Legend under Froyo. Does anybody have a solution? The apk's that do install die immediately when I try to input text, and I don't know what to do with the zip files available on that site - I can extract them, but then it says "Application not installed" without any further help.
Cheers and thanks! Maybe the IME will turn up when 2.2 finally comes out for stock Legends, which will surely happen any minute now
So, a few hundred reads and no replies. Seems like a difficult issue, and obviously not many people are interested in using Chinese handwriting. Should I post this on the development thread? Can anyone at least give some advice on how to install these .zip distribution packages? I know how to install a .apk using the file manager, is some other app necessary to install the .zips?
strophy said:
So, a few hundred reads and no replies. Seems like a difficult issue, and obviously not many people are interested in using Chinese handwriting. Should I post this on the development thread? Can anyone at least give some advice on how to install these .zip distribution packages? I know how to install a .apk using the file manager, is some other app necessary to install the .zips?
Click to expand...
Click to collapse
I just downloaded the .zip file from your link and it had the .apk file inside it and another zip (?).
A zip file is a zip file, they are not android specific, have been around at least 20 years now, it is a compressed file, windows or whatever os you use should be able to open it no problems and then just extract/copy the apk inside to your phones sd card and install it, you also need to open the other zip file INSIDE the zip file (yay recursion) and extract/copy the folder to your sd card as well.
I didn't install it myself as I am still on éclair.
It may be that ZIP files are not Android specific, but to install one you should flash it with ROM Manager or from Clockworkmod Recovery. I don't know if extracting the zip and installing the .apk is working like that. The reason for doing this is mainly because some files cannot be written or replaced when phone is in normal use. From that link I saw it is a signed package (by the name) and it should be installed via ROM Manager or recovery
Hi again,
I tried unzipping the .apk file and installing it, but also no luck. I am fairly sure the .apk installer references the "zi" folder ("zi" means character in Chinese), as that folder seems to contain a lot of files describing the metrics and probably recognition of each character as you write it. Still no luck though.
Using the ROM manager to install packages seems a bit like overkill though - if the Google IME can be installed as an apk without rebooting, surely any IME can be installed like that?
I might ask htc about this when the official 2.2 FOTA comes out, if I claim I had it before and it wasn't in the update they might just send me an .apk that will sort this out once and for all. No big hopes on that one though.
Cheers,
Leon

[Q] Customising a custom ROM

OK, finally decided to pass on to a custom ROM, and the choice fell on sunaabh 1.1
Now the question is, I downloaded the ROM and I see it's a standard zip file. Is it possible to further customize it by removing/substituting/adding/updating files in the correct folders, and then flash it normally?
As an example, update the hosts file, removing the useless HTC apps, preinstalling titanium or any other app I like?
If it is possible, should I unzip the ROM, do my things, and zip it back, or does it require anything special?
Thanks in advance!
Veon11 said:
If it is possible, should I unzip the ROM, do my things, and zip it back, or does it require anything special?
Click to expand...
Click to collapse
Yes, it should be as simple as that. Most likely you do not need to re-sign the rom.zip since you're already using a custom recovery (assuming you have rooted your phone), but I signed mine anyway, so I didn't get to confirm it myself. Good luck and have fun!
Veon11 said:
OK, finally decided to pass on to a custom ROM, and the choice fell on sunaabh 1.1
Now the question is, I downloaded the ROM and I see it's a standard zip file. Is it possible to further customize it by removing/substituting/adding/updating files in the correct folders, and then flash it normally?
As an example, update the hosts file, removing the useless HTC apps, preinstalling titanium or any other app I like?
If it is possible, should I unzip the ROM, do my things, and zip it back, or does it require anything special?
Thanks in advance!
Click to expand...
Click to collapse
You can do exactly that. Open it up, mess around, making sure everything stays in the correct folder, zip it back up, and you're done. No need to sign if you're on Clockworkmod recovery.

Hulufied Flash for Kindle Fire?

Anyone know how to do it, or can do it?
Attached is the OEM flash APK, backed up with Titanium Backup for reference (v10.3.186.50).
I downloaded Flash 10.3.185.22 Hulufied APK, extracted the libflashplayer.so and put it in /data/data/com.adobe.flashplayer/lib , but that only locked up the device when attempting to load Flash on the browser.
Also note that if you update Flash, it breaks flash compatibility with the default browser, so maybe it's using proprietary flash installation?
I've been looking at Flash and Air as there seem to be much newer versions in the Google Market, however, you can't update them, and you also can't remove the old versions in the conventional manor (even as root), although there must some forced removal process via the CL.
It makes me think that somewhere the Fire is using both in it's interface/apps, and any attempt to update/change will screw things up.
If anyone has any ideas about removing/updating, I'm all ears. I'm trying to look at it myself, but I'm not a dev, just an above average user!
I think the problem might be with the APK's signature. I resigned the stock APK and installed it on my phone. It installed fine, but Dolphin HD wouldn't recognize that I had it installed.
Printerscape said:
Anyone know how to do it, or can do it?
Attached is the OEM flash APK, backed up with Titanium Backup for reference (v10.3.186.50).
I downloaded Flash 10.3.185.22 Hulufied APK, extracted the libflashplayer.so and put it in /data/data/com.adobe.flashplayer/lib , but that only locked up the device when attempting to load Flash on the browser.
Click to expand...
Click to collapse
Did you set the permissions properly when you over-road the current libflashplayer.so? If the system can't access the library, then it will obviously not work.
yareally said:
Did you set the permissions properly when you over-road the current libflashplayer.so? If the system can't access the library, then it will obviously not work.
Click to expand...
Click to collapse
Yes, and there wasn't a libflashplayer.so to overwrite. Stock ROM doesn't have one in there, which confirms sl0ttedpig's suspicions, that this isn't just a standard flash player.
Printerscape said:
Yes, and there wasn't a libflashplayer.so to overwrite. Stock ROM doesn't have one in there, which confirms sl0ttedpig's suspicions, that this isn't just a standard flash player.
Click to expand...
Click to collapse
I'm running Flash Player 11.1 from the Market. It runs fine and it has libflashplayer.so in it. When I try to modify libflashplayer.so in the apk, the browser won't recognize it anymore.
The stock ROM must have a custom version of the flash player, but it looks like the regular version works just fine.
If you're using opera mobile, you can specify where the flash plugin (so you can use an alternative one) is located by typing opera:config in the url bar. After you do that, it's under plugin path

[UTILITY] Clockwork Combiner - Combine flashable zips. {Version 1.5}

I often update my firmware. Like many on here, I am some what of a flash-aholic.
I created this tool to assist in returning the mods and themes back on to a newly flashed device.
It works by combining several zips into one zip that can be flashed with ease.
It does this by combining the scripts into one, and adding all the files into one zip for the script to unpack. Please be aware that the zips must be compatible with your device.
It's very simple to use. Please give it a try and let me know how it goes:
Warning: Use this program at your own risk. If something goes wrong then it is your responsibility. If you use this program, then you accept that anything that does go wrong is your own responsibility.
Creating zips:
Download and extract the program.
Run the program.
Hit the settings button and set up an output directory or leave it as the default (program location).
Select the zips you wish to combine.
Add a name for the combined file.
Select advanced settings to apply any settings to the generation of the script.
Wait for them to load (the combine button will become usable).
Click combine button to join the zips into one zip.
The file will be put into a folder named Final Outputs within the output directory you have specified.
Wait for any processes to finish (windows should provide progress windows).
Click the sign button if you wish to sign the zip.
Using zips:
Copy the zip to the android device.
Boot into recovery (requires custom recovery).
Perform a Nandroid backup of your device (If you do not perform this step then it is your responsibility if something goes wrong)
Flash the combined zip file.
Please Note: This is a beta version of the software and, as such, may contain glitches and problems. Please advise me if anything goes wrong, and if it does, what happened and what files you were using so I can make it better.
Also, please be aware that this program requires .net 4.0 and the signing component requires the Java Runtime. Links to both can be found on the website.
Download Latest Version Here
Changelog.
Currently working on:
Unnecessary files (multiple boot.img for instance)
Unnecessary code in the script.
Further Testing
You would have to make one big script. Also, any double code would have to be removed, mainly stuff like package_extract_dir type stuff, no sense in it extracting the same files twice.
Sent from my LG-P999 using xda premium
Волк said:
You would have to make one big script. Also, any double code would have to be removed, mainly stuff like package_extract_dir type stuff, no sense in it extracting the same files twice.
Click to expand...
Click to collapse
What about the updater-binary?
The result of this thinking pattern.
Clockwork Combiner
this seems to be amazing
newest version does not work. when i try to add the first zip file, nothing gets listed but the green bar is full and combine is able to be clicked. go to add second zip, it gets listed in the box, combine no longer available, go to add third zip, asks if i want to clear the selection out, click no, combine freezes up and doesn't respond. asus zenbook running windows 8.
t1.8matt said:
newest version does not work. when i try to add the first zip file, nothing gets listed but the green bar is full and combine is able to be clicked. go to add second zip, it gets listed in the box, combine no longer available, go to add third zip, asks if i want to clear the selection out, click no, combine freezes up and doesn't respond. asus zenbook running windows 8.
Click to expand...
Click to collapse
Have you updated your Java and .NET ? I've only used it with Windows 7, so it could be some kind of compability issue... Try running it in compability-mode for W7, and see if it works
i'm pretty sure that stuff is upgraded. when i go to add the first file, nothing appears in the box, but the combine button is highlighted and it says "checking each file for structure validity" and doesn't do anything else. this is while running in compatibility mode for windows 7
t1.8matt said:
i'm pretty sure that stuff is upgraded. when i go to add the first file, nothing appears in the box, but the combine button is highlighted and it says "checking each file for structure validity" and doesn't do anything else. this is while running in compatibility mode for windows 7
Click to expand...
Click to collapse
What files are you using? Got links?
They're a whole bunch of different files, roms and gapps and mods I was trying to combine for my galaxy nexus. I'll get u some links in a few.
---------- Post added at 07:25 PM ---------- Previous post was at 07:21 PM ----------
Here's three that I tried to combine
http://db.tt/3hhRnlZ1
http://db.tt/QwtvPVJH
http://db.tt/QwtvPVJH
thank you most have for me nice idea
works for me no problems combined some zips with out any fuss
t1.8matt said:
They're a whole bunch of different files, roms and gapps and mods I was trying to combine for my galaxy nexus. I'll get u some links in a few.
---------- Post added at 07:25 PM ---------- Previous post was at 07:21 PM ----------
Here's three that I tried to combine
http://db.tt/3hhRnlZ1
http://db.tt/QwtvPVJH
http://db.tt/QwtvPVJH
Click to expand...
Click to collapse
The problem seems to be with the very large size of the zips. I'm trying to find aw way to read and combine the zips more efficiently. This will be fixed in the next version, but for now, you will jsut have to give it time to work. Run it and let it go.
thanks for checking it out, i'll just hold out until you get everything settled. awesome idea though, i hope it works out for you.
Will this work for combing a zip which contains Aroma Installer?
Kage01 said:
Will this work for combing a zip which contains Aroma Installer?
Click to expand...
Click to collapse
I haven't looked into AROMA files as of yet. But I will look into it within the next couple of releases.
Looking forward for next releases
Sent from my LG-E739 using Tapatalk 2
t1.8matt said:
thanks for checking it out, i'll just hold out until you get everything settled. awesome idea though, i hope it works out for you.
Click to expand...
Click to collapse
So it seems that the zip engine i am using cannot handle zip's that have multiple files of the same name and hence crashes on that file. Thinking of moving to another zip engine or finding a way around it.
@OP... I have yet to try this, but am getting ready to, after I am done typing this up... Thank you for this. Even if it doesn't work for me, this is a path I have been seeking for some time now.
I am going to try this in a 2 phase test... 1st, I am going to try it with just the mods I have been adding to the ROM I use... If this is successful, 2nd, I intend to try and add all those mods to my ROM zip itself...
Amazing concept, and I look forward to trying it out. Again...Thank you for your work.
EDIT: AWESOME!!! I took all my flashable mods and compiled them into my rom. This app rocks!
i have few flashable zips that i always flash after main rom zip ... can i include these to main zip

Categories

Resources