[GUIDE] Skip irritating SETUP WIZARD[SHARE] - Xiaomi Redmi 2 Guides, News, & Discussion

Evrytime we flash or clean flash a Custom ROM ,we have to go through SETUP WIZARD.I find this irritating when I don't have any cellular data and WiFi near me .Mostly on LOS/AOSP Extended type ROM where no skip option is available.So here is a bypass.
You just need PC and ADB installed
Procedure:-
After installing Custom ROM, mount system partition on T.W.R.P
Connect your phone to PC while device is on T.W.R.P mode.
Launch ADB and run following command
For skipping WiFi part only:-
Code:
adb shell sed -i 's/ro.setupwizard.wifi_required=true/ro.setupwizard.wifi_required=false/g' /system/build.prop
For skipping entire set up:-
Code:
echo "ro.setupwizard.mode=DISABLED" >> /system/build.prop
Original thread is here.
Reboot
Credit:- @organophosphate

raymond_bqg said:
Evrytime we flash or clean flash a Custom ROM ,we have to go through SETUP WIZARD.I find this irritating when I don't have any cellular data and WiFi near me .Mostly on LOS/AOSP Extended type ROM where no skip option is available.So here is a bypass.
You just need PC and ADB installed
Procedure:-
After installing Custom ROM, mount system partition on T.W.R.P
Connect your phone to PC while device is on T.W.R.P mode.
Launch ADB and run following command
For skipping WiFi part only:-
For skipping entire set up:-
Original thread is here.
Reboot
Credit:- @organophosphate
Click to expand...
Click to collapse
Just remove setup wizard apk from system using twrp file manager..

valenrock said:
Just remove setup wizard apk from system using twrp file manager..
Click to expand...
Click to collapse
Then can I set up later after booting ROM?Bcz setupwizard apk is deleted.

raymond_bqg said:
Then can I set up later after booting ROM?Bcz setupwizard apk is deleted.
Click to expand...
Click to collapse
Offcourse, it bring u directly to homescreen, then u can set all ur desire setup .

valenrock said:
Offcourse, it bring u directly to homescreen, then u can set all ur desire setup .
Click to expand...
Click to collapse
i cant find setup wizard apk anywhere in t.w.r.p file manager. Should be in system folder?

raymond_bqg said:
i cant find setup wizard apk anywhere in t.w.r.p file manager. Should be in system folder?
Click to expand...
Click to collapse
Mount system, navigate to 'system/priv app' through twrp file manager.

valenrock said:
Mount system, navigate to 'system/priv app' through twrp file manager.
Click to expand...
Click to collapse
Oops....I was not mounting system.Thanx...

valenrock said:
Mount system, navigate to 'system/priv app' through twrp file manager.
Click to expand...
Click to collapse
As I told before.....if I delete the setup wiz apk from system by twrp before booting,then it is directly booting to home screen but after that I can't access to setup by play store app.
How can I?As I already deleted setup wizard.

raymond_bqg said:
As I told before.....if I delete the setup wiz apk from system by twrp before booting,then it is directly booting to home screen but after that I can't access to setup by play store app.
How can I?As I already deleted setup wizard.
Click to expand...
Click to collapse
OK then, try to rename setupwizard.apk to something like setupwizard.bak from twrp file manager. Boot ur device, and rename the file again. Thats it..

cannot delete setupwizaard.apk (ended with ERROR: 1)
mine is dynamic partition

Hello, same issue, but not on HTC. I'm using Pixel Experience (Android 12) custom rom on SM-A217F U8, and I am not able to find the setup APK. Sorry for necroposting, but the Pixel setup requires face unlock, but I can't get past setup because my frontal camera doesn't work.

w4h1d said:
cannot delete setupwizaard.apk (ended with ERROR: 1)
mine is dynamic partition
Click to expand...
Click to collapse
joveaaron said:
Hello, same issue, but not on HTC. I'm using Pixel Experience (Android 12) custom rom on SM-A217F U8, and I am not able to find the setup APK. Sorry for necroposting, but the Pixel setup requires face unlock, but I can't get past setup because my frontal camera doesn't work.
Click to expand...
Click to collapse
decompile 'settings provider' apk
go to value/bools
set dev.device.provisioned to true
set dev.user.setup.complete to true
compile and sign with platform signature
replace original apk + delete setup wizard + wipe data + reboot

loopypalm said:
decompile 'settings provider' apk
go to value/bools
set dev.device.provisioned to true
set dev.user.setup.complete to true
compile and sign with platform signature
replace original apk + delete setup wizard + wipe data + reboot
Click to expand...
Click to collapse
yes, but where is the setup wizard apk on pixel experience 12? I have not been able to find it on twrp

joveaaron said:
yes, but where is the setup wizard apk on pixel experience 12? I have not been able to find it on twrp
Click to expand...
Click to collapse
does it open when the system boots ?

loopypalm said:
does it open when the system boots ?
Click to expand...
Click to collapse
yes

joveaaron said:
yes
Click to expand...
Click to collapse
it should be in one of those :
system/app
system/priv-app
system/product/app
system/product/priv-app
system/system-ext/app
system/system-ext/priv-app
vendor/app

