Thought I would show my rom... - HTC Flyer, EVO View 4G

This is my personal rom for the htc evo view.
It's still a wip but for the most part everything is about the way I want it. Once I'm done with all the edits to the system I will basically repack everything into a full rom and reflash it after wiping the partitions.
** Note: The lag is from the screecast and not the rom. My rom actually runs smoother than the video. **
** Pay attention as I purposely showed the app drawer with no superuser.apk and still have root access. I prefer rooting my roms this way. **
It's a video so click the image

But you have included the superuser.apk in the rom? Or do you jsut have the su binary?

I don't use superuser.apk at all, just the su binary and busybox along with some other files/scripts that I personally use.

So every App can easily get superuser permissions on your rom on you don't even notice? That's a very high risk.
Have a look at this article: http://androidsu.com/2011/06/a-word-about-superuser-and-security/

nickiberli said:
So every App can easily get superuser permissions on your rom on you don't even notice? That's a very high risk.
Have a look at this article: http://androidsu.com/2011/06/a-word-about-superuser-and-security/
Click to expand...
Click to collapse
I use an access list. That's the beauty of compiling some of these binaries from source...You can change the way they function and then use it. Only the su binary (and me) knows where the list is and can access it. I have been able to block terminal and titanium backup independently without blocking other apps. I choose to do my personal rom this way just to eliminate the need for apps that do what I can do through scripts or terminal.

But if an app wants su permissions, does a popup appear?

nickiberli said:
But if an app wants su permissions, does a popup appear?
Click to expand...
Click to collapse
Nope. The way my binary works is if an app requests root permission and is not on the list it is blocked outright. I personally get annoyed with the toast message about "this app has been granted su permission". I have to manually add all apps to my list that need root. This gives me extra work but it also ensures that I personally added an app to the list. I have had an instance where someone played with my phone and added a root app, granted permissions through superuser.apk, and then edited my system and jacked it up. After that I made a su binary for my use and since then no one has been able to give root access except me.

But this way you can't install new root apps..?

I can install any root app I want. I just have to manually (via terminal command or script) add the app name to the access list in order for it to gain root.

But a user who uses your rom can't?

nickiberli said:
But a user who uses your rom can't?
Click to expand...
Click to collapse
Well, I did title this thread as "show my rom". I said this was my personal rom but never stated I would release it. The point of my thread was to showcase some of the edits I have done visually and the little tidbit about how my su binary works.
It doesn't seem feasable for me to release this or any rom right now since the view owner numbers doesn't appear to be that great. The dev section also doesn't get as much traffic as it could be.
I just wanted to show what can be done with the right tools, knowledge, and effort as far as roms are concerned.

Related

[MOD] Updated HOST File (Need Root)

