Removing Keyguard Password Policy due to Exchange (HTC Sense & Milestone & Froyo) - Android Software/Hacking General [Developers Only]

Removing Keyguard Password Policy due to Exchange (HTC Sense & Milestone & Froyo)
Introduction
Hi Everybody,
when synchronizing your HTC, Motorolla or Froyo Androids with Exchange, it might be that your device needs to be locked by a password. Having to enter this password on every unlock is quite annoying. It would be great to use Androids unlock pattern instead of the cumbersome on-screen keyboard or disable the unlock password at all. To achieve this, I have written a small app.
Unlike other workarounds, this one let's you keep using your stock unlock screen.
Android 2.1 Download (HTC/Milestone)
HTC Sense:
Install the app
Choose which mode you want (password disabled, password enabled or lockpattern enabled)
Click Save
If you have enabled "Lockpattern":
Click "Set lockpattern"
change lockpattern
click "Done setting lockpattern"
Consider a small donation
Motorola:
Attention: You need to be rooted and you need the sqlite3 binary. If the program won't do anything, the missing sqlite3 binary is most likely the cause. The easiest way is to install another ROM with busybox and sqlite3 binary installed. Otherwise:
get it from somewhere, push it to "/sdcard", open shell with "adb shell" and:
Code:
mount -o remount,rw /dev/system/mtdblock6 /system
cp /sdcard/sqlite3 /system/xbin/sqlite3
chmod 755 /system/xbin/sqlite3
chown root.shell /system/xbin/sqlite3
Then go ahead with my app.
Need help? Have a look here
Choose whether to disable or enable password
Click Save
Please report if it is possible with disabled password to set a lockpattern. If not we can try to work this out together. I don't have a Motorola Droid, so I can't test. Please send me a private message.
Please check as well if there is a popup that your device needs security enabled or whatever.
Consider a small donation
Android 2.2 - Froyo (Sense & AOSP) - Android 2.3 Gingerbreas AOSP Download
Attention: Root is necessary. You need to replace the original email app with a patched one. The email apps are usually on /system/app, so you definately need root to replace it.
Because I do not want to run into any licensing issues, I have written a toolkit named "FroyoMailUnlocker" which you can use to patch your own email app. I currently support HTC Sense Froyo Mail.apk and Android AOSP (like Cyanogenmod 6 & Cyanogenmod 7) Email.apk. As I do not own a Motorolla, I have no idea if this will work there as well. This toolkit has proven to patch all stock Email apks from Froyo and Gingerbread.
Prerequesites:
You need to have Java Runtime Environment (JRE) installed. Make sure that your Java Home is part of the %PATH% variable. You can test this by issuing start -> run -> cmd -> java -version
And this version is for Windows at the moment. I can easily do one for Linux as well if there is a proper need to.
Basic usage instructions common for both brands:
Pull the apk you want to patch from your ROM
Download the "FroyoMailUnlocker" and extract it
Move the apk to the folder "put_apk_here"
Run the file "FroyoMailUnlocker.exe"
Push the new apk from the folder "put_apk_here" to the root of your SDcard
Boot your phone into recovery
Open a shell with "adb shell" and issue the following commands:
Code:
mount /system
mount /sdcard
...continue with instructions below specific for your brand
Instructions for Sense:
Code:
cp /sdcard/Mail.apk /system/app/
reboot
Setup your Exchange account
Accept the policy, set your Pin-Code
Open up Settings -> Security -> Device Administrator
Remove device administrator
Accept every warning that your Exchange account will be wiped
Still in Security, disable screen lock
Enjoy your policy-free HTC Sense on Froyo
Consider a small donation
Instructions for AOSP:
Code:
cp /sdcard/Email.apk /system/app/
reboot
Setup your Exchange account
Consider a small donation
Appendix
Note 1:
My solution does not require a background service which runs all the time. It sets the desired configuration persistantly and survives a policy reenforcement without having to run any more. You can safely set your configuration and uninstall the app. But you need to be rooted.
Note 3:
Please take a short rest and think about why your company has applied these restrictions over their mobile users. If you say "I don't care", then this app is probably for you. If not, stick to the password unlock.
Important Note for HTC devices:
If you don't use the lockscreen shipped by HTC, it is possible to disable password lock, but you should not reenable password lock again! The issue appears if the lockscreen is enabled again. HTCs framework will then try to configure the HTC Lockscreen and won't find it which ends up in an error. This could prevent your device from booting up. You can fix it by booting into recovery and issuiing the following commands from an "adb shell" and reboot.
Code:
mount /system
mount /data
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
update system set value='0' where name='lockscreen.lockexchange.enable';

FAQ
Hey, I changed my configuration from X to Y, but it doesn't work
Just reboot. This should fix your issue. Or if lockpattern does not work, just click on "Set lockpattern", go to security settings, set your pattern and click "Done setting lockpattern".
Hey, installation of the apk failed
Please enable USB debugging in the settings, get the Android SDK (adb tool) and execute "adb -d uninstall com.myandroid.keyguardcontroller"
I can't find your app in the market
Absolutely correct. It's not yet upped. Maybe it will in the future, when this app is tested thouroughly enough. I expect that the more technicaly interested guys come here to find a solution for their problems instead of searching the market and those are the best testers.
After pushing the unlocked file to my 2.2 rom, the Mail/Email app does not show up
Better use a deodexed rom or deodex the apk. Instructions can be found here: DeodexInstructions or xUltimate
Make sure you have cleaned the Dalvik Cache
Changelog
Android 2.2
Version 2.0 : Download
First framework version to let the user unlock the mail app they are using
Version 1.0 : -no link yet-
Initial release
Android 2.1
Version 1.4 : Download
Fixed issue with rules not applied on first set
Semi-fixed issue with "fancy" lockscreens (read note in first post)
Version 1.3 : Download
Second try with Milestone
Version 1.2 : Download
Fixed a bug with the triggers
Version 1.1 : Download
Added initial Motorola support (alpha stage) **Need your feedback as I don't have one**
Let the user choose which ROM he has
Corrected triggers
Persistent configuration
Improved user interface
Version 1.0 : Download
Great thanks
blegat
tamburylar
britoso
dwang
instaliro
superbimble

klaus27 said:
I have quickly put together an app which let's you decide whether lockscreen should ask for password or not, or if it should be disabled at all.
Any testers?
Click to expand...
Click to collapse
So where's the app?
Does it re-disable the lock screen after the policy has been re-enforced?

j0bro said:
So where's the app?
Does it re-disable the lock screen after the policy has been re-enforced?
Click to expand...
Click to collapse
Do they reenforce the policy? Didn't noticed that so far. Wrote the app and created this thread. That's why I am asking for testers. If you want to help, send a private message
Cheers

Ok, I have a way to make this setting persistent without having to run any background service, app, script or whatever. I am now iterating the lock-pattern issue. I want to be able to use a lockpattern without having Android Mail ask you to set security policies once a day.
Not sure if this is possible, but we will see.

is this for using the stock exchange app? using activesync?
Just curious because I cannot use the stock exchange app due to security policies set at the server level. So I wondered how this would be affected by that.

wildtouch said:
is this for using the stock exchange app? using activesync?
Just curious because I cannot use the stock exchange app due to security policies set at the server level. So I wondered how this would be affected by that.
Click to expand...
Click to collapse
It's for the mail app of HTC Sense. They build their own UI on top of stock Android and added support for Exchange policies. With this program, we try to circumvent the Exchange password policy. So you might want to get another ROM with Sense for your mobile, or grab Moxier mail from the market.
-------------------------------------------------------------------
Current status: I am able to remove password policy, set an unlock pattern and stick with that right now. The Exchange security popup shows up, but it does not override the settings. Once again, there is no background task/script involved. To remove the security popup at all is the next task on the agenda.