loopypalm said:
it should be in one of those :
system/app
system/priv-app
system/product/app
system/product/priv-app
system/system-ext/app
system/system-ext/priv-app
vendor/app
Click to expand...
Click to collapse
I have found it now, in /system_root/system/priv-app/SetupWizardPrebuilt/SetupWizardPrebuilt.apk but if I do rm -rf SetupWizardPrebuilt.apk, it says "Read-only file system". If I try to remount /system_root as r/w (mount -o remount,rw /system_root) it says "'/dev/block/dm-0' is read-only". How can I solve this? (all of this in TWRP, of course)
to find it I had to use find on root

Nevermind, I found out how
Open ADB shell and run this:
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1
that will skip the setup
to not restart the phone to finish the setup, force stop the setup app.
e.g. am force-stop com.google.android.pixel.setupwizard
To find out your setupwizard's package name, use pm list packages -f
then all of your installed apps will get listed. just search for setup or wizard and select the one you think is the setup wizard.

Thank you so much, guys. I have been struggling so hard with this.
I am building a ROM from stock (differnt device).
For some reason, android needs the SetupWizard the first time it starts. It works without it (just delete the setupwizard.apk and all related Goolag-stuff before zipping to flashable ROM).
But then some things don't work, e.g. the Nav Buttons, also tapping the settings build section several times does not unlock Developer Options and no settings shortcuts when swiping down in home screen.
I tried this one:
decompile 'settings provider' apk
go to value/bools
set dev.device.provisioned to true
set dev.user.setup.complete to true
compile and sign with platform signature
replace original apk + delete setup wizard + wipe data + reboot
Click to expand...
Click to collapse
However, the problem is after recompiling and re-signing (or even not signing), put the settingsprovider.apk back to the right place system\priv-app, flashed the image with
TWRP . But during the installation process the device gets stuck. The same image with the original settingsprovider.apk installs correctly. So it must be the changes or the signature.
Anyways, this one works:
Open ADB shell and run this:
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1
Click to expand...
Click to collapse
It does not only skip the bloody wizard, it also kind of completes the setup process and then nav buttons, settings etc. work fine.
Now I have to learn how to make it work before installation.
If you have an idea how to solve this signature problem, I would appreciate very much.
Thanks.

Related

[HOW TO] Remove ads using adfree android

This was created when we didn't have S-OFF yet.
If you have S-OFF or /system overlay script you won't need to go through all the steps simply download adfree android.
I know most of you will be able to do this. But I believe that it might not be as easy for the beginners. So here is a little walk through.
!NEEDs ROOT!
1. Download Adfree Android
2. Wait for it to determine local hosts then click on download and install hosts.
Now it will try to replace /system/etc/hosts but fail (it should reboot the phone but it didn't reboot mine)
4. go to adb and reboot your phone into recovery (with power on+volume down OR the command: "adb reboot recovery")
5. Open up the recovery-windows (start recovery-windows (make sure your in the right directory))
6. mount your system and sdcard you might be able to just use mount and mount everything but I've mounted them serperatly.
Here's how: "adb shell mount /system" next "adb shell mount /sdcard"
7. Now we're going to put it in the etc directory where it should be: "adb shell cp /sdcard/hosts /system/etc"
8. reboot the phone ("adb reboot")
That should remove most of the adds.
I know it's explained on a really low level of knowledge but I wanted to make it accessible for all of you.
Only the needed codes:
Code:
1. adb reboot recovery
2. start recovery-windows
3. adb shell mount /system
4. adb shell mount /sdcard
5. adb shell cp /sdcard/hosts /system/etc
6. adb reboot
has it the option to only block browser ads? when I tried it time ago it couldn't. I don't like to block the app ads
No it removes the adds everywhere. It simply blocks the links to adds. it doesn't actually remove them. they are still being called but they just don't show up.
Hi,
I have this very same problem for a long time now, with the constant reboots etc.
Followed your steps, but after the reboot, as soon as I press the button to update the hostfile, it reboots my phone
Thanks anyway...
PirateNL said:
Hi,
I have this very same problem for a long time now, with the constant reboots etc.
Followed your steps, but after the reboot, as soon as I press the button to update the hostfile, it reboots my phone
Thanks anyway...
Click to expand...
Click to collapse
Do you have root access?
Have you checked if the hosts file is at the root of your SD?
A good guide, if a little misplaced, but another option is the /system overlay.
JonasDroid said:
Do you have root access?
Have you checked if the hosts file is at the root of your SD?
Click to expand...
Click to collapse
Yes and yes
where is the most recent hosts file? I'm using a vibrant and it says it worked, but of course, it doesn't. And it doesn't copy the hosts file to my sdcard either ? odd
Hello ,
Finally I got Adfree working
Ok it's not perfect because app continue to reboot the phone after updating the hosts file ,
and we need to copy it manually in recovery mode but it better than nothing
Thank you very much JonasDroid for this little How to .
PS:
For me step 5
JonasDroid said:
Code:
5. adb cp /sdcard/hosts /system/etc
Click to expand...
Click to collapse
was
Code:
adb shell cp /sdcard/hosts /system/etc
Bye.
Yeah indeed its adb shell cp thx for letting me know
Sent from my Legend using XDA App
Can you link me the apk of adfree? I can't download the app from my phone
BTW it's 'ADs" single d
short for advertisment (notice the single d?)
Fixed that English is not my main language
Sent from my Legend using XDA App
JonasDroid said:
5. Open up the recovery-windows (start recovery-windows (make sure your in the right directory))
Click to expand...
Click to collapse
Can't get "start recovery-windows" to work. What is the "right directory"?
Things seems to have worked for me without that portion. Many thanks, I will now change my review in the market for that app from one star to three stars. If they include a note describing this problem upfront I may bump it up further.
It could simply be called start recovery (depending on where you got your rooting tools)(if you've got the from The Unlockr you'll need the -windows)
If you have S-OFF or if you use an /system overlay script these steps aren't needed. (It was created when we didn't have S-OFF for our legends yet.)
Anyone having problems with adfree scripts on Legend since Froyo update? Neve had a problem witha rooted 2.1, but have lots of problems since rooted Froyo 2.2
It seems HTC may have some service which is checking for modifications to symlinks etc.
When I run adfree in my S-off CM7, i get an java.io.EOFException.
Someone else having this?
I had some problems at first, but reinstalling adfree android from market seemed to help. No problem now with CM7 (01/03 from ali ba) and s-off.
adfree no block ads!
Hi,
i install the adfree on my legend with 2.2 with sense.
i did download the host from the app all work ok got a message say it was success install and need to restart the phone.
i did it but still get all the ad like before on all apps.
pls help!
Have you followed the steps? (explained in first post)
Note that you should have a rooted legend (if you don't know what that is then you don't have one)