**Disclaimer**
**I Take NO Responsibility in bricking your device**
For those of you who have a rooted device, ads suck, don't they?
Well here is the most up-to-date HOSTS file to help remove most ads (including ads in games/apps)
Needed:
Rooted Device
Root Explorer (Or another file manager that has /system/ directory access)
Attached hosts File
Step 1: Download and unpack hosts.zip
Step 2: Transfer hosts file to internal memory
Step 3: BACKUP Original hosts file (hosts.backup)
Step 4: Replace new hosts file from internal memory into directory /system/etc/
-Delete original (MAKE SURE THERE IS A BACKUP)
-Copy in new hosts
Step 5: Give full permissions to new hosts file
Step 6: Reboot
If there is any connectivity problems, replace the old hosts file
What this does:
Just like any other hosts file (on your PC), this tells the OS to route any website/ip that fall into a giant list of "ad" domains, to route back to 127.0.0.1 (you)... meaning, when an app/website asks for www.i_am_an_ad.com, instead of getting the ad, it gets a null response from yourself!
If you didn't understand the directions or what this is:
I DO NOT recommend customizing your Prime. I come from a Galaxy S, which you don't need balls to mess with, its nearly unbrickable.. this device..however is.. Do no attempt any messing with the /system/ folder without knowledge!
How does this differ than using an ad block app like Adfree?
Not trying to be a prick ... just curious.
Superguy said:
How does this differ than using an ad block app like Adfree?
Not trying to be a prick ... just curious.
Click to expand...
Click to collapse
no bloat. and can actually be incorporated into a ROM
also, this blocks ads at the source, i dont know how adfree blocks it, but i dont ever use ad-blocking programs, that means they the app can see your traffic..
ide rather some internal script doing the job it does with every bit of data in my phone than some external app.. we all should know about DOLPHIN logging user traffic...
Ad-away is the best app. It dies same thing, just installs a hosts file. Makes it in easy ui, and more noob proof. Also easier to update hosts file.
I like this way too, especially like you mentioned to be included in roms.
Sent from my Galaxy S2
There are multiple apps in the market that do exactly this...but easier.
RussianMenace said:
There are multiple apps in the market that do exactly this...but easier.
Click to expand...
Click to collapse
yes, but said aps, again, cannot be included in roms. this is mainly for custom roms.
personally, i would rather incorporate this into my roms before i flash, then download some app that does it
biggem001 said:
yes, but said aps, again, cannot be included in roms. this is mainly for custom roms.
personally, i would rather incorporate this into my roms before i flash, then download some app that does it
Click to expand...
Click to collapse
I'd rather use an app that updates the host file with the latest ad addresses as they become known rather replacing it manually. But that's just me
Charsher47 said:
I'd rather use an app that updates the host file with the latest ad addresses as they become known rather replacing it manually. But that's just me
Click to expand...
Click to collapse
again.. its for people making roms, mainly.
Ok, even if you bake it into a ROM, which is "what this is for" you would still have to manually update the host file to adapt to new Ad domains....yes?
I'm not trying to crap on your work here, just trying to understand the advantages this has over using a market app, which in itself can be baked into a ROM with developers permission.
yeah, but every release culd have it updated. I know most developers just don't put out one version of the rom and call it a day. Most update there roms at least 2-3 times a month if there is still a need for it.
doeboy1984 said:
yeah, but every release culd have it updated. I know most developers just don't put out one version of the rom and call it a day. Most update there roms at least 2-3 times a month if there is still a need for it.
Click to expand...
Click to collapse
agreed. this just reduces bullcrap 3rd party apps you don't need. roms are updated weekly at the latest, normally (at least in my galaxy s forum). throw in the host file every time and you are set. not some
biggem001 said:
**Disclaimer**
**I Take NO Responsibility in bricking your device**
For those of you who have a rooted device, ads suck, don't they?
Well here is the most up-to-date HOSTS file to help remove most ads (including ads in games/apps)
Needed:
Rooted Device
Root Explorer (Or another file manager that has /system/ directory access)
Attached hosts File
Step 1: Download and unpack hosts.zip
Step 2: Transfer hosts file to internal memory
Step 3: BACKUP Original hosts file (hosts.backup)
Step 4: Replace new hosts file from internal memory into directory /system/etc/
-Delete original (MAKE SURE THERE IS A BACKUP)
-Copy in new hosts
Step 5: Give full permissions to new hosts file
Step 6: Reboot
If there is any connectivity problems, replace the old hosts file
What this does:
Just like any other hosts file (on your PC), this tells the OS to route any website/ip that fall into a giant list of "ad" domains, to route back to 127.0.0.1 (you)... meaning, when an app/website asks for www.i_am_an_ad.com, instead of getting the ad, it gets a null response from yourself!
If you didn't understand the directions or what this is:
I DO NOT recommend customizing your Prime. I come from a Galaxy S, which you don't need balls to mess with, its nearly unbrickable.. this device..however is.. Do no attempt any messing with the /system/ folder without knowledge!
Click to expand...
Click to collapse
Well I thank you for your time and effort... I followed your directions and BAM my prime is adfree...
AdFree is one of the first root apps I downloaded. Just easier as a user and I love blocking ads!
Lock-N-Load said:
AdFree is one of the first root apps I downloaded. Just easier as a user and I love blocking ads!
Click to expand...
Click to collapse
Was just coming in here to say that. Way to beat me to it
Atleast upload a more recent one...
http://www.multiupload.com/SAQUI2FOBH
Lock-N-Load said:
AdFree is one of the first root apps I downloaded. Just easier as a user and I love blocking ads!
Click to expand...
Click to collapse
I use AdAway. There's an updated host almost every day.
Lock-N-Load said:
AdFree is one of the first root apps I downloaded. Just easier as a user and I love blocking ads!
Click to expand...
Click to collapse
Itaintrite said:
I use AdAway. There's an updated host almost every day.
Click to expand...
Click to collapse
yeah, they are great and everything, but that's just one more app you have to run in the background, taking up that much more system resources.
Swiftks said:
yeah, they are great and everything, but that's just one more app you have to run in the background, taking up that much more system resources.
Click to expand...
Click to collapse
i agree, when we start pushing roms out, it'll be much easier to just update the hosts files with the ROMS then installing that app every time you update the rom
biggem001 said:
i agree, when we start pushing roms out, it'll be much easier to just update the hosts files with the ROMS then installing that app every time you update the rom
Click to expand...
Click to collapse
I use adfree and I don't let it run in background and it still works, you only install app again if you update to different ROM, or you must swipe everything every time, but you have to install all of your apps again as well, install one more app won't make a dent to your finger, or you can use Titanium Backup
I'm surprised this hasn't been baked in CM7/8 or the upcoming CM9 yet.
Would be pretty easy to add it in the customize for most any ROM.
Sent from my DROID3 using Tapatalk