Ok, app is ready and tested by two or three people.
It will now make settings persistent, regardless of policy reenforcement.
Additionally it is able to set Lockpatterns without having the policy enforcement popup every morning.
BTW: API level is 3, so it should work with Android 1.5 as well, but I have only been able to test it with Android 2.1.

Hi,
Where I could get this app?
Is it really works on 2.1?
Thanks

wrzoch said:
Hi,
Where I could get this app?
Is it really works on 2.1?
Thanks
Click to expand...
Click to collapse
It is in the testing phase. Yes it works on HTC Sense 2.1 Roms. Milestone is in the testing phase. As I don't own a milestone, I can only rely on users feedback.

klaus27 said:
It is in the testing phase. Yes it works on HTC Sense 2.1 Roms. Milestone is in the testing phase. As I don't own a milestone, I can only rely on users feedback.
Click to expand...
Click to collapse
ihave milestone..can try for you...wheres the app?

medicjoe said:
ihave milestone..can try for you...wheres the app?
Click to expand...
Click to collapse
Thanks, I will get back to you probably.

klaus27 said:
Thanks, I will get back to you probably.
Click to expand...
Click to collapse
Hope you succeed to put together the app soon. Coz i hate the password policy thingy...
http://forum.xda-developers.com/images/icons/icon12.gif

medicjoe said:
Hope you succeed to put together the app soon. Coz i hate the password policy thingy...
http://forum.xda-developers.com/images/icons/icon12.gif
Click to expand...
Click to collapse
Are you willing to try out some SQL commands? Is your milestone rooted?
If so, send me a pm with your email address.

klaus27 said:
It is in the testing phase. Yes it works on HTC Sense 2.1 Roms. Milestone is in the testing phase. As I don't own a milestone, I can only rely on users feedback.
Click to expand...
Click to collapse
i have milestone too, really need this one, i can help on the testing

ricky119 said:
i have milestone too, really need this one, i can help on the testing
Click to expand...
Click to collapse
Are you experienced enough to help testing? Are you familiar with SQL commands? Are you brave enough to break your system? If so, send me a pm.

Working on Milestone, confirmed. Now need to add that option to the app.

klaus27 said:
Are you experienced enough to help testing? Are you familiar with SQL commands? Are you brave enough to break your system? If so, send me a pm.
Click to expand...
Click to collapse
sry, im not. waiting for your good news

klaus27 said:
Working on Milestone, confirmed. Now need to add that option to the app.
Click to expand...
Click to collapse
I found that there's a similar program which already done
http://forum.xda-developers.com/showthread.php?p=6071848#post6071848
but unfortunately, did not work on my Milestone, so I hope you can help me

ricky119 said:
I found that there's a similar program which already done
http://forum.xda-developers.com/showthread.php?p=6071848#post6071848
but unfortunately, did not work on my Milestone, so I hope you can help me
Click to expand...
Click to collapse
Yes, I know, and additionally for HTC Sense it doesn't support Lockpatterns. Mine does

Related

Android Wired Tether is patched and working for Evo

