[MOD] Tuned auto-rotation for JS3/5 - Galaxy S I9000 Android Development

Is your device changing its orientation to landscape way too quick?
If the answer is yes, read up, here is the solution.
I hate Froyo autorotation on Galaxy S.
It turns into landscape way too quick, even when I'm picking the device from the table.
Since there was no reaction from Samsung, I decided to fix this for them.
This involves decompiling framework.jar file, editing file:
Code:
android\view\WindowOrientationListener$SensorEventListenerImpl.smali
I attached a modified file. I dont exactly know what changes there are, I modified some values at random
For devs:
To be more serious, I decompiled SGS JS3 framework.jar and replaced WindowOrientationListener$SensorEventListenerImpl.smali from DesireHD's eViL-NXSense-HD-v.1.1_BETA (random pick). Having the right implementation of sensor listener i started to tweak it, changing some values.
If you want to tweak it further to your needs, focus on MAX_TRANSITION_TILT, MAX_TILT, PARTIAL_TILT constants.
(forgot to add) For a full reference: http://hi-android.info/src/android/view/WindowOrientationListener.java.html
Three files are attached to this post:
[rotation-fix]modified_JSX-CWM.zip - clockworkmod packages with fixed framework.jar, this is what an user needs
First boot after the update may take up to 5 minutes!
I do seem to have random errors due to firmware fragmentation. If you are a regular user and want this fix, you should rather ask your ROM developer for implementing it in his ROM, because at current state I cant guarantee if its compatible with ANY custom configuration.
auto_rotation_devs.7z original and recompiled framework.jar files form JS3/5 as well as original and patched smali.
//edit: lol accidently voted for front page Just a blind click sorry
On a second thought this might be interesting for more than SGS people, so maybe accident was not so bad.

let me try

not working for me

You mean? Bootloop/no changes?
I need some feedback;
Is this working for you?
Do you like it?
It might be slipstreamed into all current ROMS, you just need to encourage ROM developers to do so

xan said:
You mean? Bootloop/no changes?
I need some feedback;
Is this working for you?
Do you like it?
It might be slipstreamed into all current ROMS, you just need to encourage ROM developers to do so
Click to expand...
Click to collapse
it didnt work at all nothing has change

Sec gotta check update.zip
Was ina hurry yesterday.
Ok the update.zip was borked, replacing.

Hi xan. Good stuff, definitely an improvement over the factory settings.
Thanks for this. Flashing via CWM went flawless.

thanks, I appreciate your feedback

Same fix but on JS5
Hello.
Is there any chance to do same but on the JS5 framework?.
Thanks.

Sure, will upload patched JS5 framework in few hours.

xan said:
Sure, will upload patched JS5 framework in few hours.
Click to expand...
Click to collapse
Thanks, that will be great, because i hate too the auto rotation on froyo and this is what i was looking for.

great work
it a little more quickly,
Unfortunately, not as fancy-rotation
keep it up

It doesn't function at my SGS
Now my rotation doesn't work at all...

Try harder ;p
JS5 version up.

How about a revert back zip if something goes wrong?
I am on JS3, so I should use auto_rotation-FIX-CWM.zip or auto_rotation-FIX-JS5-CWM.zip
Thanks, Froyo's autorotation is pain in the ass.
Look forward to your answer.
Thanks.

Both should work, according to my tests. auto_rotation-FIX-CWM.zip or auto_rotation-FIX-JS5-CWM.zip
If you are familiar with adb, just adb pull /system/framework/framework.jar
I doubt it wont work.. Anyway will look into it.

Is it working on JPY too ?

99% its not.

does it work ok for js5....??? can i restore the previous WITH the original...???

ok, I tried your fix, works fine, but one thing, and that is that mine volulme controls are absolutely messed up :-D
for example, when I click on a side to increase/decrease ringer volume, it says Playing via Bluetooth instead of Ringer Volume, or instead of Media Volume it says Silent Ringtone, etc...
It's quite messed up, I saved my framework.jar before flashing so I am back on my original.
I have JS3 ROM Darky's 9.2.
Any idea what could be the problem?

Related

Scoot CyanogenMod 7.1.0 RLS3 (Gingerbread 2.3.5) [07/08/11]