[MOD] Fully deodexed/zipaligned App and Framework

You will have to manually install it via adb push or adb shell.
Below is the link for a package that contains /system/app and /system/framework fully deodexed and zipaligned (not signed). It's the Stock version, I didn't remove any apk or framework.
Use at your own risk!
Backup your /system before upgrade!
I did notice speed increase and better memory utilization.
http://www.usk.bz/android/system-deodexed.bz2
EDIT: Here is a quick howto do it. Do some research, speacially on the "Recovering from a software brick" thread posted by Designgears. You may need it, in ase you don't execute this right.
Warning: Do those steps carefully! If you get any error as a return for a command you did, stop immediately and post here with the error to make sure it's safe to continue or what you should do before continue.
1. Download the file system-deodexed.bz2 (it's a tar.bz2)
2. uncompress it with tar zxf system-deodexed.bz2. You will get a folder called "system" with two other folders inside(app and framework).
3. First push it to the device to a safe location (your internal sdcard):
Code:
adb push system /mnt/sdcard/deodexed/system
4. Now open an adb shell and backup the folders you will mess with to the sd card, in case you need to recovery them
Code:
adb shell
$ su
# mkdir /mnt/sdcard/original_system
# mkdir /mnt/sdcard/original_system/app
# mkdir /mnt/sdcard/original_system/framework
# cp /system/app/* /mnt/sdcard/original_system/app
# cp /system/framework/* /mnt/sdcard/original_system/framework
5. Now the tricky part, you will get force closes on the device screen, because you will do this with the system running, don't worry for now. It should clear up once you are done. (Thx for the tip!) Lets update the system with the deodexed files. While still on the adb sheel as root, from the previous step, continue with these commands:
Code:
# stop
# mount -o rw,remount /dev/block/mmcblk0p12 /system
# cp /mnt/sdcard/deodexed/system/framework/* /system/framework
# cp /mnt/sdcard/deodexed/system/app/* /system/app
# rm /system/framework/*.odex
# rm /system/app/*.odex
6. Once you are done, exit the adb shell and do a reboot:
Code:
adb reboot
It should take a little longer to reboot, its normal for the first time. Then you should have normal boot speeds.
I recommend do this on a clear system, or that you do a factory reset once you reboot. The reason for that is that sometimes you get some data corruption during the force closes (corruption on the configuration files, not user data). But a factory reset fixes that.
If all go well, you have a deodexed system and are ready to use some Mods!
Have fun!
[ Known issues ]
- None! Please report if you notice anything!
http://forum.xda-developers.com/showthread.php?t=961382
Hey, here is a fully working on I did over the weekend.
Thanks! I didn't see it before. Will still compare with mine to see which package I messed up.
uskr said:
Thanks! I didn't see it before. Will still compare with mine to see which package I messed up.
Click to expand...
Click to collapse
usually packages with sound files get messed up for whatever reason when deodexing
designgears said:
usually packages with sound files get messed up for whatever reason when deodexing
Click to expand...
Click to collapse
Are you still planning on posting your mod version with steps? I am asking because I want to take look before making I own edits if necessary. I figured you may have it the way I want and it would less work for me either way.
designgears said:
usually packages with sound files get messed up for whatever reason when deodexing
Click to expand...
Click to collapse
Do you use an automated script to deodex them? or manually do one by one? The BOOTCLASSPATH dependencies sometimes give me some headache.
Also, do you mind to share which zip compression level do you use to repackage them?
Thank again!
designgears said:
usually packages with sound files get messed up for whatever reason when deodexing
Click to expand...
Click to collapse
Actually, I just tried yours and it has the same problem. Can you try to add the "Social Status" motorola widget to your MotoBlur and tap it to Setup your account and see if it starts something?
Mine doesnt start the Setup intent and I can see a Java exception on adb logcat.
uskr said:
Actually, I just tried yours and it has the same problem. Can you try to add the "Social Status" motorola widget to your MotoBlur and tap it to Setup your account and see if it starts something?
Mine doesnt start the Setup intent and I can see a Java exception on adb logcat.
Click to expand...
Click to collapse
Nevermind. Neither were bugged. I installed the deodexed without a data wipe and something got corrupted on the /data (some configuration file or something). I did a factory data reset and everything is working!
Not to play with changing some apks!
Hi guys,
I don't have an Atrix for now, so maybe it's just a dumb question. Sorry if it is.
With the Defy, if you push files and your phone won't reboot because you messed with something, you're screwed, as we don't have a true custom recovery. (you need a booting system to be able to get to the bootstap custom recovery, which you can't get into if your system is messed and the phone doesn't boot).
So when we are in that case with a Defy, our only option is to reflash a Motorola signed sbf file using RSD lite, root again, install again bootstrap recovery,... and try again ;-).
I guess it has to be the same with the Atrix (as the bootloader is locked as in the Defy)
So my question is:
- Are there already Atrix sbf files out there to recover a soft-bricked Atrix?
- If not, how do you recover it if you messed with the system files and the Atrix won't boot into a working system (of at least a state where you can get root shell though adb).
adlx.xda said:
So my question is:
- Are there already Atrix sbf files out there to recover a soft-bricked Atrix?
- If not, how do you recover it if you messed with the system files and the Atrix won't boot into a working system (of at least a state where you can get root shell though adb).
Click to expand...
Click to collapse
If you only messed only with /system/app or /system/framework folders/files, designgear posted how to recovery those files using the stock, that you can also download a tar with all the /system files from this forum.
Updated the post with a short howto.
If you get a software brick, search the forum for a post from designgears about how to recovery from a software brick.
As per the link below - I type "stop" once in the adb shell and it allowed me to transfer everything over without corrupting everything.
http://forum.androidcentral.com/mot...cks/30539-how-manually-deodex-your-phone.html
slhawkins said:
As per the link below - I type "stop" once in the adb shell and it allowed me to transfer everything over without corrupting everything.
http://forum.androidcentral.com/mot...cks/30539-how-manually-deodex-your-phone.html
Click to expand...
Click to collapse
Thx. Added to the howto!
uskr said:
Thx. Added to the howto!
Click to expand...
Click to collapse
Add the following to your instructions otherwise you will get an error message
You need the below line before the others
# mkdir /mnt/sdcard/original_system
The below are in your original instructions but the above is needed prior to the below
# mkdir /mnt/sdcard/original_system/app
# mkdir /mnt/sdcard/original_system/framework
lpsi2000 said:
Add the following to your instructions otherwise you will get an error message
You need the below line before the others
# mkdir /mnt/sdcard/original_system
The below are in your original instructions but the above is needed prior to the below
# mkdir /mnt/sdcard/original_system/app
# mkdir /mnt/sdcard/original_system/framework
Click to expand...
Click to collapse
Thanks! Updated.
I want to try this but i dont have linux to uncompress the file. possible to recompress it in something like zip or rar format?
NguyenHuu said:
I want to try this but i dont have linux to uncompress the file. possible to recompress it in something like zip or rar format?
Click to expand...
Click to collapse
Extract it to the file with no extension.
Open winrar.
Drag drop this file into that (u'll find the zipped up contents)
Drag drop these to ur desktop or anywhere u want them
NguyenHuu said:
I want to try this but i dont have linux to uncompress the file. possible to recompress it in something like zip or rar format?
Click to expand...
Click to collapse
push the file to sdcard of the device and using tar there after all it is also a linux system
diablo009 said:
Extract it to the file with no extension.
Open winrar.
Drag drop this file into that (u'll find the zipped up contents)
Drag drop these to ur desktop or anywhere u want them
Click to expand...
Click to collapse
great! thanks.
uskr said:
I recommend do this on a clear system, or that you do a factory reset once you reboot. The reason for that is that sometimes you get some data corruption during the force closes (corruption on the configuration files, not user data). But a factory reset fixes that.
Click to expand...
Click to collapse
Hi all,
I just did deodexed my atrix. Thanks much for the wonderful work~!!!
Mine has handful of apps installed prior to deodex. I was wondering what would be implication for not having clean system after deodex.

[SOLVED] [Q] ifont font change > stuck at boot logo

Phone was originally ICS, then upgraded to the official Jelly Bean, and rooted.
After selecting a font and having ifont set it, phone is stuck in the boot process (LG Logo).
Probably there is some problem with the selected font. I think ifont places the font at /system/fonts and renames it so that the device thinks it the default one.
I can put the phone in the "Recovery mode" by pressing Vol up + Power, but don't know what to do next.
Haven't tried Vol up + Vol down + Power yet. Probably it works, but I want to avoid hard reseting as I haven't got backups at a desktop computer, only in internal "/sdcard" on the phone.
I would appreciate a way to boot or access the phone's file system. Anything but a hard reset.
EPa said:
Phone was originally ICS, then upgraded to the official Jelly Bean, and rooted.
After selecting a font and having ifont set it, phone is stuck in the boot process (LG Logo).
Probably there is some problem with the selected font. I think ifont places the font at /system/fonts and renames it so that the device thinks it the default one.
I can put the phone in the "Recovery mode" by pressing Vol up + Power, but don't know what to do next.
Haven't tried Vol up + Vol down + Power yet. Probably it works, but I want to avoid hard reseting as I haven't got backups at a desktop computer, only in internal "/sdcard" on the phone.
I would appreciate a way to boot or access the phone's file system. Anything but a hard reset.
Click to expand...
Click to collapse
Stupid question time ...
I presume that you have CWM or TWRP recovery installed and took a full Nandroid backup before trying to play around with system files?
SimonTS said:
Stupid question time ...
I presume that you have CWM or TWRP recovery installed and took a full Nandroid backup before trying to play around with system files?
Click to expand...
Click to collapse
Stupid answer: No
EPa said:
Stupid answer: No
Click to expand...
Click to collapse
I'm not sure you're going to have much luck recovering the phone without a hard reset I'm afraid. I've seen quite a few threads before where people have tried to change the default fonts and it's gone wrong, but I've never tried it or wanted to so I can't offer any other advice really.
Ok, having connected usb and using Vol down + Power I get to the Android system recovery.
Options are
reboot system now
apply update from ADB
wipe data/factory reset
wipe cache partition
wipe nv partition
toggle console UART log
Can I do anything from there?
EPa said:
Ok, having connected usb and using Vol down + Power I get to the Android system recovery.
Options are
reboot system now
apply update from ADB
wipe data/factory reset
wipe cache partition
wipe nv partition
toggle console UART log
Can I do anything from there?
Click to expand...
Click to collapse
You could, potentially, create your own ADB update .zip file containing the original files from /system/fonts
SimonTS said:
You could, potentially, create your own ADB update .zip file containing the original files from /system/fonts
Click to expand...
Click to collapse
Sounds great. I already have adb drivers installed on my windows machine. Now where do I get adb client? Do I need the whole android SDK?
Solved.
Downloaded android SDK, then used adb shell command which gave me access to the phone's OS, remounted the file system as read-write, copied a valid font in place of Roboto-Regular.ttf (that's what ifont had replaced with my obviously problematic font), rebooted, everything fine.
Thanks a million SimonTS..
By the way if anyone could point me to / send me a copy of the original (I don't have it anymore) Roboto-Regular.ttf found in their /system/fonts? Thank you.
EPa said:
Solved.
Downloaded android SDK, then used adb shell command which gave me access to the phone's OS, remounted the file system as read-write, copied a valid font in place of Roboto-Regular.ttf (that's what ifont had replaced with my obviously problematic font), rebooted, everything fine.
Thanks a million SimonTS..
By the way if anyone could point me to / send me a copy of the original (I don't have it anymore) Roboto-Regular.ttf found in their /system/fonts? Thank you.
Click to expand...
Click to collapse
http://www.filedropper.com/roboto-regular
SimonTS said:
http://www.filedropper.com/roboto-regular
Click to expand...
Click to collapse
Got it! Thank you once more!
EPa said:
Solved.
Downloaded android SDK, then used adb shell command which gave me access to the phone's OS, remounted the file system as read-write, copied a valid font in place of Roboto-Regular.ttf (that's what ifont had replaced with my obviously problematic font), rebooted, everything fine.
Thanks a million SimonTS..
By the way if anyone could point me to / send me a copy of the original (I don't have it anymore) Roboto-Regular.ttf found in their /system/fonts? Thank you.
Click to expand...
Click to collapse
How did you get ADB control from the stock recovery?
Thanks
h078 said:
How did you get ADB control from the stock recovery?
Thanks
Click to expand...
Click to collapse
I am not sure what you mean.. isn't android sdk and its tools (like adb) supposed to give you this kind of control on normal (ie unflashed, unrooted) phones? What were someone who wanted to develop for android to do if this control didn't exist?
Anyway it just happened and I thought it was natural. It was the first time I had to deal with android at that level.
So basically my answer is: I don't know, wasn't booting my phone in (stock) recovery (by means of power+volume down), connecting it via the usb cable to the desktop and using adb (which was included in google's sdk for android) supposed to give me this kind of control?
It's little out of topic, but there is (it think so) real problem with apps which modify the fonts. I have the same problem with Font Installer. I set font, then reboot and bootIoop. I had to reflash ROM. I don't know what goes wrong. But if I copy /system/fonts and rename to roboto-regular.ttf and reboot everything is normal (font changed, everything works)
EPa said:
I am not sure what you mean.. isn't android sdk and its tools (like adb) supposed to give you this kind of control on normal (ie unflashed, unrooted) phones? What were someone who wanted to develop for android to do if this control didn't exist?
Anyway it just happened and I thought it was natural. It was the first time I had to deal with android at that level.
So basically my answer is: I don't know, wasn't booting my phone in (stock) recovery (by means of power+volume down), connecting it via the usb cable to the desktop and using adb (which was included in google's sdk for android) supposed to give me this kind of control?
Click to expand...
Click to collapse
What I meant is in my case when I boot in stock recovery and fire up ADB , ADB does not see connected device....
Maybe because I have only basic ADB not full SDK...
But when I type ADB devices it returs no device connected....
h078 said:
Maybe because I have only basic ADB not full SDK...
Click to expand...
Click to collapse
That must be the case.
Do you need to download full sdk for that ?
I did (well, I let it install just the standard stuff), but I think a slim version will do just fine.

[SOLVED][Q] 4.4.3 after restart restores previous values

Hi!
I have problem with my HTC One m7 (ViperOne 7.0.1).
While I changed something in /system/app folder (eg. deleted a "DriveActivator.apk" - successfully accomplished) and restart phone, I see again that deleted app!!!
Do you know why? I'm using RootExplorer, I have root and granted permissions to r/w.
It seems like system restores some kind of backup - I don't know why, and I don't know how to fix it (I mean do some permanent changes in /system/app).
dry3333 said:
Hi!
I have problem with my HTC One m7 (ViperOne 7.0.1).
While I changed something in /system/app folder (eg. deleted a "DriveActivator.apk" - successfully accomplished) and restart phone, I see again that deleted app!!!
Do you know why? I'm using RootExplorer, I have root and granted permissions to r/w.
It seems like system restores some kind of backup - I don't know why, and I don't know how to fix it (I mean do some permanent changes in /system/app).
Click to expand...
Click to collapse
It appears that the System isn't booted with RW capabilities
There's a nice long command that I'll give you later that will fix it
If you wanna get it sooner and aren't afraid of adb shell (make sure you have root access enabled for adb AND apps, not just apps) you can Google remount Linux system read/write and you should find it
You'll need to modify that command to reflect the One, but the name of the partition should be something like by-name-system or something
I'll get it later if you need it when I wake up
ajbiz11 said:
It appears that the System isn't booted with RW capabilities
There's a nice long command that I'll give you later that will fix it
If you wanna get it sooner and aren't afraid of adb shell (make sure you have root access enabled for adb AND apps, not just apps) you can Google remount Linux system read/write and you should find it
You'll need to modify that command to reflect the One, but the name of the partition should be something like by-name-system or something
I'll get it later if you need it when I wake up
Click to expand...
Click to collapse
Thanks mate!
Stupid question - how I can check whether I have root access enabled for adb and apps? I have superuser app, and in settings I can see: "Superuser Access: Apps and ADB" - is this what you are wrote about?
dry3333 said:
Thanks mate!
Stupid question - how I can check whether I have root access enabled for adb and apps? I have superuser app, and in settings I can see: "Superuser Access: Apps and ADB" - is this what you are wrote about?
Click to expand...
Click to collapse
That's exactly what I'm referring to (The settings thing)
Lemme go find that command for you
---------- Post added at 06:00 AM ---------- Previous post was at 05:56 AM ----------
Wish I knew this existed when I was working on the L port
There's an app to do exactly what you need without looking up partitions
https://play.google.com/store/apps/details?id=com.beansoft.mount_system
Although if you want to go through terminal, here's a tutorial
http://ckirbach.wordpress.com/2012/11/27/how-to-remount-system-as-read-write-in-android/
Basically, you use grep to find the name of the system partition, then run the mount command to remount the partition you found in that precious step
I have this app: Mount /system (rw / ro), also I have this option in superuser and it works fine - I mean that I can change /system/app or for eg. edit /etc/hosts (I get message that ES explorer granted superuser access), but after restart I see previous files (before changes)... I have no idea how make this work - maybe I need custom kernel or something? I want to make permanent changes in system files...
I have reinstalled system (clean option with wipe all data), but still no results...
dry3333 said:
I have this app: Mount /system (rw / ro), also I have this option in superuser and it works fine - I mean that I can change /system/app or for eg. edit /etc/hosts (I get message that ES explorer granted superuser access), but after restart I see previous files (before changes)... I have no idea how make this work - maybe I need custom kernel or something? I want to make permanent changes in system files...
I have reinstalled system (clean option with wipe all data), but still no results...
Click to expand...
Click to collapse
The remount app should do exactly that
Try the command option and make your changes then reboot
ajbiz11 said:
The remount app should do exactly that
Try the command option and make your changes then reboot
Click to expand...
Click to collapse
I have tried - still no results. My system already has RW permissions. Problem is that after restart my files are "restored".
Analogously like in Cisco IOS - commit but without write memory.
Maybe I should go to recovery and do something (but I don't know what)?
dry3333 said:
I have tried - still no results. My system already has RW permissions. Problem is that after restart my files are "restored".
Analogously like in Cisco IOS - commit but without write memory.
Maybe I should go to recovery and do something (but I don't know what)?
Click to expand...
Click to collapse
Check the Viper forum and maybe post there
I only run CM-base so I'm not too experienced with Sense issues
ajbiz11 said:
Check the Viper forum and maybe post there
I only run CM-base so I'm not too experienced with Sense issues
Click to expand...
Click to collapse
Thanks - they said they don't know, but it affects S-ON users....
Can You tell me one thing - I execute this script:
echo off
adb reboot
cd /d %~dp0
echo .
echo Waiting for device...
adb wait-for-device
echo.
adb -d shell stop
adb -d shell su -c "mount -o remount rw /system"
adb -d shell rm /system/app/DriveActivator.apk
adb reboot
This should remove DriveActivator (while script is ongoing I see no errors), but after reboot DriveActivator.apk is still in /system/app...
Is there any other way to permanently remove/change files in /system/app?
dry3333 said:
Thanks - they said they don't know, but it affects S-ON users....
Can You tell me one thing - I execute this script:
echo off
adb reboot
cd /d %~dp0
echo .
echo Waiting for device...
adb wait-for-device
echo.
adb -d shell stop
adb -d shell su -c "mount -o remount rw /system"
adb -d shell rm /system/app/DriveActivator.apk
adb reboot
This should remove DriveActivator (while script is ongoing I see no errors), but after reboot DriveActivator.apk is still in /system/app...
Is there any other way to permanently remove/change files in /system/app?
Click to expand...
Click to collapse
You can remove it from the ViperROM zip and format ONLY system and reflash
That SHOULD work
That's like...the be all end all
dry3333 said:
Thanks - they said they don't know, but it affects S-ON users....
Can You tell me one thing - I execute this script:
echo off
adb reboot
cd /d %~dp0
echo .
echo Waiting for device...
adb wait-for-device
echo.
adb -d shell stop
adb -d shell su -c "mount -o remount rw /system"
adb -d shell rm /system/app/DriveActivator.apk
adb reboot
This should remove DriveActivator (while script is ongoing I see no errors), but after reboot DriveActivator.apk is still in /system/app...
Is there any other way to permanently remove/change files in /system/app?
Click to expand...
Click to collapse
Make life simple: erase the apk while in custom recovery, TWRP has a file manager, or you can use Aroma File Manager
even adb commands while booted in custom recovery are better than booted up ROM.
nkk71 said:
Make life simple: erase the apk while in custom recovery, TWRP has a file manager, or you can use Aroma File Manager
even adb commands while booted in custom recovery are better than booted up ROM.
Click to expand...
Click to collapse
Thanks for advice. Is it possible via TWRP not only remove file, but also replace it? Where shoul I place new file for replace original one?
dry3333 said:
Thanks for advice. Is it possible via TWRP not only remove file, but also replace it? Where shoul I place new file for replace original one?
Click to expand...
Click to collapse
I would recommend using the Aroma File Manager instead of TWRP's, just place all the files you'll need on your internal storage (including Aroma File Manager), then reboot to select "Install" to run the Aroma File Manager and remove/replace whatever you need to.
You may need to also check if the permissions are right, I can't remember if Aroma File Manager has that built in.
remember that once you are in recovery to mount /system (in the Mount menu)
and you can even use adb shell, and adb push commands to replace the .apk.... i'm just guessing it's easier with a GUI interface.
nkk71 said:
I would recommend using the Aroma File Manager instead of TWRP's, just place all the files you'll need on your internal storage (including Aroma File Manager), then reboot to select "Install" to run the Aroma File Manager and remove/replace whatever you need to.
You may need to also check if the permissions are right, I can't remember if Aroma File Manager has that built in.
remember that once you are in recovery to mount /system (in the Mount menu)
and you can even use adb shell, and adb push commands to replace the .apk.... i'm just guessing it's easier with a GUI interface.
Click to expand...
Click to collapse
The windows drivers don't work with recovery mode (usually)
ajbiz11 said:
The windows drivers don't work with recovery mode (usually)
Click to expand...
Click to collapse
they do for me, but sometimes (after flashing a new/different version) i have to manually select the drivers, check FAQ#2 here: http://forum.xda-developers.com/showpost.php?p=52135024&postcount=2
I would like to thank you for advice. I did this via TWRP (after I had mounted /system). It works fine for me
dry3333 said:
I would like to thank you for advice. I did this via TWRP (after I had mounted /system). It works fine for me
Click to expand...
Click to collapse
sure, no problem :good: :good:
if all is good now, can you also edit main thread title to include [SOLVED], thanks
edit the first post -> at the bottom of the edit window, click Go Advanced, and then you can edit main title

Now What?

Now that we have root, what things are we going to be focusing on next? Probably Safestrap and ROMs. What cool things have you guys found with root?
Vlasp said:
Now that we have root, what things are we going to be focusing on next? Probably Safestrap and ROMs. What cool things have you guys found with root?
Click to expand...
Click to collapse
Well for one thing if you disabled/uninstall Unified Search, it allows google search to work correctly in the launcher, also without root you can replace the amazon keyboard with the google keyboard and get voice search.
Edit: We need to probably install Google play services properly to get Google Play Games to work correctly but I am not sure.
The ability to install apps depending on root is awesome.
If you are asking for wishes, then I wish I could use CyanogenMod on this device.
I have de-amazonified my tablet a bit. Cant wait to get a custom rom installed on it though.
we need a safe list with what apps can we delete... i did the same but i don't know for sure what to delete and what to keep... i mention that i don't use amazon apps nor i logged in..
Sent from my KFFOWI using XDA Forums
balanigga said:
we need a safe list with what apps can we delete... i did the same but i don't know for sure what to delete and what to keep... i mention that i don't use amazon apps nor i logged in..
Sent from my KFFOWI using XDA Forums
Click to expand...
Click to collapse
For the moment......
http://forum.xda-developers.com/showpost.php?p=63605889&postcount=77
If wants to remove more can give chmod 000 to apk & reboot before delete
What about reassigning the home button to a different launcher?
xT29c said:
What about reassigning the home button to a different launcher?
Click to expand...
Click to collapse
Just install another launcher and remove FireLauncher from system.
csolanol said:
Just install another launcher and remove FireLauncher from system.
Click to expand...
Click to collapse
Oh, nice. Okay, thanks!
csolanol said:
Just install another launcher and remove FireLauncher from system.
Click to expand...
Click to collapse
how can i do this? thanks in advance
Edit: nevermind I found it, thanks anyway
joelwylde said:
how can i do this? thanks in advance
Click to expand...
Click to collapse
You can use titanium backup, and remove it like that. I would make a backup firs though just in-case.
Also, I need help trying to unhide the firelauncher process. I have the command here "adb shell pm unhide [package:com.amazon.firelauncher]"
But I need the other command first so ADB can talk to my tablet. Because I ran the command, and it just says "true" when it should say "false".
joelwylde said:
how can i do this? thanks in advance
Click to expand...
Click to collapse
Working Launcher replacement thanks to @diegocr and @Awesomeslayerg ! Here's the steps:
1. See @diegocr post at http://forum.xda-developers.com/showpost.php?p=63599598&postcount=23 and download "boot-firelauncher.img"
2. Enable USB debugging
3. Install your launcher of choice!
4. On your computer, run
adb reboot bootloader
Click to expand...
Click to collapse
5. Once your tablet reboots in to fastboot, run on your computer (if you are not in the same directory as boot-firelauncher.img, put the full path):
fastboot boot boot-firelauncher.img
Click to expand...
Click to collapse
6. Tablet will reboot
7. Once booted open an adb shell:
adb shell
Click to expand...
Click to collapse
8. To back up the existing app, run:
cp /system/priv-app/com.amazon.firelauncher/com.amazon.firelauncher.apk /sdcard/Download/com.amazon.firelauncher.apk
Click to expand...
Click to collapse
9. Then nuke it!
rm /system/priv-app/com.amazon.firelauncher/com.amazon.firelauncher.apk
Click to expand...
Click to collapse
10. Now, run to restart your device:
reboot
Click to expand...
Click to collapse
Confirmed working on my tablet with FireOS 5.0.1.
Enjoy!
Forget all the formatting problems
Sent from my KFFOWI using Tapatalk
If you are already rooted you don't need to do all that stuff.
Just adb shell
su
mount -o remount,rw /system
rm -r /system/priv-app/com.amazon.firelauncher or whatever the package is called.
Reboot and it's done.
Remember to install a launcher before this.
csolanol said:
If you are already rooted you don't need to do all that stuff.
Just adb shell
su
mount -o remount,rw /system
rm -r /system/priv-app/com.amazon.firelauncher or whatever the package is called.
Reboot and it's done.
Remember to install a launcher before this.
Click to expand...
Click to collapse
Will this work if I hid the process with ADB before hand? If not, how do I unhide it? What command would I use before "adb shell pm unhide [package:com.amazon.firelauncher]"
Don't know, try if it works hiding, but I doubt it.
I want to replace the hosts file with the one of my Lenovo S660 (China phone). The S660 hosts file is about a mile long and has entries like "0.0.0.0 bad.ad.server" - a very basic but effective way to avoid a lot ads, even at apps. I have not yet took a closer look but I think I would create a mix of both files for the fire.
So, what are the steps?
I have done similar things to my rooted Sony Experia Tipo concerning modifying files at /system, which is mounted RO as default. So I remounted it RW with ES-Explorer, modified what I had to and mounted RO with ES-Explorer again.
I wonder, if this is ok, because of the security means the fire/android has.
I took a chance and I was successfull.
I attached the unchanged hosts file from my Lenovo S660 /system/etc/ as hosts.lenovo.zip file. The fire hosts has just 1 line: 127.0.0.1 localhost. The lenovo's hosts has 25858 lines.
Code:
- unzip hosts.lenovo.zip -> you get host.lenovo
- rename hosts.lenovo to hosts
- connect fire
- adb push hosts /data
- adb shell
- $ su -
- # cd /data
- # chmod 644 hosts
- # exit
- $ exit
- ES Explorer
- Enable root explorer
- remount /system rw
- go to /data
- mark hosts
- cut hosts (to memory)
- go to /system/etc
- mark hosts
- rename hosts to hosts.old
- insert hosts from memory
- remount /system ro
- exit ES Explorer
done.
should work, use at own risk.
Note: You cannot chmod 644 at /mnt/sdcard1 because it is vfat there, that's why you use /data.
Note: You cannot write to /system/etc while at adb shell, even if it is mounted RW, that's why you have to use ES Explorer which will ask you to choose the path with android overlay window - which makes it work (at least my experience).
If you have apps which showed ads before, then you might keep on seeing the very last forever. Or a broken link sign. Or even a popop with broken link sign. Or your ads hosts is missing at the lenovo hosts file and you keep on seeing ads. There even my be websites you cannot visit anymore - which I have not yet experienced, but the risk exists, or will come.
If interested, take a look at http://winhelp2002.mvps.org/hosts.htm for more information and use for your windows or linux pc.
If you don't like it you can go back, you have a copy of your old hosts file.
I want to replace the hosts file with the one of my Lenovo S660 (China phone). The S660 hosts file is about a mile long and has entries like "0.0.0.0 bad.ad.server" - a very basic but effective way to avoid a lot ads, even at apps.
Click to expand...
Click to collapse
Check out the adaway app (open source). It blocks ads through the host file just like you're doing except it puts the host file in place for you, combines host files from a couple different sources (running de-duplication on them) & auto updates your host file as new ad severs are added or removed. Absolutely beats rolling your own host file manually.
That is new information to me, thanks.

Categories

Resources