[MOD] Hulu/WIN Flash Hack

Hey guys. So I made this hack for my old epic, then my GSII, now I'm posting it here since I know I DEFINITELY wanted unrestricted hulu access on such a nice tablet, without the extra price/"not available for devices" BS of Hulu+. This should also work for any other sites that restrict mobile devices. This hack simply changes 3 characters in the flash library file from AND to WIN, and copies my modded file over the stock/updated adobe file upon each boot.
For those who wish to learn more the original post can be found here: http://forum.xda-developers.com/showthread.php?t=114215
New install instructions
Flash via CWM OR follow the instructions above, but you must locate the files within the zip sub folders. They are in the folders they should be in if you were to unzip to the device root. You may also copy and paste with root explorer if you prefer that to ADB (I do). Just make sure you get the file permissions right (they should match other files in the same folder).
NOTE: If you have adfree or another adblock, you'll see a message to disable it, you don't need to disable it (they just want you to watch their commercials), just wait the 30 seconds or whatever it is and that black message counts as your commercial, and your show will play
Once we get a few custom kernels out there with init.d support we won't need script manager (init.d support just means it will run all scripts in the folder /system/etc/init.d) making the process a bit cleaner but for now this works. I also have a cwm flashable version but we'll have to wait a bit longer for that. For now let's just be happy Jcase got us root Enjoy!
EDIT: Updated for ICS AND JELLYBEAN and flash version 11.1.115.12 (8/9/2012) (latest..for now) LATEST VERSION IS BUILT TO BE EASIER/MORE RELIABLE FOR SOME USERS
TESTED: Confirmed on Galaxy SII on CMX. Turns out Jelly Bean (and maybe ICS) have changed the order on boot so that init.d runs BEFORE flash overwrites our hack on each boot. In other words, the flash APK is re-unpacked in its non-hacked form by adobeflashplayer on each boot somewhere after the boot animation and probably just before the homescreen is displayed. The init.d scripts we run are unfortunately run at the VERY beginning, while the OEM logo is still displayed (BEFORE the boot animation). Because of this, script manager is currently absolutely required until I can find another "entry point" to run these scripts
It is this unfortuante order that requires using script manager to run the script "on boot" later in the process.
Be sure BUSYBOX is installed or GTFO
It IS typically included in most custom roms, but still, MAKE SURE.
HOWTO Video (without using the adb method above though it still works just fine) thanks to jjdevega if you need it here http://youtu.be/rXTdIyMP_Xs
OLD install instructions below for those without CWM:
So here goes.
1. Update flash via the market to the latest version
2. Download & unzip the 2 files linked below to be pushed to /data/flash
3. adb shell mkdir /data/flash
4. adb push S98fixflash /data/flash
5. adb push libflashplayer.so /data/flash
5.5 (almost forgot) Install Busybox from the market, let it run, grant su, and have it install the latest busybox for you
6. Install Script Manager from the market
7. Open Script Manager and be sure to select to give it root access
8. Browse to /data/flash in Script Manager, select S98fixflash and select root and boot options (thus making it run on each boot, with root permissions)
9. Reboot (Press + hold power, power off)
10. Open Browser, open settings, advanced, user agent string, desktop
Thanks OP for the mod!!!
Now that we have root can anyone try vgeezy's hacked apk and see if it works? this method should allow hulu.com and is much more noob friendly.
http://forum.xda-developers.com/showthread.php?p=20598069#post20598069
Great mod already instaled it
Wysłane z mojego Transformer Prime TF201 za pomocą Tapatalk
For those saying they got this to work, how were they able to get a root adb shell on their comp to make this work? Although rooted with vipermods tool, I cannot get a root adb shell through windows, and my understanding is that it takes a modified boot-img for that to happen.
Is there a way to make this mod work from a terminal on the tablet? Thanks!
Edit: Tried opening the prime's internal storage up through windows, going to android/data and creating a 'flash' folder and moving the two files into it. Then going through script manager and setting the script to run as root at boot.
Didnt work.
However using ES to move the files to system/data/flash and setting to run at boot from there seems to have worked.
Any help?
---------- Post added at 09:05 PM ---------- Previous post was at 08:43 PM ----------
Also, is it just me or does ScriptManager constantly force close for anyone else?
mikek9 said:
For those saying they got this to work, how were they able to get a root adb shell on their comp to make this work? Although rooted with vipermods tool, I cannot get a root adb shell through windows, and my understanding is that it takes a modified boot-img for that to happen.
Is there a way to make this mod work from a terminal on the tablet? Thanks!
Edit: Tried opening the prime's internal storage up through windows, going to android/data and creating a 'flash' folder and moving the two files into it. Then going through script manager and setting the script to run as root at boot.
Didnt work.
Any help?
---------- Post added at 09:05 PM ---------- Previous post was at 08:43 PM ----------
Also, is it just me or does ScriptManager constantly force close for anyone else?
Click to expand...
Click to collapse
Connectbot can replace adb. Also, you don't need to use adb at all, you can use root explorer to place the files in the correct locations, it's just easier to write a step-by-step that way. Also, if you rooted, you could try running from that same folder as you will have the adb tool within the "one click root" folder you most likely used (or normal platform tools if you used jcase's step-by-step).
Script Manager doesn't have issues for me, it's very popular software and well made. Maybe try uninstalling/reinstalling? If not, clear cache/data for script manager and try again? Not sure...
EDIT: If you don't HAVE root, and try to OBTAIN root while running script manager, it will force close I believe. Make SURE you have root, use adfree or titanium backup to confirm maybe...
2nd Edit: Also, don't use usb transfer, that just puts it in the 'internal sd' folder. Use root explorer and back all the way out to the root directory first.
I tried this and couldn't seem to get it to work. However, for anyone looking for a quick way to watch hulu in a browser, download "flash video browser" from the market. It is $0.99 I believe and no additional tinkering is needed.
Sent from my Transformer Prime TF201 using xda premium
Moving to Themes/Apps as it is related to a Theme or an App.
jerdog said:
Moving to Themes/Apps as it is related to a Theme or an App.
Click to expand...
Click to collapse
Works for me, wasn't quite sure which. Thanks!
Worked like a charm. I just used Root explorer to make the data/flash folder. Had problems with script manager fcs but cleared data and cache from the manage applications and then it worked just fine.
Sent from my Transformer Prime TF201 using xda premium
not working after the ics update. redid the mod and used script manager post-update but not working. Used dolphin browser with uA set to desktop.
i get a blue lego block with a ? mark in the center of where the video should be.
Sent from my Transformer Prime TF201 using xda premium
Not sure about dolphin, i uploaded new files for ics (though the old ones do work). Make sure in the stock browser you check request desktop site in the menu button. Works for me.
ok trie dthe updated files. NOW WORKS PERFECTLY!!!!!!!!!!! thanks so much. also i recommend ics+ browser bc it lets u keep desktop user agent permanent.
Sent from my Transformer Prime TF201 using xda premium
For those those that don't have root and/or don't wish to mess with root/existing Flash installation an alternative is to buy/use Flash Video Browser. Works great on the Prime and was recently updated with ICS compatibility. Works great with Hulu.
Those who did this, did it affect your ability to upgrade to ICS? I'd like to try, but don't want to miss out on future OTAs.
chinly43 said:
Those who did this, did it affect your ability to upgrade to ICS? I'd like to try, but don't want to miss out on future OTAs.
Click to expand...
Click to collapse
No has nothing to do with ota. i had the mod before when i was on hc, upgraded fine to ics, redid the mod and i was good to go.
Sent from my Transformer Prime TF201 using xda premium
Thanks - I was curious, since removing built-in apps prevented the OTA I thought this might too.
ravizzle said:
No has nothing to do with ota. i had the mod before when i was on hc, upgraded fine to ics, redid the mod and i was good to go.
Sent from my Transformer Prime TF201 using xda premium
Click to expand...
Click to collapse
Any clue why the User Agent String option might be missing from Settings>Advanced?
It's odd, because when I first got the TP I hunted for it, but couldn't find it--but then stumbled across someone mentioning it online, and lo-and-behold it had appeared for some reason.
Now that I'm trying to use this hack, it's missing again. Any ideas?
I usually just press menu -> Request desktop site.
Hulu works great with this mod in desktop mode. That add message threw me off, thanks for the warning, video started 30sec later.
thanks, worked perfectly with root explorer

Remove root check in apk?

Is there any way to remove the process that checks for root in an app? If decompiling an apk where would this be?
f10a said:
Is there any way to remove the process that checks for root in an app? If decompiling an apk where would this be?
Click to expand...
Click to collapse
You can't make a rooted app to an unrooted app!
I think it's pretty obvious that he means he wants to install an app which doesn't need root, but which checks for root and refuses to run if it finds the device has been rooted.
Very good question imo.
at45 said:
I think it's pretty obvious that he means he wants to install an app which doesn't need root, but which checks for root and refuses to run if it finds the device has been rooted.
Very good question imo.
Click to expand...
Click to collapse
That is exactly it.
Well, in that case, if you can get access to the source code, and if you know about developing, then you could do it (otherwise decompiling, editing some file and compiling again won't help you).
f10a said:
Is there any way to remove the process that checks for root in an app? If decompiling an apk where would this be?
Click to expand...
Click to collapse
goto your supersu app and check option to grant su permission without prompt.
if you are trying to change rooted app to unrooted its not possible. the root permissions are necessary for the app to work.
You could try the apps listed here:
http://www.howtogeek.com/115888/how-to-restrict-android-app-permissions/
Let me know how it goes.
No what he is trying to say is Example, I have DirecTV GenieGo APK and the latest version checks to see if your device is rooted and if it is then GenieGo will shut down and say something along the lines of "Contact your Service Provider to get a non-rooted version of your device"...I think what the user was asking is...Is there a way to remove that "check to see if my device is rooted" or at the very least fool the apk into thinking it ISNT rooted....?

Help with deodexing a touchwiz app

Hello! I am trying to make the stock Samsung file manager work as a normal apk so I can use it on any ROM. Now from what I scouted around the internet I learned that I need to deodex the apk so it doesn't need the the framework dependencies anymore. I did that, but the problem is like this: I pulled the file manager from the stock 4.1.2 and I'm trying to make it work on 4.2.2. My first question is, is it possible to make it work on other Android versions (ofc higher then the one it came from). If yes can anyone point out what I'm doing wrong as I am a total noob with Android development?
I used Universal Deodexer v4 and there you can choose the Android version. I tried both 4.1 and 4.2 but theres no difference, although the app is deodexed successfully. The actual problem I stumbled across on, is that I push the apk in /system/app, fix permissions and reboot but it doesn't show up in apps manager or app drawer at all.
C'mon, really nobody tried porting that good looking and simplistic file manager?
Breaksense said:
C'mon, really nobody tried porting that good looking and simplistic file manager?
Click to expand...
Click to collapse
I'd be willing to bet that it's because the Samsung application needs Touchwiz framework to correctly function. Here is code I used to launch an app which didn't show up in my app drawer (enter it in Terminal Emulator):
Code:
am start -n com.cyanogenmod.settings.device/.DeviceSettings [enter]
Obviously you need to change the 'com.cyanogenmod.settings.device' and 'DeviceSettings' to your specific application. I still doubt it will work.
The other thing to try is to open it using Titanium Backup, although its possible that Titanium won't recognise it as being installed. Give both a go. In saying that, I doubt the app will work without Touchwiz behind it.

Adaway doesn't work for me

I have tried to install latest Dev version of adaway on my encrypted tablet but the app doesn't update the file host.
I tried to do it manually via es file explore but permissions didn't allow me. I couldn't change permission as well, denied. I deleted the host and then put a modified one. But...
Is there someone here using adaway successfully and how?
Thanks in advance.
I'm using adaway_51 without any problems.
Sent from my Nexus 9 using XDA Free mobile app
Might be something wrong with your root. Adaway works for me
it doesnt work for me too
Works for me. Have you added any other host sources other than the ones that came stock? If I add any more sources it always gets stuck downloading them.
make sure you have busybox installed. some of the recent root apps really want it.
Sent from my Nexus 9 using Tapatalk
albsat said:
I have tried to install latest Dev version of adaway on my encrypted tablet but the app doesn't update the file host.
I tried to do it manually via es file explore but permissions didn't allow me. I couldn't change permission as well, denied. I deleted the host and then put a modified one. But...
Is there someone here using adaway successfully and how?
Thanks in advance.
Click to expand...
Click to collapse
Hi, albsat...
I haven't used AdaAway myself for quite some time, but your post inspired me to have another tinker with it.
The version of AdaAway that I found on XDA, and works for me on my Nexus 9 without problems, is this one...
---
[APP][2.1+][UNOFFICIAL] AdAway v2.9.2 :: [12.21.2014]
(Dev Build: AdAway-release_Build-Dec.21.2014.apk)
---
Incidentally, if you're going to make changes to /system with a file manager like ES File Explorer, you first need to make /system READ-WRITE MOUNTABLE, because by default, /system is READ ONLY.
How this is accomplished depends on the file manager you're using.
---
In ES File Explorer, go into settings, and scroll down to the option, Root Explorer.
Tap on the FAR LEFT of this option (the text, "Root Explorer" , NOT the OFF/ON slider control) and a dialogue box will appear with a variety of options, one of which will be Mount R/W.
Grant root/SU access, upon request.
Change /system from RO to RW.
---
You should now be free to to make whatever changes you like to /system using ES File Explorer... including setting file permissions.
Once you've made your changes, it's advised you reverse these steps, and make /system RO (read only) again.
---
Apologies if all this sounds a little convoluted... As is often the case with this sort of thing, it's far easier to 'do' than to 'describe'.
---
A picture paints a thousand words, or so it is said...
So, with that in mind, see my attached screenshots.
Hope this helps.
Rgrds,
Ged.
Very detailed post.. Thank you. I found that the issue was because of SuperSu. I changed it and adway works fine. however now I learned to customise my own host file, so no need to use adway anymore.

Categories

Resources