doc:appunti:hardware:gretel_a7
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:hardware:gretel_a7 [2019/09/29 23:39] – [Installing the XenonHD Custom ROM] niccolo | doc:appunti:hardware:gretel_a7 [2021/08/27 23:23] (current) – [Force one App in Immersive Mode] niccolo | ||
---|---|---|---|
Line 12: | Line 12: | ||
^ Android | ^ Android | ||
^ Telephony | ^ Telephony | ||
+ | |||
+ | ===== Latest System Software | ||
+ | |||
+ | Actually I'm running my Gretel A7 with the following configuration: | ||
+ | |||
+ | * **TWRP Recovery 3.0.2** - We use version 3.0.2 because we had problems with newer 3.2.1, [[# | ||
+ | * **Stock ROM 20170908** - We found on the net the archive Y8303.YX.A7.Gretel.B1B8.6.0.V01.07.20170908.rar. Beware that this stock ROM contains a trojanized launcher! [[# | ||
+ | * **SuperSU v2.82** build number 20170528234214 - Needed to gain root privileges and replace the launcher. | ||
+ | * **Rootless Pixel Launcher 3.9.1** - Downloaded from F-Droid repository, replaces the trojanized default launcher. | ||
+ | |||
+ | ^ Model number | ||
+ | ^ Android version | ||
+ | ^ Android security patch level | August 5, 2016 | | ||
+ | ^ Baseband version | ||
+ | ^ Kernel version | ||
+ | ^ Build number | ||
===== Factory Installed Malware: com.ibingo.launcher3 and Wireless Update | ===== Factory Installed Malware: com.ibingo.launcher3 and Wireless Update | ||
Line 102: | Line 118: | ||
- **Riavviare** il telefono | - **Riavviare** il telefono | ||
- Verificare il file **/ | - Verificare il file **/ | ||
+ | |||
===== Modalità Sviluppatore e Debug USB ===== | ===== Modalità Sviluppatore e Debug USB ===== | ||
Line 107: | Line 124: | ||
Nel menu // | Nel menu // | ||
- | |||
- | ^ Numero modello | ||
- | ^ Versione di Android | ||
- | ^ Livello patch di sicurezza Android | ||
- | ^ Versione banda base | MOLY.WR8.W1449.MD.WG.MP.V59.P4, | ||
- | ^ Versione kernel | ||
- | ^ Numero build | Y8303.YX.A7.Gretel.B1B8.6.0.V01.07.20170526 | ||
===== OEM unlocking ===== | ===== OEM unlocking ===== | ||
Line 354: | Line 364: | ||
* **Swipe to confirm Flash**. | * **Swipe to confirm Flash**. | ||
- | ===== Infected | + | ===== Installing |
On the internet we found the file **Y8303.YX.A7.Gretel.B1B8.6.0.V01.07.20170908.rar** (md5sum decb53fef12c13c30a8759fc55f5dfa4). It seems an offical Gretel ROM, but it has some **malware inside the launcher**. We flashed that ROM using **SP Flash Tool 5.1916** downloading all the partitions to the phone; after some hours **unwanted icons popped-up on the home screen** (icon labels were //Tarot// and //Funny//). | On the internet we found the file **Y8303.YX.A7.Gretel.B1B8.6.0.V01.07.20170908.rar** (md5sum decb53fef12c13c30a8759fc55f5dfa4). It seems an offical Gretel ROM, but it has some **malware inside the launcher**. We flashed that ROM using **SP Flash Tool 5.1916** downloading all the partitions to the phone; after some hours **unwanted icons popped-up on the home screen** (icon labels were //Tarot// and //Funny//). | ||
+ | |||
+ | |||
+ | - Power-off the phone. Using SP Flash Tool from a PC, **flash the partitions**: | ||
+ | - Reboot into normal system and enable **USB debugging**: | ||
+ | * // | ||
+ | * // | ||
+ | - Upload **SuperSU** and **Rootless Pixel Launcher** from the PC to /sdcard/ directory, using **adb push**. | ||
+ | - Power-off the phone and **flash TWRP** recovery image with SP Flash Tool. Boot in //Select Boot Mode Menu// with **Volume UP+Power**, then choose Recovery. | ||
+ | - From TWRP Recovery, install **SuperSU**. | ||
+ | - Reboot into system, install **Rootless Pixel Launcher** from the file manager; from // | ||
+ | - From the PC, run **adb shell** and remove the trojanized launcher using root privileges. See below. | ||
We checked the **apk** file found into the **/ | We checked the **apk** file found into the **/ | ||
Line 364: | Line 385: | ||
< | < | ||
mount -o remount,rw /system | mount -o remount,rw /system | ||
- | / | + | rm -r / |
- | rm -r mount -o remount,ro /system | + | mount -o remount,ro /system |
+ | rm -r / | ||
</ | </ | ||
- | The we removed | + | |
+ | We did not trust either the app **WirelessUpdate**, | ||
+ | |||
+ | * **Name**: WirelessUpdate | ||
+ | * **Package**: | ||
+ | * **Folder**: / | ||
+ | * **Menu Entry**: Settings => About phone => WirelessUpdate | ||
+ | |||
+ | Using root privileges we executed: | ||
+ | |||
+ | < | ||
+ | mount -o remount,rw /system | ||
+ | rm -r / | ||
+ | mount -o remount,ro /system | ||
+ | reboot | ||
+ | </ | ||
+ | |||
+ | After the reboot | ||
+ | |||
+ | We removed | ||
< | < | ||
Line 381: | Line 422: | ||
**NOTICE**: If you enable a **Google account**, you will find a new application installed into **/ | **NOTICE**: If you enable a **Google account**, you will find a new application installed into **/ | ||
===== Immersive Mode ===== | ===== Immersive Mode ===== | ||
+ | |||
+ | :!: **NOTICE**: No need to install a dedicated app to have Immersive Mode for one App, just use the command **settings put global** from an **adb shell**, as explained below! | ||
Questo smartphone Android ha il solo pulsante fisico //Home//, i pulsanti // | Questo smartphone Android ha il solo pulsante fisico //Home//, i pulsanti // | ||
Line 387: | Line 430: | ||
Tale App ha bisogno dell' | Tale App ha bisogno dell' | ||
+ | |||
+ | ===== Force one App in Immersive Mode ===== | ||
+ | |||
+ | To force one single app to run in full screen immersive mode just use the following command line from a PC connected to the USB debug: | ||
+ | |||
+ | < | ||
+ | adb shell settings put global policy_control immersive.full=net.osmand.plus | ||
+ | </ | ||
+ | |||
+ | In this exampled we configured **net.osmand.plus** to run in **full immersive** mode **hiding the Status Bar** at the top of the screen and **hiding the Android Navigation Bar (Soft Keys)** at the bottom. | ||
+ | |||
+ | Beside the **immersive.full** you can use the **immersive.status** setting if you want to keep the top Status Bar and the **immersive.navigation** if you want to keep the Navigation Bar only. | ||
+ | |||
+ | The setting takes effect immediately, | ||
+ | |||
+ | < | ||
+ | settings get global policy_control | ||
+ | immersive.full=net.osmand.plus | ||
+ | </ | ||
+ | |||
+ | To delete the settings: | ||
+ | |||
+ | < | ||
+ | settings delete global policy_control | ||
+ | </ | ||
+ | |||
+ | If you want to set the immersive mode for two application you have to use a comma separated syntax: **immersive.full=com.package.one, | ||
+ | |||
+ | **WARNING**: | ||
===== Disable Soft Keys ===== | ===== Disable Soft Keys ===== |
doc/appunti/hardware/gretel_a7.1569793193.txt.gz · Last modified: 2019/09/29 23:39 by niccolo