Scoot CyanogenMod 7.1.0 RLS3
This is a build I have compiled from the official CyanogenMod source files and adapted for Kaiser/Vogue. Feel free to give it a go at your own risk!
Well, it still isn't quite as snappy as Froyo and the camera still doesn't work properly but it's probably about as fast as Gingerbread will get on our devices. I'm bound to have messed a few things up but i'll continue to work on it when I get time
All the usual things are working as far as i know, GPS works fine for me but the camera is as always not fully functional.
All of this is thanks to the guys working on the CyanogenMod roms and of course, none of this would work without all the hard work on the kernel so big thanks to dzo, vilord, l1q1d etc...
-------------------------------------------------------------------------------------
RLS 1:
Initial Release
Includes most of the Google Apps including Maps, Gmail etc..
Latest Market is included
RLS2:
Built from the latest 7.0.2 source
Optimised EGL for our devices
Updated Market
LDPI and PNG optimisations to save space & increase speed
ADW Launcher updated
Loads of tweaks and status bar changes
Updated RIL lib
Loads of fixes and optimisations
**I recommend leaving the phone for 5 minutes after installing to sort itself out and cache apps etc...**
RLS3:
I can't really be bothered to list all of the changes, there are quite a few but I just compile the thing, the changes are in the CyanogenMod repository. I have included the updated RIL and all of the Google Apps are up to date. The camera is still ****e but that's a driver issue. This release hasn't been heavily tested as I don't use my Kaiser as a main phone anymore So i'm sure you will find issues in which case we can sort them out as and when. Enjoy!
LINKS:
RLS1:
English: http://www.mediafire.com/?6708ud8kc9l9ex5
All Languages: http://www.mediafire.com/?amhd996w81xfldp
RLS2:
English: http://www.mediafire.com/?yhsc6jyl47wgpkv
All Languages: http://www.mediafire.com/?v3hhbh5tufoedfp
RLS3:
English: http://www.mediafire.com/?76vn9k0cx3debzd
All Languages: Coming soon!
Google Apps
28.04.11 : http://www.mediafire.com/?4yc9ubn2m513k3q
07.08.11 : http://www.mediafire.com/?c86rpae5kopdicc
I think that's it for now, have fun
OOOOOyyyyéééééé OOOOoyyyyyéééé !!!!
download'n !!!
thinx scooter & all android developers for our old kaiser
'll try your build this night & report any bugs...
keep working i realy apreciate your work sccooouut
xcuse my stupide bad english
cordialement esolks.
scooter1556 said:
Scoot CyanogenMod 7 alpha RLS1
This is a build i have compiled from the official CyanogenMod source files and adapted for Kaiser/Vogue. Feel free to give it a go at your own risk!
This is an alpha and still needs a fair bit of work to get it running to it's full potential but you can get an idea of what it will be like. Feel free to report any bugs that you find, by this i mean application crashes and things that don't work or look correct. I already know the system can hang and it isn't as fast a froyo
I have had to make a LOT of modifications for this to work, some of which may affect battery life but i haven't tested it for long enough to know so let me know how it goes. I'm bound to have messed a few things up but i'll continue to work on it when i get time
All the usual things are working as far as i know, i have not tested GPS fully and the camera is as always not fully functional.
All of this is thanks to the guys working on the CyanogenMod roms and of course, none of this would work without all the hard work on the kernel so big thanks to dzo, l1q1d etc...
-------------------------------------------------------------------------------------
RLS 1:
Initial Release
Includes most of the Google Apps including Maps, Gmail etc..
Latest Market is included
LINKS:
RLS1 :
English : http://www.mediafire.com/?6708ud8kc9l9ex5
All Languages : Coming soon hopefully.....
I will try and get some screen shots posted for those that like pretty pictures
I think that's it for now, have fun
Click to expand...
Click to collapse
This might be a stupid question but I need to ask anyway...is CM 7 based on gingerbread?
-Arturo- said:
This might be a stupid question but I need to ask anyway...is CM 7 based on gingerbread?
Click to expand...
Click to collapse
It is indeed
scooter1556 said:
It is indeed
Click to expand...
Click to collapse
Excellent, thanks Scooter.
downloading now keep up the good work man
woot...gonna give it shot ... hoping for not getting same data/wifi reboots
woow, million thanks to you scooter
finally a gingerbread based build for our kaiser
btw, which kernel do you suggest for this build?
thanks in advance
Hmm for some reason I cannot boot to android the phone has been stuck in boot loop for the last 15 minutes. I have an app.img file with about 80 applications so this might be a problem I'll try to boot it without the app.img. Both data and system on sd card imgs + latest '25 kernel.
Edit.
Ok I have removed the apps.img and it still doesn't boot.
I have noticed that there have only been modules for '32 kernel included in the build. Should it work with '25 kernel with proper modules added?
I'll wait for All Languages version to test it with the new kernel.
1. this was my first attempt to instal android on nand.. noob here ;P
downloaded kernel VOGUIMG-320-FROYO-01-16-11.NBH, then changed with editor to kaiser and painel 2. Install occured ok.... but phone isn't working.. "no service".
2. I do i see my batery status? can only see that bar on the top but don't no accurate bat status in %.
3. after this install can i install another another version overwrithing this one? for example now the phone isn't working so i want to change to another version of android can i simply put another "androidinstal.tar" in andboot folder and install?
Thanks and sorry for this noob questions...
chinomoreno said:
1. this was my first attempt to instal android on nand.. noob here ;P
downloaded kernel VOGUIMG-320-FROYO-01-16-11.NBH, then changed with editor to kaiser and painel 2. Install occured ok.... but phone isn't working.. "no service".
2. I do i see my batery status? can only see that bar on the top but don't no accurate bat status in %.
3. after this install can i install another another version overwrithing this one? for example now the phone isn't working so i want to change to another version of android can i simply put another "androidinstal.tar" in andboot folder and install?
Thanks and sorry for this noob questions...
Click to expand...
Click to collapse
YES! you can
To view Battery percentage, you need to set that in Cyanogenmod Settings (correct me if I'm wrong here since its been ages when I used CM build)
Yes, you can do that it's actually very simple. Just remember to edit your .nbh before every install if you are changing versions (donut, froyo, eclair).
Cheers. Welcome to Android world
-Arturo- said:
Hmm for some reason I cannot boot to android the phone has been stuck in boot loop for the last 15 minutes. I have an app.img file with about 80 applications so this might be a problem I'll try to boot it without the app.img. Both data and system on sd card imgs + latest '25 kernel.
Edit.
Ok I have removed the apps.img and it still doesn't boot.
Click to expand...
Click to collapse
Try a .32 kernel, also i have only tested it on NAND so it may be an issue with Haret. To be honest we're lucky it works with the .32 kernel so i expect problems with the .25 kernel. Sorry
scooter1556 said:
Try a .32 kernel, also i have only tested it on NAND so it may be an issue with Haret. To be honest we're lucky it works with the .32 kernel so i expect problems with the .25 kernel. Sorry
Click to expand...
Click to collapse
Yes I have noticed that there have only been '32 modules included in the build.
I think I'm going to skip the '32 kernel as It was acting up on me in the past. I'll try nand install in the evening hopefully it will work. Thanks Scooter.
-Rif- said:
woow, million thanks to you scooter
finally a gingerbread based build for our kaiser
btw, which kernel do you suggest for this build?
thanks in advance
Click to expand...
Click to collapse
I recommend using the latest .32 kernel you can find, either one that L1q1d has compiled or one from Clemsyn's thread You can find the latest kernel here: http://androidhtc.git.sourceforge.n...7c0bf5edc4f5c6d64ce4df29254e8332ce26b;hb=HEAD
Well have installed 6.1 and phone now works... =)
Will wait until a new version of this one to come out and then try again...
- Already found how to show percentage in bar status thanks dark_prince.
- Thanks for advice slimas, to edit .nbh do i need to reinstall kernel? and can i reinstall without mess up with previous android install or do i need to install again android?
- Some bugs that occurred to me .. sometimes bar on the bottom disappear can't access apps... ; some freezing sometimes, do you guys recommend to overlock? if so how to do it? Weather widget can't find info too lol not a serious prob...
I'm reading forum and these are some questions i couldn't find answer, for now i think that's all.. i'm enjoying android on kaiser think this is the time i will change forever...
thanks for fast feedback any good tips are welcome ;P
chinomoreno said:
- Some bugs that occurred to me .. sometimes bar on the bottom disappear can't access apps... ; some freezing sometimes, do you guys recommend to overlock? if so how to do it? Weather widget can't find info too lol not a serious prob...
Click to expand...
Click to collapse
The bar at the bottom of the scrren can disappear if you swipe down on the screen, it is a bit random but is a flaw in ADW launcher. To get it back you need to press the 'menu' button and go to 'settings' then go to 'ADW Settings, UI Settings and untick 'Dockbar'. Re-select 'Dockbar' and exit settings and it should be back I expect some freezing, it is still under heavy development and our devices are quite limited hardware wise so there won't be any miracles yet I overclock my Kaiser to 500Hz using ATools, a lot of people don't recommend it but it is what i have always done and i have never had any problems, it speeds the phone up a fair amount. Just tick the option when editing your NBH. The phone obviously needs to be connected to data or wifi for weather widget to get location information, i just tried it with wifi and it worked ok, there may be an issue with data though, i'll look into it Thanks for testing.
CAMERA
camera is not working properly but it looks awesome i will try to apply the update from previous cm to see if this will work
camera
after applying the update android can`t start so i am going reinstall it

[Q] Build Question

When building an androidinstall.tar from scratch, do I need to include the META-INF file as well?
I will try without it as this build was for a different phone that I extracted and decompressed. I have already separated the apps and placed them in their own /data folder and removed them from the /system folder.
It is an unodexed build so no .odex files were included.
I was looking through other builds I have on hand and noticed no META-INF file, thats the reason for asking.
First error:
[ 127.061609] init: Unable to open persistent property directory /data/property errno: 2
Then a whole mess of kernel errors, possibly due to wrong system...
FIXED! Awaiting boot animation to finish.
Honeycomb boot animation is SO cool looking!
EDIT: NOT fixed, refuses to finish booting. Will work on it more to see if I can get it to boot up.
So far I've gotten to the point where the D-pad and keyboard light but boot animation continues.
Build is Android 3.0 Honeycomb with parts and drivers taken from "system_gingerbread_unodex" listed on sourceforge.
Someone tell me what I've missed here as it's about 80% finished booting and hangs after D-pad lights, animation continues until I pull the battery, about 10 minutes.
Getting an error "cannot execue /system/bin/leds.sh, no such file or directory", even though I made sure to copy it and went back and checked it.
Sorry if this looks like I'm using the forum as a sounding board, but I found an experimental build of Honeycomb for the MSM7201A and wanted to try it out.
Watch me cook the only Kaiser I have left...
All but giving up for now, will dig deeper. I know HC was NEVER meant to run on our Kaisers but it would be fun to see it happen.
Wow you are insane! (I mean that in a good way)
I have a Xoom tablet that runs honeycomb, but can't even imagine it running on our sweet Kaiser. Heck, I don't even like gingerbread: uses too much RAM.
Keep us posted, it sounds like a wonderful experiment.
I'm so close yet so far with it because I'm using more and more of Gingerbread in the build. I even ended up trying to change the build.prop file to accomidate some of the changes in dimensions and clock speeds...
I think I'm about 90% there, just have some issues with the bootanimation restarting, which I may change to the nexus for the smaller size. (HC boot animation is somewhere around 14mb compared to our partly 875kb nexus animation). That could be half the problem because the bootanim uses so much of the ram...
To be continued...
Ok This is a very interesting project
I am from the vogue forum but since my touch broke and the build process is identical I just sort of wander around trying to help with what I know.
So at one time I did a lot of porting and it appears according to your first post this is what you did. What phone did you take the rom from?
If its from the wildfire (I know there was a honeycomb movement in there for a while) I can definitely help because that is where I did most of my porting from
And the META-INF question... When I port I usually trash a bunch of folder straight away ... including META-INF
Good to know there are "floaters" around helping as needed.
BTW, it IS from the Wildfire port. Considering the MSM family is bascally the same, I'm trying to use that as a starting point.
The META-INF file contains certificates and what-not but isn't needed for our phones.
My biggest issue right now, as with any Gingerbread release, is finding drivers for our devices. Froyo drivers won't work because they lack the correct signature. Same as if someone tries to install the HTC flip clock on a plain android without the sense build, it just doesn't work.
I have this project and trying to port the kernel we use to the Raphael (Touch pro/Fuze), which is a major task in and of itself. I tried HaRet before with the Kaiser and I jus HATE it.
Biggest issue with the Fuze right now is to get it CID unlocked so I can try installing the kernel to NAND and go from there.
With that being said, I don't know what kind of progress I'll be making with HC in the near future, if any.
Ok, I went back and restarted the project from scratch. Someone else ported the bootanimtion and different aspects of HC to a Froyo port on the Xperia X1 forum.
I recompiled everything at first, moving the "app" folder inside a new folder named "data", since our NAND constraints limit the build size to under 102mb for /system.
Once again I am stuck at the boot animation. It will go full-speed for a minute then restart and run slow. The only parts taken from the X1 were the app folder and media/bootanimation.zip
I'll dig a little deeper, maybe ask around the X1 forum for help.
Would be nice to finally figure this out though.
Hi PoXFreak. It seems like you're a very good dev. Could i help you somehow or could you link me to somewhere where i could get all the tools for rom and kernel building. Im a C++ learner, i've written a few apps, but only big thing i've done in android is installed sdk and modified a rom to have apps i need after install. I'd rly like to improve our kaisers.
P.S. dou you put anynthing compilled by urself in android rom (without kernel)? And where are the drivers located? system/lib/modules/[kernelversion]/ or system/lib/modules/ ???
zxxxy said:
Hi PoXFreak. It seems like you're a very good dev. Could i help you somehow or could you link me to somewhere where i could get all the tools for rom and kernel building. Im a C++ learner, i've written a few apps, but only big thing i've done in android is installed sdk and modified a rom to have apps i need after install. I'd rly like to improve our kaisers.
P.S. dou you put anynthing compilled by urself in android rom (without kernel)? And where are the drivers located? system/lib/modules/[kernelversion]/ or system/lib/modules/ ???
Click to expand...
Click to collapse
The .so files go into /system/lib/modules/(kernelversion).
Sent from my Android on HTC Kaiser using XDA App
I have yet to make a complete working build from my work so no, I have nothing "new" to contribute to any android builds. All I'm doing is combining and rearranging/replacing/removing files already in builds.
To date, I have not had the time to work on this. I would like to be able to devote more time but I have too much on my plate already. Not to say I'm dropping the ball, just putting it on the rack for awhile.

[ROM][MIUI][21 Jan 12] Mini Mi 2.01.20

First off, I'm not a dev. I'm just a guy with 5 kids who plays with his phone to help keep his sanity. But with CarpeNoctem getting a new phone and Tun4f1sh only making an add-on, I needed my own rom.
Secondly, I'm making this for myself and just sharing. I'm open to fixing bugs, but not adding features. Sorry.
Finally, THANKS to:
g4rb4ge, for porting MIUI to the G2.
MIUIAndroid.com, for the base rom and translations.
CarpeNoctem, for getting me hooked on this rom.
Tun4f1sh, For Bulletproof and making me want to learn more.
Andy Thompson, for the Extended Settings mod and controls.
Tsubus, rmk40, and Juwe11, for optimization scripts.
Dsixda, for his awesome Android kitchen.
What is Mini Mi?
Nothing, or as close to nothing as I can make it.
I wanted to make the smallest rom possible, while still being able to use all of the MIUI features.
Changes:
Removed apk's, themes, media, and fonts I didn't use
Zipaligned
Added Extended Settings mod and MIUI settings app
Added Genie Widget (for lockscreen weather)
Added memory management, sdcard, zipalign, and ILWT fixes scripts
I left the stock CM kernel, if you don't like it flash one of your choice.
Suggested Add-ons:
Bulletproof MIUI Add-on from Tun4f1sh.
ILWT Kernel, ILWT OC daemon, and WiFi calling add-on from Tsubus.
Tiamat Kernel from Cayniarb.
SUperuser 3.0.7 from ChainsDD
Pershoot Kernel
HTC_IME or Jonasl's Themer (For prediction on physical keyboard)
MIUI Small MMS Fix from silverton
Download Link:
2.01.06
2.01.13
2.01.20
Going to give it a whirl. Really appreciate the work! ;]
Downloading now. Ill try it tomorrow(Monday) without "Bulletproof MIUI Pack" and then Tuesday with and let everyone know how it goes. Thanks for a new roms!
Unable to get root access.
Herrera91 said:
Unable to get root access.
Click to expand...
Click to collapse
With which app? It's still the stock SU app so you need to enable it in settings first.
With pretty much all my apps. It's already enabled, but for some reason, I still can't get root access...I'll try to reflash and see from there.
Herrera91 said:
With pretty much all my apps. It's already enabled, but for some reason, I still can't get root access...I'll try to reflash and see from there.
Click to expand...
Click to collapse
Strange, I didn't do anything to the SU and I only had a problem with restoring TI Backup. Did you come from a full wipe?
Seeing as I already had MIUI installed, just cleared cache. I'll try doing a full wipe, seeing as how reflashing still didn't fix the issue.
EDIT: Negative. Even a full wipe didn't fix it for me :[
Herrera91 said:
Seeing as I already had MIUI installed, just cleared cache. I'll try doing a full wipe, seeing as how reflashing still didn't fix the issue.
EDIT: Negative. Even a full wipe didn't fix it for me :[
Click to expand...
Click to collapse
Very strange. I will wipe, flash and see if I can recreate it.
Hey BigT, congratulations on the new rom, hopefully my new DD for the MIUI range just a query though,
you said that genie widget is added for lockscreen weather? how can I get lockscreen weather? :S
erichung_13 said:
Hey BigT, congratulations on the new rom, hopefully my new DD for the MIUI range just a query though,
you said that genie widget is added for lockscreen weather? how can I get lockscreen weather? :S
Click to expand...
Click to collapse
Here, they started weather on the new lockscreens mid Nov. There's some in the online theme chooser app as well.
http://forum.xda-developers.com/showthread.php?t=1288096&page=8
I did a full wipe and I can confirm root does NOT work. I dont really need it so Im going to stick with it till you find a patch. Also I backed up with MIUI Backup and restored from 12.02 rom and everything it working like I never left other then root so thanks for the great rom!
I updated the OP with a patch. I'll take a closer look at it tomorrow after work. I'm still learning.
Sorry if this is answered somewhere (couldn't find much when I asked/searched relatively recently), but does this MIUI version (or any for that matter) fully support the G2 keyboard - as in, the ".com/www." button works instead of displaying the square?
magus57 said:
Sorry if this is answered somewhere (couldn't find much when I asked/searched relatively recently), but does this MIUI version (or any for that matter) fully support the G2 keyboard - as in, the ".com/www." button works instead of displaying the square?
Click to expand...
Click to collapse
Nope, no MIUI version does because very few phones have physical keyboards. All attention goes to soft IME's. But you can look here. You'll have to use a hex editor to make your own keymap, but everything you need is on his github.
Hey man I have a few questions.
Removed apk's, themes, media, and fonts I didn't use
Click to expand...
Click to collapse
Can you be more specific about what apks you pulled, what themes you pulled (since there is only one theme that comes with MIUI I don't see what could be slimmed down), and the fonts you got rid of? MIUI is already pretty barebones in terms of system overhead and package size so I'm curious as to how your design philosophy works.
Added memory management, sdcard, zipalign, and ILWT fixes scripts
Click to expand...
Click to collapse
Could you also go into some more detail as to what this means and how each script works? I'm not really much of a dev, I just benefit from the effort of others but I do love my documentation, especially before I flash a new rom.
Thanks for the reply.
Edit: Hey as a bit of an aside, for permission controls I always suggest LBE Security Control. It's very effective at not breaking roms yet helping your sense of security. It's free on the market so you could theoretically pre package it in your rom. I usually suggest it since most baked in permission control is often fundamentally broken.
Sure. MiTalk, MiuiStats, and a couple others I can't remember off hand. I removed the Arabic, Thai, and Hebrew fonts, the some of the ringtones and pictures I hated, TTS info for Italian, French, and German, the extra lockscreens in the media folder, and added a smaller bootanimation. I'm going to try to slim it down a little more next week too. I'll make a list.
As for the scripts, in the system/etc/init.d folder there's the SDcard fix which changes the read ahead cache, zipalign which verifies all apks are zipaligned at boot, ramscript which tunes the memory manager, and ilwt-fixes that fixes Flash in the browser.
Sent from my VAX running UNIX.
Glad you picked this up T. Let me know if I can be of any use to you!
tun4f1sh said:
Glad you picked this up T. Let me know if I can be of any use to you!
Click to expand...
Click to collapse
Thanks. You've been a great help already. I'm just doing this so I have something to flash your pack on.
Sent from my VAX running UNIX.
Great that you got your project going on, kinda similar what I was about to do to learn how to make my 'own' ROM. I guess you don't mind if I snoop around a bit and see what you did? Anyway this is going to my new daily driver. Thanks Bigt!

[ROM][AOSP][CDMA] gorilla_toro-AOSP-v1 4.0.3 UPDATE 1/2/11

JUST ANOTHER AOSP BUILD!
This is an AOSP Build of 4.0.3 I have made basically no changes as of right now. I have fixed tethering and market restore. I plan to add some useful modifications in the future.
Gapps-403_signed.zip
md5sum cf82c67056c31101cfed0f936cac29c1
Gorilla-toro_AOSP_v1.1.zip
md5sum 9ce8af2122bd743862c0aa6d49bed97d
Full wipe if coming from any other ROM. Especially if they have made framework changes.
Use my gapps if you want to make sure market restore works. These are the same as the latest that are floating around I just included google backup transport apk in mine.
Google Wallet - download the unmodified apk. Install as usual after full wipe. Seems to work, I haven't used it recently though.
Kernel - Stock for now.
Also I can't check any of the NFC stuff because I don't know anyone else with an NFC enabled phone.
Big thanks to everyone as usual, CM Team, RootzWiki, RootzBoat, Birdman, Pete of Bugless Beast fame, I looked at all of their vendor make files to figure out how to set those up.
Source Code: Google AOSP 4.0.3 Master Branch - my changes will uploaded tonight when I get off work to my github.
Post any issues that you notice. I don't expect many though since it is currently a pure AOSP build.
MD5 Sums are correct now.
Facebook Sync fixed, added reboot recovery menu.
Google wallet works. Do a fresh install of Google Wallet after wiping.
I am working on the camera panorama mode.
Reserved one more time
Post on Rootzwiki?
I shall later today. I want to get my source uploaded to my github. Otherwise I will get hear a lot of whining..as in source, source, source..... Just here for now. Upload there tonight or in the morning.
Thanks for this. I've been looking for a mostly-stock 4.0.3 ROM.
This is EXACTLY what I have been looking for! Thank you!
My only reservation is that I really don't want to wipe my device as I've only recently got everything sorted the way I wanted it on my phone. Is there a quick and dirty way to unlock the tethering capabilities with ADB or Root Explorer? Or is that part of the framework that would have to be properly flashed with the installation of a new ROM like this one?
It is part of the Frameworks. It is built into the system. There is no quick and dirty way. You could do a titanium back up and restore everything after the flash. The changes are minimal and should not affect anything from another build. I suppose there could be problems if you restore from 4.02 to 4.03 but you can always Nandroid and try it if you like.
Going to post an update today. It will have working FB sync and a file manager built in from CM otherwise no changes.
do i install this with CWM? can someone tell me how to install this?
I'll be checking this one out soon, been waiting for an all stock 4.0.3
A couple quick questions:
Is it rooted?
Does it have busybox?
Is it deodexed?
On a side note, the md5sums you have listed, are the same for both files
Does anyone else get a force close when using panorama mode in the camera?
Sent from my Galaxy Nexus using xda premium
jimmytinsnips said:
Does anyone else get a force close when using panorama mode in the camera?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I sure do. Tried to fix permissions to see if that would help to no avail.
Can you rent and watch movies from the market? Each rom I try, it seems either tethering is unlocked, or you can rent and watch movies. I would love a rom where I can do both.
I am now working on Panorama mode. Just found that it force closes, because I never use it. The current release has the Facebook fix, thanks to team kang, also I added in a reboot recovery menu. Otherwise it is stock with working tethering.
I will let you know when I see why panaorma isn't working.
Thanks. I don't use Panorama much, but it's nice to have the feature available.
I will post an update to fix the camera it is simply due to a couple of missing libs that I didn't add to the extract.sh script. I will also fix it and post the updated rom tonight. I am not sure about movies from the market. I think that has something to do with rooted devices and googles agreements with the copyright holders. Probably due to piracy concerns.
Let me know if you notice any other bugs. There really shouldn't be many since it is basically a pure AOSP build.
Gr8gorilla said:
I will post an update to fix the camera it is simply due to a couple of missing libs that I didn't add to the extract.sh script. I will also fix it and post the updated rom tonight. I am not sure about movies from the market. I think that has something to do with rooted devices and googles agreements with the copyright holders. Probably due to piracy concerns.
Let me know if you notice any other bugs. There really shouldn't be many since it is basically a pure AOSP build.
Click to expand...
Click to collapse
While you're fixing the panoramic camera, would you be able (and willing) to add back the original live wallpapers and ringtones? Or if not in the build itself, perhaps a separate flashable zip file that would add them back? I tried (and failed) to modify your ROM with these original files added back in and, of course, I only got a bootloop.
If you need the files, I can adb pull them for you and zip them up easily.
Thanks again for your awesome ROM.
j.bruha said:
While you're fixing the panoramic camera, would you be able (and willing) to add back the original live wallpapers and ringtones? Or if not in the build itself, perhaps a separate flashable zip file that would add them back? I tried (and failed) to modify your ROM with these original files added back in and, of course, I only got a bootloop.
If you need the files, I can adb pull them for you and zip them up easily.
Thanks again for your awesome ROM.
Click to expand...
Click to collapse
Sure, no problem. Zip them up and upload them to dropbox or multiupload or something and I will fix it up over the weekend.
Also, Sorry for the delay on teh camera fix. I have just been extremely busy with a project that is a few days past deadline at work. Unfortunately, real life has to come first....
Flashed the update...lost my camera completely...
Sent from my Galaxy Nexus using xda premium
Wow, that's Crazy. Sorry I have not been maintaining the thread here. School has me so busy I just don't have the time right now. I am in a Physics Class, Electricity, Electromagnetism, and fiberoptics. And at the same time in an advanced Computer Science Class with 4 hours of Elective Classes....Kinda busy....

Working pdroid patches [currently AOKP(toro+maguro), stock AOSP, cm9]

I'm using this thread to share working pdroid patches I've got for various Galaxy Nexus roms. This was made using the patcher being developed here (patcher is in the 4th post). The patcher is currently linux-only, but will also work with cygwin in windows. I'm posting the finished flashable zip here as a convenience to anyone who can't use it themselves. Please note that I am not one of the people actively developing this patcher, just a willing tester who happens to own a toro Gnex.
If you don't know what Pdroid is, this is the thread for it on xda. Basically, it lets you deny permissions to apps on a per-permission basis, without risking apps crashing. Same basic idea as LBE privacy guard, but in my opinion executed better. Plus, open source is always a plus. Even though the official patcher there won't work for us yet, check the official thread. You'll need to download the app from the market and follow the same instructions, just using the zips I'll post here (or make your own).
I'll include a revert.zip for anything I post here, but please note that I take no responsibility for anything that happens to your phone. Make backups before flashing things. Try TWRP if you haven't, it's faster at backup/restore than CWR and does a bunch of other neat stuff like compressed backups and queued zip flashing. Also, in case of things breaking, please note that these revert zips are (1) only going to work if you are running the same rom used to create the zip and (2) just a slimmed down version of the rom's zip. What this means is that if you flash a pdroid zip and you need to revert, the surest thing to do is just re-flash your rom without wiping anything.
I'll try to update this thread as I get more patches working. Here's where my own experiments stand:
Link to my dropbox folder with files, notes below
Working patches:
-AOKP b39 (toro):
-AOKP b39 (maguro):
-CM9 Nightly: Patched build: 2012/06/19
--Note: Not sure if these will automatically fail with later nightlies or only when something relevant is updated in the rom. Feel free to try, just reflash your rom if it bootloops.
-Stock AOSP(+root, busybox): Patched build: 2012/06/02
-Paranoid Android v1.4a
Not Working (Yet):
-Liquidsmooth 1.5RC4:
-Slim ICS 4.0:
Unless otherwise noted, these are all for the toro (verizon) Galaxy Nexus. It's pretty quick and easy for me to make new patches so feel free to request something. But please be aware that sometimes it's a few days between when I can devote any time to this and don't be offended if I don't reply to you right away.
Just to reiterate, all you need to do for this is download the "Pdroid Patch Zip" file for your rom, flash it in recovery, and download Pdroid from Google Play.
Finally, be aware that the first boot after flashing can take a very long time, without any indication like the "Android is Upgrading..." screen. Don't assume it's bootlooping! Seriously, put the phone down and do something else for a bit. Anything in the tested section I've either personally flashed on my phone or someone else reported as working. If you're sure you're getting a bootloop on a clean install, my only advice is to do a full revert to stock and re-unlock/root/etc and see if it works then. Though rare, it is possible for something to be corrupt that persists across the usual "clean install" routine.
Isn't that what Permissions Denied does?
https://play.google.com/store/apps/details?id=com.stericson.permissions
Wow, I didn't realise you could patch AOKP on ICS yet. Have been waiting for this for so long. How would I go about applying your patch for AOKP gsm?
xternal said:
Wow, I didn't realise you could patch AOKP on ICS yet. Have been waiting for this for so long. How would I go about applying your patch for AOKP gsm?
Click to expand...
Click to collapse
For gsm you'd need a new patch. There are instructions in the first thread I linked to if you'd like to try it out. I might make one in a bit since I expect that to be a popular request and I expect it to work.
danger-rat said:
Isn't that what Permissions Denied does?
https://play.google.com/store/apps/details?id=com.stericson.permissions
Click to expand...
Click to collapse
Same idea, different approach. Permissions denied generally causes apps to crash if they need info that they are denied. I also had a major issue with it a while back that I ended up doing a factory reset for, but I think that's been fixed since then.
Not sure how pdroid gets around apps fc'ing (maybe it spoofs data so apps go on running normally? It has an option to set your own values I haven't played with much), but it works very smoothly.
xternal said:
Wow, I didn't realise you could patch AOKP on ICS yet. Have been waiting for this for so long. How would I go about applying your patch for AOKP gsm?
Click to expand...
Click to collapse
Quick update, I put up a maguro for AOKP, and I also updated the OP quite a bit since I last posted. Finally got around to testing the patches I made; getting better at reading the patching process as well to tell when a patch will work before flashing it, too.
At far as updates go, I don't really intend to follow the cm9 nightlies as I don't run them myself. I'll probably continue to try new versions of AOKP and paranoid android as they come out. I'll continue to try the roms that don't patch yet with new versions of the patcher as they are released.
Thank you. The maguro patch works for me.
Edit: not sure, but this likely breaks 2 apps: Listen, Drive.
I've been using LBE Privacy to control permissions and this app doesn't crash apps that have permissions blocked. It's one of their selling points, doesn't crash apps.
deaffob said:
I've been using LBE Privacy to control permissions and this app doesn't crash apps that have permissions blocked. It's one of their selling points, doesn't crash apps.
Click to expand...
Click to collapse
PDroid source has been released, whilst LBE created by a 'suspect' chinese company. I put the suspect in inverted comma's because nothing has actually been proven.
The patch works a treat on GSM aokp, many thanks
edit: looking at it though, it seems it doesn't find all the permissions correctly. I am assuming this is a limitation of the current pdroid as it is not designed for ics.
For instance it does not find hardware controls. Google Drive has access to hardware controls to take photos/videos.
Thanks for the confirmations on the maguro zip, I edited the post to reflect that it's definitely working.
I hadn't heard of LBE before making these threads but from what I've read it seems like people generally prefer pdroid. I'll check it out at some point but it looks like it does a bit more than I'd want it to, and pdroid being open source is definitely a plus.
IIRC, there's certain instances where apps can bypass LBE but not PDroid. I think reboot is one of those times due to when LBE loads.
I've been running LBE but lately the service keeps stopping because it doesn't get root soon enough after boot. Trying this now on Paranoid. Thanks!
i have used this patch for CM9 but after the Bootscreen have i a Blackscreen -.- what can i do?
SGDynamite said:
i have used this patch for CM9 but after the Bootscreen have i a Blackscreen -.- what can i do?
Click to expand...
Click to collapse
I'm guessing you are running a different build/more recent nightly? I might take that link down as it was meant as more of a proof of concept if the cm9 patcher was working and it's unlikely anyone is going to be flashing that particular build just to test pdroid.
The most effective thing would be to just re-flash the original rom's zip, you don't need to wipe anything. The revert zip file is basically just four files copied from a given rom's original zip, services.jar, core.jar and framework.jar in /system/framework, and build.prop in /system.
xternal said:
LBE created by a 'suspect' chinese company. I put the suspect in inverted comma's because nothing has actually been proven.
Click to expand...
Click to collapse
I hadn't heard of pdroid until I was on the Nexus, so I'm not familiar with it to compare, but I'm currently using LBE and blocking its data connections with Droidwall. Perhaps a bit overkill... but works great as far as I can tell.
Sent from my Galaxy Nexus using xda premium
JoeSyr said:
I'm guessing you are running a different build/more recent nightly? I might take that link down as it was meant as more of a proof of concept if the cm9 patcher was working and it's unlikely anyone is going to be flashing that particular build just to test pdroid.
The most effective thing would be to just re-flash the original rom's zip, you don't need to wipe anything. The revert zip file is basically just four files copied from a given rom's original zip, services.jar, core.jar and framework.jar in /system/framework, and build.prop in /system.
Click to expand...
Click to collapse
I think I flashed it to a nightly a day or two after 5-18 and it worked, but it definitely did not work on 5-27 or 5-29.
If the patch doesn't work for you, pull the battery, then hold volume up and down while you hold power, then use volume up and down to get to recovery option--press power to select. Either flash the revert or the old from there on top of the non-working one. Don't clear data partition and you won't lose anything.
@Joesyr, I think there is some interest in CM9 nightly patches...would you mind making a CM9 patch maybe once a week? I haven't had any luck making the patch on my own.
robjective said:
I think I flashed it to a nightly a day or two after 5-18 and it worked, but it definitely did not work on 5-27 or 5-29.
If the patch doesn't work for you, pull the battery, then hold volume up and down while you hold power, then use volume up and down to get to recovery option--press power to select. Either flash the revert or the old from there on top of the non-working one. Don't clear data partition and you won't lose anything.
@Joesyr, I think there is some interest in CM9 nightly patches...would you mind making a CM9 patch maybe once a week? I haven't had any luck making the patch on my own.
Click to expand...
Click to collapse
Well the last cm9 nightly I tried didn't patch at all (I believe it was a 5/29 build). I will try tinkering with things as I get the time but I'm not really at the level of fully understanding these kinds of failures yet.
Next time there's an updated cm9 patch I will try to get a working pdroid zip and I'll consider weekly updates. I'm also generally willing to make these on request as it's a pretty quick process. Fiddling with dropbox links is probably the longest part of any of this.
Any particular issue you're having with the patcher? I've been thinking I could write a little tutorial for getting cygwin up and running since I imagine that for most people the limiting factor is just that they don't have a linux environment to work in. But until I get the time to do that I can help troubleshoot.
Can you make a patch for stock root.
Thx
Has anybody experienced random rebooting? All was fine until I opened a non system app. Then it just started rebooting randomly after opening any app. I ran it on Maguro with AOKP b37.
soloxp said:
Can you make a patch for stock root.
Thx
Click to expand...
Click to collapse
Yup, not sure if the rom I just put up is the same you were looking for but it's the first one I've been able to get to patch correctly with the aosp patch.
Just flashed the Toro AOKP b37 patch, tested and working great here. Thank so much! Awesome work!!

Categories

Resources