This post is now irrelevant, Alex put these commands into the main program. See second post for links.
I figured out how to get it fully working. Big thank you to tonyb486 and canteenboy for figuring out that you need to disable adb and usb mass storage for tethering to work. That only left the problem of disk mounting not working after you are tethering. Here are two scripts to get the whole thing running smoothly and without a problem.
First, if you haven't already, install android-wired-tether. Next install GScript Lite (on the Market) which will let us automate toggling the USB function switch.
Create a new script with SU enabled and use this as the code.
Code:
echo 0 > /sys/devices/platform/msm_hsusb/usb_function_switch
That command shuts off usb_mass_storage and adb so everything is disabled and ready for Wired Tether to come in and do its job. Your usb_function_switch will look like this after running the command.
usb_mass_storage:disable
adb:disable
diag:disable
serial:disable
ether:disable
modem:disable
nmea:disable
When you are done tethering, use this command to re-enable adb and usb_mass_storage:
Code:
echo 3 > /sys/devices/platform/msm_hsusb/usb_function_switch
If for some reason you don't use USB debugging (adb), you can use this command to turn on usb_mass_storage by itself.
Code:
echo 1 > /sys/devices/platform/msm_hsusb/usb_function_switch
For those of you new to GScript, you can place shortcuts to scripts on your home screen. To simplify my life, I put them in a folder with Wired Tether so I have everything in one place. It's not an elegant solution, but you won't need to reboot your phone to get SD card mounting to work again. Perhaps someone with more knowledge of GScript can write some code that will automate running the first script, starting Wired Tether, and then running the last script after it notices that tethering has stopped. (Or better yet, get these commands into the actual program itself.)
(Optional)
For completeness, if you use any of the other usb functions listed above, you can use other 'echo #' commands to find the right combination. They don't toggle individual settings, but rather represent entire combinations of settings. I think around 32-33 it cycles back to 0 (everything off), I didn't have time to figure out if there is a pattern. You can find out what each number does by using another script to read out the switches.
Code:
cat /sys/devices/platform/msm_hsusb/usb_function_switch
Huge thank you to Alex C. Hofbauer. He implemented these commands into the program. Now the program works flawlessly (or I assume, I haven't tested it yet).
Attached to this post:
http://forum.xda-developers.com/showthread.php?t=706602
http://code.google.com/p/android-wired-tether/issues/detail?id=21
Thanks! I'd like to add that the scripts and the patched app are both working great on my Incredible.
O Whoa, Wired Tether works on my stock Eris now Thank You
Saturn2K said:
Huge thank you to Alex C. Hofbauer. He implemented these commands into the program. Now the program works flawlessly (or I assume, I haven't tested it yet).
Attached to this post:
http://forum.xda-developers.com/showthread.php?t=706602
http://code.google.com/p/android-wired-tether/issues/detail?id=21
Click to expand...
Click to collapse
Do you have the link to the exact program that has the commands built in? Perused both links and couldn't find the link to the fixed one for the Evo.
jerdog said:
Do you have the link to the exact program that has the commands built in? Perused both links and couldn't find the link to the fixed one for the Evo.
Click to expand...
Click to collapse
Same. I was going to try the app on the Eris because the same manual fix works :\
jerdog said:
Do you have the link to the exact program that has the commands built in? Perused both links and couldn't find the link to the fixed one for the Evo.
Click to expand...
Click to collapse
yeah me too cant find it
Wow, I thought nobody gave a **** about this. Here it is, all compiled and ready to go.
Thanks duder, works like a charm...
Sent from my phone.
THANKS!!!!
Has anyone figured out how to get this to work on Froyo? I get a kernel unsupported error when trying to run it.
dalstrs said:
Has anyone figured out how to get this to work on Froyo? I get a kernel unsupported error when trying to run it.
Click to expand...
Click to collapse
Same here, I'm using netarchy's 4.0.3a kernel and SteelH's stock Froyo RevE.1 ROM.
I have stock froyo on my evo and use easythether, it works perfect, all you have to do is set it to debug mode in the settings, install the app on your computer and when connected set it to charge only.
Sent from my Evo using XDA App
striker012 said:
I have stock froyo on my evo and use easythether, it works perfect, all you have to do is set it to debug mode in the settings, install the app on your computer and when connected set it to charge only.
Sent from my Evo using XDA App
Click to expand...
Click to collapse
The problem with that is having to install stuff on the computer. With wired tether you don't have to install anything on the computer.
XevoX said:
Same here, I'm using netarchy's 4.0.3a kernel and SteelH's stock Froyo RevE.1 ROM.
Click to expand...
Click to collapse
I'm running the same kernel on evio rom and it's working fine for me...
Sent from my phone.
I've been able to make this work on my stock kernel, rooted FroYo Evo, so this is indeed possible and I've narrowed it down to what is necessary. Please star/follow issue 23 in the Google Code tracker for updates.
Unsupported Kernel message...
Hello, all. I'm running Fresh Evo 3.1.0.1 and King's latest kernel and I get the unsupported kernel message. When I try to ignore as is suggested in post 24 on the Google code page for the wired tether, I get a FC once I click to start tethering. Any ideas? Thanks in advance. -E
Hello, all. I'm running Fresh Evo 3.1.0.1 and King's latest kernel and I get the unsupported kernel message. When I try to ignore as is suggested in post 24 on the Google code page for the wired tether, I get a FC once I click to start tethering. Any ideas? Thanks in advance. -E
Click to expand...
Click to collapse
Hi EindhovenOne, I responded to you on the issue tracker for Wired Tether, but I'll respond here just for some others to know the situation.
I found a fix that worked for me on my stock, rooted FroYo Evo and I coded the change and sent Harald a patch. He incorporated the patch and did the build for Wired Tether for me to test, which I have done (and it does indeed work for me, but does currently have the unsupported kernel dialog*). At the same time, though, it is listed in the downloads (you have to select all and then search), but this is in beta state for the changes (hence the deprecated tag I believe).
* I have fixed the unsupported kernel message and sent Harald a patch on this as well, so when he finds time to build it, that should be corrected, too.
So back to the "it's not working" portion, since I'm not running anything but stock (ROM and kernel), my system won't be the same as everyone's. I have no problem with other variations of ROMs and kernels (Evo's and non-Evo's) trying the 1.3 APK, giving feedback, and I'll try to do what I can (and someone else can step in if more suited than me even).
If you do run into issues, you can tag them in the issue tracker, which I try to follow frequently right now. Also, most importantly, if you can provide as much information as possible (what ROM and kernel you're using, a LogCat run just after the error occurs, any other pertinent information we can use to diagnose the problem, etc.), that helps tremendously in tracking down the problem and identifying a fix.
Saturn2K said:
Huge thank you to Alex C. Hofbauer. He implemented these commands into the program. Now the program works flawlessly (or I assume, I haven't tested it yet).
Attached to this post:
http://forum.xda-developers.com/showthread.php?t=706602
http://code.google.com/p/android-wired-tether/issues/detail?id=21
Click to expand...
Click to collapse
Is there a way we can find this patched version of android-tether? It is no longer attached to the first post. Also, the version I download from google still says incompatible kernel. It would be awesome to get wired tether working for the EVO
superevilllama said:
Is there a way we can find this patched version of android-tether? It is no longer attached to the first post. Also, the version I download from google still says incompatible kernel. It would be awesome to get wired tether working for the EVO
Click to expand...
Click to collapse
The beta-in-progress version 1.3 is located here. It still warns about the kernel currently but you can ignore it (simple lapse in patching that as well at the time). It works perfectly for me (starting and stopping), but there are a couple of issues outstanding right now that I'm working through with the users.
If you do run into a problem, though, just let me/us know through the issue tracker preferably, but you can also contact me directly (here, or my email via the issue tracker).
PS: I have patched the kernel message already, but I don't have write access to the project yet and I don't have the build system in place to handle the native code just yet, so I have been handing builds off to Harald who graciously has done the 1.3 so far for me. When he has time to do the one including the kernel warning fix, I'll post again with an update on that.

[Q] How much device dependent can a CUSTOM ROM be??

Hi,
I have a customer , say Foo. Foo has a requirement that the Android device should only have the Calling application,SMS application, Address book ,camera application and Foo's application. No other application should be allowed to install but an update of Foo's application should be allowed.
One solution i see is running shell scripts from Foo's application
- The shell script will rename or disable all the unwanted applications
- I am not very convinced y this solution because
1. Once u rename the apps. Its not very clean.. When u click on the app icons it will give u not very pleasant errors
2. Once renamed. Even after a wipeout the applications will still remain renamed. so they still remain useless unless enabled again
3. The shell commands are executed by private APIs. These can lead to future breaks
4. AFAI see.. the custom ROM may take same amount of time.
5. Not sure but even after rename. the user can download the app and use
Another solution i see is build on the 2.2 source and modify the PackageInstaller application to only allow installation of Foo's application.
But Foo would want the device dependency to be as less a possible. Foo wants that this custom ROM should be able to be flashed on all devices that came with stock 2.2
I request for suggestions and advices to implement this security policy.
Many Thanks,
Biju Chandran
Hi Guys,
Please help!
Regards
Biju Chandran

[TASKER] tRUE - Tasker Recovery User interfacE - AUTODL CM7 NIGHTLY! | V2.1.2 - 8/16

Hi all -
NOTE: This project is on permanent hold until Tasker 1.1.2 is officially released. There are lots more features that will make it much easier both from a development end and a user end to use tRUE. I regret that I can't work on this now, but there are just too many Tasker limitations to work around that will be dealt with in Tasker 1.1.2. This will hopefully be by the end of the month, but may take into mid-October.
Furthermore, Koush has locked down writing commands to recovery starting with CWM5. If your ROM uses CWM5 for its recovery, it will not be compatible with tRUE.
Introduction
Welcome to tRUE - the Tasker Recovery User interfacE. The main goal of this Tasker profile scheme is to act as a replacement for most ROM Manager Premium features.
Why tRUE? How is it better than ROM Manager?
tRUE replicates ROM Manager functionality by writing commands to /cache/recovery/extendedcommand; these commands get executed upon reboot to recovery, just like ROM Manager. But there's lots more that tRUE can do!
Automatically download and install latest CM7 nightly for your device, at a time or context of your choice! GApps flashed automatically for free!
Bulk update-flash install - great to flash kernels, fixes, and more, along with your nightly!
One-touch and scheduled backup - Click a widget and immediately perform a Nandroid backup! Or, let it run automatically every night!
Free with Tasker - Tasker's the greatest $6 app out for Android, and it can replace lots of apps you typically pay for!
TO DO: Flash profiles: Flash any set of zips you want at any time!
TO DO: One-touch Nandroid restore of latest backup!
TO DO: Simple backup management - automatically delete old auto-backups!
I'm always listening for ideas as well, please contribute to the development of this project!
What's in the ZIP
The following Tasker profiles:
tRUE-nightlywget
tRUE-nightlyMD5
tRUE-nightlyinstall
tRUE-nightlycheck
tRUE-boot
The following Tasker tasks:
tRUE-AddNewZip
tRUE-boot
tRUE-cwm
tRUE-flash_nightly
tRUE-flash_user_zip
tRUE-nandroid
tRUE-NandroidWidget
tRUE-nightlycheck
tRUE-nightlyinstall
tRUE-nightlyMD5
tRUE-nightlywget
tRUE-restorenandroid
tRUE-RestoreWidget
tRUE-SETUP
tRUE-s_volts_scheduler
tRUE-UPGRADE
tRUE-wget_gapps
tRUE-wipe_cache
The folder "tRUE", which contains:
folder "download" - contains gapps-gb-20110729-signed.zip, and will contain your downloaded nightlies
folder "scripts" - contains checkupdate.sh, flashzip.sh, install_nightly.sh, nandroid.sh, wipe_cache.sh, get_CWM.sh, s_volts_scheduler.sh
Requirements
Tasker 1.1+, available on the Android Market or Tasker website
Secure Settings Plugin, available on the Android Market
For now, ROM Manager (free or premium) - I only need this for the directories it creates, I'll do it myself later
Coming from tRUE 2.1.1?
See this post; download the scripts folder and replace yours with this. It corrects some issues if you have a CWM that was both detected by ROM Manager and is not CWM2.x or 3.x.
Installation
Make sure you're already running a CM7-based ROM. tRUE does NOT wipe /data and perform the first-time-install instructions for your device; if you try to do so, you might brick!
In Tasker, click Menu->Preferences->Misc and check the box "Allow External Access". This allows Tasker to pass arguments to the shell scripts run by Secure Settings Plugin.
UPGRADING USERS: Delete all old tRUE profiles and tasks. (Sorry about the tedious installation! It'll be more streamlined in the future.)
Download the attached ZIP. Place the tRUE folder in the root your SD Card. (UPGRADING USERS: it will suffice to replace the scripts folder with the one from the zip.) Place *.tsk.xml in /sdcard/Tasker/tasks . Place *.prf.xml in /sdcard/Tasker/profiles.
Open Tasker, hit the Menu Button->Profile Data->"Import One Task". Import the 19 tasks. (WOW THAT'S ALOT! It's what you get with awesome functionality )
Repeat previous step, but with profiles. Import the 5 profiles.
Exit Tasker by hitting the check-mark. This will save the profiles and tasks.
NEW USERS: Re-enter Tasker, the click Tasks and select "tRUE-SETUP". Click the play button.
UPGRADING USERS: Re-enter Tasker, then click Tasks and select "tRUE-UPGRADE". Click the play button.
Download the GApps package below and place in /sdcard/tRUE/download. Or, run the task "tRUE-wget_gapps"
Edit the "tRUE-nightlycheck" profile to suit your needs - currently it'll fire every day at 4am, if your device is powered.
Setup will try to automatically detect your device's CM7 codename; if it can't, enter the codename (i.e., cdma_droid2, vibrantmtd, glacier, etc)
Create the tRUE widgets - on your home screen, long-press, then click "Widgets"->Tasker->Tasks->tRUE.
Usage
When a new nightly is available, tRUE will automatically wget the zip and leave it in /sdcard/tRUE/download . You can skip this process if you download the zip yourself and place it in that folder. It then performs an MD5 check; if the check succeeds, it writes commands to /cache/recovery/extendedcommand to perform a Nandroid backup; wipe your cache and dalvik-cache; flash the nightly; flash the GApps package; and flash any zip you provide. See below.
Use tRUE-AddNewZip to add update-flashables to your nightly installation. I install Glitch Kernel and my own Software GPS Fix for my Vibrant. tRUE looks at /sdcard/tRUE/toflash.txt and installs zips in order. You can either use tRUE-AddNewZip or manually edit this file.
Limitations and Bugs
Currently tRUE-nightlywget is kind of slow - I tried to provide download percentage so you don't patiently wait wondering how long the download will take, but this seems to actually slow down wget, and sometimes wget actually quits out. I can't replicate this all the time.. I might have to just remove the download percentage indicator. Sorry!
AFAIK, all variants of CM7 run on ClockworkMod3+; I only provide commands to use CWM3+. If you're running CM7 and are on CWM2 or below, please let me know ASAP so I can include functionality.
It seems that if you abort a script via the Secure Settings plugin notification (it fires when I use a script), no more scripts will fire until after a reboot. I am working with the developer of the plugin to see if it's a true bug or an issue between keyboard and chair.
Right now, tRUE-nightlycheck will run the entire download and install process even if it couldn't detect you were on CM7. If you're not running a CM7-based ROM, YOU MIGHT BRICK UPON TRYING TO USE tRUE. FOLLOW THE CM7 FIRST-INSTALLATION INSTRUCTIONS BEFORE ATTEMPTING TO USE tRUE.
To Do
Only enable vibration when user presses the tRUE-nightlycheck widget - this way the user can sleep soundly without his phone vibrating in the middle of the night
Manage deletion of old nightlies - maybe keep 2 or 3, but delete older ones?
Menu-driven interface to more ROM Manager-esque - one widget to access all functions, instead of many
Add "flash profiles" - allows you to quickly go from vanilla CM7 to MIUI to some other CM7-based ROM, while flashing all your extras for you
Add one-touch Nandroid restore widget
on setup, create clockworkmod folders (to store backups) if it doesn't already exist
Add profile to perform automatic Nandroid backups
If I helped improve your CM7 experience, PLEASE hit the Thanks button! Or even better, donate This has been a really fun project for me and I hope my work helps you too!
Changelog
Code:
V2.1.2:
- fixed issue where having CWM that was not version 2 or 3 (e.g. 4) was not detected by shell scripts
V2.1.1:
- fixed wget looping error - had to remove attempted wget workaround for failed downloads
- fixed "typo" - forgot an End If statement in tRUE-installnightly
V2.1:
- Menu-driven UI - single widget "tRUE" to do nightly check, backup, recovery, add to profile
- one-touch backup/restore - perform with tRUE widget
- if S_volts_scheduler detected, save it before flashing a nightly and restore upon boot
- notifications after boot if you just flashed, backed up, or restored
- support for CWM 2.x
- bug fix - /cache/recovery/extendedcommand not always written - fixed by mounting /system before writing (via scripts)
- bug fix - adding zip to flash profile didn't use full pathname; now also makes sure that the file the user selected actually exists (wtf?)
V2:
-initial release of tRUE - a complete rewrite of AutoCM7 with
loads more features and robustness!
Downloads
http://cmw.22aaf3.com/gapps/gapps-gb-20110729-signed.zip GApps package (07/29)
COMING IN NEXT VERSION
I'm going to start using SL4A to do the heavy lifting. Writing for Tasker is exhausting and difficult. No new features will be added until V3, when everything will be written with Perl/bash; Tasker will be used only to support the Perl scripts. This gives me the ability to really use UI (show download progress, list cool menus, etc), and improve my own sanity! I get to write in a real programming language!
V2.1.x will contain bugfixes as reported by the community.
bug fix: S_volts_scheduler not restored correctly on new flash still - workaround in progress
FREQUENTLY ASKED QUESTIONS
Q: Why is the install process so tedious?
A: Tasker was designed to be very extensible, but wasn't designed to be able to run what some might call an app. There is discussion to implement mass-import of tasks and profiles in future versions of Tasker.
Click to expand...
Click to collapse
Q: JESUS CHRIST, 24 DIFFERENT THINGS TO IMPORT!?
A: See above. You're getting what's essentially a ROM Manager Premium replacement for free! If you wanted easy-to-use with no freedom to customize, go buy an iPhone
Click to expand...
Click to collapse
Q: Why do I need Secure Settings plugin? Why didn't you use Locale Execute plugin?
A: With Locale Execute Plugin, running commands as root requires granting permission to every single command that uses it. People got around that by writing all possibly needed commands into a single shell script, then used Tasker to pass arguments back and forth. SSP in the end makes the install process easier for the user. It also lets me look at exit codes and capture STDERR and STDOUT - both tasks are much more difficult than necessary using Locale Execute.
Click to expand...
Click to collapse
Q: Why are the icons so ugly!? Couldn't you pick better ones?
A: I could have - but that requires that users have Tasker icon packs installed, and in the end icon packs are just for aesthetics - I don't think making it a requirement to install more stuff before you get to play with tRUE just to make icons look pretty is worth it. You're free to change the icons, though!
Click to expand...
Click to collapse
Q: Why should I use tRUE instead of ROM Manager Pro!? It seems like a lot of work (both for me to install and you to develop) to replicate a well-known app.
A: Tasker is AWESOME is why. It's $6.50 on the Market (or $5 if you buy it directly from the developer), and that's the best 6.50 you could possibly spend. I replicate so many app functionalities with it, it probably saved me a good $15 in the long run. Contrast to RMP, which is $6 and only manages your ROMs. Not that that's a bad thing! A lot of apps are out there that let you control basic stuff on your phone - but Tasker can replicate the functionality of a LOT of apps out there. This started mostly as an exercise to see how far I could push Tasker.
Click to expand...
Click to collapse
Q: YOU'RE SO AWESOME, PLEASE HAVE MY BABIES!
A: I appreciate the gesture Really all I need from you is to push the Thanks button and post with your experience, questions, comments, bug reports, etc. If you're feeling REALLY generous, hit the donate button I do this in my spare time because it's fun and I love Tasker. I don't expect anything in return for me sharing the work that I would have done anyway.
Click to expand...
Click to collapse
Updated to v1.1. Found a bug where the device name was not being passed correctly to the shell script; also turned on Secure Settings notifications for debug purposes. Please re-download and try it out if you've had problems with V1.
update to v1.2, fixed bug where gapps package was accidentally deleted after new nightly found
Many thanks, this sounds awesome, will give it a go, though I have already purchased the rommanager premium (just for nightlies actually).
Looking forward to seeing more advanced useful profiles, I'm loving tasker as well.
This is pretty neat, I'm testing it on my Droid X right now.
I don't suppose there's any way to implement some sort of progress bar for the download? It's basically a wait-and-find-out process right now.
strictlyrude27 said:
[...] Create a new profile, and set your own contexts. I prefer to have a context of 4AM, if the device has power, and if I'm currently connected to wifi. [...]
Click to expand...
Click to collapse
Care to elaborate please? I'm stuck at point 7 What profile should I create and how. Thanks! Looking forward to testing this.
Sunblood said:
This is pretty neat, I'm testing it on my Droid X right now.
I don't suppose there's any way to implement some sort of progress bar for the download? It's basically a wait-and-find-out process right now.
Click to expand...
Click to collapse
I can't do a progress bar, but I think I can do a toast notification of how much of the file was currently downloaded..
I plan on doing a rewrite with more robust options and capabilities, but it's kind of on the backburner for right now..
Let me know if you run into errors, please! I'm kind of surprised more people aren't using this setup..
mi3x said:
Care to elaborate please? I'm stuck at point 7 What profile should I create and how. Thanks! Looking forward to testing this.
Click to expand...
Click to collapse
In Tasker, just hit the Plus sign on the bottom to start a new profile. Then select the first context you want the download check to fire. Like I said, I have mine set to fire at 4am every day. Then, set CM7_AutoInstall as the task to perform. Finally, long-press the first context once the profile is created to add more. I only want to have downloads happen when I'm power is connected.
Thanks, I guessed that was the way, but just wanted to be sure. Now looking forward to seeing CM7 build 16 today or tomorrow to test this. Will post my results. Many thanks again, nice work.
Another question, does it flash it directly over the existing build, or could you think of something to wipe cache before? I always wipe cache and dalvik as instructed in Q&A in CM thread.
Sent from my GT-I9100 using Tapatalk
Ok, my first report.
First, as a new build was released I tried to test the task directly, but after some minutes, I cancelled the script. Then, I browsed to the CM7 folder and I saw the build 9 downloaded there (I am on 15, and the new one was 16).
I thought it was because I cancelled the script, so I deleted the zip there, and placed instead my actual build i.e 15.
Re-ran the task again, all good, it d\l and flashed the rom on my phone, but instead of having build 16 on my phone, it was the build 9, (from 30/07).
So there must be a bug, I assume.
Just wanted to let you know, hope you'll fix it as I'd love to use it.
Sorry for my English
mi3x said:
Ok, my first report.
First, as a new build was released I tried to test the task directly, but after some minutes, I cancelled the script. Then, I browsed to the CM7 folder and I saw the build 9 downloaded there (I am on 15, and the new one was 16).
I thought it was because I cancelled the script, so I deleted the zip there, and placed instead my actual build i.e 15.
Re-ran the task again, all good, it d\l and flashed the rom on my phone, but instead of having build 16 on my phone, it was the build 9, (from 30/07).
So there must be a bug, I assume.
Just wanted to let you know, hope you'll fix it as I'd love to use it.
Sorry for my English
Click to expand...
Click to collapse
What device do you have? I'll look into it..
Sent from my SGH-T959 using XDA App
Im on Samsung Galaxy S2.
Nice catch. I just looked at the mirror page for your device.. Since 9 is a single digit, it's the last link on the page. I assumed that the last link is always the latest mirror.
If you try again tomorrow or the next day it should work, since eventually Build 9 will be removed from the page. I'll try to work on this this week (along with the rewrites).
Sent from my SGH-T959 using XDA App
The last couple times I tried the script, it will start the download and pop up with "Download completed with errors" a few minutes later (not long enough to actually finish the download) and then reboot and try to install the failed package. CWM fails the hash check and reboots normally.
Droid X (shadow)
Sunblood said:
The last couple times I tried the script, it will start the download and pop up with "Download completed with errors" a few minutes later (not long enough to actually finish the download) and then reboot and try to install the failed package. CWM fails the hash check and reboots normally.
Droid X (shadow)
Click to expand...
Click to collapse
Thanks for the catch. I check the MD5 before I reboot into download mode, and it's supposed to error out if the check fails.
All, I will try to have V2 released this weekend. Life's a bit hectic right now and frankly there wasn't a whole lot of interest in this project from the community before, so nobody tested for me all this stuff.. thanks for the help!
I find it very interesting, so I will gladly help if possible. Thanks again.
Sent from my GT-I9100 using Tapatalk
does this also wipe /data/ after flashing?
XlAfbk said:
does this also wipe /data/ after flashing?
Click to expand...
Click to collapse
I would hope not.
One suggestion: I use Rom Manager Janitor to clean up old backups on boot so I only have ~3 or so, but it specifically looks for the naming system that Rom Manager uses so it doesn't delete manual backups. Could you use the same naming convention or do you just pass the "backup" command to CWM and let it do its own thing?
Otherwise, I'd rather stick with RM's backup and just have this script flash the nightly.
The notifications that SecureSettings throws up (not the ongoing, but the one-off errors and such) don't activate the Clear button in the dropdown window so I have to click it to clear them. It's probably an issue with SecureSettings but I thought I'd let you know.
Finally, I have two gapps zips in the AutoCM7 folder. 20110613 and 201106130. Can I delete one?
Update on my issue: I'm going to try and get a screenshot of the error message that the download spits out. It shows the download hit 100% but the file size keeps increasing until ~102mb, then the md5 check fails. Manually downloading (i.e. via rom manager) works fine.
Screenshots:
http://i.imgur.com/Ix4jo.png
http://i.imgur.com/0BPBJ.png
http://i.imgur.com/a8Vn9.png
As you can see, the download hits 100% about halfway through the actual filesize. The MD5 of the downloaded file actually matches the md5 on the nightly site, but it says the md5 fails. Manually selecting the zip with Rom Manager works just fine.

[ROM] Androot-N7p-rom for Nextbook 7 Premium

Welcome to Androot-N7p-ROM for the NextBook 7 Premium *ONLY.
I decided to change up some of the apps and generalize the rom in terms of its boot-animation screen. It runs on LauncherPro (just choose it as the "always"/default upon first instance of it. The Launcher that comes with the device isn't so great, but I left it there just in case.
It's based on the first known rooted ROM for this device: 'DocHoppy's ROM'. Credit for most of this ROM goes to him and to 'Wendal' for his toolset for packing the ROM (into cramfs) for the Nextbook 7 Premium device.
As such, it is a beta/ work-in-progress.
Androot-N7p-ROM v0.2
[ 146 MB ]
download here
Instructions:
*WARNING: FLASHING THIS DEVICE WILL ERASE YOUR DATA AND APPS!!!!*
Download image.
Rename file to update.img
copy file to root of SD card.
Follow on screen prompt asking if you want to run update image.
Disclaimer:
I am not responsible for bricked devices.
Here's my changes..
removed:
-youtube player <- the real youtube app is better
-explorer <- redundant
-slide me app market <- redundant now that Google's Market is installed
-quick search box <- Google Search widget is better IMO
kept/added:
-Market <- the real Google one
-root explorer - an alternative & capable file explorer
-astro file manager <- we all know it well
-quickpic 1.5.2 - a much lighter & more efficient photo organizer/viewer
-3D gallery <- some love it, some hate it
-brightness level 1.0.0 - quicker brightness changes
-ConnectBot 1.6.2 <- for those that need a SSH tool
-Officesuite full <- may as well keep it
-Titanium Backup 4.6.7 <- has some very handy tools aside from backups
-LauncherPro 0.8.6 <- may be old, but it's smooth and capable
-superuser <- because this rom is rooted
-has some of the Google Apps (go ahead and add as you see fit)
-has a custom boot animation.
Click to expand...
Click to collapse
Known Issue:
Apps2sd reports SU Binary out of date. Attemps to update this via superuser fails due to cramfs file system.
It's not perfect, but it does work well and I run it as my daily driver on my N7P.
Please give feedback or suggestions! I trust the pro devs could easily help me out with the little things!
-------------------
here are other threads related to the Nextbook 7
http://forum.xda-developers.com/showthread.php?t=1410862 (dochoppy's rom)
http://forum.xda-developers.com/showthread.php?t=1190990 (rooting talk? )
Since I'm new to modifying/cooking ROMs, here's my
Questions I have for the devs that cook ROMs all the time...
(lol)
Where do I edit the items that show in 'settings > about' in the device?
How do I change the default shortcuts that LauncherPro puts on the dock?
How do I change what icons are default on the home screen?
Where do I put custom wallpapers as part of the rom?
How do I modify Android UI colours?
Can the dialer be removes without losing "contacts"?
How do I create a shortcut to "contacts" without the phone/dialer?
(more to come I'm sure)
Hello, first of all, thanks for your work!
I am having trouble loading this rom. it says there's an invalid image file in my sd card and if I want to delete.
Now, I don't know if my tablet is a never or older version of what you guys have...
Next7p
2.3.1
kernel: 2.6.32.27
build: v2.0.7.....
my serial is also different from alot..it starts with YF0511
any help or tips?
In Dochoppy's original rom/post he mentions that the device will need to have a serial number starting with YF1011. That stands the same for this rom, as it's derived from his.
Having an invalid update.img firmware file could be due to a number of things, but the one I have here works on my device.
I wish I had more of an answer, but by all means try out the tools for repacking the rom.
So after messing around compiling a ROM, I forgot to add a launcher, and now I am stuck in a bootloop. After the girl in the dress is there for awhile, I get a black screen, then reboot. Anyone now how to fix this? I have been searching Google, but can not find anything yet.
Any help would be great!
xxProphecyxx said:
So after messing around compiling a ROM, I forgot to add a launcher, and now I am stuck in a bootloop. After the girl in the dress is there for awhile, I get a black screen, then reboot. Anyone now how to fix this? I have been searching Google, but can not find anything yet.
Any help would be great!
Click to expand...
Click to collapse
I had mine half dead for a short bit until i found i could go into a low level bootloader mode and recover it. I am working on getting a the tool/images i used to recover mine uploaded and such.
Download and extract n7p_rescue_kit.zip
Reboot device using paper clip then quickly press and hold reset until you get black screen with usb plugged in
When windows wants driver give it the respective folder for your os (32bit or 64bit) from Drivers folder from the download
Run RK29update.exe if it says "Found RKAndroid Loader Rock Usb" on bottom you are good but if it shows "No Found RKAndroid rock usb" repeat last step.
Either flash all of the default selected items or do just system (since bootloop is in system)
Hope this helps
P.S. If you pack then unpack your custom one you can flash JUST system using the tool but be sure to use the offsets that are pre-loaded.
use a pin to push the reset button on the back to break out of the boot loop.
If after this your rom still bootloops, try putting a different update.img rom to flash, on to the sd card. Then boot into safe mode by holding all 4 front buttons after boot. the update should be found and installed after that.
Thanks!
I registered just to thank DocHoppy for all his efforts. I have a Nextbook Premium 7 I got for Christmas from Hastings, which fell into the YF09111XXXX batch. I used Wendal Chen's RK29xxImageTools_v2.1 to unpack the firmware upgrade from the nextbookusa site. I then put the Google apks, SuperUser, Rootexplorer, and re-packed it with a custom bootanimation. Because of my serial # I couldn't use DocHoppy rom without getting that "Invalid Update" error, but using their firmware seems to work.
My next goal is to find a way to get the "Accounts & Sync" into the settings! One of my apps is getting an "Error 42" which is an Android Market authentication error... however, other apps have worked without any problems so it's difficult to tell if that's the issue I'm having.
aberrantjots said:
I registered just to thank DocHoppy for all his efforts. I have a Nextbook Premium 7 I got for Christmas from Hastings, which fell into the YF09111XXXX batch. I used Wendal Chen's RK29xxImageTools_v2.1 to unpack the firmware upgrade from the nextbookusa site. I then put the Google apks, SuperUser, Rootexplorer, and re-packed it with a custom bootanimation. Because of my serial # I couldn't use DocHoppy rom without getting that "Invalid Update" error, but using their firmware seems to work.
My next goal is to find a way to get the "Accounts & Sync" into the settings! One of my apps is getting an "Error 42" which is an Android Market authentication error... however, other apps have worked without any problems so it's difficult to tell if that's the issue I'm having.
Click to expand...
Click to collapse
Install "Quick Sync Settings" to get to the hidden settings view.
Also did you use this guide for market? That one worked great for me.
Thanks
Working great for me so far. Thanks sharing your work.
Nice!!!
I have the image as well... Can you tell me how to open it or point me in the direction of a tutorial? I've been looking for weeks and couldnt find any info until this thread I have a yf091... as well. Thanks in advance for any help.
lost enigma 208 said:
I have the image as well... Can you tell me how to open it or point me in the direction of a tutorial? I've been looking for weeks and couldnt find any info until this thread I have a yf091... as well. Thanks in advance for any help.
Click to expand...
Click to collapse
Not sure if this rom will work for you, just guessing by your serial number. If it is to work changing between roms on these tablets is very easy. Just download the image onto the root of your sdcard, rename it update.zip (not update.zip.zip) your tablet will recognize it as an update and ask if you want to proceed. If you say yes then follow the prompts and your in business!
Sent from my NXM726HN using XDA App
Just go this to day and was plesantly suprised to find this rooted rom. Just wanted toy let you know that my S/N is YF12112xxxx and this rom work prefect for me (so far) Thanks for all the work you guys have done here. Also is there anyway to over clock the processor in out tabs?
Thanks for the comments thus far!
I would like to overclock this thing too, but that might be further down the road, as priority is on getting a different file-system for the /system volume.
Version 0.4 is coming next.
FYI:
There will be a larger span of time between updates on this particular rom for the N7p, because I will be using more stable conjumbles of things from other roms for this device. This rom is more of a remix or derivative than an entirely different rom.
Again thanks for all the hard work. I have a few requests. first since we cant change the Adhoc ( using wifi from another android device) on the fly with out RW access can you please add the ability to connect to adhoc wifi in the next build? Also i love google currents app but we cant use is on our device because we don't have map's installed. can that be added as well?
fireproof34 said:
Again thanks for all the hard work. I have a few requests. first since we cant change the Adhoc ( using wifi from another android device) on the fly with out RW access can you please add the ability to connect to adhoc wifi in the next build? Also i love google currents app but we cant use is on our device because we don't have map's installed. can that be added as well?
Click to expand...
Click to collapse
Most of the N7P roms out there now have Market installed and working. Why not just install these apps yourself?
I only suggest so because for the time being, the device is limited to its minimal capacity for apps without full-on apps2SD. Besides, for a tablet like this, you want to keep the system apps to a minimum and de-bloated for performance whenever possible.
sgtfoo said:
Most of the N7P roms out there now have Market installed and working. Why not just install these apps yourself?
I only suggest so because for the time being, the device is limited to its minimal capacity for apps without full-on apps2SD. Besides, for a tablet like this, you want to keep the system apps to a minimum and de-bloated for performance whenever possible.
Click to expand...
Click to collapse
As far air know they can not be installed with out write access. I f they can please let me know how and I will be more then ecstatic to get them both installed.thanks.
Sent from my NXM726HN using XDA App
fireproof34 said:
As far air know they can not be installed with out write access. I f they can please let me know how and I will be more then ecstatic to get them both installed.thanks.
Sent from my NXM726HN using XDA App
Click to expand...
Click to collapse
Oh I was talking about currents and maps. Both of those can be installed via market. I have them both on my tablet.
The ad-hoc networking is something worth putting in a later release though.
good mention.
Runs great
Works great on my
NextBook Premium 7
Serial: YF121121263
Manufactured: Dec 2011
I just joined and know very little about tablets
but this image is better than the rest. I'm 63 retired and would like to learn how to do what you do.
Again, thanks for your hard work.
lrmahon
Welcome. Lots of searching and trial and error ,but this is a great place to start!
lrmahon said:
Works great on my
NextBook Premium 7
Serial: YF121121263
Manufactured: Dec 2011
I just joined and know very little about tablets
but this image is better than the rest. I'm 63 retired and would like to learn how to do what you do.
Again, thanks for your hard work.
lrmahon
Click to expand...
Click to collapse
Sent from my NXM726HN using XDA App

[App] PDroidAddon Camera and Microphone Permission [Update: v1.2, 2012-08-08]

Hi,
here it is, the beta realase of PDroidAddon for managing Camera and Microphone permissions. First of all: Big thanks to Svyat who developed the main application.
Please note: I'm not responsible for any damages on your device if you use my software. The app is not fault tolerant, so don't use it if you do not know what to do and how to install it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
UPDATE to v1.1, PDroid goes more secure:
Fixed leaking of android_id for most applications, but not for google (they store the android_id in privacy db -> will fix that later, because it is much more work than I thought). Android_id will randomly generated. No, there is no option to block it, because otherwise your phone will not boot anymore You can fake your android_id in main PDroid application if you choose the option: "Sim Info" and then block it
Fixed leaking of cell location and signal strength. You can block this in main application if you choose: "Network Location" or "GPS location" option. If you check one of this options (random or block), cell location will be blocked.
UPDATE to v1.2, PDroid goes more and more secure:
Fixed leaking of privacy data
added feature for Wifi-Privacy. You can block all wifi information without any crashes of application if you use the option: "Network Info" and then select "block". Be aware of using this option! If you block system applications you can get problems with adding new wifi networks, because the system doesn't get any scan-results.
be also aware with android_id blocking, some apps will not start if you use this option! Implemented in option "Sim Info" in main application!
Minor bugfixes of pdroid
Added functions for voicemail number (some applications were able to get it via hidden methods) -> no leaking of data
Added feature to block phone_type and network_type (e.g. phone type: CDMA, SIP networ type: HSDPA, etc). It is also implemented in in option "Network Info" in main application
If you install v1.2 just use the patches in attachment, no filecopy needed anymore
UPDATE: PDROID and PDROIDADDON now supports JellyBean:
PDroid and my Addon now supports jellybean. Patches will come out later, build for galaxys 2 is available.
Requirements:
Rooted Phone
ClockworkMod Recovery
If you integrated sys Dalvik into ROM with Titanium Backup, you will have to undo it
knowlegde about compiling your own rom, until ready patcher is out
ICS based ROM (e.g. CM9, because patch based on CM9)
Installation Instruction(for own compiling)::
1) Do sync
repo sync -j16
Click to expand...
Click to collapse
2) Apply the patches in attachment[files in patches.rar], Please note that patches not tested, if any failure -> contact me:
patch -p1 < ~/build.diff
patch -p1 < ~/libcore.diff
patch -p1 < ~/frameworks.diff
Click to expand...
Click to collapse
3) Copy the following files[Files in archive replacements.rar] and overwrite them:
AudioRecord.java and MediaRecorder.java to -> yourdir/frameworks/base/java/android/media/AudioRecord.java & MediaRecorder.java
Camera.java to -> yourdir/frameworks/base/core/java/android/hardware/Camera.java
MicrophoneInputStream.java to -> yourdir/frameworks/base/core/java/android/speech/srec/MicrophoneInputStream.java
Click to expand...
Click to collapse
If you use v1.2, just apply patches:good:
4) go to source tree: yourdir/device/your_manufacturer(e.g.samsung)/your_device_model/your_device.mk and edit the file(your_device.mk) adding following:
# Secure Fake Image
PRODUCT_COPY_FILES += \
privacy/PDroid.jpeg:system/media/PDroid.jpeg
Click to expand...
Click to collapse
5) create directory in your source tree yourdir/privacy <- "privacy" is the new directory and copy the PDroid.jpeg (see ATTACHED THUMBNAILS) in this folder -> yourdir/privacy/PDroid.jpeg. For people who don't compile on their own, make sure that PDroid.jpeg is in system/media/ !
6) Compile the source:
. build/envsetup.sh
brunch your_device
Click to expand...
Click to collapse
7) Flash the *.zip
8) Deinstall PDroid.apk if it already exist in your system (you can save all settings with Titanium Backup and after that restore it)
9) Install PDroid.apk and PDroidAddon.apk from archive Apps.rar
10) Restor settings from PDroid with Titanium Backup. If you don't have that app, just copy files manually!
11) Have fun!
About the Application:
This application allows you to block Camera and Microphone permission of all applications listed inside. It is an Addon app for PDroid and interacts with it. It works in black_list_mode, that means -> Above you can see camera and microphone icon. If you check the checkbox of an app you will block permissions
How to use the App:
1) Start the application from Launcher
2) Select preference button from your device and click "Reload Applications" (normally not needed)
3) Select all checkboxes from apps you want to revoke permissions
4) Select preference button from your device and click "Apply Rules"
5) Ready -> all settings are stored now and interacts with pdroid
Known Bugs::
After you change settings of the same application with original PDroid, settings for microphone and camera permission will be deleted -> go to addon application and click "Apply Rules" and all works fine.
Microphone Stream of origin Phone app can not interrupt with this version
Some Applications crash if you revoke Camera permission and it wants to take a video, but it depends on application and if dev surround his code with try/catch
If you revoke permissions of stock camera -> FC in Face-Unlock
Data access Toast doesn't show which permission blocked (camera, microphone)
READY BUILDS:
Until now there is only a ready build available for Samsung Galaxys S2 CM9. If you own that device, just flash the following *.zip from Recovery and skip the installation instructions to point 8(Deinstall origin PDroid.apk.....)
Tons of downloads, no response if it works -> down!
Click to expand...
Click to collapse
JELLY BEAN BUILDS:
Just flash zip and install PDroid.apk and PDroidAddon.apk from this thread and have fun!
Tons of downloads, no response if it works -> down!
Click to expand...
Click to collapse
BUG REPORT RULES:
Do not say : "it doesn't work, fix it!" -> post LogCat and I will have a look
This is a beta Version of the app, but works like a charm on my own device. I don't know if it works perfectly on all devices, so please test it
IF YOU LIKE MY WORK DONATE A BEER
reserved
very nice !
Hey
today i made a complete new flash of you distributed ready built for SG2 and tested pdroid with the app "Network Info II". In the settings I denied access to everything. But the result was this (see attachment) it was still able to get the android ID and the cell side information.
Yes, thank you for information. I've fixed it, will release it later.
First THANKS for your nice work!
I only would like to know which version of PDroid did you use to start this work?
As far as I know Syvat only released the source code of 1.27 of his nice app and not the latest 1.32. Or did you manage to get the newest code from him?
it feels a bit as if the phone is a bit slowed down by pdroid. can someone confirm this? I mean especially if some that has to be granted is accessed, e.g. viewing contacts with stock contact-app is slower on the startup.
testman86 said:
First THANKS for your nice work!
I only would like to know which version of PDroid did you use to start this work?
As far as I know Syvat only released the source code of 1.27 of his nice app and not the latest 1.32. Or did you manage to get the newest code from him?
Click to expand...
Click to collapse
It is based on v1.32 -> look at google code.
It seems to be that many people are not interested to this, right? I can't understand why, because privacy is very important for every android user of us.
Alright, does anyone of you want to have the fixed version with new framework changings of cell-phone-location and android_id random generator? (google can access android_id, because they store it in privacy database. That is one point i'm going to fix in the next few days, because it is much more work than I thought)
i like this app!
and i hope there will be more updates for it
will there ever be a method to install this app without doing this installation?
your instructions are very good but it still difficult (at least for me)
CollegeDev said:
It is based on v1.32 -> look at google code.
It seems to be that many people are not interested to this, right? I can't understand why, because privacy is very important for every android user of us.
Alright, does anyone of you want to have the fixed version with new framework changings of cell-phone-location and android_id random generator? (google can access android_id, because they store it in privacy database. That is one point i'm going to fix in the next few days, because it is much more work than I thought)
Click to expand...
Click to collapse
I was trying to get this up and running on Jellybean today, since LBE security isn't working, so Pdroid has a nice opportunity to get there first
Unfortunately I was getting null pointer exceptions on boot, due to being unable to find the privacy service (which was running though from what I see). The patches don't apply perfectly, but they're not far off (I refer to your patches in the OP, I didn't add the new files for camera and sound etc yet).
But yeah, it doesn't look too difficult to get it going, just needs a few tweaks where google rearranged stuff
Very interesting though, and quite keen to see this go further
CollegeDev said:
It is based on v1.32 -> look at google code.
It seems to be that many people are not interested to this, right? I can't understand why, because privacy is very important for every android user of us.
Alright, does anyone of you want to have the fixed version with new framework changings of cell-phone-location and android_id random generator? (google can access android_id, because they store it in privacy database. That is one point i'm going to fix in the next few days, because it is much more work than I thought)
Click to expand...
Click to collapse
Does this fix mean you make a "fork" of PDroid or only a modified 1.32 Version or is this implemented in your addon?
I also think that privacy is the most important part in Android to care about!
Edit: I think most of the users are not able to find this thread in the 167 pages of PDroid thread And I think most are interested but only do not know about this.
And I think it would be nice to have this camere permission and Microphone and the bug fixes in the main PDroid app instead of having the need to use both and make two kernel patches and so on.
I am not a Dev this are only my little ideas
you should submit this amazing code to the fnv repo for jelly bean and cm for inclusion into cm10! great work
Sent from my Galaxy Nexus using Tapatalk 2
pulser_g2 said:
I was trying to get this up and running on Jellybean today, since LBE security isn't working, so Pdroid has a nice opportunity to get there first
Unfortunately I was getting null pointer exceptions on boot, due to being unable to find the privacy service (which was running though from what I see). The patches don't apply perfectly, but they're not far off (I refer to your patches in the OP, I didn't add the new files for camera and sound etc yet).
But yeah, it doesn't look too difficult to get it going, just needs a few tweaks where google rearranged stuff
Very interesting though, and quite keen to see this go further
Click to expand...
Click to collapse
Yes, I've never looked on JB because I'm running on ICS . Do you manage the port to JB right now? You have to add the new files, otherwise my AddonApplication will not work! Thank you
Please note that the patches now old, I will update the new patches in the next few days. Source is ready and build too, but I haven't enough time to update them right now.
Does this fix mean you make a "fork" of PDroid or only a modified 1.32 Version or is this implemented in your addon?
I also think that privacy is the most important part in Android to care about!
Edit: I think most of the users are not able to find this thread in the 167 pages of PDroid thread And I think most are interested but only do not know about this.
And I think it would be nice to have this camere permission and Microphone and the bug fixes in the main PDroid app instead of having the need to use both and make two kernel patches and so on.
I am not a Dev this are only my little ideas
Click to expand...
Click to collapse
First of all: I modified some core classes in framework which control access to microphone and camera and bind it into PDroid -> new permissions can interact with PDroit itself. The new version also included a lot of framework changings AND changings in the patches, not in AddonApplication. My Application only interacts with pdroid, the most changes are in framework itself. I'm uploading the new build right now, patches will come out later.
And I think it would be nice to have this camere permission and Microphone and the bug fixes in the main PDroid app instead of having the need to use both and make two kernel patches and so on.
Click to expand...
Click to collapse
Yes, and that is the problem. I can't bind it into PDroid, because svyat doesn't released the source of its app -> wrote my own addonApplication.
you should submit this amazing code to the fnv repo for jelly bean and cm for inclusion into cm10! great work
Click to expand...
Click to collapse
Cyanogenmod will never include this sort of framework changings in their roms!
Just wanted to say thank you for what you have created here. I'm stuck on the pdroid sidelines at the moment as I have been running jb on my galaxy nexus. I hope to be back in the game soon, but just wanted to say how much i appreciate your effort towards a more complete security solution. it's very important to me just on principle to be sure that no one is taking my personal information without my knowledge and consent and thanks to you we are another step closer to having control of our own information. great job, keep up the good work, and many, many thanks.
Is this addon a standalone?
i need to flash one of your .zip and than i still install the pdroid app from market and everythings fine? ^^
hopefully the pessimists will not bring their pain here, too
hooray!
Will try after ditching unity for mint mate.
Px80 said:
Is this addon a standalone?
Click to expand...
Click to collapse
Nope, not really. You need to install pdroid too and not the PDroid app from market, because that doesn't work. If you own GS2 -> Just flash the *.zip and install PDroid.apk and PDroidAddon.apk from attachment -> finish!
Px80 said:
i need to flash one of your .zip and than i still install the pdroid app from market and everythings fine? ^^
Click to expand...
Click to collapse
Yes, look above. You need PDroid for this Addon!
UPDATE:
I was able to block android_id for market and other google apps (e.g. gsf), but if you revoke or fake the ID, all google apps won't work anymore. I don't know why the applications will not work anymore, because you get lots of server errors. Hopefully will find out a solution for that.
no twitter said:
hooray!
Will try after ditching unity for mint mate.
Click to expand...
Click to collapse
Please report if it works for you. Nobody until now wrote that it works or not, shame!
CollegeDev said:
Nope, not really. You need to install pdroid too and not the PDroid app from market, because that doesn't work. If you own GS2 -> Just flash the *.zip and install PDroid.apk and PDroidAddon.apk from attachment -> finish!
Click to expand...
Click to collapse
Nope desire s
Sent from my HTC Desire S using xda app-developers app
Px80 said:
Nope desire s
Sent from my HTC Desire S using xda app-developers app
Click to expand...
Click to collapse
I'm sry to say it in this way, but I hate this fu*** stupid answer! Please, give me more information:
Did you compile your own?
if so, was patching successful?
which rom?
Did you follow ALL steps in install instructions?
Just explain me detailed enough what you have done, ok?
//sry, did you mean your device or the functionality of my AddonApplication?

Categories

Resources